[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/modules/News/ -> print.php (source)

   1  <?php
   2  
   3  /************************************************************************/
   4  /* PHP-NUKE: Web Portal System                                          */
   5  /* ===========================                                          */
   6  /*                                                                      */
   7  /* Copyright (c) 2005 by Francisco Burzi                                */
   8  /* http://phpnuke.org                                                   */
   9  /*                                                                      */
  10  /* This program is free software. You can redistribute it and/or modify */
  11  /* it under the terms of the GNU General Public License as published by */
  12  /* the Free Software Foundation; either version 2 of the License.       */
  13  /************************************************************************/
  14  
  15  if (!defined('MODULE_FILE')) {
  16      die ("You can't access this file directly...");
  17  }
  18  require_once ("mainfile.php");
  19  $module_name = basename(dirname(__FILE__));
  20  get_lang($module_name);
  21  
  22  if(!isset($sid)) {
  23      exit();
  24  }
  25  
  26  function PrintPage($sid) {
  27      global $site_logo, $nukeurl, $sitename, $datetime, $prefix, $db, $module_name;
  28      $sid = intval($sid);
  29      $row = $db->sql_fetchrow($db->sql_query("SELECT title, time, hometext, bodytext, topic, notes FROM ".$prefix."_stories WHERE sid='$sid'"));
  30      $title = filter($row['title'], nohtml);
  31      $time = $row['time'];
  32      $hometext = filter($row['hometext']);
  33      $bodytext = filter($row['bodytext']);
  34      $topic = intval($row['topic']);
  35      $notes = filter($row['notes']);
  36      $row2 = $db->sql_fetchrow($db->sql_query("SELECT topictext FROM ".$prefix."_topics WHERE topicid='$topic'"));
  37      $topictext = filter($row2['topictext'], nohtml);
  38      formatTimestamp($time);
  39      echo "<html>
  40          <head><title>$sitename - $title</title></head>
  41          <body bgcolor=\"#ffffff\" text=\"#000000\">
  42          <table border=\"0\" align=\"center\"><tr><td>
  43      
  44          <table border=\"0\" width=\"640\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\"><tr><td>
  45          <table border=\"0\" width=\"640\" cellpadding=\"20\" cellspacing=\"1\" bgcolor=\"#ffffff\"><tr><td>
  46          <center>
  47          <img src=\"images/$site_logo\" border=\"0\" alt=\"\"><br><br>
  48          <font class=\"content\">
  49          <b>$title</b></font><br>
  50          <font class=tiny><b>"._PDATE."</b> $datetime<br><b>"._PTOPIC."</b> $topictext</font><br><br>
  51          </center>
  52          <font class=\"content\">
  53          $hometext<br><br>
  54          $bodytext<br><br>
  55          $notes<br><br>
  56          </font>
  57          </td></tr></table></td></tr></table>
  58          <br><br><center>
  59          <font class=\"content\">
  60          "._COMESFROM." $sitename<br>
  61          <a href=\"$nukeurl\">$nukeurl</a><br><br>
  62          "._THEURL."<br>
  63          <a href=\"$nukeurl/modules.php?name=$module_name&file=article&sid=$sid\">$nukeurl/modules.php?name=$module_name&file=article&sid=$sid</a>
  64          </font>
  65          </td></tr></table>
  66          </body>
  67          </html>";
  68      die();
  69  }
  70  
  71  PrintPage($sid);
  72  
  73  ?>


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