[ Index ] |
|
Code source de PHP NUKE 7.9 |
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 19 require_once ("mainfile.php"); 20 $module_name = basename(dirname(__FILE__)); 21 get_lang($module_name); 22 $sid = intval($sid); 23 $query = $db->sql_query("SELECT associated FROM ".$prefix."_stories WHERE sid='$sid'"); 24 list($associated) = $db->sql_fetchrow($query); 25 26 if (!empty($associated)) { 27 OpenTable(); 28 echo "<center><b>"._ASSOTOPIC."</b><br><br>"; 29 $asso_t = explode("-",$associated); 30 for ($i=0; $i<sizeof($asso_t); $i++) { 31 if (!empty($asso_t[$i])) { 32 $query = $db->sql_query("SELECT topicimage, topictext from ".$prefix."_topics WHERE topicid='".$asso_t[$i]."'"); 33 list($topicimage, $topictext) = $db->sql_fetchrow($query); 34 echo "<a href=\"modules.php?name=$module_name&new_topic=$asso_t[$i]\"><img src=\"".$tipath."/".$topicimage."\" border=\"0\" hspace=\"10\" alt=\"".$topictext."\" title=\"".$topictext."\"></a>"; 35 } 36 } 37 echo "</center>"; 38 CloseTable(); 39 echo "<br>"; 40 } 41 42 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 11:11:59 2007 | par Balluche grâce à PHPXref 0.7 |