Posted: Thu Nov 17, 2005 2:20 am Post subject: FAQ Admin Panel
This is just a simple file. Like the admin panel under Content, it will appear when you are in a category on the FAQ module. This allows you to go directly into functions of the admin panel.
Save as
FILE: modules/FAQ/admin/panel.php
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2005 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. */
/************************************************************************/
if (!defined('MODULE_FILE')) {
die ("Access Denied");
}
global $id_cat, $admin, $db, $prefix, $admin_file;
if (!is_admin($admin)) { die ("Access Denied"); }
$module_name = "FAQ";
echo "<center><b>$module_name Module Administration Panel</b><br><br>";
if (isset($_GET["id_cat"])) {
$id_cat = intval($id_cat);
$row = $db->sql_fetchrow($db->sql_query("SELECT id_cat, categories FROM ".$prefix."_faqcategories WHERE id_cat = '$id_cat'"));
echo "Category: <b>".$row['categories']."</b><br><br>[ <a href='".$admin_file.".php?op=FaqCatEdit&id_cat=$id_cat'>Edit</a> | ";
echo "<a href='".$admin_file.".php?op=FaqCatGo&id_cat=$id_cat'>Content</a> | ";
echo "<a href='".$admin_file.".php?op=FaqCatDel&id_cat=$id_cat&ok=0'>Delete</a> ]";
}
echo "</center>";
?>
_________________ Evaders99 Webmaster Administrator Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum