Jump to content
MakeWebGames

Its Says Unexpected T_PUBLIC, Look>>>>>>>>>>>>


-CrAzY-

Recommended Posts

$page=$_SERVER['REQUEST_URI'];

$close=mysql_query("SELECT * FROM closedpages WHERE url=$page",$c);

while($r=mysql_fetch_array($close))

{

if(mysql_num_rows($close) > 0 && $r['for'] == Public && $ir['user_level'] == 1)

{

die("This page has been closed for the Public. The reason for this is: {$r['reason']}.");

}

else if(mysql_num_rows($close) > 0 && $r['for'] == Staff && $ir['user_level'] > 1 && $ir['user_level'] != 2)

{

die("This page has been closed for Staff. The reason for this is: {$r['reason']}.");

}

else if(mysql_num_rows($close) > 0 && $r['for'] == All && $r['user_level'] != 2)

{

die("This page has been closed for everyone. The reason for this is: {$r['reason']}.");

}

print "

";

}

}

function endpage()

{

print "

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...