'.'| '.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;
}
?>