@ 2014-08-23T17:43:18Z <?php/* */require_once 'config.php';require_once 'header.php';$dir=htmlspecialchars($_GET['dir']);if(!$dir) { $dir = $f_dir_om; }if ($dir{0} == '/' || $dir{0} == '.' || $dir{1} == '.' || $dir{1} == '/'){ echo 'Invalid url request recieved!!!'; $_errro_OMi = true;}else{function r($f,$t=0) { return strtolower(substr(strrchr($f,'.'),1)); }function translit($dir) { $dir=basename($dir); $omi_exx=explode('.', $dir); $r=$omi_exx[count($omi_exx)-1]; unset($omi_exx[count($omi_exx)-1]); $dir=join('.',$omi_exx); return $dir.'.'.$r; }function transdir($dir) { $dir=str_replace('lib/', '', $dir); $omi_ae=explode('/',$dir); $dir=join('/',$omi_ae); return $dir; }function countf($f) { include 'config.php'; $f2 = str_replace('/', '_OM_',$f); $d[] = $f; $sz = 0; do { $dir = array_shift($d); $h = opendir($dir); while($f = readdir($h)) { if($f != '.' && $f != '..' && $f[0]!='.' && is_readable($dir.'/'.$f)) { if(is_dir($dir.'/'.$f)) { $d[] = $dir.'/'.$f; } else { ++$all; } $sz += filesize($dir.'/'.$f); } } closedir($h); } while(sizeof($d) > 0); $c = (int)$all; return $c; }function easySize_OMi($bytes, $precision = 2){$unit = array('B','KB','MB');return @round($bytes / pow(1024, ($i = floor(log($bytes, 1024)))), $precision).' '.$unit[$i];}function nav_page($countstr,$page,$dir,$p,$sort,$main){$list='<div class="pgn">Page ('.($page+1).'/'.$countstr.')<br/><br/>';for($i=0; $i<3; $i++) { if($i>$countstr-1) break; if($page!=$i) $list.='<a href="'.$h_om.'/?dir='.$dir.'&'.$i.'/'.$p.'/'.$sort.'/">'.($i+1).'</a>'; else $list.='<span class="cur">'.($i+1).'</span>'; } if($countstr>3) { $list.=' .. '; for($n=$page-3; $n<$page+3; $n++) { if($n>$countstr-1) break;if($n<3) continue; if($page!=$n) $list.='<a href="?dir='.$dir.'/default/'.$n.'/'.$p.'/'.$sort.'/">'.($n+1).'</a>'; else $list.='<span class="cur">'.($n+1).'</span>'; }$next=$n; } if(@$n<$countstr and isset($n)) { $list.=' .. '; for($n=$countstr-3; $n<$countstr; $n++) { if($n<@$next) continue; if($page!=$n) $list.='<a href="'.$h_om.'/view/'.$dir.'/default/'.$n.'/'.$p.'/'.$sort.'/">'.($n+1).'</a>'; else $list.='<span class="cur">'.($n+1).'</span>'; } } return $list.'<br/></div>'; }echo '<font face="verdana" size="2pt">You are here...</font><br><font face="verdana" size="2pt"><b><img src="siteData_gfx/images/home.png">';if($dir==$f_dir_om){echo 'Home';}else{echo '<a href="javascript:void(0)" onclick="location.href="./"">Home</a>';}if(($countj=count(explode('/', $_GET['dir'])))>=1) { $j=explode('/', str_replace($f_dir_om, '', $_GET['dir'])); for($i=0; $i<=$countj; $i++) { $u=$j[count($j)-2]; if($u) { unset($j[count($j)-1]); $g[$i]= ' <img src="'.$home_url.'/siteData_gfx/images/folder.png"/> <a href="javascript:void(0)" onclick="location.href="?dir='.$f_dir_om.''.join('/', $j).'&start=1&pdir='.$f_dir_om.'&ostart=1&pv=15"">'.transdir($u).'</a>'; } } for($i=count($g)-1; $i>=0; $i--) { if($dir) { echo ''.$g[$i].''; } } if($dir!=$f_dir_om) { echo ' <img src="'.$home_url.'/siteData_gfx/images/folder.png"/> '.array_reverse(explode('/', str_replace('files/','',$_GET['dir'])))[0].''; } echo '</b></font>'; } echo '<br/><table border="0" cellspacing="1" width="1000px"><tbody><tr><th style="width:700px;"><div style="margin-left:25px;width:30px;height:30px;margin-bottom:-20px"><a href="javascript:history.back()"><img src="siteData_gfx/images/go-back.png" height="30px" alt="Go Back" width="30px"></a></div>Name</th><th style="width:130px;">Size</th><th style="width:100px;">Date</th><th style="width:70px;">Hits</th></tr>';//Subfolders$glob_dir=glob($dir.'/*',GLOB_ONLYDIR);if($glob_dir){$count=sizeof($glob_dir);$countstr=ceil($count/$t_fold_omi);$page=intval($_GET['page']);if(!empty($page)||$page!=0){$page=$page-1;}usort($glob_dir, 'sortold');$start = $page * $t_fold_omi;if($start>=$count OR $start<0) { $start=0; }$end = $start + $t_fold_omi;if($end>=$count) { $end = $count; }for($i=$start; $i<$end; $i++){$dirt=$glob_dir[$i];$dir_exp=explode('/',$dirt);$count=countf($dirt);$time=@filectime($glob_dir[$i]);if($dir){echo '<tr><td class="folder"><a href="javascript:void(0)" onclick="location.href="?dir='.$dirt.'&start=1&pdir=files&parry=1&ostart=1&pv=15""><img src="siteData_gfx/images/folder.png">'.transdir($dir_exp[count($dir_exp)-1]).'</a></td><td class="fsize"></td><td class="fdate">'.date('d/m/y', $time).'</td><td class="fhits"></td></tr><tr></tr>';}else{echo '<tr><td class="folder"><a href="javascript:void(0)" onclick="location.href="?dir='.str_replace('/','',$dirt).'&start=1&pdir=files&parry=1&ostart=1&pv=15""><img src="siteData_gfx/images/folder.png">'.transdir($dir_exp[count($dir_exp)-1]).'</a></td><td class="fsize"></td><td class="fdate">'.date('d/j/y', $time).'</td><td class="fhits"></td></tr><tr></tr>';}}}$glob_file=glob("$dir/*.{{$allfiles_om}}",GLOB_BRACE);if($glob_file) //FILES{usort($glob_file, 'sortnew');$count=sizeof($glob_file);$countstr=ceil($count/$t_file_omi);$page=intval($_GET['page']);if(!empty($page)||$page!=0){$page=$page-1;}$dir = urlencode($dir);//($page > $countstr-1 && $page!=1) { header('Location: '.$home_url.'/view/'.str_replace('%2F','/',$dir).'/default/0/0/0'); }$start = $page * $t_file_omi;if($start>=$count OR $start<0){ $start=0; }$end = $start + $t_file_omi;if($end>=$count) { $end = $count; }echo "\n" . '<!-- Facebook.com/oruram :: oruram :: Display FileList :: -->' . "\n";echo '<table cellspacing="0"><tbody>';$connect_OMi = mysql_connect($dbHost_OMi, $dbUser_OMi, $dbPassword_OMi);if(!$connect_OMi) { echo "Error MySQL Connect!"; die; }mysql_select_db($dbName_OMi, $connect_OMi);for($i=$start; $i<$end; $i++){$name=translit($glob_file[$i]);$name = str_replace($replace,$with,$name);$name = str_replace($replace1,$with1,$name);$filesize=easySize_OMi(@filesize($glob_file[$i]));$time=@filectime($glob_file[$i]);$dlCount_OMi = mysql_fetch_array(mysql_query("SELECT * FROM `fileslog_OMi` WHERE `fileURL_OMi` = '" .$glob_file[$i]."' LIMIT 1"));if(!$dlCount_OMi) { $hits=0; } else { $hits = $dlCount_OMi['dlCount_OMi']; }$dlink_Om = $glob_file[$i];echo '<tr><td class="file"><a href="javascript:void(0)" onclick="location.href="download.php?dir='.$dlink_Om.'""><img src="siteData_gfx/images/file.png">'.$name.'</a></td><td class="size">'.$filesize.'</td><td class="date">'.date('d/m/y', $time).'</td><td class="hits">'.$hits.'</td></tr><tr></tr>';}}echo '</tbody></table>';if(($countstr>1) && ($dir)) { echo "\n" . '<!-- Facebook.com/oruram :: oruram :: Display Page Navigation -->' . "\n"; echo nav_page($countstr,$page,$dir,$p,$sort,'index'); echo "\n"; }}@include 'footer.php';@mysql_close($connect_OMi);/* */?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 8.3.6 0.007 0.007 16.50 8.3.5 0.015 0.002 22.79 8.3.4 0.014 0.000 18.85 8.3.3 0.007 0.007 19.11 8.3.2 0.005 0.005 20.37 8.3.1 0.002 0.005 23.52 8.3.0 0.009 0.000 19.05 8.2.18 0.000 0.015 16.63 8.2.17 0.018 0.004 22.96 8.2.16 0.010 0.003 20.52 8.2.15 0.007 0.000 24.18 8.2.14 0.004 0.004 24.66 8.2.13 0.004 0.004 26.16 8.2.12 0.007 0.000 21.02 8.2.11 0.013 0.009 19.18 8.2.10 0.008 0.004 17.78 8.2.9 0.005 0.003 19.14 8.2.8 0.005 0.003 17.97 8.2.7 0.003 0.006 17.50 8.2.6 0.004 0.008 17.93 8.2.5 0.006 0.003 18.07 8.2.4 0.009 0.000 18.02 8.2.3 0.004 0.004 17.96 8.2.2 0.007 0.000 17.51 8.2.1 0.005 0.002 17.88 8.2.0 0.004 0.004 17.54 8.1.28 0.004 0.011 25.92 8.1.27 0.006 0.003 24.00 8.1.26 0.000 0.007 26.35 8.1.25 0.010 0.003 28.09 8.1.24 0.007 0.003 22.00 8.1.23 0.004 0.007 20.65 8.1.22 0.000 0.008 17.74 8.1.21 0.000 0.008 18.77 8.1.20 0.003 0.006 17.10 8.1.19 0.000 0.007 17.22 8.1.18 0.005 0.003 18.85 8.1.17 0.010 0.000 18.59 8.1.16 0.000 0.007 22.00 8.1.15 0.002 0.005 18.73 8.1.14 0.004 0.004 17.23 8.1.13 0.007 0.000 17.80 8.1.12 0.003 0.003 17.33 8.1.11 0.005 0.003 17.30 8.1.10 0.000 0.007 17.22 8.1.9 0.000 0.009 17.25 8.1.8 0.000 0.007 17.17 8.1.7 0.004 0.004 17.23 8.1.6 0.000 0.008 17.49 8.1.5 0.004 0.004 17.36 8.1.4 0.004 0.004 17.45 8.1.3 0.000 0.008 17.47 8.1.2 0.007 0.000 17.51 8.1.1 0.000 0.007 17.43 8.1.0 0.000 0.008 17.25 8.0.30 0.008 0.000 18.77 8.0.29 0.007 0.000 16.58 8.0.28 0.000 0.007 18.50 8.0.27 0.007 0.000 17.21 8.0.26 0.003 0.003 17.20 8.0.25 0.000 0.007 16.90 8.0.24 0.000 0.007 16.84 8.0.23 0.000 0.007 16.68 8.0.22 0.000 0.006 16.82 8.0.21 0.000 0.006 16.83 8.0.20 0.000 0.007 16.70 8.0.19 0.011 0.000 16.75 8.0.18 0.007 0.000 16.79 8.0.17 0.003 0.005 16.80 8.0.16 0.000 0.007 16.71 8.0.15 0.004 0.004 16.70 8.0.14 0.007 0.000 16.76 8.0.13 0.006 0.000 13.44 8.0.12 0.005 0.003 16.71 8.0.11 0.000 0.008 16.69 8.0.10 0.004 0.004 16.73 8.0.9 0.003 0.003 16.58 8.0.8 0.012 0.003 16.65 8.0.7 0.003 0.005 16.74 8.0.6 0.000 0.007 16.89 8.0.5 0.003 0.005 16.64 8.0.3 0.004 0.015 16.70 8.0.2 0.011 0.009 17.40 8.0.1 0.004 0.004 16.93 8.0.0 0.009 0.009 16.72 7.4.33 0.002 0.002 15.09 7.4.32 0.003 0.003 16.34 7.4.30 0.000 0.006 16.39 7.4.29 0.007 0.000 16.41 7.4.28 0.004 0.004 16.37 7.4.27 0.002 0.005 16.41 7.4.26 0.007 0.000 16.41 7.4.25 0.004 0.004 16.38 7.4.24 0.005 0.003 16.43 7.4.23 0.003 0.003 16.59 7.4.22 0.015 0.012 16.42 7.4.21 0.003 0.010 16.44 7.4.20 0.003 0.003 16.15 7.4.16 0.000 0.016 16.26 7.4.15 0.006 0.011 17.40 7.4.14 0.011 0.007 17.86 7.4.13 0.009 0.008 16.35 7.4.12 0.012 0.005 16.47 7.4.11 0.006 0.011 16.28 7.4.10 0.011 0.006 16.41 7.4.9 0.008 0.008 16.35 7.4.8 0.003 0.016 19.39 7.4.7 0.006 0.012 16.31 7.4.6 0.013 0.003 16.37 7.4.5 0.005 0.003 16.29 7.4.4 0.009 0.007 16.23 7.4.3 0.006 0.010 16.48 7.3.33 0.000 0.006 13.20 7.3.32 0.000 0.005 12.95 7.3.31 0.000 0.006 16.20 7.3.30 0.007 0.000 16.16 7.3.29 0.010 0.010 16.18 7.3.28 0.009 0.007 16.11 7.3.27 0.015 0.009 17.40 7.3.26 0.007 0.010 16.66 7.3.25 0.010 0.007 16.28 7.3.24 0.013 0.003 16.09 7.3.23 0.005 0.011 16.45 7.3.21 0.007 0.012 16.40 7.3.20 0.007 0.014 19.39 7.3.19 0.011 0.008 16.21 7.3.18 0.014 0.003 16.45 7.3.17 0.012 0.003 16.27 7.3.16 0.010 0.006 16.44 7.2.33 0.015 0.007 16.55 7.2.32 0.009 0.016 16.21 7.2.31 0.011 0.006 16.34 7.2.30 0.004 0.014 16.53 7.2.29 0.007 0.011 16.64 5.4.32 0.010 0.035 12.46 5.4.31 0.006 0.038 12.46 5.4.30 0.008 0.045 12.46 5.4.29 0.003 0.042 12.46 5.4.28 0.008 0.034 12.36 5.4.27 0.002 0.039 12.36 5.4.26 0.006 0.043 12.36 5.4.25 0.011 0.036 12.36 5.4.24 0.007 0.039 12.36 5.4.23 0.007 0.038 12.36 5.4.22 0.007 0.038 12.36 5.4.21 0.007 0.035 12.35 5.4.20 0.006 0.046 12.35 5.4.19 0.006 0.036 12.35 5.4.18 0.005 0.037 12.35 5.4.17 0.006 0.036 12.36 5.4.16 0.006 0.036 12.36 5.4.15 0.005 0.036 12.35 5.4.14 0.008 0.039 12.04 5.4.13 0.003 0.038 12.02 5.4.12 0.006 0.035 11.98 5.4.11 0.005 0.036 11.98 5.4.10 0.005 0.037 11.98 5.4.9 0.008 0.035 11.98 5.4.8 0.003 0.040 11.97 5.4.7 0.004 0.037 11.97 5.4.6 0.007 0.035 11.98 5.4.5 0.008 0.034 11.97 5.4.4 0.004 0.036 11.96 5.4.3 0.008 0.040 11.96 5.4.2 0.009 0.041 11.96 5.4.1 0.004 0.035 11.96 5.4.0 0.007 0.033 11.45
preferences:dark mode live preview
36.02 ms | 401 KiB | 5 Q