[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/modules/Forums/ -> nukebb.php (source)

   1  <?php
   2  /***************************************************************************

   3   * phpbb2 forums port version 2.1 (c) 2003 - Nuke Cops (http://nukecops.com)

   4   *

   5   * Ported by Paul Laudanski (Zhen-Xjell) to phpbb2 standalone 2.0.4.  Test

   6   * and debugging completed by the Elite Nukers at Nuke Cops: ArtificialIntel,

   7   * Chatserv, MikeM, sixonetonoffun, Zhen-Xjell.  Thanks to some heavy debug

   8   * work by AI in Nuke 6.5.

   9   *

  10   * You run this package at your sole risk.  Nuke Cops and affiliates cannot

  11   * be held liable if anything goes wrong.  You are advised to test this

  12   * package on a development system.  Backup everything before implementing

  13   * in a production environment.  If something goes wrong, you can always

  14   * backout and restore your backups.

  15   *

  16   * Installing and running this also means you agree to the terms of the AUP 

  17   * found at Nuke Cops.

  18   *

  19   * This is version 2.1 of the phpbb2 forum port for PHP-Nuke.  Work is based

  20   * on Tom Nitzschner's forum port version 2.0.6.  Tom's 2.0.6 port was based

  21   * on the phpbb2 standalone version 2.0.3.  Our version 2.1 from Nuke Cops is

  22   * now reflecting phpbb2 standalone 2.0.4 that fixes some major SQL 

  23   * injection exploits.

  24   ***************************************************************************/
  25  
  26  /***************************************************************************

  27   *   This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002

  28   *   by Tom Nitzschner (tom@toms-home.com)

  29   *   http://bbtonuke.sourceforge.net (or http://www.toms-home.com)

  30   *

  31   *   As always, make a backup before messing with anything. All code

  32   *   release by me is considered sample code only. It may be fully

  33   *   functual, but you use it at your own risk, if you break it,

  34   *   you get to fix it too. No waranty is given or implied.

  35   *

  36   *   Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,

  37   *   then on my site. All original header code and copyright messages will be maintained

  38   *   to give credit where credit is due. If you modify this, the only requirement is

  39   *   that you also maintain all original copyright messages. All my work is released

  40   *   under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.

  41   *

  42   ***************************************************************************/
  43  
  44  if ( !defined('MODULE_FILE') )
  45  {
  46      die("You can't access this file directly...");
  47  }
  48      
  49  global $db, $prefix, $phpbb_root_path, $nuke_root_path, $nuke_file_path, $phpbb_root_dir, $module_name, $name, $file;
  50  $module_name = "Forums";
  51  $nuke_root_path = "modules.php?name=".$module_name;
  52  $nuke_file_path = "modules.php?name=".$module_name."&file=";
  53  $phpbb_root_path = "modules/".$module_name."/";
  54  $phpbb_root_dir = "./../";
  55  require_once ("mainfile.php");
  56  get_lang($module_name);
  57  if(isset($f)) { 
  58  $f = intval($f); 
  59  $sql="SELECT forum_name  FROM ".$prefix."_bbforums WHERE forum_id='$f' LIMIT 0,1"; 
  60  $result = $db->sql_query($sql); 
  61  while ($row = $db->sql_fetchrow($result)) { 
  62  $fname = check_html($row['forum_name'], "nohtml"); 
  63  $pagetitle = "$name-$fname" ; 
  64  $pagetitle = check_html($pagetitle, "nohtml"); 
  65  } 
  66  } 
  67  
  68  if(isset($t)) { 
  69  $t = intval($t); 
  70  $sql="SELECT topic_title FROM ".$prefix."_bbtopics WHERE topic_id='$t' LIMIT 0,1"; 
  71  $result = $db->sql_query($sql); 
  72      while ($row = $db->sql_fetchrow($result)) { 
  73  $tname = check_html($row['topic_title'], "nohtml"); 
  74  $pagetitle = "$name-$file-$tname" ; 
  75  $pagetitle = check_html($pagetitle, "nohtml"); 
  76  } 
  77  } 
  78  include ("header.php");
  79  ?>


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