Jump to content
MakeWebGames

[mccode] Close page system


Silver

Recommended Posts

  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

Re: [mccode] Close page system

Heres a buggy V2 version of it :-(

In header.php find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Replace with

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In smenu.php find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add under

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In staff_special.php find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add under it

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Later find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add befor it

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [mccode] Close page system

The Karma doesnt matter , and many others aprieciate this... Do you really think the points show how helpful you are ? i dont...

And if your going to stop helping just because an idiot gives you a -point , then you really need to get a life ....

Link to comment
Share on other sites

Re: [mccode] Close page system

Force: +1/-9

I think i helped quite alot , in the tutorial section ... But it doesnt bother me , as the force doesnt reflect someones opinions towards me... The force is just a darn anoying number :P

Link to comment
Share on other sites

Re: [mccode] Close page system

 

lol posts dont count as time, it means how much waste posts they make (proberly)

I personally purchasing a badge means your loyal and willing to spend money to show others your not some dumbass.

Hey you took my siggy :) php one XD

Link to comment
Share on other sites

  • 4 weeks later...

Re: [mccode] Close page system

when i added this code to my game igot this error can anyone help me please

Parse error: syntax error, unexpected T_PUBLIC in /home/hm7922/public_html/header.php on line 211

Here Is My Header From Were i Edit

include "mainmenu.php";

global $ir,$c;

print '</td><td width="2" class="linegrad"> </td><td width="100%" valign="top">

<center>';

if($ir['hospital'])

{

print "NB: You are currently in hospital for {$ir['hospital']} minutes.

";

}

if($ir['jail'])

{

print "NB: You are currently in jail for {$ir['jail']} minutes.

";

}

$page=$_SERVER['REQUEST_URI'];

$close=$db->query("SELECT * FROM closedpages WHERE url=$page");

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 smenuarea()

{

include "smenu.php";

global $ir,$c;

$bgcolor = '000000';

print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>';

}

function endpage(

And More

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...