/
home
/
suroeste
/
public_html
/
gorbus.transportessuroeste.com
/
reservas
/
_lib
/
prod
/
lib
/
php
/
/home/suroeste/public_html/gorbus.transportessuroeste.com/reservas/_lib/prod/lib/php
mkdir
upload
Name
Size
Mode
Actions
api/
-
0755
rm
devel/
-
0755
rm
sql/
-
0755
rm
build.dat
1
0644
edit
dl
rm
crypt.inc.php
17448
0644
edit
dl
rm
fix.php
595
0644
edit
dl
rm
help.en-us.php
2731
0644
edit
dl
rm
help.es-es.php
2731
0644
edit
dl
rm
help.pt-br.php
2813
0644
edit
dl
rm
index.html
4725
0644
edit
dl
rm
index.php
46
0644
edit
dl
rm
lang.en-us.php
15779
0644
edit
dl
rm
lang.es-es.php
17359
0644
edit
dl
rm
lang.pt-br.php
17408
0644
edit
dl
rm
msg_perfil.tpl.php
1520
0644
edit
dl
rm
nm_api.php
71055
0644
edit
dl
rm
nm_check_mobile.php
83352
0644
edit
dl
rm
nm_codbarra.php
49735
0644
edit
dl
rm
nm_config_graf.php
9564
0644
edit
dl
rm
nm_config_pdf.php
8394
0644
edit
dl
rm
nm_conv_dados.php
17789
0644
edit
dl
rm
nm_ctrl_app_name.php
2364
0644
edit
dl
rm
nm_data.class.php
47922
0644
edit
dl
rm
nm_edit.php
17839
0644
edit
dl
rm
nm_erro.php
1019
0644
edit
dl
rm
nm_extenso.php
12067
0644
edit
dl
rm
nm_font_tcpdf.php
3585
0644
edit
dl
rm
nm_functions.php
41619
0644
edit
dl
rm
nm_gc.php
3448
0644
edit
dl
rm
nm_gp_limpa.php
2064
0644
edit
dl
rm
nm_ini_lib.php
21141
0644
edit
dl
rm
nm_ini_manager2.php
134344
0644
edit
dl
rm
nm_ini_manager3.php
99313
0644
edit
dl
rm
nm_ini_perfil.php
118470
0644
edit
dl
rm
nm_saida.php
298
0644
edit
dl
rm
nm_sec_prod.php
10066
0644
edit
dl
rm
nm_serialize.php
5583
0644
edit
dl
rm
nm_session.php
22067
0644
edit
dl
rm
nm_trata_img.php
12362
0644
edit
dl
rm
nm_trata_saida.php
2036
0644
edit
dl
rm
nm_utf8.php
21320
0644
edit
dl
rm
nm_valida.php
42251
0644
edit
dl
rm
prod.dat
7
0644
edit
dl
rm
ver.dat
8
0644
edit
dl
rm
Edit:
/home/suroeste/public_html/gorbus.transportessuroeste.com/reservas/_lib/prod/lib/php/nm_gc.php
(3448B)
<?php /** * $Id: nm_gc.php,v 1.5 2011-10-31 18:44:50 diogo Exp $ */ function nm_gc($dir_lib) { if (!defined('NM_INC_PROD_INI')) { include_once($dir_lib . "/nm_ini_lib.php"); include_once($dir_lib . "/nm_serialize.php"); } $prod_dir = $dir_lib; $prod_dir = substr($prod_dir, 0, strrpos($prod_dir, '/')); $prod_dir = substr($prod_dir, 0, strrpos($prod_dir, '/')); $prod_dir = substr($prod_dir, 0, strrpos($prod_dir, '/')); $prod_ini_xml = nm_unserialize_ini($prod_dir . '/conf/prod.config.php'); $path = $prod_ini_xml["GLOBAL"]["GC_DIR"]; $tempo = $prod_ini_xml["GLOBAL"]["GC_MIN"] * 60; if (!@is_dir($path) || "" == trim($path)) { nm_gc_cache($dir_lib); return (FALSE); } if ($dir = @opendir($path)) { $ts_sys = getmicrotime(); while (($file = @readdir($dir)) !== FALSE) { if ( @is_file("$path/$file") && !@is_dir("$path/$file") && ( ('sc_' == substr($file, 0, 3)) || ('_cab.arq' == substr($file, -8)) || in_array($file, array('scriptcase.lic', 'scriptcase.req')) ) ) { $ts_file = @filemtime("$path/$file"); if (0 != $ts_file) { $ts_dif = $ts_sys - $ts_file; if ($ts_dif > $tempo && !in_array(strtolower($file), array('index.html', '.svn'))) { @unlink("$path/$file"); } } } } } @closedir($dir); } function nm_gc_cache($dir_lib, $path_recur = '') { if (!defined('NM_INC_PROD_INI')) { include_once($dir_lib . "/nm_ini_lib.php"); include_once($dir_lib . "/nm_serialize.php"); } $prod_dir = $dir_lib; $prod_dir = substr($prod_dir, 0, strrpos($prod_dir, '/')); $prod_dir = substr($prod_dir, 0, strrpos($prod_dir, '/')); $prod_dir = substr($prod_dir, 0, strrpos($prod_dir, '/')); $prod_ini_xml = nm_unserialize_ini($prod_dir . '/conf/prod.config.php'); if (!isset($prod_ini_xml["GLOBAL"]["CACHE_GC_DIR"]) || empty($prod_ini_xml["GLOBAL"]["CACHE_GC_DIR"])) return; $path = !empty($path_recur) ? $path_recur : $prod_ini_xml["GLOBAL"]["CACHE_GC_DIR"]; $tempo = isset($prod_ini_xml["GLOBAL"]["CACHE_GC_MIN"]) && !empty($prod_ini_xml["GLOBAL"]["CACHE_GC_MIN"]) ? $prod_ini_xml["GLOBAL"]["CACHE_GC_MIN"] * 60 : 86400; if (!@is_dir($path) || "" == trim($path)) { return (FALSE); } $arr_files = array_diff(scandir($path), array('.', '..', 'index.html', '.svn')); $ts_sys = getmicrotime(); foreach ($arr_files as $file) { $full_file = "$path/$file"; if (is_dir($full_file)) { nm_gc_cache($dir_lib, $full_file); continue; } else { $ts_file = @filemtime($full_file); if (0 != $ts_file) { $ts_dif = $ts_sys - $ts_file; if ($ts_dif > $tempo) { @unlink($full_file); } } } } } function getmicrotime() { $arr_tmp_list_change = explode(" ", microtime()); list($usec, $sec) = $arr_tmp_list_change; return ((float)$sec); } ?>
Save
cmd:
run