From 77411a83abc72a4a7911fcd5289918175d4edeb8 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Thu, 3 Mar 2005 17:48:16 +0000 Subject: [PATCH] Added ops page to manage special users (from Christian Beer) svn path=/trunk/boinc/; revision=5555 --- checkin_notes | 10 +++++ html/ops/index.php | 1 + html/ops/manage_special_users.php | 55 ++++++++++++++++++++++++ html/ops/manage_special_users_action.php | 38 ++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 html/ops/manage_special_users.php create mode 100644 html/ops/manage_special_users_action.php diff --git a/checkin_notes b/checkin_notes index 039131a610..bd1e7ff08e 100755 --- a/checkin_notes +++ b/checkin_notes @@ -25462,3 +25462,13 @@ Rom 3 Mar 2005 win_build/installerv2/ < numerous files and folders > + +Bruce 3 March 2005 + - Added ops page for managing special users (from Christian Beer) + + html/ + ops/ + index.php + manage_special_users.php + manage_special_users_action.php + diff --git a/html/ops/index.php b/html/ops/index.php index ff3703be1c..2d9b6626f1 100644 --- a/html/ops/index.php +++ b/html/ops/index.php @@ -38,6 +38,7 @@ echo "
  • Update user of the day (Should run as cron-job)
  • Create account
  • Cancel workunits +
  • Manage special users diff --git a/html/ops/manage_special_users.php b/html/ops/manage_special_users.php new file mode 100644 index 0000000000..96ebf7b3c4 --- /dev/null +++ b/html/ops/manage_special_users.php @@ -0,0 +1,55 @@ +User"; +for($i=0;$i<=6;$i++) { + echo "" . $special_user_bitfield[$i] . "\n"; +} +echo ""; + +$result = mysql_query("SELECT prefs.userid, prefs.special_user, user.name + FROM forum_preferences as prefs, user + WHERE special_user > '0' and prefs.userid=user.id"); +for($i=1;$i<=mysql_num_rows($result);$i++){ + $foo = mysql_fetch_object($result); + echo "
    \n"; + echo "userid\" + $foo->name"; + for ($j=0;$j<=6;$j++) { + $bit = substr($foo->special_user, $j, 1); + echo "\n"; + } + echo "
    "; + echo "\n"; +} + +echo "
    \n"; +echo "Add UserID:"; + +for ($j=0;$j<=6;$j++) { + echo "\n"; + } + echo "
    "; + echo "\n"; + + +end_table(); + +admin_page_tail(); + +?> diff --git a/html/ops/manage_special_users_action.php b/html/ops/manage_special_users_action.php new file mode 100644 index 0000000000..b04a296d79 --- /dev/null +++ b/html/ops/manage_special_users_action.php @@ -0,0 +1,38 @@ +

    Success

    "; +} else { + echo "

    Failure

    "; +} + +echo "Query was: $query
    "; + +//echo "
    Manage users"; + +admin_page_tail(); + +?>