|
@@ -778,8 +778,6 @@ function createToken($action, $type = 'post')
|
|
|
*/
|
|
|
function validateToken($action, $type = 'post', $reset = true)
|
|
|
{
|
|
|
- global $modSettings, $db_show_debug;
|
|
|
-
|
|
|
$type = $type == 'get' || $type == 'request' ? $type : 'post';
|
|
|
|
|
|
|
|
@@ -912,7 +910,7 @@ function checkSubmitOnce($action, $is_fatal = true)
|
|
|
*/
|
|
|
function allowedTo($permission, $boards = null)
|
|
|
{
|
|
|
- global $user_info, $modSettings, $smcFunc;
|
|
|
+ global $user_info, $smcFunc;
|
|
|
|
|
|
|
|
|
if (empty($permission))
|
|
@@ -1048,7 +1046,7 @@ function isAllowedTo($permission, $boards = null)
|
|
|
*/
|
|
|
function boardsAllowedTo($permissions, $check_access = true, $simple = true)
|
|
|
{
|
|
|
- global $user_info, $modSettings, $smcFunc;
|
|
|
+ global $user_info, $smcFunc;
|
|
|
|
|
|
|
|
|
if (!is_array($permissions))
|
|
@@ -1154,7 +1152,7 @@ function boardsAllowedTo($permissions, $check_access = true, $simple = true)
|
|
|
*/
|
|
|
function showEmailAddress($userProfile_hideEmail, $userProfile_id)
|
|
|
{
|
|
|
- global $modSettings, $user_info;
|
|
|
+ global $user_info;
|
|
|
|
|
|
|
|
|
|
|
@@ -1162,7 +1160,6 @@ function showEmailAddress($userProfile_hideEmail, $userProfile_id)
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
if ($user_info['is_guest'] || isset($_SESSION['ban']['cannot_post']))
|
|
@@ -1184,7 +1181,7 @@ function showEmailAddress($userProfile_hideEmail, $userProfile_id)
|
|
|
*/
|
|
|
function spamProtection($error_type)
|
|
|
{
|
|
|
- global $modSettings, $txt, $user_info, $smcFunc;
|
|
|
+ global $modSettings, $user_info, $smcFunc;
|
|
|
|
|
|
|
|
|
$timeOverrides = array(
|