Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> For Hire
Author Message
rebelt
Worker
Worker



Joined: May 07, 2006
Posts: 172

PostPosted: Sun Aug 19, 2012 8:19 am Reply with quote

Changed code to
Code:
global $db, $module_name, $stop, $admin, $user;

addCSSToHead('modules/'.$module_name.'/style.css', 'file');
include_once 'header.php';
OpenTable();
include_once 'modules/'.$module_name.'/public/menu.php';
CloseTable();

OpenTable();
// TERMINATE IF NOT REG USER
if(!is_user($user)|| !is_admin($admin))  {
    echo '<div class="error">Sorry, you need to be a registered user to use this area of the site.</div>';
    CloseTable();
    include_once 'footer.php';
    exit;
    }

as per above suggestions but with no luck.

But I might not be understanding properly. Embarassed

_________________
I wish I knew what I was doing LOL 
View user's profile Send private message Visit poster's website
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Sun Aug 19, 2012 8:44 am Reply with quote

try this one...

Code:
global $db, $module_name, $stop, $admin, $user;

addCSSToHead('modules/'.$module_name.'/style.css', 'file');
include_once 'header.php';
// TERMINATE IF NOT REG USER
if(!is_user($user) || !is_admin($admin))  {
   OpenTable();   
   echo '<div class="error">Sorry, you need to be a registered user to use this area of the site.</div>';
   CloseTable();
   include_once 'footer.php';
   exit;
}
OpenTable();
include_once 'modules/'.$module_name.'/public/menu.php';
CloseTable();
include_once 'footer.php';
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> For Hire

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©