Jump to content
MakeWebGames

Stop people making themselves staff and crediting dp's


gazsr123

Recommended Posts

If you wanted a short temporary fix whilst you was reading up on your security.

Open up all your staff pages, and inside every function at the top (underneath global $ir, $db; ... )

Put

 

if($ir['userid'] != 1 || (otherstaffID) || (anotherstaffid))
     	{
      	echo ' You should not be here ';
    	$h->endpage();
    	exit;
    	}

 

Make sure you do that on Every function within the staff panel. And remember its only a temporary as everytime you get new staff you would need to add the ID.

Brush up on some security techniques like Jordan suggested.

 

N.b Yes, I thought about putting it in an array, but was keeping it simple and like I said this is not the final solution.

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