From b9239ee3b51d2cd5f1d842d5d419455cec862956 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 19 Feb 2014 16:45:32 +0800 Subject: [PATCH] ConvertStyle.php --- ConvertStyle.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) 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)) { -- 2.39.2