From: <var...@us...> - 2010-06-17 13:35:24
|
Revision: 7544 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7544&view=rev Author: vargenau Date: 2010-06-17 13:35:18 +0000 (Thu, 17 Jun 2010) Log Message: ----------- Remove unused function OldFilterThroughCmd Modified Paths: -------------- trunk/lib/plugin/SyntaxHighlighter.php Modified: trunk/lib/plugin/SyntaxHighlighter.php =================================================================== --- trunk/lib/plugin/SyntaxHighlighter.php 2010-06-17 13:22:59 UTC (rev 7543) +++ trunk/lib/plugin/SyntaxHighlighter.php 2010-06-17 13:35:18 UTC (rev 7544) @@ -119,30 +119,6 @@ } } - /* PHP versions < 4.3 - * TODO: via temp file looks more promising - */ - function OldFilterThroughCmd($input, $commandLine) { - $input = str_replace ("\\", "\\\\", $input); - $input = str_replace ("\"", "\\\"", $input); - $input = str_replace ("\$", "\\\$", $input); - $input = str_replace ("`", "\`", $input); - $input = str_replace ("'", "\'", $input); - //$input = str_replace (";", "\;", $input); - - $pipe = popen("echo \"$input\"|$commandLine", 'r'); - if (!$pipe) { - print "pipe failed."; - return ""; - } - $output = ''; - while (!feof($pipe)) { - $output .= fread($pipe, 1024); - } - pclose($pipe); - return $output; - } - function run($dbi, $argstr, &$request, $basepage) { extract($this->getArgs($argstr, $request)); $source =& $this->source; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |