Changeset 307 for minimanager/edit.php
- Timestamp:
- Mar 13, 2008, 8:18:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/edit.php
r306 r307 8 8 * License: GNU General Public License v2(GPL) 9 9 */ 10 10 11 11 require_once("header.php"); 12 12 valid_login(0); … … 26 26 if ($acc = $sql->fetch_row($result)) { 27 27 require_once("scripts/id_tab.php"); 28 28 29 29 $output .= "<center> 30 30 <script type=\"text/javascript\" src=\"js/sha1.js\"></script> … … 84 84 <td>".$sql->result($result, 0)."</td> 85 85 </tr>"; 86 86 87 87 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 88 $result = $sql->query("SELECT guid,name,race,class,SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) FROM `character ` WHERE account = $user_id");88 $result = $sql->query("SELECT guid,name,race,class,SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) FROM `characters` WHERE account = $user_id"); 89 89 90 90 $output .= "<tr> … … 94 94 95 95 while ($char = $sql->fetch_array($result)){ 96 $output .= "<tr> 96 $output .= "<tr> 97 97 <td> '---></td> 98 98 <td><a href=\"char.php?id=$char[0]\">$char[1] - ".get_player_race($char[2])." ".get_player_class($char[3])." | lvl $char[4]</a></td> … … 124 124 $lang = explode('.', $file); 125 125 if(isset($lang[1]) && $lang[1] == 'php'){ 126 $output .= "<option value=\"{$lang[0]}\""; 127 if (isset($_COOKIE["lang"]) && ($_COOKIE["lang"] == $lang[0])) $output .= " selected=\"selected\" "; 128 $output .= ">{$lang[0]}</option>"; 129 } 126 if (($file != 'Forum_enUS.php')&&($file != 'Forum_zhCN.php')&&($file != 'Forum_frFR.php')&&($file != 'Forum_deDE.php')&&($file != 'Forum_Italiano.php')){ 127 $output .= "<option value=\"{$lang[0]}\""; 128 if (isset($_COOKIE["lang"]) && ($_COOKIE["lang"] == $lang[0])) $output .= " selected=\"selected\" "; 129 $output .= ">{$lang[0]}</option>"; 130 } 131 } 130 132 } 131 133 closedir($dh); … … 149 151 if ($dh = opendir("./templates")){ 150 152 while (($file = readdir($dh)) != false){ 151 if (($file != '.')&&($file != '..')&&($file != '.htaccess')&&($file != 'index.html')&&($file != '.svn') ){153 if (($file != '.')&&($file != '..')&&($file != '.htaccess')&&($file != 'index.html')&&($file != '.svn')&&($file != 'pomm.css')){ 152 154 $output .= "<option value=\"$file\""; 153 155 if (isset($_COOKIE["css_template"]) && ($_COOKIE["css_template"] == $file)) $output .= " selected=\"selected\" "; … … 169 171 <br /></center>"; 170 172 } else error($lang_global['err_no_records_found']); 171 173 172 174 $sql->close(); 173 175 } … … 189 191 $new_mail = $sql->quote_smart(trim($_POST['mail'])); 190 192 $new_tbc = $sql->quote_smart(trim($_POST['tbc'])); 191 193 192 194 //make sure the mail is valid mail format 193 195 require_once("scripts/valid_lib.php"); … … 268 270 //############################################################################################################### 269 271 $err = (isset($_GET['error'])) ? $_GET['error'] : NULL; 270 272 271 273 $output .= "<div class=\"top\">"; 272 274 switch ($err) { … … 298 300 break; 299 301 case "delete_user": 300 delete_user(); 302 delete_user(); 301 303 break; 302 304 case "dodelete_user":
Note:
See TracChangeset
for help on using the changeset viewer.