Location: PHPKode > projects > VoxRank > voxrankfree/admin/main.php
<?php
error_reporting(E_ALL);
require '../gzdoc.php';
require '../functions.php';

if (empty($_REQUEST['action'])) $action = ''; else $action = $_REQUEST['action'];

session_start();

SecureLoginRquireAuthentication('Admin');

db_connect();
if ($action == 'fixmaincat') {
mysql_query("delete from voxrank_cats where id=1;");
mysql_query("delete from voxrank_cats where cat='Main';");
mysql_query("insert into voxrank_cats (id, cat) VALUES (1, 'Main');");
?>
<font face="Verdana, Arial, Helvetica, sans-serif" size="5"><b>Fixed!</b></font><br><br>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
The main category has now been fixed.  Please close this window and fix any other errors if needed.
<br>
<a href="javascript:window.close();">Close Window</a>
</font>
<?php
die;
}
checkip();
getsettings();

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="author" content="Jeremy Ross">
<title>VoxRank Administration Suite</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script language="javascript">
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#993333" vlink="#993333" alink="#993366">
<?php
if (file_exists("../install.php")) {
echo "<b>Error!</b><br>File install.php exists, please delete this file for security reasons.<br><br>";
}
?>
<table border="0" cellpadding="3" cellspacing="1" align="center" width="95%">
<tr bgcolor="#CC0000"><td colspan="2"><b style="color:#FFFFFF;">Site Statistics</b></font></td></tr>
<tr bgcolor="#FFFFFF">
  <td><b>Registered Web Sites</b></font></td>
  <td><b><?php echo mysql_num_rows(mysql_query('SELECT * FROM voxrank')); ?></b></font></td></tr>
<tr bgcolor="#EEEEEE">
  <td><b>Registered Members</b></font></td>
  <td><b><?php echo mysql_num_rows(mysql_query('SELECT * FROM voxrank_users')); ?></b></font></td></tr>
<tr bgcolor="#FFFFFF"><td><b>Last List Reset</b></font></td><td><b><?php echo date('l, F j, Y g:i:s A', $lastreset); ?></b></font></td></tr>
<tr bgcolor="#EEEEEE"><td><b>Next List Reset</b></font></td><td><b><?php echo date('l, F j, Y g:i:s A', $nextreset); ?></b></font></td></tr>
<tr bgcolor="#FFFFFF"><td><b>VoxRank Version <font size="1">[<a href="http://www.voxscripts.com" target="voxscriptswin">Link</a>]</font></b></font></td><td><b><?php echo $vn; ?></b></font></td></tr>
<tr bgcolor="#EEEEEE"><td><b>PHP Version <font size="1">[<a href="http://www.php.net" target="phpwin">Link</a>]</font></b></font></td><td><b><a href="php.php?password=<?php echo $password; ?>"><?php echo phpversion(); ?></a></b></font></td></tr>
<tr bgcolor="#FFFFFF"><td><b>MySQL Version <font size="1">[<a href="http://www.mysql.com" target="mysqlwin">Link</a>]</font></b></font></td><td><b><?php $version = mysql_fetch_assoc(mysql_query('SELECT VERSION() as version'));  echo $version['version']; ?></b></font></td></tr>
</table>
<br>
<br><br>
<center><a href="http://www.voxrank.com" target="_blank"><img src="upgrade.jpg" width="300" height="300"></a></center>
</body>
</html>
<? gzdocout(); ?>
Return current item: VoxRank