[ 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 ("Access Denied"); 17 } 18 19 global $cid, $pid, $admin, $db, $prefix, $admin_file; 20 if (!is_admin($admin)) { die ("Access Denied"); } 21 $module_name = "Content"; 22 echo "<center><b>$module_name Module Administration Panel</b><br><br>"; 23 if (isset($cid)) { 24 $row = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_pages_categories WHERE cid='$cid'")); 25 echo "Category: <b>".$row['title']."</b><br><br>[ <a href='".$admin_file.".php?op=edit_category&cid=$cid'>Edit</a> | <a href='".$admin_file.".php?op=del_content_cat&cid=$cid&ok=0'>Delete</a> ]"; 26 } 27 if (isset($pid)) { 28 $row = $db->sql_fetchrow($db->sql_query("SELECT title, active FROM ".$prefix."_pages WHERE pid='$pid'")); 29 echo "Article: <b>".$row['title']."</b><br><br>[ <a href='".$admin_file.".php?op=content_edit&pid=$pid'>Edit</a> | "; 30 if ($row['active'] == 1) { 31 echo "<a href='".$admin_file.".php?op=content_change_status&pid=$pid&active=1'>Deactivate</a> | "; 32 } elseif ($row['active'] == 0) { 33 echo "<a href='".$admin_file.".php?op=content_change_status&pid=$pid&active=0'>Activate</a> | "; 34 } 35 echo "<a href='".$admin_file.".php?op=content_delete&pid=$pid&ok=0'>Delete</a> ]"; 36 } 37 echo "</center>"; 38 39 ?>
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 |