From: Edward Date: Wed, 19 Feb 2014 08:45:32 +0000 (+0800) Subject: ConvertStyle.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b9239ee3b51d2cd5f1d842d5d419455cec862956 ConvertStyle.php --- diff --git a/ConvertStyle.php b/ConvertStyle.php index 95cfa6bc..3cd0e95c 100644 --- a/ConvertStyle.php +++ b/ConvertStyle.php @@ -64,23 +64,23 @@ class Pman_Core_ConvertStyle extends Pman function convertStyle($url, $file) { - if(!empty($url)) - { - $host = parse_url($url); - require_once 'System.php'; - $wget = System::which('wget'); - if (!$wget) { - $this->jerr("no wget"); - } - $cmd = $wget . ' -q -O - ' . escapeshellarg($url); - - //echo $cmd; exit; - $data = `$cmd`; - - if (!trim(strlen($data))) { - $this->jerr("url returned an empty string"); - } - } +// if(!empty($url)) +// { +// $host = parse_url($url); +// require_once 'System.php'; +// $wget = System::which('wget'); +// if (!$wget) { +// $this->jerr("no wget"); +// } +// $cmd = $wget . ' -q -O - ' . escapeshellarg($url); +// +// //echo $cmd; exit; +// $data = `$cmd`; +// +// if (!trim(strlen($data))) { +// $this->jerr("url returned an empty string"); +// } +// } if(file_exists($file)) {