- ";
+ $rows = $result->RecordCount();
+ if ($rows > 0) {
+ while (!$result->EOF) {
+ $row = $result->FetchRow();
+ display_user($row[0], $row[1]);
+ }
+ }
+ print "
# # # add_file "www/administrator.js" # content [6c90694cc02ec84ca391741656b00c9f4ef6692d] # # add_file "www/userlist.php" # content [1b75d989cf421d3d1a6c89b9bc1b92ac83703554] # # patch "install" # from [51c70817928b277ef2135f1725bcafdc514ca3c9] # to [590996a3a02a088b78ef1cec25925a51ff8d0dbc] # # patch "schema.sql" # from [7ac9ff4513b78347c54178c96cae5d09604716e5] # to [6185e01fe4e92e7aa710623b32adc8492fe416a4] # # patch "www/common.php" # from [0edc904e86c5b864aea3765104987ef069fd618f] # to [07f4b2e45766914b338455534b81237e17158ba1] # # patch "www/index.php" # from [9c415a134ece496a7a2015c8fb3e2e6e7f9d58a9] # to [19260ebd2eaa4f8d38c0f5ababadbad31c6dd1af] # # patch "www/login.php" # from [53f3fcfe78d47e975b16cc3237465f91688225fe] # to [14aef06b5d11e08fadc7ee1ca05365c1c728b55d] # # patch "www/proj-ctrl.php" # from [4174270cbc77848dd88cd09efec5f3f010c46ea3] # to [28df80702237dfa4a1038834c9df4ab296e3f6e2] # # patch "www/sidebar.php" # from [d486ed8f0caaf5606ca6de2157d8392677239e5b] # to [1b09b8489aa37f03a65aa07bce2d630c7f408c18] # # patch "www/user.php" # from [8a88e97360ed641441ac944fbbb831fca160ec65] # to [8b0cc7a2a80ae3c4cd5e58ae3604cb69dbc0ecb7] # ============================================================ --- www/administrator.js 6c90694cc02ec84ca391741656b00c9f4ef6692d +++ www/administrator.js 6c90694cc02ec84ca391741656b00c9f4ef6692d @@ -0,0 +1,55 @@ + +rmproj = function (name) { + status("Deleting project '"+name+"'..."); + if (!confirm("Are you sure you want to delete "+name+"?")) { + status("Delete canceled."); + return; + } + var args = {'project':name,'action':'delete_project'}; + call_server("proj-ctrl.php", args, "rmproj", function (data) { + removeElement("projdiv_"+name); + clearstatus(); + }); +} + +rmuser = function(name) { + status("Deleting user "+name+"..."); + if (!confirm("Are you sure you want to delete "+name+"?")) { + status("Delete canceled."); + return; + } + var args = {'who':name,'action':'delete_user'}; + call_server("user-ctrl.php", args, "rmuser", function (data) { + removeElement("userli_"+name); + clearstatus(); + }); +} + +op = function(name) { + status("Setting admin flag for "+name+"..."); + var args = {'who':name,'action':'op'}; + call_server("user-ctrl.php", args, "op", function (data) { + clearstatus(); + }); +} + +deop = function(name) { + status("Removing admin flag from "+name+"..."); + var args = {'who':name,'action':'deop'}; + call_server("user-ctrl.php", args, "deop", function (data) { + clearstatus(); + }); +} + +chuserpass = function(name) { + status("Resetting password for "+name+"..."); + var newpass = prompt('Enter a new password for ' + name, ''); + if (newpass == '') { + clearstatus(); + return; + } + var args = {'who':name,'new_password':newpass,'action':'chuserpass'}; + call_server("user-ctrl.php", args, "chuserpass", function (data) { + clearstatus(); + }); +} ============================================================ --- www/userlist.php 1b75d989cf421d3d1a6c89b9bc1b92ac83703554 +++ www/userlist.php 1b75d989cf421d3d1a6c89b9bc1b92ac83703554 @@ -0,0 +1,66 @@ + include_once('common.php') ?> + + $level = 'main'; ?> + +
+