@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | |
180 | 180 | private function create_excel(&$array) |
181 | 181 | { |
182 | - require_once dirname(__FILE__) . '/libs/PHPExcel/Classes/PHPExcel.php'; |
|
182 | + require_once dirname(__FILE__).'/libs/PHPExcel/Classes/PHPExcel.php'; |
|
183 | 183 | $ssheat = new PHPExcel(); |
184 | 184 | $sheat = $ssheat->setActiveSheetIndex(0); |
185 | 185 | if(is_array($array)) |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | { |
229 | 229 | $value = implode(',', $value); |
230 | 230 | } |
231 | - $sheat->setCellValueByColumnAndRow($j, 2+$i, $value); |
|
231 | + $sheat->setCellValueByColumnAndRow($j, 2 + $i, $value); |
|
232 | 232 | } |
233 | 233 | } |
234 | 234 | } |
@@ -59,8 +59,8 @@ |
||
59 | 59 | return array($address); |
60 | 60 | } |
61 | 61 | $ret = array(); |
62 | - $ret[0] = trim(substr($address, $pos+1), '>'); |
|
63 | - $ret[1] = substr($address, 0, $pos-1); |
|
62 | + $ret[0] = trim(substr($address, $pos + 1), '>'); |
|
63 | + $ret[1] = substr($address, 0, $pos - 1); |
|
64 | 64 | return $ret; |
65 | 65 | } |
66 | 66 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | /** |
15 | 15 | * This cron script recompiles the Browscap cache |
16 | 16 | */ |
17 | -ini_set('memory_limit','-1'); // turn off memory limit for this script |
|
18 | -set_time_limit(120); // change to 2 minutes for this script |
|
17 | +ini_set('memory_limit', '-1'); // turn off memory limit for this script |
|
18 | +set_time_limit(120); // change to 2 minutes for this script |
|
19 | 19 | |
20 | 20 | require('libs/browscap-php/src/phpbrowscap/Browscap.php'); |
21 | 21 |