Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
admin
/
includes
/
static
/
Linux midnightridazz 4.19.0-11-cloud-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64
Upload File :
New :
File
Dir
/mnt/volume_sfo2_01/50mmla/admin/includes/static/util.php
<? function get_table($rowarray){ if(count($rowarray) == 0){return;} $table= "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"; $keys = array_keys($rowarray[0]); $table.="<tr>\n"; for($i=0;$i<count($keys);$i++){ $table.="<td class=\"tdsql\"><b>".$keys[$i]."</b></td>\n"; } $table.="</tr>\n"; for($i=0;$i<count($rowarray);$i++){ $evenodd = $i % 2; if($evenodd){ $table.="<tr class=\"dark\">\n"; }else{ $table.="<tr class=\"light\">\n"; } $row = $rowarray[$i]; foreach($row as $val){ $table.="<td class=\"tdsql\">".$val."</td>\n"; } $table.="</tr>\n"; } $table.="</table>"; return $table; } function dir_ls($dirname){ $i = 0; $ls_array = array(); $handle=opendir($dirname); while (false !== ($name = readdir($handle))) { if ($name != "." && $name != "..") { //must use fullpath or is_file will not work correctly $fullpath = $dirname."/".$name; if(is_file($fullpath)){ //we have a file $ls_array[$i] = $name; $i++; } } } closedir($handle); return $ls_array; } function has_permission($action){ GLOBAL $permission_row; if(!isset($permission_row[$action])){ return false; } if($permission_row[$action]){ return true; }else{ return false; } } ?>