@@ -7,10 +7,10 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | // invoke OnBeforeManagerLogout event |
| 9 | 9 | $modx->invokeEvent("OnBeforeManagerLogout", |
| 10 | - array( |
|
| 11 | - "userid" => $internalKey, |
|
| 12 | - "username" => $username |
|
| 13 | - )); |
|
| 10 | + array( |
|
| 11 | + "userid" => $internalKey, |
|
| 12 | + "username" => $username |
|
| 13 | + )); |
|
| 14 | 14 | |
| 15 | 15 | //// Unset all of the session variables. |
| 16 | 16 | //$_SESSION = array(); |
@@ -33,10 +33,10 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | // invoke OnManagerLogout event |
| 35 | 35 | $modx->invokeEvent("OnManagerLogout", |
| 36 | - array( |
|
| 37 | - "userid" => $internalKey, |
|
| 38 | - "username" => $username |
|
| 39 | - )); |
|
| 36 | + array( |
|
| 37 | + "userid" => $internalKey, |
|
| 38 | + "username" => $username |
|
| 39 | + )); |
|
| 40 | 40 | |
| 41 | 41 | // show login screen |
| 42 | 42 | header('Location: ' . MODX_MANAGER_URL); |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** This file is part of KCFinder project |
| 4 | - * |
|
| 5 | - * @desc Image detection class |
|
| 6 | - * @package KCFinder |
|
| 7 | - * @version 2.54 |
|
| 8 | - * @author Pavel Tzonkov <[email protected]> |
|
| 9 | - * @copyright 2010-2014 KCFinder Project |
|
| 10 | - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 |
|
| 11 | - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 |
|
| 12 | - * @link http://kcfinder.sunhater.com |
|
| 13 | - */ |
|
| 4 | + * |
|
| 5 | + * @desc Image detection class |
|
| 6 | + * @package KCFinder |
|
| 7 | + * @version 2.54 |
|
| 8 | + * @author Pavel Tzonkov <[email protected]> |
|
| 9 | + * @copyright 2010-2014 KCFinder Project |
|
| 10 | + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 |
|
| 11 | + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 |
|
| 12 | + * @link http://kcfinder.sunhater.com |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | class type_img { |
| 16 | 16 | |
@@ -12,17 +12,20 @@ |
||
| 12 | 12 | * @link http://kcfinder.sunhater.com |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -class type_img { |
|
| 15 | +class type_img |
|
| 16 | +{ |
|
| 16 | 17 | |
| 17 | - public function checkFile($file, array $config) { |
|
| 18 | + public function checkFile($file, array $config) |
|
| 19 | + { |
|
| 18 | 20 | |
| 19 | 21 | $driver = isset($config['imageDriversPriority']) |
| 20 | 22 | ? image::getDriver(explode(" ", $config['imageDriversPriority'])) : "gd"; |
| 21 | 23 | |
| 22 | 24 | $img = image::factory($driver, $file); |
| 23 | 25 | |
| 24 | - if ($img->initError) |
|
| 25 | - return "Unknown image format/encoding."; |
|
| 26 | + if ($img->initError) { |
|
| 27 | + return "Unknown image format/encoding."; |
|
| 28 | + } |
|
| 26 | 29 | |
| 27 | 30 | return true; |
| 28 | 31 | } |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** This file is part of KCFinder project |
| 4 | - * |
|
| 5 | - * @desc MIME type detection class |
|
| 6 | - * @package KCFinder |
|
| 7 | - * @version 2.54 |
|
| 8 | - * @author Pavel Tzonkov <[email protected]> |
|
| 9 | - * @copyright 2010-2014 KCFinder Project |
|
| 10 | - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 |
|
| 11 | - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 |
|
| 12 | - * @link http://kcfinder.sunhater.com |
|
| 13 | - */ |
|
| 4 | + * |
|
| 5 | + * @desc MIME type detection class |
|
| 6 | + * @package KCFinder |
|
| 7 | + * @version 2.54 |
|
| 8 | + * @author Pavel Tzonkov <[email protected]> |
|
| 9 | + * @copyright 2010-2014 KCFinder Project |
|
| 10 | + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 |
|
| 11 | + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 |
|
| 12 | + * @link http://kcfinder.sunhater.com |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | class type_mime { |
| 16 | 16 | |
@@ -12,20 +12,25 @@ |
||
| 12 | 12 | * @link http://kcfinder.sunhater.com |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -class type_mime { |
|
| 15 | +class type_mime |
|
| 16 | +{ |
|
| 16 | 17 | |
| 17 | - public function checkFile($file, array $config) { |
|
| 18 | - if (!class_exists("finfo")) |
|
| 19 | - return "Fileinfo PECL extension is missing."; |
|
| 18 | + public function checkFile($file, array $config) |
|
| 19 | + { |
|
| 20 | + if (!class_exists("finfo")) { |
|
| 21 | + return "Fileinfo PECL extension is missing."; |
|
| 22 | + } |
|
| 20 | 23 | |
| 21 | - if (!isset($config['params'])) |
|
| 22 | - return "Undefined MIME types."; |
|
| 24 | + if (!isset($config['params'])) { |
|
| 25 | + return "Undefined MIME types."; |
|
| 26 | + } |
|
| 23 | 27 | |
| 24 | 28 | $finfo = strlen($config['mime_magic']) |
| 25 | 29 | ? new finfo(FILEINFO_MIME, $config['mime_magic']) |
| 26 | 30 | : new finfo(FILEINFO_MIME); |
| 27 | - if (!$finfo) |
|
| 28 | - return "Opening fileinfo database failed."; |
|
| 31 | + if (!$finfo) { |
|
| 32 | + return "Opening fileinfo database failed."; |
|
| 33 | + } |
|
| 29 | 34 | |
| 30 | 35 | $type = $finfo->file($file); |
| 31 | 36 | $type = substr($type, 0, strrpos($type, ";")); |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** Portugues Brasil localization file for KCFinder |
| 4 | - * author: Alexandre Benegas Ferreira |
|
| 5 | - * country: Brasil |
|
| 6 | - * company website: www.hostcataratas.com.br |
|
| 7 | - * e-mail: [email protected] |
|
| 8 | - */ |
|
| 4 | + * author: Alexandre Benegas Ferreira |
|
| 5 | + * country: Brasil |
|
| 6 | + * company website: www.hostcataratas.com.br |
|
| 7 | + * e-mail: [email protected] |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | $lang = array( |
| 11 | 11 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** German localization file for KCFinder |
| 4 | - * author: Tim Wahrendorff <[email protected]> |
|
| 5 | - */ |
|
| 4 | + * author: Tim Wahrendorff <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | $lang = array( |
| 8 | 8 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** Ukrainian localization file for KCFinder |
| 4 | - * author: Myroslav Dobra |
|
| 5 | - * E-mail: [email protected] |
|
| 6 | - */ |
|
| 4 | + * author: Myroslav Dobra |
|
| 5 | + * E-mail: [email protected] |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | $lang = array( |
| 9 | 9 | |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** This file is part of KCFinder project |
| 4 | - * |
|
| 5 | - * @desc Japanese localization |
|
| 6 | - * @package KCFinder |
|
| 7 | - * @author yama [email protected] |
|
| 8 | - * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 |
|
| 9 | - * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 |
|
| 10 | - */ |
|
| 4 | + * |
|
| 5 | + * @desc Japanese localization |
|
| 6 | + * @package KCFinder |
|
| 7 | + * @author yama [email protected] |
|
| 8 | + * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 |
|
| 9 | + * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | $lang = array( |
| 13 | 13 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** French localization file for KCFinder |
| 4 | - * author: Damien Barrère |
|
| 5 | - * update: Samuel Jobard |
|
| 6 | - */ |
|
| 4 | + * author: Damien Barrère |
|
| 5 | + * update: Samuel Jobard |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | $lang = array( |
| 9 | 9 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** Hebrew localization file for KCFinder |
| 4 | - * Sig: 1f4f9aee887c97f618c19a82040a4dad |
|
| 5 | - */ |
|
| 4 | + * Sig: 1f4f9aee887c97f618c19a82040a4dad |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | $lang = array( |
| 8 | 8 | |