THT Community (TCom)

Full Version: Can't restrict access
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
The problem is that since those 2 areas are handled completely different from the rest of the admin areas the current restriction method will not work. Sad
Yeah. Sad
(06-13-2010 11:46 PM)Kevin Wrote: [ -> ]Yeah. Sad

I am using THT 1.2.2
PHP Code:
<?php
//////////////////////////////
// The Hosting Tool
// Admin Area - Type
// By Jonny H
// Released under the GNU-GPL
//////////////////////////////

//Check if called by script
if(THT != 1){die();}

class 
page {
    
    public 
$navtitle;
    public 
$navlist = array();
    
    public function 
content() { # Displays the page 
        
global $style;
        global 
$db;
        global 
$main;
        global 
$type;
        if(!
$main->getvar['type'] || !$main->getvar['sub']) {
            echo 
"Not all variables set!";    
        }
        
$user $_SESSION['user'];
        if(
$user == 1) {
            
$php $type->classes[$main->getvar['type']];
            
$php->acpPage();
        }
        else {
            echo 
"You don't have access to this page.";
        }
    }
}
?>

I only want to know how to allow two user ID's to see the Paid Configuration and P2H forums.
Please open an issue in Google Code. Wink
Pages: 1 2
Reference URL's