core or what ever script your using.....
How to use
Under core or what ever !
Add a thanks here or the button !!
PHP Code:
function page_protect()
{
session_start();
if (isset($_SESSION['HTTP_USER_AGENT']))
{
if ($_SESSION['HTTP_USER_AGENT'] != md5($_SERVER['HTTP_USER_AGENT']))
{
login();
exit;
}
}
}
function login()
{
session_start();
if(isset($_SESSION['sid']) || isset($_COOKIE['sid'])) {
Enter your sql for your own site !!
}
How to use
Under core or what ever !
PHP Code:
page_protect();
Add a thanks here or the button !!
Comment