Fix cron output in Windows (no colors).

This commit is contained in:
Alexandre Rosenfeld
2011-01-20 19:53:16 +00:00
parent a32b91eb60
commit 4336274430

View File

@@ -3130,7 +3130,7 @@ function eprintln($s="", $c=null){
} else
echo "<pre>$s</pre>";
} else {
if(isset($c)){
if(isset($c) && (PHP_OS != 'WINNT')){
switch($c){
case 'green':
printf("\033[0;35;32m$s\033[0m\n");