Advertisement
Guest User

exfrx team

a guest
Jan 6th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 23.00 KB | None | 0 0
  1. <?php
  2. $bground = "background=themes/Theme_XFrX_1/images/";
  3. $table = "<table width=100% border=0 cellspacing=0 cellpadding=0>";
  4. function top()
  5. {
  6. global $nuked, $op, $bground, $table, $file;
  7. echo" <link rel=\"shortcut icon\"  type=\"image/x-icon\" href=\"/images/favicon.ico\" />\n". "<link rel=\"icon\"  type=\"image/x-icon\" href=\"/images/favicon.ico\" />\n";
  8. echo "<html><head>
  9. <meta name=\"keywords\" content=\"" . $nuked['keyword'] . "\" />
  10. <meta name=\"Description\" content=\"" . $nuked['description'] . "\" />
  11. <title>$nuked[name] :: $nuked[slogan] ::</title>
  12. <meta http-equiv=content-style-type content=text/css>
  13. <link title=style type=text/css rel=stylesheet href=themes/Theme_XFrX_1/style.css>
  14. </head>
  15. <body>
  16. <map name=gigoss id=gigoss>
  17. <area shape=rect coords=937,3,992,25 href=http://www.exfrx-team.com Target=_blank_>
  18. </map>
  19. <map name=bub id=bub>
  20. <area shape=rect coords=126,1,178,14 href=?file=Archives>
  21. <area shape=rect coords=440,1,492,14 href=?file=Wars>
  22. </map>
  23. <table width=1000 border=0 cellspacing=0 cellpadding=0 align=center>
  24.     <tr><td width=1000 height=218 ".$bground."header.jpg>
  25.     </object>
  26.     </td></tr> 
  27.     <tr><td width=1000>
  28. ".$table."
  29.     <tr><td width=645 height=38 ".$bground."nav.jpg>
  30.  
  31.    
  32.             <param name=quality value=best />
  33.             <param name=pluginurl value=http://www.macromedia.com/go/getflashplayer />
  34.             <param name=flashvars value=>
  35.             </object>
  36.         </td>";
  37.         em();
  38.     echo "</tr>
  39. </table>
  40.     </td></tr>
  41.     <tr><td width=616 height=58 ".$bground."buh.jpg></td></tr>
  42.     <tr><td width=1000 height=184 ".$bground."buh2.jpg>
  43.     <table width=100% CELLPADDING=10 CELLSPACING=10 border=1 ><tr>
  44.     <td align=center valign=top >";Match_Amicaux();
  45.  echo "</td><td width=33% align=center valign=top >"; Match_Officiel2();
  46. echo "</td><td width=33% align=center valign=top >"; Match_Officiel();
  47. echo "</td></tr></table>
  48. </td>
  49.     </tr>
  50.     <tr>
  51.     </td></tr>
  52.     <tr><td width=1000>
  53.    
  54.     ".$table."
  55.     <tr><td width=192 valign=top ".$bground."bgs.jpg>"; get_blok('gauche'); echo "</td>
  56.         <td width=616 valign=top>
  57. ".$table."
  58.  
  59.    
  60.     <tr><td width=616 valign=top>";
  61.         get_blok('centre');
  62. }
  63.  
  64. function footer()
  65. {
  66. global $nuked, $op, $bground, $file, $table;
  67.         get_blok('bas');
  68.     echo "</td></tr>
  69. </table>
  70.         </td>
  71.         <td width=192 valign=top ".$bground."bds.jpg>"; get_blok('droite'); echo "</td>
  72.     </tr>
  73. </table>
  74.     </td></tr>
  75.     <tr><td width=1000 height=200><img border=0 src=themes/Theme_XFrX_1/images/footer.jpg usemap=#gigoss /></td></tr>
  76. </table></body></html>";
  77. }
  78. function news($data)
  79.  
  80. {
  81. global $bground;
  82. $data['infos'] = "Postée par <a href=\"?file=Members&op=detail&autor=".$data['auteur']."\">$data[auteur]</a> le $data[date] à $data[heure]
  83. | <a href=\"?file=News&op=index_comment&news_id=$data[id]\">Commentaires ($data[nb_comment])</a>";
  84. echo "
  85. <table width=616 border=0 cellspacing=0 cellpadding=0>
  86. <tr><td align=center width=616 height=61 ".$bground."nh.jpg><font color=\"#FFFFFF\"><b><font size=3>$data[titre]</font></b></font></td></tr>
  87. <tr><td class=info style=padding-left:8px;padding-bottom:2px width=616 height=11 ".$bground."np.jpg>".$data['infos']."</td></tr>
  88. <tr><td style=padding:4px width=616 height=100% ".$bground."nc.jpg>$data[image]<br />$data[texte]</td></tr>
  89. <tr><td width=616 height=9 ".$bground."nb.jpg></td></tr>
  90. </table>
  91. <br />";
  92. }
  93. function block_gauche($block)
  94. {
  95. global $bground;
  96. echo "
  97. <table width=192 border=0 cellspacing=0 cellpadding=0>
  98. <tr><td align=center width=192 height=31 ".$bground."bgh.jpg><font color=\"#FFFFFF\"><b><font size=2>$block[titre]</font></b></font></td></tr>
  99. <tr><td style=padding:4px width=192 height=100% ".$bground."bgc.jpg>$block[content]</td></tr>
  100. <tr><td width=192 height=15 ".$bground."bgb.jpg></td></tr>
  101. </table>";
  102. }
  103. function block_droite($block)
  104. {
  105. global $bground;
  106. echo "
  107. <table width=192 border=0 cellspacing=0 cellpadding=0>
  108. <tr><td align=center width=192 height=31 ".$bground."bdh.jpg><font color=\"#FFFFFF\"><b><font size=2>$block[titre]</font></b></font></td></tr>
  109. <tr><td style=padding:4px width=192 height=100% ".$bground."bdc.jpg>$block[content]</td></tr>
  110. <tr><td width=192 height=13 ".$bground."bdb.jpg></td></tr>
  111. </table>";
  112. }
  113. function block_centre($block)
  114. {
  115. global $bground;
  116. echo "
  117. <table width=616 border=0 cellspacing=0 cellpadding=0>
  118.  
  119. <tr><td style=padding:4px width=616 height=100% ".$bground."nc.jpg>$block[content]</td></tr>
  120. <tr><td width=616 height=9 ".$bground."nb.jpg></td></tr>
  121. </table>
  122. <br />";
  123. }
  124. function block_bas($block)
  125. {
  126. global $bground;
  127. echo "
  128. <table width=616 border=0 cellspacing=0 cellpadding=0>
  129. <tr><td align=center width=616 height=61".$bground."ch.jpg>$block[titre]</td></tr>
  130. <tr><td style=padding:4px width=616 height=100% ".$bground."nc.jpg>$block[content]</td></tr>
  131. <tr><td width=616 height=9 ".$bground."nb.jpg></td></tr>
  132. </table>
  133. <br />";
  134. }
  135. function opentable()
  136. {
  137. global $file, $bground;
  138. echo "
  139. <table width=616 border=0 cellspacing=0 cellpadding=0>
  140. <tr><td align=center width=616 height=61 ".$bground."ch.jpg>$file</td></tr>
  141. </table>
  142. <table width=616 border=0 cellspacing=0 cellpadding=0>
  143. <tr><td style=padding:4px width=616 height=100% ".$bground."nc.jpg>";
  144. }
  145. function closetable()
  146. {
  147. global $bground;
  148. echo "</td></tr>
  149. </table>
  150. <table width=616 border=0 cellspacing=0 cellpadding=0>
  151. <tr><td width=616 height=9 ".$bground."nb.jpg></td></tr>
  152. </table>
  153. <br />";
  154. }
  155. function em()
  156. {
  157. global $nuked, $bground, $user, $table;
  158.  
  159. if(!$user) {
  160.     echo "<td width=355 height=38 ".$bground."log.jpg>
  161. ".$table."
  162.     <form action=index.php?file=User&amp;nuked_nude=index&amp;op=login method=post>
  163.     <tr><td width=78></td>
  164.         <td style=padding-left:5px width=78>
  165.             <input value=Pseudo type=text name=pseudo size=14 style=text-indent:0px; onFocus=this.value='' />
  166.         </td>
  167.         <td width=53></td>
  168.         <td style=padding-left:5px width=103>
  169.             <input value=Password type=Password name=pass size=14 style=text-indent:0px; onFocus=this.value='' />
  170.         </td>
  171.         <td width=34><input class=image src=themes/Theme_XFrX_1/images/pix.jpg width=34 height=38 type=image style=text-indent:0px /></td>
  172.         <td width=9></td>
  173.     </tr></form>
  174. </table>
  175.     </td>";
  176. }
  177. else {
  178.  
  179. echo "<td align=center width=355 height=38 ".$bground."logged.jpg>
  180.     Bienvenue <b>$user[2]</b> : [
  181.     <a href=?file=User>Compte</a> |
  182.     <a href=?file=User&nuked_nude=index&op=logout>LogOut</a> |
  183.     <a href=?file=Userbox>Messages privés</a> ]
  184. </td>";
  185. }
  186.  
  187. }
  188. function last_news()
  189. {
  190. global $nuked, $bground, $table;
  191. echo "
  192. ".$table;
  193.     for($i=1; $i <= 6; $i++)
  194.     {
  195.         $a=$i-1;
  196.         $sql=mysql_query("SELECT titre,id FROM $nuked[prefix]_news ORDER BY id DESC LIMIT $a, $i");
  197.         list($titre,$id)=mysql_fetch_row($sql);
  198.         $titre=substr($titre, 0,30);
  199.         $nb_cars=strlen($titre);
  200.         if($nb_cars > 29 ) {$etc="[...]";}
  201.         else {$etc="";}
  202.         if($i == 1) {$img="bug_01"; $h=12;}
  203.         elseif ($i == 2) {$img="bug_02"; $h=11;}
  204.         elseif ($i == 3) {$img="bug_03"; $h=11;}
  205.         elseif ($i == 4 ) {$img="bug_04"; $h=11;}
  206.         elseif ($i == 5) {$img="bug_05"; $h=11;}
  207.         else {$img="bug_06"; $h=11;}
  208.         echo "<tr>
  209.             <td class=bu style=padding-left:29px width=308 height=".$h." ".$bground."".$img.".jpg><a href=?file=News&op=index_comment&news_id=".$id.">$titre</a> $etc
  210.         </td></tr>";
  211.     }
  212.     echo "</table>";
  213. }
  214. function last_wars()
  215. {
  216. global $nuked, $bground, $table;
  217. echo "
  218. ".$table;
  219.     for($j=1; $j <= 6; $j++)
  220.     {
  221.     $b=$j-1;
  222.     $sql=mysql_query("SELECT warid,adversaire,score_team,score_adv FROM $nuked[prefix]_match WHERE etat='1' ORDER BY warid DESC LIMIT $b, $j");
  223.     list($warid,$adv,$score_team,$score_adv)=mysql_fetch_row($sql);
  224.     if($score_team > $score_adv) { $c1="#009900"; $c2="#990000"; }
  225.     elseif($score_team < $score_adv) { $c1="#990000"; $c2="#009900"; }
  226.     else { $c1="#3333FF"; $c2=$c1; }
  227.         if($j == 1) {$img="bud_01"; $h=12;}
  228.         elseif ($j == 2) {$img="bud_02"; $h=11;}
  229.         elseif ($j == 3) {$img="bud_03"; $h=11;}
  230.         elseif ($j == 4 ) {$img="bud_04"; $h=11;}
  231.         elseif ($j == 5) {$img="bud_05"; $h=11;}
  232.         else {$img="bud_06"; $h=11;}
  233.         echo "<tr><td width=308 height=".$h." ".$bground."".$img.".jpg>
  234.         ".$table."
  235.         <tr><td class=bu align=left style=padding-left:32px><a href=?file=Wars&op=detail&war_id=".$warid.">$adv</a></td>
  236.             <td class=bu align=right style=padding-right:30px>";if($warid != ""){ echo "<span style=\"color:".$c1."\">$score_team</span> - <span style=\"color:".$c2."\">$score_adv</span>"; }echo "</td></tr>
  237.      </table>
  238.      </td></tr>";
  239. }
  240. echo "</table>";
  241. }
  242.  
  243.  
  244. function Match_Amicaux()
  245. {
  246. global $nuked, $language, $bgcolor3, $theme;
  247. include("modules/Wars_Friendly/lang/".$language.".lang.php");
  248.  
  249. $sql2=mysql_query("SELECT active FROM " . BLOCK_TABLE . " WHERE bid = '" . $bid . "'");
  250. list($active) = mysql_fetch_array($sql2);
  251. if (($active==3)|| ($active == 4))
  252. {
  253.  
  254.     echo "<table style=\"margin-left: auto;margin-right: auto;text-align: left;\" width=\"90%\">\n"
  255.     . "<tr><td style=\"width: 45%;\" valign=\"top\"><a href=\"index.php?file=Wars_Friendly\"><b><big>" . _LATESTWAR . "</big></b></a>\n"
  256.     . "<br /><br /><table width=\"180\" cellspacing=\"1\" cellpadding=\"0\">\n";
  257.  
  258.     $sql = mysql_query("SELECT warid, pays_adv, adversaire, score_team, score_adv FROM " . WARS_FRIENDLY_TABLE . " WHERE etat = 1 ORDER BY date_an DESC, date_mois DESC, date_jour DESC LIMIT 0, 6");
  259.     $nbwar = mysql_num_rows($sql);
  260.  
  261.     while (list($war_id, $pays_adv, $adv_name, $score_team, $score_adv) = mysql_fetch_array($sql))
  262.     {
  263.         $adv_name = stripslashes($adv_name);
  264.         $adv_name = htmlentities($adv_name);
  265.         list ($pays, $ext) = split ('[.]', $pays_adv);
  266.  
  267.         if ($score_team > $score_adv)
  268.         {
  269.             $color = "#009900";
  270.         }
  271.         else if ($score_team < $score_adv)
  272.         {
  273.             $color = "#990000";
  274.         }
  275.         else
  276.         {
  277.             $color = "#3333FF";
  278.         }
  279.  
  280.         echo "<tr><td style=\"width: 60%;\"><img src=\"images/flags/" . $pays_adv . "\" alt=\"\" title=\"" . $pays . "\" />&nbsp;&nbsp;<a href=\"index.php?file=Wars_Friendly&amp;op=detail&amp;war_id=" . $war_id . "\"><b>" . $adv_name . "</b></a></td>\n"
  281.         . "<td width=50 style=\"background: $color;color: #FFFFFF;\" align=\"center\"><b>" . $score_team . "/" . $score_adv . "</b></td></tr>\n";
  282.     }
  283.  
  284.         if ($nbwar == 0) echo "<tr><td colspan=\"2\" align=\"center\">" . _NOMATCH . "</td></tr>\n";
  285.  
  286.     echo "</table></td><td style=\"width: 10%;\">&nbsp;</td><td style=\"width: 45%;\" valign=\"top\"><a href=\"index.php?file=Calendar\"><b><big>" . _NEXTWAR . "</big></b></a>\n"
  287.     . "<br /><br /><table width=\"180\" cellspacing=\"1\" cellpadding=\"0\">\n";
  288.  
  289.     $sql2 = mysql_query("SELECT warid, pays_adv, adversaire, date_jour, date_mois, date_an FROM " . WARS_FRIENDLY_TABLE . " WHERE etat = 0 ORDER BY date_an, date_mois, date_jour LIMIT 0, 6");
  290.     $nbwar2 = mysql_num_rows($sql2);
  291.  
  292.     $d = date("d");
  293.     $m = date("m");
  294.     $y = date("Y");
  295.  
  296.     while (list($war_id2, $pays_adv2, $adv_name2, $d2, $m2, $y2) = mysql_fetch_array($sql2))
  297.     {
  298.         $adv_name2 = stripslashes($adv_name2);
  299.         $adv_name2 = htmlentities($adv_name2);
  300.         list ($pays2, $ext2) = split ('[.]', $pays_adv2);
  301.  
  302.         if ($m2 < 10)
  303.         {
  304.             $m2 = "0" . $m2;
  305.         }
  306.  
  307.         if ($language == "french")
  308.         {
  309.             $date = $d2 . "/" . $m2 . "/" . $y2;
  310.         }
  311.         else
  312.         {
  313.             $date = $m2 . "/" . $d2 . "/" . $y2;
  314.         }
  315.  
  316.         echo "<tr><td style=\"width: 60%;\"><img src=\"images/flags/" . $pays_adv2 . "\" alt=\"\" title=\"" . $pays2 . "\" />&nbsp;&nbsp;<a href=\"index.php?file=Calendar&amp;m=" . $m2 . "&amp;y=" . $y2 . "\"><b>" . $adv_name2 . "</b></a></td>\n"
  317.          . "<td style=\"width: 40%;\" align=\"center\">" . $date . "</td></tr>\n";
  318.     }
  319.  
  320.     if ($nbwar2 == 0) echo "<tr><td colspan=\"2\" align=\"center\">" . _NOMATCH . "</td></tr>\n";
  321.  
  322.     echo "</table></td></tr><tr><td style=\"width: 45%;\" align=\"right\"><a href=\"index.php?file=Wars_Friendly\"><small>+ " . _GOWARS . "</small></a></td>\n"
  323.     .  "<td style=\"width: 10%;\"></td><td style=\"width: 45%;\" align=\"right\"><a href=\"index.php?file=Calendar\"><small>+ " . _GOCALENDAR . "</small></a></td></tr></table><br />\n";
  324.  
  325. }else{
  326.  
  327. echo"   <table width=\"90%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr align=\"center\"><b><u><div align=center>Derniers Matchs:</center></u></b>";
  328.  
  329.     $sql = mysql_query("SELECT warid, pays_adv, adversaire, score_team, score_adv, game FROM " . WARS_FRIENDLY_TABLE . " WHERE etat = 1 ORDER BY date_an DESC, date_mois DESC, date_jour DESC LIMIT 0, 6");
  330.  
  331.     while (list($war_id, $pays_adv, $adv_name, $score_team, $score_adv, $game) = mysql_fetch_array($sql))
  332.     {
  333.      $adv_name = stripslashes($adv_name);
  334.         $adv_name = htmlentities($adv_name);
  335.         list ($pays, $ext) = split ('[.]', $pays_adv);
  336.  
  337.         if ($score_team > $score_adv)
  338.         {
  339.             $color = "#009900";
  340.         }
  341.         else if ($score_team < $score_adv)
  342.         {
  343.             $color = "#990000";
  344.         }
  345.         else
  346.         {
  347.             $color = "#3333FF";
  348.         }
  349.     //recup les icones
  350.     $sql_ico=mysql_query("SELECT icon FROM $nuked[prefix]"._games." where id='$game' ");
  351.     list($illus) = mysql_fetch_array($sql_ico);
  352.    
  353. echo"   <td align=\"left\">
  354.     <img src=\"$illus\"> &nbsp;<a href=\"index.php?file=Wars_Friendly&amp;op=detail&amp;war_id=" . $war_id . "\"><b>" . $adv_name . "</b></a>
  355.     <td bgcolor=\"$color\" align=\"center\" width=65>
  356.     <font color=\"#FFFFFF\" ><b>$score_team/$score_adv</b></font></td></tr>";    
  357.     }
  358.  
  359.     echo"<DIV ALIGN=\"center\"><a href=\"index.php?file=Wars_Friendly\"> Voir tous nos matchs</a>";
  360.    
  361.    
  362. $sqlresultmatch=mysql_query("SELECT warid , score_team, score_adv, game FROM $nuked[prefix]"._match." WHERE etat='1'");
  363. $nb_matchs=mysql_num_rows($sqlresultmatch);
  364. $nb_victoirematchs=0;
  365. $nb_losematchs=0;
  366. $exeacomatchs=0;
  367. while(list($warid, $score_team, $score_adv, $game)= mysql_fetch_array($sqlresultmatch))
  368. {
  369.     if ($score_team>$score_adv){
  370.     $nb_victoirematchs++;
  371.     }
  372.     else if ($score_team<$score_adv){
  373.     $nb_losematchs++;
  374.     }
  375.     else{
  376.     $exeacomatchs++;
  377.     }
  378. }
  379.     }
  380. //echo"
  381. //<table width=\"30%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" align=\"center\">
  382. //<br><TD align=\"left\" bgcolor=\"#009900\"><small><b>Victoires : //$nb_victoirematchs</b></td>
  383. //<TD align=\"left\"  bgcolor=\"#3333FF\"><small><b>Nul : $exeacomatchs</b></td>
  384. //<TD align=\"left\"  bgcolor=\"#990000\"><small><b>Defaites : //$nb_losematchs</b></td></table>
  385. //<TABLE width=\"90%\" cellpadding=\"2\" cellspacing=\"1\">";
  386.  
  387. //echo" </table>";
  388.  
  389. //echo"<hr><center><a href=\"index.php?file=Wars\"> Voir tous nos matchs</a></center>
  390. //<center><a href=\"index.php?file=Calendar\"> Voir notre calendrier</a></center>
  391. echo "<hr width=380 size=4 COLOR=\"black\">";
  392.  
  393.  
  394.  
  395. include("modules/Calendar/lang/".$language.".lang.php");
  396.  
  397. $sql2=mysql_query("SELECT active FROM $nuked[prefix]"._block." WHERE module='Calendar'");
  398. list($active) = mysql_fetch_array($sql2);
  399.  
  400. if ($active==3){
  401. $d=date("d");
  402. $m=date("m");
  403. $y=date("Y");
  404.  
  405.  
  406. echo"   <A name= \"scrollingCode\"></A>
  407.     <MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"80\" scrollamount= \"1\" scrolldelay= \"10\" onmouseover='this.stop()' onmouseout='this.start()'>
  408.     <table border=\"0\" width=\"90%\">";
  409.  
  410. $sql=mysql_query("SELECT warid, adversaire, style, date_jour, date_mois, date_an, heure, game FROM $nuked[prefix]"._match." WHERE etat='0' ORDER BY date_an, date_mois, date_jour LIMIT 6");
  411. while (list($war_id, $adv_name, $style, $jour, $mois, $annee, $heure, $game) = mysql_fetch_array($sql)){
  412. $adv_name=stripslashes($adv_name);
  413.  
  414. echo"   <tr><td><li><a href=\"index.php?file=Calendar&m=$mois&y=$annee\"><b>$adv_name</b></a> - $jour/$mois/$annee $heure - $type - $style</td></tr>";
  415. }
  416. echo"   </table></marquee>";
  417.  
  418. if ($jour==$d && $mois==$m && $annee==$y){
  419. echo"   <SCRIPT LANGUAGE=\"JavaScript\">
  420.     window.defaultStatus=\""._MATCHDAY."\";
  421.     </SCRIPT>";
  422.     }
  423. }
  424.  
  425. else{
  426.  
  427.  
  428.  
  429. $d=date("d");
  430. $m=date("m");
  431. $y=date("Y");
  432.  
  433.  
  434. $do_affich_bl=1;
  435.  
  436.    
  437. if($do_affich_bl>0){
  438. echo" <table width=\"90%\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\"><u><b><DIV ALIGN=\"center\"></DIV></b></u>";
  439.  
  440. echo "  </tr>";
  441. echo "</table>";
  442. }
  443. }
  444. }
  445.  
  446. function Match_Officiel()
  447. {
  448. global $nuked, $language, $bgcolor3, $theme;
  449. include("modules/Wars/lang/".$language.".lang.php");
  450.  
  451. $sql2=mysql_query("SELECT active FROM $nuked[prefix]"._block." WHERE module='Wars'");
  452. list($active) = mysql_fetch_array($sql2);
  453. if ($active==3){
  454.  
  455. echo"   <table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr>
  456.     <td width=\"20%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._DATE."</b></td>
  457.     <td width=\"25%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._OPPONENT."</b></td>
  458.     <td width=\"20%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._TYPE."</b></td>
  459.     <td width=\"20%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._RESULT."</b></td>
  460.     <td width=\"15%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._DETAILS."</b></td></tr>
  461.     </table><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\">";
  462.  
  463.     $sql=mysql_query("SELECT warid, adversaire, url_adv, type, date_jour, date_mois, date_an, score_team, score_adv FROM $nuked[prefix]"._match." WHERE etat='1' ORDER BY date_an DESC, date_mois DESC, date_jour DESC LIMIT 6");
  464.     while (list($war_id, $adv_name, $adv_url, $type, $jour, $mois, $an, $score_team, $score_adv) = mysql_fetch_array($sql)){
  465.     $adv_name=stripslashes($adv_name);
  466.  
  467. if ($score_team>$score_adv){$color="#009900";}
  468.     else if ($score_team<$score_adv){$color="#990000";}
  469.     else{$color="#3333FF";}
  470.  
  471. echo"   <tr><td width=\"20%\" align=\"center\">$jour/$mois/$an</td>
  472.     <td width=\"25%\" align=\"center\">";
  473.                  
  474.     if ($adv_url!=""){
  475.     echo" <a href=\"$adv_url\" target=\"_blank\" style=\"text-decoration:none\">$adv_name</a>";}
  476.     else{echo"$adv_name";}
  477.                  
  478. echo"   </td><td width=\"20%\" align=\"center\">$type</td>
  479.     <td width=\"20%\" bgcolor=\"$color\"  align=\"center\"><font color=\"#FFFFFF\"><B>$score_team/$score_adv</B></font>
  480.     </td><td width=\"15%\" align=\"center\"><a href=\"index.php?file=Wars&op=detail&war_id=$war_id\"><img src=\"themes/$theme/images/report.jpg\" border=\"0\"></a></td></tr>";
  481.     }
  482. echo"   </table>";
  483.  
  484. }else{
  485.  
  486. echo"   <table width=\"90%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr align=\"center\"><b><u><div align=center>Derniers Matchs LGX:<br></b> <a href=\"index.php?file=Wars\"> Voir tous nos matchs LGX</a></center></u>";
  487.  
  488.     $sql=mysql_query("SELECT warid, type, adversaire, score_team, score_adv, pays_adv,game FROM $nuked[prefix]"._match." where etat='1' ORDER BY date_an DESC, date_mois DESC, date_jour DESC LIMIT 6");
  489.     while (list($war_id, $type, $adv_name, $score_team, $score_adv, $pays_adv, $game) = mysql_fetch_array($sql)){
  490.     $adv_name=stripslashes($adv_name);
  491.  
  492.     if ($score_team>$score_adv){$color="#009900";}
  493.     else if ($score_team<$score_adv){$color="#990000";}
  494.     else{$color="#3333FF";}
  495.    
  496.     //recup les icones
  497.     $sql_ico=mysql_query("SELECT icon FROM $nuked[prefix]"._games." where id='$game' ");
  498.     list($illus) = mysql_fetch_array($sql_ico);
  499.    
  500. echo"   <td align=\"left\">
  501.     <img src=\"$illus\">&nbsp;&nbsp;<a href=\"index.php?file=Wars&op=detail&war_id=$war_id\"><B>$adv_name</B></a>
  502.     <td bgcolor=\"$color\" align=\"center\" width=65>
  503.     <font color=\"#FFFFFF\"><b>$score_team/$score_adv</b></font></td></tr>";     
  504.     }
  505.    
  506. $sqlresultmatch=mysql_query("SELECT warid , score_team, score_adv FROM $nuked[prefix]"._match." WHERE etat='1'");
  507. $nb_matchs=mysql_num_rows($sqlresultmatch);
  508. $nb_victoirematchs=0;
  509. $nb_losematchs=0;
  510. $exeacomatchs=0;
  511. while(list($warid, $score_team, $score_adv)= mysql_fetch_array($sqlresultmatch))
  512. {
  513.     if ($score_team>$score_adv){
  514.     $nb_victoirematchs++;
  515.     }
  516.     else if ($score_team<$score_adv){
  517.     $nb_losematchs++;
  518.     }
  519.     else{
  520.     $exeacomatchs++;
  521.     }
  522. }
  523.  
  524.     }
  525.  
  526. echo "<hr width=380 size=4 COLOR=\"black\">";
  527.  
  528.  
  529.  
  530. echo"</tr>";
  531. echo"</table>";
  532. }
  533.  
  534.  
  535. function Match_Officiel2()
  536. {
  537. global $nuked, $language, $bgcolor3, $theme;
  538. include("modules/Calendar/lang/".$language.".lang.php");
  539.  
  540. $sql2=mysql_query("SELECT active FROM $nuked[prefix]"._block." WHERE module='Calendar'");
  541. list($active) = mysql_fetch_array($sql2);
  542.  
  543. if ($active==3){
  544. echo"   <table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr>
  545.     <td width=\"20%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._DATE."</b></td>
  546.     <td width=\"25%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._OPPONENT."</b></td>
  547.     <td width=\"20%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._TYPE."</b></td>
  548.     <td width=\"20%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._RESULT."</b></td>
  549.     <td width=\"15%\" bgcolor=\"$bgcolor3\" align=\"center\"><b>"._DETAILS."</b></td></tr>
  550.     </table><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\">";
  551.  
  552.  
  553. $d=date("d");
  554. $m=date("m");
  555. $y=date("Y");
  556.  
  557.  
  558. echo"   <A name= \"scrollingCode\"></A>
  559.     <MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"80\" scrollamount= \"1\" scrolldelay= \"10\" onmouseover='this.stop()' onmouseout='this.start()'>
  560.     <table border=\"0\" width=\"90%\">";
  561.  
  562. $sql=mysql_query("SELECT warid, adversaire, style, date_jour, date_mois, date_an, heure, game FROM $nuked[prefix]"._match." WHERE etat='0' ORDER BY date_an, date_mois, date_jour LIMIT 6");
  563. while (list($war_id, $adv_name, $style, $jour, $mois, $annee, $heure, $game) = mysql_fetch_array($sql)){
  564. $adv_name=stripslashes($adv_name);
  565.  
  566. echo"   <tr><td><li><a href=\"index.php?file=Calendar&m=$mois&y=$annee\"><b>$adv_name</b></a> - $jour/$mois/$annee $heure - $type - $style</td></tr>";
  567. }
  568. echo"   </table></marquee>";
  569.  
  570. if ($jour==$d && $mois==$m && $annee==$y){
  571. echo"   <SCRIPT LANGUAGE=\"JavaScript\">
  572.     window.defaultStatus=\""._MATCHDAY."\";
  573.     </SCRIPT>";
  574.     }
  575. }
  576.  
  577. else{
  578.  
  579.  
  580.  
  581. $d=date("d");
  582. $m=date("m");
  583. $y=date("Y");
  584.  
  585.  
  586. $sql=mysql_query("SELECT warid, type, adversaire, date_jour, date_mois, date_an, pays_adv,game,status_lgx FROM $nuked[prefix]"._match." WHERE etat='0' ORDER BY date_an, date_mois, date_jour LIMIT 6");
  587. $do_affich_bl=mysql_num_rows($sql);
  588.  
  589.  
  590.    
  591. if($do_affich_bl>0){
  592. echo" <table width=\"90%\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\">";
  593.  
  594.  
  595. echo "<DIV ALIGN=\"center\"><b><u>Prochains matchs:</b></u><br>
  596. <a href=\"index.php?file=Calendar\">calendrier ExFrX</a></DIV>";
  597. echo "<hr width=380 size=4 COLOR=\"black\">";
  598.  
  599. while (list($war_id, $type, $adv_name, $d2, $m2, $y2, $pays_adv, $game,$st_lgx) = mysql_fetch_array($sql)){
  600. if ($m2 < 10 ){ $m2= "0$m2";}
  601.  
  602. //recup les icones
  603.     $sql_ico=mysql_query("SELECT icon FROM $nuked[prefix]"._games." where id='$game' ");
  604.     list($illus) = mysql_fetch_array($sql_ico);
  605.  
  606.     $img="";
  607. if ($st_lgx==1)$img="<img src=\"modules/Wars/images/accepte.gif\" border=0>";
  608. if($st_lgx==2)$img="<img src=\"modules/Wars/images/attente.gif\" border=0>";
  609. if($st_lgx==3)$img="<img src=\"modules/Wars/images/refuse.gif\" border=0>";
  610. echo"   <TR>
  611.         <TD><img src=\"$illus\">&nbsp;&nbsp;<a href=\"index.php?file=Calendar&m=$m2&y=$y2\"><B>$adv_name $img</B></a>
  612.         </TD>
  613.         <TD align=\"center\" width=\"65\">
  614.             $type
  615.         </TD>
  616.         <TD align=\"center\" width=\"25\">
  617.             $d2/$m2
  618.         </TD>";
  619.    
  620.  
  621.  
  622.     if ($d2==$d && $m2==$m && $y2==$y){
  623.     echo"<SCRIPT LANGUAGE=\"JavaScript\">
  624.     window.defaultStatus=\""._MATCHDAY."\";
  625.     </SCRIPT>";}
  626.     }
  627. echo "  </tr>";
  628. echo "</table>";
  629. }
  630. }
  631. }
  632.  
  633. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement