@@ -92,6 +92,9 @@ |
||
| 92 | 92 | var $_fd; |
| 93 | 93 | var $_length; |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $filename |
|
| 97 | + */ |
|
| 95 | 98 | public function __construct($filename) { |
| 96 | 99 | if (file_exists($filename)) { |
| 97 | 100 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * Get image type if it is one of: .gif, .jpg or .png |
| 62 | 62 | * |
| 63 | 63 | * @param string $file Full path to file |
| 64 | - * @return string|boolean |
|
| 64 | + * @return string|false |
|
| 65 | 65 | */ |
| 66 | 66 | static public function type($file) { |
| 67 | 67 | $type = getimagesize($file); |
@@ -211,6 +211,9 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | /* Mailhide related code */ |
| 213 | 213 | |
| 214 | +/** |
|
| 215 | + * @param string $ky |
|
| 216 | + */ |
|
| 214 | 217 | function _recaptcha_aes_encrypt($val,$ky) { |
| 215 | 218 | if (! function_exists ("mcrypt_encrypt")) { |
| 216 | 219 | die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); |
@@ -222,6 +225,9 @@ discard block |
||
| 222 | 225 | } |
| 223 | 226 | |
| 224 | 227 | |
| 228 | +/** |
|
| 229 | + * @param null|string $x |
|
| 230 | + */ |
|
| 225 | 231 | function _recaptcha_mailhide_urlbase64($x) { |
| 226 | 232 | return strtr(base64_encode ($x), '+/', '-_'); |
| 227 | 233 | } |
@@ -9,10 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | defined('PH7') or die('Restricted access'); |
| 11 | 11 | |
| 12 | -use |
|
| 13 | -PH7\Framework\Layout\Html\Design, |
|
| 14 | -PH7\Framework\Mvc\Router\Uri, |
|
| 15 | -PH7\Framework\Url\Header; |
|
| 12 | +use PH7\Framework\Layout\Html\Design; |
|
| 13 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 14 | +use PH7\Framework\Url\Header; |
|
| 16 | 15 | |
| 17 | 16 | class Permission extends PermissionCore |
| 18 | 17 | { |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use PH7\Framework\Mvc\Router\Uri, PH7\Framework\Url\Header; |
|
| 10 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 11 | +use PH7\Framework\Url\Header; |
|
| 11 | 12 | |
| 12 | 13 | class AdminController extends MainController |
| 13 | 14 | { |
@@ -9,10 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | defined('PH7') or die('Restricted access'); |
| 11 | 11 | |
| 12 | -use |
|
| 13 | -PH7\Framework\Layout\Html\Design, |
|
| 14 | -PH7\Framework\Mvc\Router\Uri, |
|
| 15 | -PH7\Framework\Url\Header; |
|
| 12 | +use PH7\Framework\Layout\Html\Design; |
|
| 13 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 14 | +use PH7\Framework\Url\Header; |
|
| 16 | 15 | |
| 17 | 16 | class Permission extends PermissionCore |
| 18 | 17 | { |
@@ -9,10 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | defined('PH7') or exit('Restricted access'); |
| 11 | 11 | |
| 12 | -use |
|
| 13 | -PH7\Framework\Layout\Html\Design, |
|
| 14 | -PH7\Framework\Mvc\Router\Uri, |
|
| 15 | -PH7\Framework\Url\Header; |
|
| 12 | +use PH7\Framework\Layout\Html\Design; |
|
| 13 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 14 | +use PH7\Framework\Url\Header; |
|
| 16 | 15 | |
| 17 | 16 | class Permission extends PermissionCore |
| 18 | 17 | { |
@@ -8,14 +8,13 @@ |
||
| 8 | 8 | namespace PH7; |
| 9 | 9 | defined('PH7') or exit('Restricted access'); |
| 10 | 10 | |
| 11 | -use |
|
| 12 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
| 13 | -PH7\Framework\Image\Image, |
|
| 14 | -PH7\Framework\Security\Moderation\Filter, |
|
| 15 | -PH7\Framework\Util\Various, |
|
| 16 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 17 | -PH7\Framework\Mvc\Router\Uri, |
|
| 18 | -PH7\Framework\Url\Header; |
|
| 11 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
| 12 | +use PH7\Framework\Image\Image; |
|
| 13 | +use PH7\Framework\Security\Moderation\Filter; |
|
| 14 | +use PH7\Framework\Util\Various; |
|
| 15 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 16 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 17 | +use PH7\Framework\Url\Header; |
|
| 19 | 18 | |
| 20 | 19 | class AlbumFormProcess extends Form |
| 21 | 20 | { |
@@ -9,10 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | defined('PH7') or die('Restricted access'); |
| 11 | 11 | |
| 12 | -use |
|
| 13 | -PH7\Framework\Layout\Html\Design, |
|
| 14 | -PH7\Framework\Mvc\Router\Uri, |
|
| 15 | -PH7\Framework\Url\Header; |
|
| 12 | +use PH7\Framework\Layout\Html\Design; |
|
| 13 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 14 | +use PH7\Framework\Url\Header; |
|
| 16 | 15 | |
| 17 | 16 | class Permission extends PermissionCore |
| 18 | 17 | { |