@@ -13,10 +13,9 @@ |
||
| 13 | 13 | namespace PH7\Framework\Url; |
| 14 | 14 | defined('PH7') or exit('Restricted access'); |
| 15 | 15 | |
| 16 | -use |
|
| 17 | -PH7\Framework\Layout\Html\Design, |
|
| 18 | -PH7\Framework\Http\Http, |
|
| 19 | -PH7\Framework\Mvc\Request\Http as HttpRequest; |
|
| 16 | +use PH7\Framework\Layout\Html\Design; |
|
| 17 | +use PH7\Framework\Http\Http; |
|
| 18 | +use PH7\Framework\Mvc\Request\Http as HttpRequest; |
|
| 20 | 19 | |
| 21 | 20 | class Header |
| 22 | 21 | { |
@@ -13,7 +13,8 @@ |
||
| 13 | 13 | namespace PH7\Framework\Video; |
| 14 | 14 | defined('PH7') or exit('Restricted access'); |
| 15 | 15 | |
| 16 | -use PH7\Framework\Http\Http, PH7\Framework\Config\Config; |
|
| 16 | +use PH7\Framework\Http\Http; |
|
| 17 | +use PH7\Framework\Config\Config; |
|
| 17 | 18 | |
| 18 | 19 | class Api |
| 19 | 20 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @param string $sUrl |
| 25 | - * @return mixed (string | boolean) Returns the embed video URL if found, FALSE otherwise. |
|
| 25 | + * @return false|string (string | boolean) Returns the embed video URL if found, FALSE otherwise. |
|
| 26 | 26 | */ |
| 27 | 27 | public function getVideo($sUrl) |
| 28 | 28 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * @param string $sUrl |
| 101 | - * @return mixed (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise. |
|
| 101 | + * @return string|false (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise. |
|
| 102 | 102 | */ |
| 103 | 103 | public function getVideoId($sUrl) |
| 104 | 104 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @param string $sUrl |
| 28 | - * @return mixed (string | boolean) Returns the embed video URL if found, FALSE otherwise. |
|
| 28 | + * @return false|string (string | boolean) Returns the embed video URL if found, FALSE otherwise. |
|
| 29 | 29 | */ |
| 30 | 30 | public function getVideo($sUrl) |
| 31 | 31 | { |
@@ -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 | { |