Location: PHPKode > projects > Admin Control Panel 2 > mul/mulcheat6.php
<?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['id']) 
{ 
	$userid = $_POST['id'];
	 echo "<center>";
     echo "<form method=\"POST\" action=\"" . $_SERVER['PHP_SELF'] . "\">"; 
     echo "<h1>Index last registrated user</h1>";
	 
     echo "<label class=\"addmsg\">Change last registrated user to: </label>"; 
     echo "<input type=\"text\" name=\"id\" value=\"" . $_POST['id'] . "\"><br><br>"; 
     echo "<input type=\"submit\" name=\"submit\" value=\"Submit\"></p>"; 
	 echo "<center><u><b>*NOTE*</b></u></br>Put the ID of the user that you want as last registrated user.</br>To see what's the ID of the user is: Look at the profile of the user.</br>And after 'userid=' you will find the number of that user.</a></p>";;
     echo "</form>";
	echo "Changed to: ".$userid ;
	$sql = "UPDATE`bb".$n."_stats` SET `lastuserid` = '$userid'";  
    $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 last registrated on the index page to: $userid. 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'>&nbsp;</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 last registrated user</h1>";
	 
     echo "<label class=\"addmsg\">Change last registrated user to: </label>"; 
     echo "<input type=\"text\" name=\"id\" value=\"" . $_POST['id'] . "\"><br><br>"; 
     echo "<input type=\"submit\" name=\"submit\" value=\"Submit\"></p>"; 
	 echo "<center><u><b>*NOTE*</b></u></br>Put the ID of the user that you want as last registrated user.</br>To see what's the ID of the user is: Look at the profile of the user.</br>And after 'userid=' you will find the number of that user.</a></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'>&nbsp;</td></tr></table></center>";

}
else {
	echo "</p><b>Instal first the ACP 2 SE information!</br>&copy; 2007 The Chaser - Kinger7</b>";
}
mysql_close();
?>
</body>
</html>
Return current item: Admin Control Panel 2