SW:Rebellion NetworkHosted by the SW:Rebellion Network
Welcome to Evaders Squadron Coding [ESC]
We host quality Star Wars sites - inquire at The Star Wars Rebellion Network
Home Forums Nuke Patched Core Coding Services Webmaster Services Personal
  Login/Create an Account    

Forums
· Forums FAQ
· Search
· Usergroups
· Profile
· Private Messages

Support Us
This site runs with your support. Please donate:

User Info/Login
Welcome, Anonymous
Nickname
Password
Security Code: Security Code
Type Security Code

(Register)
Membership:
Latest: AwesomeAckbar
New Today: 2
New Yesterday: 0
Overall: 9110

People Online:
Visitors: 15
Members: 0
Total: 15

Link to Us

Affliates
RPG Boards Hosting

Evaders Squadron Coding [ESC] :: View topic - FAQ Admin Panel
FAQ Admin Panel

 
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Coding Services
View previous topic :: View next topic  

Is this useful for you?
Yes
0%
 0%  [ 0 ]
No
0%
 0%  [ 0 ]
Total Votes : 0

Author Message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Thu Nov 17, 2005 2:20 am    Post subject: FAQ Admin Panel Reply with quote

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
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Coding Services All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

^Top
Home Your Account Forums Downloads F.A.Q. Submit News Hosting Contact Us

© 2005 - 2007 by Evaders99. All Rights Reserved.
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters.
You can syndicate our news using the file backend.php
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 5.38 Seconds