SuMMeR
Member
- Joined
- Apr 29, 2008
- Messages
- 300
- Reaction score
- 15
Game Master List not work
Last Update 14717 days 13 hours 46 minutes 33 seconds ago
И аз съм така напрао незнам как да го опрая и може да напиша някакъв прост скрипт :/
Game Master List not work
Last Update 14717 days 13 hours 46 minutes 33 seconds ago
<? if(read_module(23) == 0){ echo locked('For the moment this page is closed...Please try again latter.','370'); }else{ $update_interval = 10; $gm_settings_file = file("sys_/muweb_db/".gm_settings_tDB.""); foreach ($gm_settings_file as $gm_settings){ $gm_settings = explode("|",$gm_settings); break; } if($gm_settings[1] < $update_interval){ $new_interval_time = $gm_settings[1]+1; $new_gm_settings = "$gm_settings[0]|$new_interval_time|$gm_settings[2]"; $old_db = file("sys_/muweb_db/".gm_settings_tDB.""); $new_db = fopen("sys_/muweb_db/".gm_settings_tDB."", "w"); foreach($old_db as $old_db_line){ $old_db_arr = explode("|", $old_db_line); if($gm_settings[0] != $old_db_arr[0]){ fwrite($new_db,"$old_db_line"); }else{ fwrite($new_db,$new_gm_settings); } } fclose($new_db); $gm_content = '<br> <table width="300" align="center" border="0" cellspacing="0" cellpadding="0" class="rankings-table"> <thead><tr><td align="left">#</td><td align="left">Name</td><td align="left">Map</td><td align="left">Status</td></tr></thead>'; $count=0; $tr_color_2 = "even"; $tr_color_1 = ""; $gm_list_file = file("sys_/muweb_db/".gm_tDB.""); foreach ($gm_list_file as $gm_list){ $gm_list = explode("|",$gm_list); $count++; $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2; $gm_list[2] == 1 ? $get_list_sts = '<font color="#00FF00">Online</font>' : $get_list_sts= '<font color="#FF0000">Offline</font>'; $gm_content .='<tr class="'.$tr_color.'"> <td align="left">'.$count.'</td> <td align="left">'.htmlentities(md5_decrypt($gm_list[0])).'</td> <td align="left">'.decode_map($gm_list[1]).'</td> <td align="left">'.$get_list_sts.'</td> </tr>'; } $gm_content .='</table><br><table width="550" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td align="right"><span class="full_author">Last Update '.decode_time($gm_settings[2],time(),'long','1 second').' ago</span></td></tr></table>'; }else{ global $db_primary,$db_secondary; $get_list = $db_primary->Execute("Select name,mapnumber,accountid from character where ctlcode='32' or ctlcode='8'"); for($i=0;$i < $get_list->numrows();++$i){ $on_data = $get_list->fetchrow(); $get_sts = $db_secondary->Execute("Select connectstat from memb_stat where memb___id=?",array($on_data[2])); $get_sts = $get_sts->fetchrow(); $new_data .= "".md5_encrypt($on_data[0])."|$on_data[1]|$get_sts[0]|\n"; } $new_gm_list = "sys_/muweb_db/".gm_tDB.""; $open_file = fopen($new_gm_list,'w'); fputs($open_file, $new_data); fclose($open_file); $new_gm_settings = "t2t|0|".time().""; $old_db = file("sys_/muweb_db/".gm_settings_tDB.""); $new_db = fopen("sys_/muweb_db/".gm_settings_tDB."", "w"); foreach($old_db as $old_db_line){ $old_db_arr = explode("|", $old_db_line); if($gm_settings[0] != $old_db_arr[0]){ fwrite($new_db,"$old_db_line"); }else{ fwrite($new_db,$new_gm_settings); } } fclose($new_db); $gm_content = 'Generating Game Masters list...Please Wait<meta http-equiv="refresh" content="2;URL=">'; } echo html($gm_content); } ?>
0.9 не ползва администратор.пхпнякой ще даде ли работещ администратор.пхп или там квото е
reinstall and apply the patch for md5.
it works fine for me , enter to my server website and see
it works fine for me , enter to my server website and see