Current time: 02-07-2012, 10:44 AM Hello There, Guest! (LoginRegister)

 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't restrict access
06-13-2010, 06:15 PM
Post: #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

- KuJoe
▒ LvL8
▒ The Free Web Hosting Guide
▒ FreeWebHostingTalk


PM me for theme conversions @ $15!
Visit this user's website Find all posts by this user
06-13-2010, 11:46 PM
Post: #12
RE: Can't restrict access
Yeah. Sad

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
07-14-2010, 09:36 PM (This post was last modified: 07-14-2010 09:43 PM by justinedwards.)
Post: #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.
Find all posts by this user
07-14-2010, 11:30 PM
Post: #14
RE: Can't restrict access
Please open an issue in Google Code. Wink

- KuJoe
▒ LvL8
▒ The Free Web Hosting Guide
▒ FreeWebHostingTalk


PM me for theme conversions @ $15!
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: