aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/plugins/disable.php4
-rw-r--r--actions/admin/plugins/disableall.php4
-rw-r--r--actions/admin/plugins/enable.php4
-rw-r--r--actions/admin/plugins/enableall.php4
-rw-r--r--actions/admin/plugins/reorder.php2
-rw-r--r--actions/admin/user/ban.php3
-rw-r--r--actions/admin/user/delete.php3
-rw-r--r--actions/admin/user/makeadmin.php3
-rw-r--r--actions/admin/user/removeadmin.php3
-rw-r--r--actions/admin/user/resetpassword.php3
-rw-r--r--actions/admin/user/unban.php3
11 files changed, 10 insertions, 26 deletions
diff --git a/actions/admin/plugins/disable.php b/actions/admin/plugins/disable.php
index 810eb1c94..4726a47fa 100644
--- a/actions/admin/plugins/disable.php
+++ b/actions/admin/plugins/disable.php
@@ -8,8 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
// block non-admin users
admin_gatekeeper();
@@ -35,4 +33,4 @@ elgg_view_regenerate_simplecache();
elgg_filepath_cache_reset();
forward($_SERVER['HTTP_REFERER']);
-exit; \ No newline at end of file
+exit;
diff --git a/actions/admin/plugins/disableall.php b/actions/admin/plugins/disableall.php
index b06961450..b48841047 100644
--- a/actions/admin/plugins/disableall.php
+++ b/actions/admin/plugins/disableall.php
@@ -8,8 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
// block non-admin users
admin_gatekeeper();
@@ -31,4 +29,4 @@ elgg_view_regenerate_simplecache();
elgg_filepath_cache_reset();
forward($_SERVER['HTTP_REFERER']);
-exit; \ No newline at end of file
+exit;
diff --git a/actions/admin/plugins/enable.php b/actions/admin/plugins/enable.php
index 0a6631b65..6e4b98658 100644
--- a/actions/admin/plugins/enable.php
+++ b/actions/admin/plugins/enable.php
@@ -8,8 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
// block non-admin users
admin_gatekeeper();
@@ -35,4 +33,4 @@ elgg_view_regenerate_simplecache();
elgg_filepath_cache_reset();
forward($_SERVER['HTTP_REFERER']);
-exit; \ No newline at end of file
+exit;
diff --git a/actions/admin/plugins/enableall.php b/actions/admin/plugins/enableall.php
index 92a44b7a7..d6cac3938 100644
--- a/actions/admin/plugins/enableall.php
+++ b/actions/admin/plugins/enableall.php
@@ -8,8 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
// block non-admin users
admin_gatekeeper();
@@ -32,4 +30,4 @@ elgg_view_regenerate_simplecache();
elgg_filepath_cache_reset();
forward($_SERVER['HTTP_REFERER']);
-exit; \ No newline at end of file
+exit;
diff --git a/actions/admin/plugins/reorder.php b/actions/admin/plugins/reorder.php
index 67cb6f02b..45bcefc78 100644
--- a/actions/admin/plugins/reorder.php
+++ b/actions/admin/plugins/reorder.php
@@ -8,8 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
// block non-admin users
admin_gatekeeper();
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php
index 9a0ad58bb..83e789615 100644
--- a/actions/admin/user/ban.php
+++ b/actions/admin/user/ban.php
@@ -8,7 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
// block non-admin users
admin_gatekeeper();
@@ -30,4 +29,4 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) {
}
forward('pg/admin/user/');
-exit; \ No newline at end of file
+exit;
diff --git a/actions/admin/user/delete.php b/actions/admin/user/delete.php
index 7d9249424..3cd0aaecf 100644
--- a/actions/admin/user/delete.php
+++ b/actions/admin/user/delete.php
@@ -8,7 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
// block non-admin users
admin_gatekeeper();
@@ -29,4 +28,4 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) {
}
forward($_SERVER['HTTP_REFERER']);
-exit; \ No newline at end of file
+exit;
diff --git a/actions/admin/user/makeadmin.php b/actions/admin/user/makeadmin.php
index b3e5ae8fc..e3fbac7e7 100644
--- a/actions/admin/user/makeadmin.php
+++ b/actions/admin/user/makeadmin.php
@@ -8,7 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
global $CONFIG;
// block non-admin users
@@ -30,4 +29,4 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) {
register_error(elgg_echo('admin:user:makeadmin:no'));
}
-forward($_SERVER['HTTP_REFERER']); \ No newline at end of file
+forward($_SERVER['HTTP_REFERER']);
diff --git a/actions/admin/user/removeadmin.php b/actions/admin/user/removeadmin.php
index 2e1bbe180..33d719adc 100644
--- a/actions/admin/user/removeadmin.php
+++ b/actions/admin/user/removeadmin.php
@@ -8,7 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
global $CONFIG;
// block non-admin users
@@ -30,4 +29,4 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) {
register_error(elgg_echo('admin:user:removeadmin:no'));
}
-forward($_SERVER['HTTP_REFERER']); \ No newline at end of file
+forward($_SERVER['HTTP_REFERER']);
diff --git a/actions/admin/user/resetpassword.php b/actions/admin/user/resetpassword.php
index 50bdcb1ac..d168ab9cc 100644
--- a/actions/admin/user/resetpassword.php
+++ b/actions/admin/user/resetpassword.php
@@ -8,7 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
global $CONFIG;
// block non-admin users
@@ -42,4 +41,4 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) {
}
forward($_SERVER['HTTP_REFERER']);
-exit; \ No newline at end of file
+exit;
diff --git a/actions/admin/user/unban.php b/actions/admin/user/unban.php
index f78d291c5..208ffb5db 100644
--- a/actions/admin/user/unban.php
+++ b/actions/admin/user/unban.php
@@ -8,7 +8,6 @@
* @link http://elgg.org/
*/
-require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
// block non-admin users
admin_gatekeeper();
@@ -35,4 +34,4 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) {
access_show_hidden_entities($access_status);
forward($_SERVER['HTTP_REFERER']);
-exit; \ No newline at end of file
+exit;