@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | $lang = array( |
8 | 8 | |
9 | - '_locale' => "es_ES.UTF-8", // UNIX localization code |
|
10 | - '_charset' => "utf-8", // Browser charset |
|
9 | + '_locale' => "es_ES.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 %H:%M", |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | $lang = array( |
8 | 8 | |
9 | - '_locale' => "cs_CZ.UTF-8", // UNIX localization code |
|
10 | - '_charset' => "utf-8", // Browser charset |
|
9 | + '_locale' => "cs_CZ.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 %H:%M", |
@@ -7,8 +7,8 @@ |
||
7 | 7 | |
8 | 8 | $lang = array( |
9 | 9 | |
10 | - '_locale' => "ca_ES.UTF-8", // UNIX localization code |
|
11 | - '_charset' => "utf-8", // Browser charset |
|
10 | + '_locale' => "ca_ES.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' => "id_ID.UTF-8", // UNIX localization code |
|
10 | - '_charset' => "utf-8", // Browser charset |
|
9 | + '_locale' => "id_ID.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 %H:%M", |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | $lang = array( |
8 | 8 | |
9 | - '_locale' => "nl_NL.UTF-8", // UNIX localization code |
|
10 | - '_charset' => "utf-8", // Browser charset |
|
9 | + '_locale' => "nl_NL.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 %H:%M", |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | $lang = array( |
8 | 8 | |
9 | - '_locale' => "vi_VN.UTF-8", // UNIX localization code |
|
10 | - '_charset' => "utf-8", // Browser charset |
|
9 | + '_locale' => "vi_VN.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 %H:%M", |
@@ -10,13 +10,13 @@ |
||
10 | 10 | } |
11 | 11 | }; |
12 | 12 | <?php |
13 | - if(isset($_GET['type'])) $type = htmlspecialchars(trim($_GET['type']), ENT_QUOTES); |
|
14 | - elseif(isset($_GET['Type'])) $type = htmlspecialchars(trim($_GET['Type']), ENT_QUOTES); |
|
13 | + if (isset($_GET['type'])) $type = htmlspecialchars(trim($_GET['type']), ENT_QUOTES); |
|
14 | + elseif (isset($_GET['Type'])) $type = htmlspecialchars(trim($_GET['Type']), ENT_QUOTES); |
|
15 | 15 | else $type = 'images'; |
16 | 16 | |
17 | - if($type==='image') $type = 'images'; |
|
17 | + if ($type === 'image') $type = 'images'; |
|
18 | 18 | |
19 | - $opener = (isset($_GET['editor'])) ? 'opener=' . htmlspecialchars(trim($_GET['editor']), ENT_QUOTES) : ''; |
|
19 | + $opener = (isset($_GET['editor'])) ? 'opener='.htmlspecialchars(trim($_GET['editor']), ENT_QUOTES) : ''; |
|
20 | 20 | $request_uri = "{$opener}&type={$type}"; |
21 | 21 | ?> |
22 | 22 | window.location.href = "browse.php?<?php echo $request_uri; ?>"; |
@@ -12,20 +12,20 @@ discard block |
||
12 | 12 | * @link http://kcfinder.sunhater.com |
13 | 13 | */ |
14 | 14 | |
15 | -class dir { |
|
15 | +class dir{ |
|
16 | 16 | |
17 | 17 | /** Checks if the given directory is really writable. The standard PHP |
18 | 18 | * function is_writable() does not work properly on Windows servers |
19 | 19 | * @param string $dir |
20 | 20 | * @return bool */ |
21 | 21 | |
22 | - static function isWritable($dir) { |
|
22 | + static function isWritable($dir){ |
|
23 | 23 | $dir = path::normalize($dir); |
24 | 24 | if (!is_dir($dir)) |
25 | 25 | return false; |
26 | 26 | $i = 0; |
27 | 27 | do { |
28 | - $file = "$dir/is_writable_" . md5($i++); |
|
28 | + $file = "$dir/is_writable_".md5($i++); |
|
29 | 29 | } while (file_exists($file)); |
30 | 30 | if (!@touch($file)) |
31 | 31 | return false; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @param array $failed |
45 | 45 | * @return mixed */ |
46 | 46 | |
47 | - static function prune($dir, $firstFailExit=true, array $failed=null) { |
|
47 | + static function prune($dir, $firstFailExit = true, array $failed = null){ |
|
48 | 48 | if ($failed === null) $failed = array(); |
49 | 49 | $files = self::content($dir); |
50 | 50 | if ($files === false) { |
@@ -87,12 +87,12 @@ discard block |
||
87 | 87 | * @param array $options |
88 | 88 | * @return mixed */ |
89 | 89 | |
90 | - static function content($dir, array $options=null) { |
|
90 | + static function content($dir, array $options = null){ |
|
91 | 91 | |
92 | 92 | $defaultOptions = array( |
93 | - 'types' => "all", // Allowed: "all" or possible return values |
|
93 | + 'types' => "all", // Allowed: "all" or possible return values |
|
94 | 94 | // of filetype(), or an array with them |
95 | - 'addPath' => true, // Whether to add directory path to filenames |
|
95 | + 'addPath' => true, // Whether to add directory path to filenames |
|
96 | 96 | 'pattern' => '/./', // Regular expression pattern for filename |
97 | 97 | 'followLinks' => true |
98 | 98 | ); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | return $files; |
146 | 146 | } |
147 | 147 | |
148 | - static function fileSort($a, $b) { |
|
148 | + static function fileSort($a, $b){ |
|
149 | 149 | if (function_exists("mb_strtolower")) { |
150 | 150 | $a = mb_strtolower($a); |
151 | 151 | $b = mb_strtolower($b); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @link http://kcfinder.sunhater.com |
13 | 13 | */ |
14 | 14 | |
15 | -class input { |
|
15 | +class input{ |
|
16 | 16 | |
17 | 17 | /** Filtered $_GET array |
18 | 18 | * @var array */ |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @var array */ |
27 | 27 | public $cookie; |
28 | 28 | |
29 | - public function __construct() { |
|
29 | + public function __construct(){ |
|
30 | 30 | $this->get = &$_GET; |
31 | 31 | $this->post = &$_POST; |
32 | 32 | $this->cookie = &$_COOKIE; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param string $property |
37 | 37 | * @return mixed */ |
38 | 38 | |
39 | - public function __get($property) { |
|
39 | + public function __get($property){ |
|
40 | 40 | return property_exists($this, $property) ? $this->$property : null; |
41 | 41 | } |
42 | 42 | } |