Changeset 178 for minimanager/command.php
- Timestamp:
- Dec 23, 2007, 2:55:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/command.php
r142 r178 24 24 3 => array ('level3','') 25 25 ); 26 26 27 27 $sql = new SQL; 28 28 $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']); … … 45 45 $levels[$data[2]][1] .= $tmp_output; 46 46 } 47 47 48 48 $output .= "<center> 49 49 <form method=\"get\" action=\"command.php\" name=\"form\"> … … 51 51 52 52 for ($i=0; $i<=$user_lvl; $i++){ 53 if ($i <= 3) { 53 54 $output .= "<fieldset class=\"full_frame\"> 54 55 <legend>". … … 61 62 <th width=\"2%\"></th> 62 63 <th width=\"13%\">{$lang_command['command']}</th> 63 <th width=\"20%\">{$lang_command['syntax']}</th> 64 <th width=\"20%\">{$lang_command['syntax']}</th> 64 65 <th width=\"65%\">{$lang_command['description']}</th> 65 66 </tr>" . $levels[$i][1]; 67 66 68 if ($user_lvl > 2) { 67 69 $output .= "</table><br /><table class=\"hidden\" style=\"width: 720px;\"><td>"; … … 69 71 } 70 72 $output .= "</table></div></fieldset>"; 73 } 71 74 } 72 75 $output .= "</form><br /></center>"; … … 98 101 </tr>"; 99 102 100 $commands = array_keys($check); 103 $commands = array_keys($check); 101 104 for ($i=0; $i<count($check); $i++){ 102 105 $output .= "<tr> … … 137 140 138 141 $commands = array_keys($change); 139 142 140 143 // Quick sanity check 141 144 for ($i=0; $i<count($change); $i++) { … … 143 146 redirect("command.php?error=1"); 144 147 } 145 148 146 149 for ($i=0; $i<count($change); $i++) { 147 150 $query = $sql->query("UPDATE command SET `security` = '".$change[$commands[$i]]."' WHERE name= '$commands[$i]'"); … … 170 173 171 174 switch ($action) { 172 case "update": 175 case "update": 173 176 update_commands(); 174 177 break; 175 case "doupdate": 178 case "doupdate": 176 179 doupdate_commands(); 177 180 break;
Note:
See TracChangeset
for help on using the changeset viewer.