How can i restrict access to a page

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   How can i restrict access to a page
Zxaltan
CZ Newbie
Zxaltan has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Aug 10, 2006
0.00 posts per day
Posts: 2
Points: 0
   
Anyone know of a script that would restrict access to a page so that only registered members can access the page
th epage Is not a PHP Nuke model



Back to top Reply with quote
#2   re: How can i restrict access to a page
rlgnak
CZ Super Newbie
rlgnak has been a member for over 20 year's 20 Year Member
usa.gif alaska.gif
Occupation: College
Gender: Male
Status: Offline
Joined: Jun 22, 2004
0.01 posts per day
Posts: 62
Points: 3,367
   
i would try but would have to be on same server and in root nuke folder else you need to change the require_once properly


require_once("mainfile.php");
global $user;
if(!is_user($user)) {
  die('YOou Must Be A User');
}


no clue if it will work it should tho



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   re: How can i restrict access to a page
Zxaltan
CZ Newbie
Zxaltan has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Aug 10, 2006
0.00 posts per day
Posts: 2
Points: 0
   
go it to sort of work it does not like this command in the mainfile.php

else if ($phpver > '4.0') {
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);

i am running PHP 5.0.x
on a apache 1.3.33 server



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum