@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param $name |
|
66 | + * @param string $name |
|
67 | 67 | * @param null $default |
68 | 68 | * |
69 | 69 | * @return mixed|null |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * @param $name |
|
77 | + * @param string $name |
|
78 | 78 | * |
79 | 79 | * @return bool |
80 | 80 | */ |
@@ -43,9 +43,9 @@ |
||
43 | 43 | mb_regex_encoding('UTF-8'); |
44 | 44 | |
45 | 45 | // set options |
46 | -require_once __DIR__.'/../config2/settings-dist.inc.php'; |
|
47 | -require_once __DIR__.'/../config2/settings.inc.php'; |
|
48 | -require_once __DIR__.'/../config2/verify-settings.inc.php'; |
|
46 | +require_once __DIR__ . '/../config2/settings-dist.inc.php'; |
|
47 | +require_once __DIR__ . '/../config2/settings.inc.php'; |
|
48 | +require_once __DIR__ . '/../config2/verify-settings.inc.php'; |
|
49 | 49 | |
50 | 50 | foreach ($opt['page']['banned_user_agents'] as $ua) { |
51 | 51 | if (strpos($useragent, $ua) !== false) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | // TODO fix the following if statement, seems corrupted |
51 | 51 | if (strtolower( |
52 | 52 | substr( |
53 | - 'http' + strstr($_SERVER['REFERER'], '://'), |
|
53 | + 'http' +strstr($_SERVER['REFERER'], '://'), |
|
54 | 54 | 0, |
55 | 55 | strlen($opt['page']['absolute_http_url']) |
56 | 56 | ) |