Changeset 374 for minimanager/arenateam.php
- Timestamp:
- Sep 11, 2008, 9:10:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/arenateam.php
r307 r374 10 10 11 11 require_once("header.php"); 12 valid_login( 0);12 valid_login($action_permission['read']); 13 13 require_once("scripts/id_tab.php"); 14 14 //######################################################################################################################## … … 55 55 $output .= "</td></tr></table> 56 56 <td align=\"right\">"; 57 $output .= generate_pagination("arena _team.php?action=browse_teams&order_by=$order_by&dir=".!$dir, $all_record, $itemperpage, $start);57 $output .= generate_pagination("arenateam.php?action=browse_teams&order_by=$order_by&dir=".!$dir, $all_record, $itemperpage, $start); 58 58 $output .= "</td></tr></table>"; 59 59 //==========================top page navigation ENDS here ======================== … … 65 65 <th width=\"10%\"><a href=\"arenateam.php?order_by=tot_chars&start=$start&dir=$dir\">".($order_by=='tot_chars' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['captain']}</a></th> 66 66 <th width=\"7%\"><a href=\"arenateam.php?order_by=attype&start=$start&dir=$dir\">".($order_by=='attype' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['type']}</a></th> 67 <th width=\"7%\"><a href=\"arenateam.php?order_by= createdate&start=$start&dir=$dir\">".($order_by=='members' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['members']}</a></th>67 <th width=\"7%\"><a href=\"arenateam.php?order_by=membres&start=$start&dir=$dir\">".($order_by=='members' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['members']}</a></th> 68 68 <th width=\"7%\"><a href=\"arenateam.php?order_by=arenateam_online&start=$start&dir=$dir\">".($order_by=='arenateam_online' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['arenateam_online']}</a></th> 69 <th width=\"7%\"><a href=\"arenateam.php?order_by= createdate&start=$start&dir=$dir\">".($order_by=='rating' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['rating']}</a></th>70 <th width=\"7%\"><a href=\"arenateam.php?order_by= createdate&start=$start&dir=$dir\">".($order_by=='games' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['games']}</a></th>71 <th width=\"7%\"><a href=\"arenateam.php?order_by= createdate&start=$start&dir=$dir\">".($order_by=='wins' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['wins']}</a></th>69 <th width=\"7%\"><a href=\"arenateam.php?order_by=rating&start=$start&dir=$dir\">".($order_by=='rating' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['rating']}</a></th> 70 <th width=\"7%\"><a href=\"arenateam.php?order_by=games&start=$start&dir=$dir\">".($order_by=='games' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['games']}</a></th> 71 <th width=\"7%\"><a href=\"arenateam.php?order_by=wins&start=$start&dir=$dir\">".($order_by=='wins' ? "<img src=\"img/arr_".($dir ? "up" : "dw").".gif\" /> " : "")."{$lang_arenateam['wins']}</a></th> 72 72 </tr>"; 73 73 … … 109 109 $search_value = $sql->quote_smart($_GET['search_value']); 110 110 $search_by = $sql->quote_smart($_GET['search_by']); 111 $search_menu = array('name', 'captainguid', 'arena_team.arenateamid'); 112 if (!array_key_exists($search_by, $search_menu)) $search_by = 'name'; 111 113 112 114 if(isset($_GET['order_by'])) $order_by = $sql->quote_smart($_GET['order_by']); … … 285 287 $llogin = count_days($online[4], time()); 286 288 287 $level = $online[5]; 288 289 if($level > 0) 290 { 291 $lev = '<font color="#FFFFFF">'.$level.'</font>'; 292 } 293 if($level > 9) 294 { 295 $lev = '<font color="#858585">'.$level.'</font>'; 296 } 297 if($level > 19) 298 { 299 $lev = '<font color="#339900">'.$level.'</font>'; 300 } 301 if($level > 29) 302 { 303 $lev = '<font color="#3300CC">'.$level.'</font>'; 304 } 305 if($level > 39) 306 { 307 $lev = '<font color="#5552FF">'.$level.'</font>'; 308 } 309 if($level > 49) 310 { 311 $lev = '<font color="#FF8000">'.$level.'</font>'; 312 } 313 if($level > 59) 314 { 315 $lev = '<font color="#FF0000">'.$level.'</font>'; 316 } 317 if($level > 69) 318 { 319 $lev = '<font color="#FF00CC">'.$level.'</font>'; 320 } 321 if($level > 70) 322 { 323 $lev = '<font color="#FFF000">'.$level.'</font>'; 324 } 289 $level = $online[5]; 290 291 if($level < 10) 292 $lev = '<font color="#FFFFFF">'.$level.'</font>'; 293 else if($level < 20) 294 $lev = '<font color="#858585">'.$level.'</font>'; 295 else if($level < 30) 296 $lev = '<font color="#339900">'.$level.'</font>'; 297 else if($level < 40) 298 $lev = '<font color="#3300CC">'.$level.'</font>'; 299 else if($level < 50) 300 $lev = '<font color="#C552FF">'.$level.'</font>'; 301 else if($level < 60) 302 $lev = '<font color="#FF8000">'.$level.'</font>'; 303 else if($level < 70) 304 $lev = '<font color="#FFF280">'.$level.'</font>'; 305 else if($level < 80) 306 $lev = '<font color="#FF0000">'.$level.'</font>'; 307 else 308 $lev = '<font color="#000000">'.$level.'</font>'; 325 309 326 310 if($llogin < 1) 327 { 328 $lastlogin = '<font color="#009900">'.$llogin.'</font>'; 329 } 330 if($llogin >= 1) 331 { 332 $lastlogin = '<font color="#0000CC">'.$llogin.'</font>'; 333 } 334 if($llogin > 5) 335 { 336 $lastlogin = '<font color="#FFFF00">'.$llogin.'</font>'; 337 } 338 if($llogin > 15) 339 { 340 $lastlogin = '<font color="#FF8000">'.$llogin.'</font>'; 341 } 342 if($llogin > 30) 343 { 344 $lastlogin = '<font color="#FF0000">'.$llogin.'</font>'; 345 } 346 if($llogin > 60) 347 { 348 $lastlogin = '<font color="#FF00FF">'.$llogin.'</font>'; 349 } 350 if($llogin > 90) 351 { 352 $lastlogin = '<font color="#8000FF">'.$llogin.'</font>'; 353 } 311 $lastlogin = '<font color="#009900">'.$llogin.'</font>'; 312 else if($llogin < 6) 313 $lastlogin = '<font color="#0000CC">'.$llogin.'</font>'; 314 else if($llogin < 16) 315 $lastlogin = '<font color="#FFFF00">'.$llogin.'</font>'; 316 else if($llogin < 16) 317 $lastlogin = '<font color="#FF8000">'.$llogin.'</font>'; 318 else if($llogin < 31) 319 $lastlogin = '<font color="#FF0000">'.$llogin.'</font>'; 320 else if($llogin < 61) 321 $lastlogin = '<font color="#FF00FF">'.$llogin.'</font>'; 322 else 323 $lastlogin = '<font color="#FF0000">'.$llogin.'</font>'; 354 324 355 325 $output .= " <tr>"; … … 431 401 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 432 402 433 //$char_data = $sql->query("SELECT data FROM `characters` WHERE guid = '$guid' LIMIT 1"); 434 //$data = $sql->result($char_data, 0, 'data'); 435 //$data = explode(' ',$data); 436 //$data[CHAR_DATA_OFFSET_GUILD_ID] = 0; 437 //$data[CHAR_DATA_OFFSET_GUILD_RANK] = 0; 438 //$data = implode(' ',$data); 439 //$sql->query("UPDATE `characters` SET data = '$data' WHERE guid = '$guid'"); 440 $sql->query("DELETE FROM arena_team_member WHERE guid = '$guid'"); 403 // must be checked that this user can delete it 404 //$sql->query("DELETE FROM arena_team_member WHERE guid = '$guid'"); 441 405 442 406 $sql->close();
Note:
See TracChangeset
for help on using the changeset viewer.