403Webshell
Server IP : 104.21.17.213  /  Your IP : 216.73.217.141
Web Server : Apache
System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64
User : corbizre ( 1013)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/corbizre/freerealestateresources.com/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/corbizre/freerealestateresources.com/lib/common.lib.php
<?php
function getvar($tKey, $tSrcArr, $tDefValue=false)
{
	$res = $tDefValue;
	if (isset($tSrcArr[$tKey])){
		$res = $tSrcArr[$tKey];
	}
	return $res;
}

function replace_images($template_content)
{
    $allchars = '-:=%;a-zA-Z\\/0-9_\. ';
    $eregReplacePattern = "(<img[$allchars\'\"]*src=)([\"'])([$allchars]*)([\"'])";
    return preg_replace('/' . addcslashes($eregReplacePattern, '/') . '/', "\\1\\2". HTTP_PATH ."\\3\\4", $template_content);
}

function getstr($key, $arr, $defval = '')
{
    return trim(stripslashes(getvar($key, $arr, $defval)));
}

function getint($key, $arr, $defval = 0)
{
    $str = getstr($key, $arr, $defval);
    if (preg_match('/^\-{0,1}[0-9]+$/', $str)){
        return $str;
    }
    return $defval;
}

function isArray($arr)
{
    return is_array($arr) && count($arr) > 0;
}

function is_ie()
{
    return substr_count($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0') > 0;
}

function is_validator()
{
    return substr_count($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') > 0;
}

function is_gecko()
{
    return substr_count($_SERVER['HTTP_USER_AGENT'], 'Gecko') > 0;
}
function gebug($debug,$message){
    if($debug){ echo $message;}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit