<?php
session_start();
if ($_SESSION['login'] != "1")
{
header('Location: mulogin.php');
exit();
}
?>
<html>
<head>
<title>ACP 2 SE - Cheats</title>
<link href="main.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor='#000000' text="#FFFFFF">
<?
include("../lib/config.inc.php");
mysql_connect("$sqlhost", "$sqluser", "$sqlpassword")or die("cannot connect");
mysql_select_db("$sqldb")or die("cannot select DB");
if ($_POST['submit'] && $_POST['name'])
{
$users = $_POST['name'];
echo "<center>";
echo "<form method=\"POST\" action=\"" . $_SERVER['PHP_SELF'] . "\">";
echo "<h1>Index user count</h1>";
echo "<label class=\"addmsg\">Change usercount to:</label>";
echo "<input type=\"text\" name=\"name\" value=\"" . $_POST['name'] . "\"><br><br>";
echo "<input type=\"submit\" name=\"submit\" value=\"Submit\"></p>";
echo "</form>";
echo "Changed to: ".$users ;
$sql = "UPDATE`bb".$n."_stats` SET `usercount` = '$users'";
$res = mysql_query($sql);
if ($res) {
echo "<table border='1' cellpadding='2' cellspacing='2' width='850'>
<tr bgcolor='#C0C0C0'>
<th width='850'>You have changed the usercount on the index page to: $users. If you want to undon you actions, go to the ACP of wbb and refresh the statistics.</th>
</tr>";
echo "<tr><td bgcolor='#c0c0c0'colspan='1'> </td></tr></table></center>";
}
else
{
echo "<p>Could change it. Try Again.</p>";
}
echo "</center>";
}
else
{
if ($_POST['submit'])
echo "<p>There's one field you need to fill in. And even that you haven't done.</p>";
echo "<center>";
echo "<form method=\"POST\" action=\"" . $_SERVER['PHP_SELF'] . "\">";
echo "<h1>Index user count</h1>";
echo "<label class=\"addmsg\">Change usercount to:</label>";
echo "<input type=\"text\" name=\"name\" value=\"" . $_POST['name'] . "\"><br><br>";
echo "<input type=\"submit\" name=\"submit\" value=\"Submit\"></p>";
echo "</form>";
echo "</center>";
}
?>
<?php
include("../lib/config.inc.php");
mysql_connect("$sqlhost", "$sqluser", "$sqlpassword")or die("cannot connect");
mysql_select_db("$sqldb")or die("cannot select DB");
$sql = 'SELECT * FROM `acp2se` LIMIT 0, 30';
$result=mysql_query($sql);
if($result){
while($row = mysql_fetch_array($result))
{
echo "</p>";
echo "<center>" . $row['Version'] . "</center>";
echo "<center>" . $row['Copy'] . "</center>";
}
echo "<tr><td bgcolor='#c0c0c0'colspan='5'> </td></tr></table></center>";
}
else {
echo "</p><b>Instal first the ACP 2 SE information!</br>© 2007 The Chaser - Kinger7</b>";
}
mysql_close();
?>
</body>
</html>