HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/barbeatleanalyti/public_html/barisnew.beatleanalytics.com/site/backup/script/signout.php
<?php
class script_signout extends include_signout
{

	// Mandatory variables as per requirement
	var $pg			= "";
	var $acn		= "";

	// Mandatory Properties as per requirement
	var $DataArr = array();
	var $MandatoryFields = array("Email","Password");
	
	var $Email 		= "";
	var $Password 	= "";
	var $error	 	= "";
	var $msg 		= "";
	var $data 		= "";

	// Mandatory Method
	function __CONSTRUCT($DataArr11){
		if($_SERVER['HTTP_HOST'] != '192.168.2.103' && $_SERVER['HTTP_HOST'] != 'localhost' && $_SERVER['HTTP_HOST'] != 'kalpeshpc' ){
			error_reporting(0);	
		}
		global $objDB;
		// here 'acn' is the variable and UserListInfo is the method name whtich is defined into controller(script) file.
		$this->acn 			= trim(loadVariable("acn",'UserSignOut'));
		
		// following all are the variables and its default value.
		$this->pg 			= trim(loadVariable("pg",'signout'));
		$this->Email 		= trim(loadVariable("Email",''));
		$this->Password 	= trim(loadVariable("Password",''));
		$this->error 		= trim(loadVariable("error",''));
		$this->msg 			= trim(loadVariable("msg",''));
		$this->data 			= trim(loadVariable("data",''));

		if($this->data != ""){
			// Decode into base64.
			$data = urldecode(base64_decode($this->data));
		
				// Convert string to array of a data.
			$DataExplode = explode("&",$data);
						
			foreach($DataExplode as $key=>$val){
				for($i=0; $i<count($DataExplode); $i++ ){			
					$DataExpSub = explode("=",$DataExplode[$i]);
					
					if(preg_match('/acn=/',$DataExplode[$i])){
						$this->acn = trim(loadVariable("acn",'UserSignOut'));
						}
					else if(preg_match('/v=/',$DataExplode[$i])){
						$this->v = trim(loadVariable("v",$DataExpSub[1]));
						}
					}
				}
			}

		// Set all post and get variables and its value into DataArr(array)
		foreach($DataArr11 as $key => $val){
			if(in_array($key, $this->MandatoryFields ))
				$this->DataArr[$key] =  addslashes(trim($val));
		}
		
		//print_r($this->DataArr);
		
		// set post data to main DBClass file into include
		$objDB->PostData = $this->DataArr;
	
	} ///// __CONSTRUCT completed  /////

	// Mandatory Method		 
	public function Process(){
		global $objDB;
		
		// Check DoProcess method found or not into controller file.
		if(!method_exists($objDB->objController,"DoProcess") ){
			// Rerturn post data if method not found.
			ReturnPostFormData($this->DataArr,"error.html","<span class='error-msg'> Method <strong>DoProcess</strong> does not found into <strong></strong>  controler login.html file ! </span>",1);
		}else{
			// Call the DoProcess controller file.
			$this->DoProcess();
		}
		
		
		
	} ///// Process completed  /////
	
	// Mandatory Method		
	private function DoProcess(){
		global $objDB;
		
		// Assing mathod name to CallMethod global variagles.
		$objDB->CallMethod = $this->acn;
		
		// Check method is exists or not into controller file.
		if( method_exists($objDB->objController,$objDB->CallMethod) ){

			// Server side validation for mandatory fields.
			$this->ValidateFields();
		
			// Assign the method to the local variables $CallMethod.
			$CallMethod = $objDB->CallMethod;
			
			// Call method using the local variables $CallMethod.
			$this->$CallMethod();
			
		
		}else{
		
			// Return post data if mothod does not exist
			ReturnPostFormData($this->DataArr,"error.html","<span class='error-msg'> Method <strong>".$objDB->CallMethod."</strong> does not found into <strong></strong>  model file ! </span>",1);
			exit;
		
		}
		
	} ///// DoProcess completed  /////
	
	
	// Mandatory Method
	private function ValidateFields(){
		
		$ValidateArr 	= array();
		$ValidateArr  	= $this->DataArr;
		
		// Server side validation for field is blank or not	
		if(!ValidateFieldBlank($ValidateArr)){
			// Return post data if required field does not field.
			ReturnPostFormData($ValidateArr,$this->pg.".html","Required field value should not be blank.",1);
			exit;
			
		}
	
	} /////  ValidateFields completed /////


	protected function UserSignOut(){
		global $objDB;
		
		unset($_SESSION['UserInfo']);
		unset($_SESSION['LastLogin']);
		unset($_SESSION['StoreName']);
		unset($_SESSION['adminLoginD']);
		
		//session_unset();
		$TestArr = array();
		if($_SERVER['HTTP_HOST'] != '192.168.1.103' && $_SERVER['HTTP_HOST'] != 'localhost' && $_SERVER['HTTP_HOST'] != 'kalpeshpc' && $_SERVER['HTTP_HOST'] != '192.168.1.105'){
		?>
        	<script>
				alert("Sign Out successfully.");
				window.location.href = 'http://beatleanalytics.com';
            </script>
		<?php 
		}
		
		ReturnPostFormData($TestArr,"login.html","Sign Out successfully.",0);
		exit;
		
		//print_r($this->objMain);		
	}  /////  FetchUserDataToLogin completed /////
		


} ///// class completed  /////
?>