Changeset 374 for minimanager/repair.php
- Timestamp:
- Sep 11, 2008, 9:10:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/repair.php
r142 r374 10 10 11 11 require_once("header.php"); 12 valid_login( 3);12 valid_login($action_permission['read']); 13 13 14 14 //############################################################################################## … … 109 109 //############################################################################################## 110 110 function do_repair(){ 111 global $lang_global, $output, $realm_db, $mangos_db ;111 global $lang_global, $output, $realm_db, $mangos_db, $characters_db; 112 112 113 113 if ((!isset($_POST['repair_action']) && $_POST['repair_action'] === '') || (!isset($_POST['check'])) ) { … … 126 126 if ($table_data[0] == "realm"){ 127 127 $sql->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']); 128 } else { 129 if ($table_data[0] == "mangos"){ 130 $sql->connect($mangos_db[$table_data[1]]['addr'], $mangos_db[$table_data[1]]['user'], $mangos_db[$table_data[1]]['pass']); 131 } else { 132 $sql->connect($characters_db[$table_data[1]]['addr'], $characters_db[$table_data[1]]['user'], $characters_db[$table_data[1]]['pass']); 133 } 134 } 128 } elseif ($table_data[0] == "mangos"){ 129 $sql->connect($mangos_db['addr'], $mangos_db['user'], $mangos_db['pass']); 130 } elseif ($table_data[0] == "characters"){ 131 $sql->connect($characters_db['addr'], $characters_db['user'], $characters_db['pass']); 132 } 135 133 136 134 $result = $sql->query("$table_action TABLE {$table_data[2]}.`{$table_data[3]}`"); … … 141 139 } 142 140 143 if ($counter) redirect("repair.php?error=2&num=$counter");144 else redirect("repair.php?error=4&rep_err=$err");141 if ($counter) { redirect("repair.php?error=2&num=$counter"); } 142 else { redirect("repair.php?error=4&rep_err=$err"); } 145 143 } 146 144
Note:
See TracChangeset
for help on using the changeset viewer.