Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't restrict access
#11
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
- KuJoe
#12
Yeah. Sad
Kevin Mark - TheHostingTool Lead Developer
#13
(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.
#14
Please open an issue in Google Code. Wink
- KuJoe


Forum Jump:


Users browsing this thread: 1 Guest(s)