root '; $__path = explode('/',$path); if(count($__path) > 1){ $_path = $_path.$_separator; for($_i = 0; $_i < count($__path); $_i++){ // Param separator if($_i > 0) @$___path.= '/'.$__path[$_i]; else @$___path.= $__path[$_i]; // Output @$_path.= $_path_prefix.$___path.$params.'">'.$__path[$_i].''.$_separator; } } $params = "&p=$path".$params; ?>
Path:

$path, 'monitor' => '', 'identify' => '', 'getfolderlisting' => '"'.$path.'"', 'getrootfolders' => '', 'getfiles' => '"'.$path.'"', 'deletefiles' => '"'.$path.'"' ); $confpath = 'HOME='.dirname(__FILE__); define('ACTION',$action); // Parser function parseout($line, $status){ /* Posible status values : PHP_OUTPUT_HANDLER_START PHP_OUTPUT_HANDLER_CONT PHP_OUTPUT_HANDLER_END */ if($status != PHP_OUTPUT_HANDLER_END){ switch(ACTION){ case 'getfiles': $line = implode('%
',explode('percent',$line)); break; case 'getrootfolders': $_command = getfolderlisting; case 'help': if(ACTION == 'help')$_command = ACTION; if(!(strpos($line, ' - ') === false)){ $_line = explode(' - ',$line); $_line[0] = trim($_line[0]); $line = ''. ''.$_line[0]."". ''.$_line[1].''. ''; }else $line = '
'.$line.'
'; break; case 'getfolderlisting': $_line = explode(';',$line); // Command if($_line[1] == 'File'){ $_command = 'getfiles'; $_file = '&f='.str_replace('"','',$_line[2]); $_delete = 'X'; $_choose = ''; }else 'getfolderlisting'; // Icon if($_line[1] == 'Folder') $_icon = 'dir'; else $_icon = 'unknown'; $_icon = ' '; // Item type $_type = $_line[1]; // Link $_uri = '?a='.$_command.'&p='.$_line[0].$_file; $_link = ''.$_line[2].' '; // Properties $_props = $_line[3]; // Output $line = ''.''.implode('', array( $_icon, //$_type, $_link, $_props, $_delete, $_choose, )).''.''; break; } } return $line; } // Execute if($action!=''){ // Clear another gammu instances system('killall gammu'); // Ensure to delete downloaded file if($action == 'getfiles' && !count($download)){ $_file[0] = 'rm -rf "'.$file.'" &&'; $_file[1] = '&& chmod a+w "'.$file.'"'; //echo $_file[1];die(); } // Construct command according to param $command = 'gammu --'.$action.' '.$params[$action]; function get_system_command($command, $file, $confpath){ $command = 'cd /tmp && '. //Path to download files @$file[0].' '. $confpath.' '. //Path to found gammu config $command.' 2>&1'.' '. @$file[1] ; return $command; } ?>
command:

debug:

exit: