home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 April
/
PCWorld_2005-04_cd.bin
/
akce
/
web
/
phpnuke
/
PHP-Nuke-7.5.exe
/
html
/
blocks
/
block-Encyclopedia.php
< prev
next >
Wrap
PHP Script
|
2004-03-26
|
2KB
|
33 lines
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
if (eregi("block-Encyclopedia.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $prefix, $db;
$result = $db->sql_query("SELECT eid, title FROM " . $prefix . "_encyclopedia WHERE active='1'");
while ($row = $db->sql_fetchrow($result)) {
$eid = intval($row['eid']);
$title = stripslashes($row['title']);
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=Encyclopedia&op=list_content&eid=$eid\">$title</a><br>";
}
?>