- function convertStyle($url, $file, $is_url = false)
- {print_r($url);exit;
-// 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");
-// }
-// }
+ function convertStyle($url, $file, $is_url = true)
+ {
+ $inLineCss = true;
+
+ if($is_url && !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");
+ }
+ }