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/  Your IP : 172.31.44.28   [ Reverse IP ]
Web Server : Apache/2.4.67 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-184.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/ripara.co/admin/img/categorie/anon_sym/anon/var/www/ascii/app/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /var/www/ripara.co/admin/img/categorie/anon_sym/anon/var/www/ascii/app/helpers/dblink.php
<?php
require_once 'PEAR/MDB2.php';

class DBLink{
	protected $mdb2;
	protected $debug;
	
	/**
	 * 
	 * 
	 * Database details, parse arrays and override config with mda.ini
	 */
	
	public function __construct($inifile){
        $defaultconf = array(
            'auth' => array(
                'phptype' => 'mysqli',
                'hostspec' => 'localhost',
                'database' => 'ascii_2019',
                'username' => 'root',
                'password' => 'root',
                'new_link' => false,        // set to true for multiple concurrent databases
            ),
            'options' => array(
                'debug' => 1,               // 0, 1, 2
                'result_buffering' => true, // true, false
            ),
        );
        
        
        $ini = array();
        $ini = parse_ini_file($inifile,true);
	    if (!$ini) $this->Fail('Invalid database ini file');
        $ini = array_merge($defaultconf,array_intersect_key($ini,$defaultconf));
        
        /**
			init
         */
        
	    $this->debug = $ini['options']['debug'];
	    $this->Connect($ini['auth'],$ini['options']);
		// EVENSOUCING
	//    $this->ES= new EventSourcing();

	}
	
	/**
	 * 
	 * 
	 * Connect to database
	 */
	     

	
	
	protected function Connect($dsn, $options=array()){
		$this->mdb2 =& MDB2::factory($dsn,$options);

		if (PEAR::isError($this->mdb2)) {
			$this->Fail('Error:'.$this->mdb2->getMessage());
		}
		$this->mdb2->setFetchMode( MDB2_FETCHMODE_ASSOC );
		$this->mdb2->setOption('portability',MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL);
	}
	
	/**
	 * 
	 * 
	 * COMMAND
	 * 
	 * 
	 */

	public function SafeExecStoredProc($procname,$args = array()){
		$res = $this->mdb2->executeStoredProc($procname,$args);
		if (PEAR::isError($res)) $this->Fail($res->getMessage().' - '.$procname.' - '.print_r($args,true));

		return $res;
	}

	public function SafeExec($query){
		$res = $this->mdb2->exec($query);
		if (PEAR::isError($res)){
		    //event sourcing
	//	    $this->ES->StoreError($query);
		    //echo error
			$this->Fail($res->getMessage().' - '.$query);
		}else{
			//event sourcing
		//	$this->ES->StoreEvent($query);
			return $res;
		}
	}
				   
	public function SafeInsert($query){
		$res = $this->mdb2->exec($query);
		if (PEAR::isError($res)){
			//event sourcing
	//	    $this->ES->StoreError($query);
		    //echo error
		    $this->Fail($res->getMessage().' - '.$query);
		}else{
			$ret = ($res>0)?$this->mdb2->lastInsertID():null;	
			//event sourcing
		//	$this->ES->StoreEvent($query);
			
			return $ret;
		}
	}

	/**
	 * 
	 * 
	 * Query
	 * 
	 * 
	 */

	public function SafeQuery($query){
		$res = $this->mdb2->query($query);
		if (PEAR::isError($res)) $this->Fail($res->getMessage().' - '.$query);

		return $res;
	}

	public function SafeFetch($query){
		$res = $this->mdb2->query($query);
		if (PEAR::isError($res)) $this->Fail($res->getMessage().' - '.$query);
		$ret = $res->fetchAll();
		return $ret;
	}

	public function SafeFetchRow($query){
		$res = $this->mdb2->queryRow($query);
		if (PEAR::isError($res)) $this->Fail($res->getMessage().' - '.$query);
		return $res;
	}
	
	public function SafeFetchCol($query){
		$res = $this->mdb2->query($query);
		if (PEAR::isError($res)) $this->Fail($res->getMessage().' - '.$query);
		$ret = $res->fetchCol();
		
		return $ret;
	}
	
	public function SafeFetchOne($query){
		$res = $this->mdb2->queryOne($query);
		if (PEAR::isError($res)) $this->Fail($res->getMessage().' - '.$query);
		
		return $res;
	}
    
	/**
	 * 
	 * 
	 * ERROR ENGINE
	 * 
	 * 
	 */

	protected function Fail($message){
		if (!$this->debug) $message = '';
		$data = array(
			"message" => $message,
			"status" => false
		);	
		header('Content-Type: application/json');
		print( json_encode($data) );
		die();
	}
	

	/**
	 * 
	 * 
	 * QUOTING E WAPPING OF VALUES
	 * 
	 * 
	 */


	// Quotes and wraps integers in (...)
	public function WrapInt($nums){
		if (is_numeric($nums)) $nums = array($nums);

		foreach ($nums as $key=>$num)
			$nums[$key] = $this->mdb2->quote($num,'integer');
		
		return '('.implode(',',$nums).')';
	}
    
    static function GetCompareInt($field,$qint){
        return (is_null($qint) || !strlen($qint))?"$field IS NULL":"$field = $qint";
    }
    
	public function QuoteText($text,$escape_wildcards=false){
		return $this->mdb2->quote($text,'text',true,$escape_wildcards);
	}
	
	public function QuoteInt($int){
		return $this->mdb2->quote($int,'integer');
	}
	
	public function QuoteIntSpecial($int){
		return is_null($int)?"NULL":$this->QuoteInt($int);
	}

	public function QuoteDate($date){
		return $this->mdb2->quote($date,'date');
	}

	public function QuoteDecimal($decimal){
		return $this->mdb2->quote($decimal,'decimal');
	}
	
	/**
	 * 
	 * 
	 * CHARSET
	 * 
	 * 
	 */

	public function SetCharset($cs){
		$this->mdb2->setCharset($cs);
	}
}
?>

Anon7 - 2022
AnonSec Team