\r\n\r\n
\r\n\"\"\r\n
\r\n\r\n
\r\n\t
  • \"السيرفر
  • \"السيرفر
  • \"السيرفر
  • \"السيرفر
  • \"السيرفر
  • \"السيرفر
\r\n\t
\r\n
\r\n \r\n
\r\n\t
\r\n\t\t\"";\r\n\t\t

\r\n\t\t\t

الصفحة الرئيسية الدليل السريع قواعد اللعبة تسجيل دخول سجل الان

"; include("app/config.php"); $link = mysql_connect($AppConfig['db']['host'],$AppConfig['db']['user'],$AppConfig['db']['password']) or die(mysql_error()); mysql_select_db($AppConfig['db']['database'],$link) or die(mysql_error()); $best_alliances=mysql_fetch_array(mysql_query("SELECT * FROM `p_alliances` order by rating DESC")); $best_players=mysql_fetch_array(mysql_query("SELECT * FROM `p_players` ORDER BY `total_people_count` DESC")); $best_defense=mysql_fetch_array(mysql_query("SELECT * FROM `p_players` ORDER BY `week_defense_points` DESC")); $best_attack=mysql_fetch_array(mysql_query("SELECT * FROM `p_players` ORDER BY `week_attack_points` DESC")); $g_settings=mysql_fetch_array(mysql_query("SELECT * FROM `g_settings`")); if($g_settings['game_over']==1){ $p_win=mysql_fetch_array(mysql_query("SELECT * FROM `p_players` WHERE id =".$g_settings['win_pid']." ;")); $date_win=date("Y_n"); $filename = "win/$date_win.txt"; $handle = fopen($filename, "w"); $contents = fwrite($handle, $p_win['name'].",".$p_win['alliance_name']); fclose($handle); $filename = "win/last_win.txt"; $handle = fopen($filename, "w"); $contents = fwrite($handle, $p_win['name'].",".$p_win['alliance_name']); fclose($handle); } $filename = "app/view/layout/shownews.phtml"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); $filename2 = "win/last_win.txt"; $handle2 = fopen($filename2, "r"); $contents2 = fread($handle2, filesize($filename2)); fclose($handle2); $contents2=explode(",",$contents2); $contents=str_replace('$best_alliances',$best_alliances['name'],$contents); $contents=str_replace('$best_players',$best_players['name'],$contents); $contents=str_replace('$win_alliances',$contents2[1],$contents); $contents=str_replace('$win_players',$contents2[0],$contents); $contents=str_replace('$best_defense',$best_defense['name'],$contents); $contents=str_replace('$best_attack',$best_attack['name'],$contents); echo '

'; echo "\r\n\t\t

\r\n\t
\r\n\t
contentCssClass; echo "\">

"; echo"
"; $this->printContent(); echo "
\r\n\t
"; /* if (trim($this->newsText) != "") { echo "

" . LANGUI_FORM_NEWS . "

"; echo $this->newsText; echo "

"; } */ echo "

اخبار الموقع



"; echo "

"; echo $contents; echo "

"; echo "\r\n\t
\r\n\r\n\r\n
\r\n
\r\n
\r\n\t
"; require(VIEW_PATH . "layout/footer.phtml"); echo "
\r\n
\r\n
\r\n\r\n
\r\n\r\n"; echo "init();\r\n ";