From 515d68f166bd2fcd40bb61237a09657a94517068 Mon Sep 17 00:00:00 2001 From: Eric Rasmussen <erasmussen2@unl.edu> Date: Tue, 26 Jan 2010 19:24:05 +0000 Subject: [PATCH] index and start files for mobil_unl that were missing from the repos. --- plugins/mobile_unl/index.php | 23 +++++++++++++++++++++++ plugins/mobile_unl/manifest.xml | 10 ++++++++++ plugins/mobile_unl/start.php | 25 +++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100755 plugins/mobile_unl/index.php create mode 100755 plugins/mobile_unl/manifest.xml create mode 100755 plugins/mobile_unl/start.php diff --git a/plugins/mobile_unl/index.php b/plugins/mobile_unl/index.php new file mode 100755 index 00000000..977713fe --- /dev/null +++ b/plugins/mobile_unl/index.php @@ -0,0 +1,23 @@ +<?php +/** + * Elgg Mobile + * A Mobile Client For Elgg + * + * @package Elgg + * @subpackage Core + * @author Mark Harding + * @link http://maestrozone.com + * + */ + /** + * Start the Elgg engine + */ + define('externalpage',true); + require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); + + //Load the front page + global $CONFIG; + set_input('view', 'mobile'); + $content = elgg_view_layout('two_column_left_sidebar', elgg_view("account/forms/login")); + page_draw(null, $content); +?> diff --git a/plugins/mobile_unl/manifest.xml b/plugins/mobile_unl/manifest.xml new file mode 100755 index 00000000..b6901d74 --- /dev/null +++ b/plugins/mobile_unl/manifest.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<plugin_manifest> + <field key="author" value="UNL" /> + <field key="version" value="0.3" /> + <field key="description" value="Elgg Mobile UNL Modifications" /> + <field key="website" value="http://www.unl.edu/" /> + <field key="copyright" value="(C) UNL 2010" /> + <field key="licence" value="BSD" /> + <field key="elgg_version" value="2009072201" /> +</plugin_manifest> \ No newline at end of file diff --git a/plugins/mobile_unl/start.php b/plugins/mobile_unl/start.php new file mode 100755 index 00000000..307ac85e --- /dev/null +++ b/plugins/mobile_unl/start.php @@ -0,0 +1,25 @@ +<?php +/** + * Elgg Mobile + * A Mobile Client For Elgg + * + * @package Elgg + * @subpackage Core + * @author Mark Harding + * @link http://maestrozone.com + * + */ + + function mobile_unl_init(){ + + // extend_view('metatags','mobile/metatags'); + +// Close the mobile_init + } +// Initialise log browser + register_elgg_event_handler('init','system','mobile_unl_init'); +//elgg_register_simplecache_view(mobile); +register_action("mobile/login",false,$CONFIG->pluginspath . "mobile/actions/login.php", true); + + +?> -- GitLab