aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/admin.php b/admin.php
index fa08bae24..78050490f 100644
--- a/admin.php
+++ b/admin.php
@@ -34,7 +34,19 @@ include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
$page_valide = false;
$title = '';
$username='';
-if (isset($_POST['username'])) $username=$_POST['username'];
+if (isset($_POST['username']))
+{
+ $username = $_POST['username'];
+}
+else if (isset($_POST['userid']))
+{
+ $username = get_username($_POST['userid']);
+}
+else if (isset($_GET['user_id']))
+{
+ $username = get_username($_GET['user_id']);
+}
+
if (isset( $_GET['page'] ))
switch ( $_GET['page'] )
{