Hello There, Guest! Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't restrict access
06-13-2010, 06:15 PM,
#11
RE: Can't restrict access
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
06-13-2010, 11:46 PM,
#12
RE: Can't restrict access
Yeah. Sad
Kevin Mark - TheHostingTool Lead Developer
07-14-2010, 09:36 PM, (This post was last modified: 07-14-2010, 09:43 PM by justinedwards.)
#13
RE: Can't restrict access
(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.
07-14-2010, 11:30 PM,
#14
RE: Can't restrict access
Please open an issue in Google Code. Wink


Forum Jump:


Users browsing this thread: 1 Guest(s)