• Home
  • Raw
  • Download

Lines Matching refs:id

11 	$id = $_GET["id"];  variable
12 if (!is_numeric($id))
13 $id = 0; variable
15 $id = 0; variable
21 if ($cmd == 'eventlog' && $id > 0) {
22 $row = $db->query("SELECT dump FROM eventlog WHERE rowid=$id")->fetch();
35 if ($cmd == 'mo' && $id > 0) {
41 $row = $db->query("SELECT $mo FROM users WHERE rowid=$id")->fetch();
48 if ($cmd == 'cert' && $id > 0) {
49 $row = $db->query("SELECT cert_pem FROM users WHERE rowid=$id")->fetch();
63 if ($cmd == 'subrem-clear' && $id > 0) {
64 $db->exec("UPDATE users SET remediation='' WHERE rowid=$id");
66 if ($cmd == 'subrem-add-user' && $id > 0) {
67 $db->exec("UPDATE users SET remediation='user' WHERE rowid=$id");
69 if ($cmd == 'subrem-add-machine' && $id > 0) {
70 $db->exec("UPDATE users SET remediation='machine' WHERE rowid=$id");
72 if ($cmd == 'subrem-add-reenroll' && $id > 0) {
73 $db->exec("UPDATE users SET remediation='reenroll' WHERE rowid=$id");
75 if ($cmd == 'subrem-add-policy' && $id > 0) {
76 $db->exec("UPDATE users SET remediation='policy' WHERE rowid=$id");
78 if ($cmd == 'subrem-add-free' && $id > 0) {
79 $db->exec("UPDATE users SET remediation='free' WHERE rowid=$id");
81 if ($cmd == 'fetch-pps-on' && $id > 0) {
82 $db->exec("UPDATE users SET fetch_pps=1 WHERE rowid=$id");
84 if ($cmd == 'fetch-pps-off' && $id > 0) {
85 $db->exec("UPDATE users SET fetch_pps=0 WHERE rowid=$id");
87 if ($cmd == 'reset-pw' && $id > 0) {
88 $db->exec("UPDATE users SET password='ChangeMe' WHERE rowid=$id");
90 if ($cmd == "policy" && $id > 0 && isset($_GET["policy"])) {
94 $db->exec("UPDATE users SET policy='$policy' WHERE rowid=$id");
97 if ($cmd == "account-type" && $id > 0 && isset($_GET["type"])) {
100 $db->exec("UPDATE users SET shared=1 WHERE rowid=$id");
102 $db->exec("UPDATE users SET shared=0 WHERE rowid=$id");
105 if ($cmd == "set-osu-cred" && $id > 0) {
110 $db->exec("UPDATE users SET osu_user='$osu_user', osu_password='$osu_password' WHERE rowid=$id");
113 if ($cmd == 'clear-t-c' && $id > 0) {
114 $db->exec("UPDATE users SET t_c_timestamp=NULL WHERE rowid=$id");
119 if ($id > 0) {
130 echo "[<a href=\"users.php?id=$id&dump=1\">Include debug dump</a>] ";
132 echo "[<a href=\"users.php?id=$id\">Without debug dump</a>] ";
135 $row = $db->query("SELECT rowid,* FROM users WHERE rowid=$id")->fetch();
141 echo "[<a href=\"users.php?cmd=mo&id=$id&mo=devinfo\">DevInfo</a>]\n";
144 echo "[<a href=\"users.php?cmd=mo&id=$id&mo=devdetail\">DevDetail</a>]\n";
147 echo "[<a href=\"users.php?cmd=mo&id=$id&mo=pps\">PPS</a>]\n";
150 echo "[<a href=\"users.php?cmd=cert&id=$id\">Certificate</a>]\n";
157 "[<a href=\"users.php?cmd=fetch-pps-off&id=$id\">" .
161 "[<a href=\"users.php?cmd=fetch-pps-on&id=$id\">" .
268 if ($id > 0 || ($id == 0 && $cmd == 'eventlog')) {
270 if ($id == 0) {
277 if ($id == 0) {
290 if ($id == 0)
298 if ($id == 0) {
324 if ($id == 0 && $cmd != 'eventlog') {