Load(); ?>
$macro) { echo ''; } ?>

Placeholders are: %FILE%, %FOLDER%, %NAME%
Note: Press Save to activate your changes. Placeholders can be used in shell commands to be replaced with the selected value.

Load(); $command = $macrolist[$_GET['id']]['c']; if(!Common::isAbsPath($_GET['path'])) { $_GET['path'] = WORKSPACE.'/'.$_GET['path']; } if(is_file($_GET['path'])) { $command = str_replace('%FILE%',$_GET['path'],$command); $command = str_replace('%FOLDER%',dirname($_GET['path']),$command); $command = str_replace('%NAME%',basename($_GET['path']),$command); } else { $command = str_replace('%FOLDER%',$_GET['path'],$command); $command = str_replace('%NAME%',basename($_GET['path']),$command); } ?>
Command: 
'.shell_exec($command).''; ?>