aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 15:09:14 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 15:09:14 +0000
commit8be81134528bdb0c791910b0fa509e6662f093d1 (patch)
tree226b620f97e9233018b074e00dbc03531928a4a9 /views/default/admin
parent8b3b7c3babc25966286b2532803c0ac0a5106375 (diff)
downloadelgg-8be81134528bdb0c791910b0fa509e6662f093d1.tar.gz
elgg-8be81134528bdb0c791910b0fa509e6662f093d1.tar.bz2
Enable all / disable all functionality added
git-svn-id: https://code.elgg.org/elgg/trunk@2982 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin')
-rw-r--r--views/default/admin/plugins.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php
index fb319d436..cf62be6d1 100644
--- a/views/default/admin/plugins.php
+++ b/views/default/admin/plugins.php
@@ -11,8 +11,14 @@
* @link http://elgg.org/
*/
+ global $CONFIG;
+
+ $ts = time();
+ $token = generate_action_token($ts);
+
// Description of what's going on
- echo "<div class=\"contentWrapper\"><span class=\"contentIntro\">" . autop(elgg_echo("admin:plugins:description")) . "</span></div>";
+ $buttons = " <a href=\"{$CONFIG->url}action/admin/plugins/enableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('enableall')."</a> <a href=\"{$CONFIG->url}action/admin/plugins/disableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('disableall')."</a> ";
+ echo "<div class=\"contentWrapper\"><span class=\"contentIntro\">" . autop(elgg_echo("admin:plugins:description")) . $buttons . "</span></div>";
$limit = get_input('limit', 10);
$offset = get_input('offset', 0);