controller =& $controller; } // ################################################################### /** * Wrapper for escapeshellarg() * * @access public * * @param string The argument * * @return string Cleaned argument */ function arg($argument) { return escapeshellarg($argument); } // ################################################################### /** * Wrapper for escapeshellcmd * * @access public * * @param string Command * * @return string Cleaned command */ function cmd($command) { return escapeshellcmd($command); } // ################################################################### /** * Executes a shell command and returns all the output * as an array * * @access public * * @param string UNIX command * * @return array Output */ function exec($command) { $start = microtime(); exec($command, $output); $this->controller->registry->debug("exec(" . $this->controller->registry->funct->fetch_microtime_diff($start) . "): $command"); return $output; } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>