Jump to content
MakeWebGames

Recommended Posts

Posted

This function lockdown's a website, so basicly no user can login, only administrators.

Firstly run SQL:

INSERT INTO `settings` VALUES(NULL,'site_lockdown',0);

Add to header.php:

You're unable to view this code.

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

Now add to staff.php

Cases:

You're unable to view this code.

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

 

Function:

You're unable to view this code.

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

 

Enjoy :)

Posted

Re: [mccode v2] Site lockdown

 

hmmm just checking, but wouldn't this allow any staff members to lockdown the game?

That could be a case. But simple fix:

 

You're unable to view this code.

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

Posted

Re: [mccode v2] Site lockdown

player can still access my site lol and can u just tell me if i put the is sql right

ALTER TABLE `settings` ADD `site_lockdown` INT( 0 ) NULL DEFAULT '0';

Posted

Re: [mccode v2] Site lockdown

I just installed this on my site, it worked first time. Remmember to add:

 

You're unable to view this code.

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

 

under the function userdata()

Posted

Re: [mccode v2] Site lockdown

ha ha i was just on your game and my ip got banned lol then it went unbanned again and u have alot of people playing your game have u made any cash from donations yet

Posted

Re: [mccode v2] Site lockdown

Aye, Maybe if You was not being such an @ss about things, and trying to re-craete my mod so fast, You would not have these problems with the code.

As i spent time to make mine, and make it work right the first time.

Posted

Re: [mccode v2] Site lockdown

does anyone know how to place this in the centre it goes right in the corner of my screen

 

You're unable to view this code.

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

Posted

Re: [mccode v2] Site lockdown

 

does anyone know how to place this in the centre it goes right in the corner of my screen

 

You're unable to view this code.

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

 

Where did you add it in header.php, but were about in header? i would add in under the mainarea/mainmenu bit in header.

Posted

Re: [mccode v2] Site lockdown

 

does anyone know how to place this in the centre it goes right in the corner of my screen

 

You're unable to view this code.

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

 

Where did you add it in header.php, but were about in header? i would add in under the mainarea/mainmenu bit in header.

do u know how to change the colour to white i tryed but keep getting errors

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