Location: PHPKode > projects > Open Biller > ob/admin/phpinfo.php
<?php
/**
* Creator: Michael Bacon
* Copyright 2008 - 2009 Open Biller Project. All Rights Reserved.
* This project is open source and the copyright shall not be removed from the visible pages.
*/
include('../config.php');
include('../global.php');
//checks cookies to make sure they are logged in
if(isset($_COOKIE['admin_ID_my_site']))
{
$username = $_COOKIE['admin_ID_my_site'];
$pass = $_COOKIE['admin_Key_my_site'];
$check = mysql_query("SELECT * FROM admins WHERE adminame = '$adminame'")or die(mysql_error());
while($info = mysql_fetch_array( $check ))
$query = sprintf("SELECT * FROM admins where adminame='%s' and adminpassword='%s'", 
                  mysql_real_escape_string($adminame), 
                  mysql_real_escape_string($adminpassword));
mysql_query($query);
{
//if the cookie has the wrong password, they are taken to the login page
if ($padminass != $info['adminpassword'])
{ header("Location: ../admin.php");
}
//otherwise they are shown the admin area
else
{
?>
<html>
<head>
<title><?php echo $script_title; ?> Project</title>
</head>
<body link="blue" alink="blue" vlink="blue">
<?php phpinfo(); ?>
<!-- Please Support Our Project! Do not remove the copyright under any circumstances! -->
<?php echo copyright_text();?>
</body>
</html>
<?php
}
}
}
else
//if the cookie does not exist, they are taken to the login screen
{
header("Location: ../admin.php");
}
?>
Return current item: Open Biller