Advertisement
Guest User

lordkraft error

a guest
Mar 24th, 2012
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.76 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4. /************************************************************/
  5. /* Theme Name: subBlack                                     */
  6. /* Theme Design: coldblooded (www.nukemods.com)             */
  7. /* version 2.0                                              */
  8. /*                                                          */
  9. /* Theme inspired by the phpbb2 style subBlack by           */
  10. /* spectre (http://www.gamerhaven.com/)                     */
  11. /*                                                          */
  12. /************************************************************/
  13.  
  14. /************************************************************/
  15. /* Theme Colors Definition                                  */
  16. /*                                                          */
  17. /* Define colors for your web site. $bgcolor2 is generaly   */
  18. /* used for the tables border as you can see on OpenTable() */
  19. /* function, $bgcolor1 is for the table background and the  */
  20. /* other two bgcolor variables follows the same criteria.   */
  21. /* $texcolor1 and 2 are for tables internal texts           */
  22. /************************************************************/
  23.  
  24. function top() {
  25.     global $user, $nuked;
  26.  
  27.     echo"<html><head>
  28.    <meta name=\"keywords\" lang=\"fr\" content=\"$nuked[keyword]\">
  29.    <meta name=\"Description\" content=\"$nuked[description]\">
  30.    <title>$nuked[name] :: $nuked[slogan] ::</title>
  31.    <meta http-equiv=\"content-style-type\" content=\"text/css\">
  32.    <link title=\"style\" type=\"text/css\" rel=\"stylesheet\" href=\"themes/subBlack/style.css\">
  33.    </head>";
  34.  
  35.     echo "<body bgcolor=\"#000000\" text=\"#FFFFCC\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
  36.    
  37.     if ($username == "Anonyme") {
  38.  
  39.     $theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account&op=new_user\">Enregistrez Vous!";
  40.     } else {
  41.     $theuser = "&nbsp;&nbsp;Bienvenue $username!";
  42.     }
  43.  
  44.     if ($user[2]!="") {
  45.     $theuser = " "._WELCOME." <i>$user[2]</i> !";
  46.     } else {
  47.     $theuser = "&nbsp;&nbsp;<a href=\"index.php?file=User&op=reg_screen\">Enregistrez Vous!";
  48.     }
  49.  
  50.     echo" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"100%\">
  51.      <tr>
  52.        <td align=\"center\" valign=\"middle\">
  53.          <table width=\"1000\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
  54.            <tr>
  55.              <td><br>";
  56.  
  57.     $tmpl_file = "themes/subBlack/header.html";
  58.     $thefile = implode("", file($tmpl_file));
  59.     $thefile = addslashes($thefile);
  60.     $thefile = "\$r_file=\"".$thefile."\";";
  61.     eval($thefile);
  62.     print $r_file;
  63.     get_blok(gauche);
  64.     echo" </td><td valign=\"top\" width=\"100%\">";
  65. }
  66.  
  67. function footer() {
  68.     global $nuked;
  69.  
  70.      echo "</td><td valign=\"top\" width=\"165\">";
  71.     get_blok(droite);
  72.     $tmpl_file = "themes/subBlack/footer.html";
  73.     $thefile = implode("", file($tmpl_file));
  74.     $thefile = addslashes($thefile);
  75.     $thefile = "\$r_file=\"".$thefile."\";";
  76.     eval($thefile);
  77.     print $r_file;
  78.                     echo "<center>\n";
  79.             echo "</center>\n";
  80.         echo "<center><br><font class=\"small\">:: subBlack phpbb2 style par <a href=\"http://www.gamerhaven.com/\">spectre</a> :: PHP-Nuke th&egrave;me par <a href=\"http://www.nukemods.com\">Nukemods.com</a> ::<br>:: Adaptation par <a href=\"http://www.orfeoproject.com\" target=\"_blank\">Shadow</a> ::</font></center>";  
  81.     echo "<br>\n";
  82.  
  83.     echo "<br></td>
  84.            </tr>
  85.          </table>
  86.        </td>
  87.      </tr>
  88.    </table>";
  89. }
  90.  
  91. function news($data){
  92.  
  93.     if ($notes != "") {
  94.     $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
  95.     } else {
  96.     $notes = "";
  97.     }
  98.     if ("$aid" == "$informant") {
  99.     $content = "$thetext$notes\n";
  100.     } else {
  101.     if($informant != "") {
  102.         $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
  103.     } else {
  104.         $content = "$anonymous ";
  105.     }
  106.     $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
  107.     }
  108.  
  109.     $posted = ""._NEWSPOSTBY." <a href=\"index.php?file=Team&op=detail&autor=$data[auteur]\">$data[auteur]</a> "._THE." $data[date] "._AT." $data[heure]";
  110.     $comment = "<a href=\"index.php?file=News&op=index_comment&news_id=$data[id]\">"._NEWSCOMMENT."</a> ($data[nb_comment]) $data[printpage] $data[friend]";
  111.     $tmpl_file = "themes/subBlack/news.html";
  112.     $thefile = implode("", file($tmpl_file));
  113.     $thefile = addslashes($thefile);
  114.     $thefile = "\$r_file=\"".$thefile."\";";
  115.     eval($thefile);
  116.     print $r_file;
  117. }
  118.  
  119. function block_gauche($block) {
  120.     $tmpl_file = "themes/subBlack/blocks.html";
  121.     $thefile = implode("", file($tmpl_file));
  122.     $thefile = addslashes($thefile);
  123.     $thefile = "\$r_file=\"".$thefile."\";";
  124.     eval($thefile);
  125.     print $r_file;
  126. }
  127.  
  128. function block_droite($block) {
  129.     $tmpl_file = "themes/subBlack/blocks.html";
  130.     $thefile = implode("", file($tmpl_file));
  131.     $thefile = addslashes($thefile);
  132.     $thefile = "\$r_file=\"".$thefile."\";";
  133.     eval($thefile);
  134.     print $r_file;
  135. }
  136.  
  137. function OpenTable() {
  138.     global $bgcolor1, $bgcolor2;
  139.     echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"7\">
  140.  <tr>
  141.    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
  142.        <tr>
  143.          <td bgcolor=\"#212121\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  144.              <tr>
  145.                <td bgcolor=\"#000000\"><table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\" bgcolor=\"#212121\">
  146.                    <tr>
  147.                      <td>";
  148. }
  149.  
  150. function CloseTable() {
  151.     echo "</td>
  152.                    </tr>
  153.            </table></td>
  154.              </tr>
  155.      </table></td>
  156.        </tr>
  157.      </table>
  158. </td>
  159.  </tr>
  160. </table>";
  161. }
  162. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement