aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/plugins.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/plugins.php')
-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);