[ Index ]
 

Code source de PHP NUKE 7.9

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/themes/SlashOcean/ -> theme.php (source)

   1  <?php
   2  
   3  $bgcolor1 = "#FFFFFF";
   4  $bgcolor2 = "#101070";
   5  $bgcolor3 = "#e6e6e6";
   6  $bgcolor4 = "#e6e6e6";
   7  $textcolor1 = "#FFFFFF";
   8  $textcolor2 = "#000000";
   9  
  10  function OpenTable() {
  11      global $bgcolor1, $bgcolor2;
  12      echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
  13      echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
  14  }
  15  
  16  function CloseTable() {
  17      echo "</td></tr></table></td></tr></table>\n";
  18  }
  19  
  20  function OpenTable2() {
  21      global $bgcolor1, $bgcolor2;
  22      echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
  23      echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
  24  }
  25  
  26  function CloseTable2() {
  27      echo "</td></tr></table></td></tr></table>\n";
  28  }
  29  
  30  function FormatStory($thetext, $notes, $aid, $informant) {
  31      global $anonymous;
  32      if (!empty($notes)) {
  33          $notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
  34      } else {
  35          $notes = "";
  36      }
  37      if ("$aid" == "$informant") {
  38          echo "<font class=\"content\" color=\"#505050\">$thetext<br>$notes</font>\n";
  39      } else {
  40      if(!empty($informant)) {
  41              $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
  42          } else {
  43              $boxstuff = "$anonymous ";
  44          }
  45          $boxstuff .= "writes <i>\"$thetext\"</i> $notes\n";
  46          echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
  47      }
  48  }
  49  
  50  function themeheader() {
  51      global $slogan, $sitename, $banners;
  52  echo "<body bgcolor=FFFFFF text=000000 link=101070 vlink=101070>
  53  <br>";
  54  ads(0);
  55  echo "<br>
  56  <center>
  57  <table cellpadding=0 cellspacing=0 border=0 width=99% align=center><tr><td align=left>
  58  <a href=$nukeurl><img src=themes/SlashOcean/images/logo.gif Alt=\"Welcome to $sitename\" border=0></a>
  59  </td><td align=right width=100%>
  60      <form action=modules.php?name=Search&amp;method=post>
  61      <font class=content><input type=text name=query width=20 size=20 length=20>
  62      </td>
  63      <td align=right>&nbsp;&nbsp;<input type=submit value=\""._SEARCH."\"></td>
  64      </form>";
  65      echo "</td></tr></table><br>";
  66  echo "
  67  <table cellpadding=0 cellspacing=0 border=0 width=99% bgcolor=101070><tr><td>
  68  <table cellpadding=5 cellspacing=1 border=0 width=100% bgcolor=FFFFFF><tr><td>
  69  <font class=content>$slogan</td></tr></table></td></tr></table>";
  70      $public_msg = public_message();
  71      echo "$public_msg<br>";    
  72  echo "<table width=99% align=center cellpadding=0 cellspacing=0 border=0><tr><td valign=top rowspan=15>";
  73  
  74      blocks("left");
  75  
  76  echo "</td><td>&nbsp;&nbsp;</td><td valign=top width=100%>";
  77  }
  78  
  79  function themefooter() {
  80      echo "</td>";
  81  if (defined('INDEX_FILE')) {
  82      echo "<td>&nbsp;&nbsp;</td><td valign=\"top\">";
  83      blocks("right");
  84      }
  85      echo "</tr></table></td></tr></table>";
  86      footmsg();
  87  }
  88  
  89  function themeindex ($aid, $informant, $datetime, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
  90      global $anonymous, $tipath;
  91      $ThemeSel = get_theme();
  92      if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
  93      $t_image = "themes/$ThemeSel/images/topics/$topicimage";
  94      } else {
  95      $t_image = "$tipath$topicimage";
  96      }
  97      if ("$aid" == "$informant") { ?>
  98          <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
  99              <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""></td>
 100              <td width="100%">
 101              <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
 102              <font class="storytitle"><B><?php echo"$title"; ?></B></font>
 103              </td></tr></table>
 104              </td><td align="right"><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
 105               </tr></table>
 106          <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
 107              <td background="themes/SlashOcean/images/gl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 108              <td width="100%">
 109                  <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
 110                  <td><font class="tiny">Posted by <?php formatAidHeader($aid) ?> on <?php echo"$datetime $timezone"; ?> (<?php echo $counter; ?> reads)</font></td>
 111                  </tr></table>
 112              </td>
 113              <td background="themes/SlashOcean/images/gr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 114          </tr>
 115          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 116          <tr bgcolor="#ffffff">
 117              <td background="themes/SlashOcean/images/wl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 118              <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
 119              
 120              <a href="modules.php?name=News&amp;new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
 121              
 122              <?php echo "<font class=content>$thetext"; ?>
 123                   </td></tr></table></td>
 124                   <td background="themes/SlashOcean/images/wr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 125          </tr>
 126          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 127          </table><table border="0" cellpadding="0" cellspacing="0">
 128          <tr bgcolor="#ffffff">
 129              <td background="themes/SlashOcean/images/wl_cccccc.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 130              <td width="100%">
 131              <table width="100%" border="0" cellpadding="5" cellspacing="0"> 
 132              <tr><td bgcolor="#cccccc"><font class="content"><?php echo"$morelink"; ?></font></td></tr></table>
 133              </td>
 134              <td background="themes/SlashOcean/images/wr_cccccc.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 135          </tr>
 136          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 137          </table><BR><BR>
 138  <?php    } else {
 139          if(!empty($informant)) $boxstuff = "<font class=content><a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a> ";
 140          else $boxstuff = "$anonymous ";
 141          $boxstuff .= "<font class=content>writes <i>\"$thetext\"</i> $notes";
 142  ?>        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
 143              <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""></td>
 144              <td width="100%"><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
 145              <font class="storytitle"><B><?php echo"$title"; ?></B></font>
 146              </td></tr></table></td>
 147                       <td align="right"><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
 148               </tr></table>
 149          <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
 150              <td background="themes/SlashOcean/images/gl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 151              <td width="100%">
 152                  <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
 153                  <td><font class="tiny">Posted by <?php formatAidHeader($aid) ?> on <?php echo"$datetime $timezone"; ?> (<?php echo $counter; ?> reads)</font></td>
 154                  </tr></table>
 155              </td>
 156              <td background="themes/SlashOcean/images/gr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 157          </tr>
 158          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 159          <tr bgcolor="#ffffff">
 160              <td background="themes/SlashOcean/images/wl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 161              <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
 162              <a href="modules.php?name=News&amp;new_topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$t_image"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
 163              <?php echo "$boxstuff"; ?>
 164                   </td></tr></table></td>
 165                   <td background="themes/SlashOcean/images/wr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 166          </tr>
 167          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 168          </table><table border="0" cellpadding="0" cellspacing="0">
 169          <tr bgcolor="#ffffff">
 170              <td background="themes/SlashOcean/images/wl_cccccc.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 171              <td width="100%">
 172              <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td bgcolor="#cccccc"><font class="content"><?php echo"$morelink"; ?></font></td></tr></table>
 173              </td>
 174              <td background="themes/SlashOcean/images/wr_cccccc.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 175          </tr>
 176          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 177          </table><BR><BR>
 178  <?php    }
 179  }
 180  
 181  function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
 182      global $admin, $sid, $tipath, $admin_file;
 183      $ThemeSel = get_theme();
 184      if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
 185      $t_image = "themes/$ThemeSel/images/topics/$topicimage";
 186      } else {
 187      $t_image = "$tipath$topicimage";
 188      }
 189      if ("$aid" == "$informant") { ?>
 190          <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
 191              <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""></td>
 192              <td width="100%">
 193              <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
 194              <font class="option" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
 195              </td></tr></table>
 196              </td><td align="right"><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
 197               </tr></table>
 198          <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
 199              <td background="themes/SlashOcean/images/gl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 200              <td width="100%">
 201                  <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
 202                  <td><font class="tiny">Posted by <?php formatAidHeader($aid) ?> on <?php echo"$datetime $timezone"; ?></font>
 203  
 204  <?php
 205  if ($admin) {
 206      echo "&nbsp;&nbsp; <font class=content> [ <a href=".$admin_file.".php?op=EditStory&sid=$sid>Edit</a> | <a href=".$admin_file.".php?op=RemoveStory&sid=$sid>Delete</a> ]";
 207  }
 208  ?>
 209                  </td>
 210                  </tr></table>
 211              </td>
 212              <td background="themes/SlashOcean/images/gr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 213          </tr>
 214          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 215          <tr bgcolor="#ffffff">
 216              <td background="themes/SlashOcean/images/wl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 217              <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
 218          <?php echo "<a href=modules.php?name=News&amp;new_topic=$topic><img src=$t_image border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>"; ?>
 219              <?php echo "<font class=content>$thetext"; ?>
 220                   </td></tr></table></td>
 221                   <td background="themes/SlashOcean/images/wr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 222          </tr>
 223          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 224          </table>
 225  <?php    } else {
 226          if(!empty($informant)) $boxstuff = "<font class=content><a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a> ";
 227          else $boxstuff = "$anonymous ";
 228          $boxstuff .= "<font class=content>writes <i>\"$thetext\"</i> $notes";
 229  ?>        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
 230              <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""></td>
 231              <td width="100%">
 232              <table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
 233              <font class="option" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
 234              </td></tr></table>
 235              </td><td align="right"><img src="themes/SlashOcean/images/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
 236               </tr></table>
 237          <table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
 238              <td background="themes/SlashOcean/images/gl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 239              <td width="100%">
 240                  <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
 241                  <td><font class="tiny">Posted by <?php formatAidHeader($aid) ?> on <?php echo"$datetime $timezone"; ?></font>
 242                  
 243  <?php
 244  if ($admin) {
 245      echo "&nbsp;&nbsp; <font class=content> [ <a href=".$admin_file.".php?op=EditStory&sid=$sid>Editar</a> | <a href=".$admin_file.".php?op=RemoveStory&sid=$sid>Borrar</a> ]";
 246  }
 247  ?>
 248  <br><font class=tiny>
 249  <?php echo "Contributed by <a href=\"modules.php?name=Your_Account&amp;op=userinfo&username=$informant\">$informant</a>"; ?>
 250                  </td>
 251                  </tr></table>
 252              </td>
 253              <td background="themes/SlashOcean/images/gr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 254          </tr>
 255          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 256          <tr bgcolor="#ffffff">
 257              <td background="themes/SlashOcean/images/wl.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 258              <td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
 259          <?php echo "<a href=modules.php?name=News&amp;new_topic=$topic><img src=$t_image border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>"; ?>
 260              <?php echo "<font class=content>$thetext"; ?>
 261                   </td></tr></table></td>
 262                   <td background="themes/SlashOcean/images/wr.gif"><img src="themes/SlashOcean/images/pix.gif" width="11" height="11" alt=""></td>
 263          </tr>
 264          <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 265          </table>
 266  <?php    }
 267  }
 268  
 269  function themesidebox($title, $content) {
 270      ?>
 271      <table width="150" border="0" cellpadding="0" cellspacing="0">
 272      <tr valign="top" bgcolor="#101070">
 273          <td bgcolor="#FFFFFF"><img src="themes/SlashOcean/images/pix.gif" width="3" height="3" alt=""></td>
 274          <td><img src="themes/SlashOcean/images/cl.gif" width="7" height="10" alt=""></td>
 275          <td><font color=\"#FFFFFF\"><B><?php echo"$title"; ?></B></font></td>
 276          <td align="right"><img src="themes/SlashOcean/images/cr.gif" width="7" height="10" alt=""></td>
 277          <td bgcolor="#FFFFFF" align="right"><img src="themes/SlashOcean/images/pix.gif" width="3" height="3" alt=""></td>
 278      </tr>
 279      </table>
 280      <table width="100%" border="0" cellpadding="0" cellspacing="0">
 281      <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 282      <tr bgcolor="#ffffff">
 283          <td background="themes/SlashOcean/images/sl.gif"><img src="themes/SlashOcean/images/pix.gif" width="3" height="3" alt=""></td>
 284          <td width="100%">
 285          <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td><font class=tiny><?php echo"$content"; ?>
 286          </td></tr></table></td>
 287          <td background="themes/SlashOcean/images/sr.gif" align="right"><img src="themes/SlashOcean/images/pix.gif" width="3" height="3" alt=""></td>
 288      </tr>
 289      <tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/images/pix.gif" width="1" height="1"></td></tr>
 290      </table><br><br>
 291  <?php
 292  }
 293  
 294  ?>


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7