Не ми показва кои са ГМ-ми как може да се оправи това с muweb 0.9 сам :think: БЛАГОДАРЯ
заповядай<? 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); } ?>
Отивате в www(htdocs)/sub_pages/GameMasters.php и Копирате този коднапиши как си се оправил за да знаят и другите да не спамят Мерси предварително...
<? 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); } ?>
а да се басираме, че и така не става?абе тфа се оправя по следния начин влизате в админ панела на сайта и отивате в "Statistics Updates" след това на всякаде задавате 0
ае да се басираме че става при мен си е всичко на ред и по този начин съм го оправила да се басираме, че и така не става?
Ако си с декода на дарка никъв шанс да става..ае да се басираме че става при мен си е всичко на ред и по този начин съм го оправил