@@ -12,9 +12,9 @@ |
||
| 12 | 12 | * @link http://kcfinder.sunhater.com |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -class type_img { |
|
| 15 | +class type_img{ |
|
| 16 | 16 | |
| 17 | - public function checkFile($file, array $config) { |
|
| 17 | + public function checkFile($file, array $config){ |
|
| 18 | 18 | |
| 19 | 19 | $driver = isset($config['imageDriversPriority']) |
| 20 | 20 | ? image::getDriver(explode(" ", $config['imageDriversPriority'])) : "gd"; |
@@ -12,9 +12,9 @@ discard block |
||
| 12 | 12 | * @link http://kcfinder.sunhater.com |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -class type_mime { |
|
| 15 | +class type_mime{ |
|
| 16 | 16 | |
| 17 | - public function checkFile($file, array $config) { |
|
| 17 | + public function checkFile($file, array $config){ |
|
| 18 | 18 | if (!class_exists("finfo")) |
| 19 | 19 | return "Fileinfo PECL extension is missing."; |
| 20 | 20 | |
@@ -33,12 +33,12 @@ discard block |
||
| 33 | 33 | $mimes = $config['params']; |
| 34 | 34 | if (substr($mimes, 0, 1) == "!") { |
| 35 | 35 | $mimes = trim(substr($mimes, 1)); |
| 36 | - return in_array($type , explode(" ", $mimes)) |
|
| 36 | + return in_array($type, explode(" ", $mimes)) |
|
| 37 | 37 | ? "You can't upload such files." |
| 38 | 38 | : true; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - return !in_array($type , explode(" ", $mimes)) |
|
| 41 | + return !in_array($type, explode(" ", $mimes)) |
|
| 42 | 42 | ? "You can't upload such files." |
| 43 | 43 | : true; |
| 44 | 44 | } |
@@ -1,2 +1,2 @@ |
||
| 1 | -<link href="css.php?type=<?php echo $this->type ?><?php echo ($this->cms ? "&cms={$this->cms}" : "" ) ?>" rel="stylesheet" type="text/css" /> |
|
| 1 | +<link href="css.php?type=<?php echo $this->type ?><?php echo ($this->cms ? "&cms={$this->cms}" : "") ?>" rel="stylesheet" type="text/css" /> |
|
| 2 | 2 | <link href="themes/<?php echo $this->config['theme'] ?>/style.css" rel="stylesheet" type="text/css" /> |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | |
| 10 | 10 | $lang = array( |
| 11 | 11 | |
| 12 | - '_locale' => "pt_BR.UTF-8", // UNIX localization code |
|
| 13 | - '_charset' => "utf-8", // Browser charset |
|
| 12 | + '_locale' => "pt_BR.UTF-8", // UNIX localization code |
|
| 13 | + '_charset' => "utf-8", // Browser charset |
|
| 14 | 14 | |
| 15 | 15 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
| 16 | 16 | '_dateTimeFull' => "%A, %e %B, %Y %H:%M", |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | $lang = array( |
| 8 | 8 | |
| 9 | - '_locale' => "de_DE.UTF-8", // UNIX localization code |
|
| 10 | - '_charset' => "utf-8", // Browser charset |
|
| 9 | + '_locale' => "de_DE.UTF-8", // UNIX localization code |
|
| 10 | + '_charset' => "utf-8", // Browser charset |
|
| 11 | 11 | |
| 12 | 12 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
| 13 | 13 | '_dateTimeFull' => "%A, %e.%B.%Y %I:%M %p", |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | |
| 8 | 8 | $lang = array( |
| 9 | 9 | |
| 10 | - '_locale' => "uk_UA.UTF-8", // UNIX localization code |
|
| 11 | - '_charset' => "utf-8", // Browser charset |
|
| 10 | + '_locale' => "uk_UA.UTF-8", // UNIX localization code |
|
| 11 | + '_charset' => "utf-8", // Browser charset |
|
| 12 | 12 | |
| 13 | 13 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
| 14 | 14 | '_dateTimeFull' => "%A, %e %B, %Y %H:%M", |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | $lang = array( |
| 13 | 13 | |
| 14 | - '_locale' => "ja_JP.UTF-8", // UNIX localization code |
|
| 15 | - '_charset' => "utf-8", // Browser charset |
|
| 14 | + '_locale' => "ja_JP.UTF-8", // UNIX localization code |
|
| 15 | + '_charset' => "utf-8", // Browser charset |
|
| 16 | 16 | |
| 17 | 17 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
| 18 | 18 | '_dateTimeFull' => "%Y/%m/%d %H:%M", |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | |
| 8 | 8 | $lang = array( |
| 9 | 9 | |
| 10 | - '_locale' => "fr_FR.UTF-8", // UNIX localization code |
|
| 11 | - '_charset' => "utf-8", // Browser charset |
|
| 10 | + '_locale' => "fr_FR.UTF-8", // UNIX localization code |
|
| 11 | + '_charset' => "utf-8", // Browser charset |
|
| 12 | 12 | |
| 13 | 13 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
| 14 | 14 | '_dateTimeFull' => "%A %e %B %Y %H:%M", |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | $lang = array( |
| 8 | 8 | |
| 9 | - '_locale' => "he_IL.UTF-8", // UNIX localization code |
|
| 10 | - '_charset' => "utf-8", // Browser charset |
|
| 9 | + '_locale' => "he_IL.UTF-8", // UNIX localization code |
|
| 10 | + '_charset' => "utf-8", // Browser charset |
|
| 11 | 11 | |
| 12 | 12 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
| 13 | 13 | '_dateTimeFull' => "%H:%M %Y %B %e %A", |