From c85e19f908dc724933a2775cbcd8cf5b0426e529 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 28 Jul 2008 17:36:07 +0000 Subject: Adding updateclient (non-functional) and now switching back to base station. git-svn-id: https://code.elgg.org/elgg/trunk@1562 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/updateclient/index.php | 8 +++ mod/updateclient/languages/en.php | 20 +++++++ mod/updateclient/manifest.xml | 9 ++++ mod/updateclient/start.php | 63 ++++++++++++++++++++++ .../views/default/settings/updateclient/edit.php | 16 ++++++ 5 files changed, 116 insertions(+) create mode 100644 mod/updateclient/index.php create mode 100644 mod/updateclient/languages/en.php create mode 100644 mod/updateclient/manifest.xml create mode 100644 mod/updateclient/start.php create mode 100644 mod/updateclient/views/default/settings/updateclient/edit.php (limited to 'mod') diff --git a/mod/updateclient/index.php b/mod/updateclient/index.php new file mode 100644 index 000000000..181ac720a --- /dev/null +++ b/mod/updateclient/index.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/mod/updateclient/languages/en.php b/mod/updateclient/languages/en.php new file mode 100644 index 000000000..262a474ab --- /dev/null +++ b/mod/updateclient/languages/en.php @@ -0,0 +1,20 @@ + 'Core', + 'updateclient:label:plugins' => 'Plugins', + ); + + add_translation("en", $english); +?> \ No newline at end of file diff --git a/mod/updateclient/manifest.xml b/mod/updateclient/manifest.xml new file mode 100644 index 000000000..e9b44e984 --- /dev/null +++ b/mod/updateclient/manifest.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/mod/updateclient/start.php b/mod/updateclient/start.php new file mode 100644 index 000000000..0f52146f9 --- /dev/null +++ b/mod/updateclient/start.php @@ -0,0 +1,63 @@ +url . "pg/updateclient/core/"); + //add_submenu_item(elgg_echo('updateclient:label:plugins'), $CONFIG->url . "pg/updateclient/plugins/"); + + // See what context we're using + switch($page[0]) + { + case "core" : + include($CONFIG->pluginspath . "updateclient/index.php"); + break; + case "plugins" : + include($CONFIG->pluginspath . "updateclient/plugin.php"); + break; + + default: + include($CONFIG->pluginspath . "updateclient/index.php"); + } + } + else + include($CONFIG->pluginspath . "updateclient/index.php"); + } + + function updateclient_check_core() + { + + } + + // Initialise + register_elgg_event_handler('init','system','updateclient_init'); +?> \ No newline at end of file diff --git a/mod/updateclient/views/default/settings/updateclient/edit.php b/mod/updateclient/views/default/settings/updateclient/edit.php new file mode 100644 index 000000000..e01c14487 --- /dev/null +++ b/mod/updateclient/views/default/settings/updateclient/edit.php @@ -0,0 +1,16 @@ + \ No newline at end of file -- cgit v1.2.3