DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/AppServ/www/umedia3/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/inc//fso_file_importmelt.php
<?
function fso_file_importmelt($fpath,$reclimit=10,$roundlimit=10000,$sep_rec="\n",$sep_field=",",$cover_field="'") {
	$handle = fopen("$fpath", "rb");
	$i=0;
	$reclist=Array();
	$wholebuffer="";
	$roundcount=0;
	while (!feof($handle)) {
		$roundcount++;
		if ($i>$reclimit || $roundcount>=$roundlimit) {
			break;
		}
		$buffer =  fread($handle, 1) ;
		//echo "(".("$buffer")."==".$sep_rec.")";
		if ($buffer==$sep_rec) {
		//echo "(*************************)";
			$i++;
			$reclist[]=$wholebuffer;
			$wholebuffer="";
		} else {
			$wholebuffer=$wholebuffer.$buffer;
		}
	}
	//$reclist[]=$buffer;
	//print_r($reclist);
	//echo "$roundcount";
	fclose($handle);

	$reclistcount=count($reclist);
	for ($i=0;$i<=$reclistcount;$i++) {
		$reclist[$i]=explode($sep_field,$reclist[$i]);
	}

	for ($i=0;$i<=$reclistcount;$i++) {
		$fieldcount=count($reclist[$i]);
		for ($j=0;$j<=$fieldcount;$j++) {
			$tmp=trim($reclist[$i][$j],$cover_field);
			$tmp=trim($tmp);
			$reclist[$i][$j]=$tmp;
		}
	}
	return $reclist;
}
?>

Anon7 - 2022
AnonSec Team