@@ -201,7 +201,7 @@ function logLastDatabaseError()
*/
function displayDebug()
{
- global $context, $scripturl, $boarddir, $modSettings, $boarddir;
+ global $context, $scripturl, $boarddir, $modSettings;
global $db_cache, $db_count, $db_show_debug, $cache_count, $cache_hits, $smcFunc, $txt;
// Add to Settings.php if you want to show the debugging information.
@@ -81,7 +81,7 @@ function ManageBoards()
function ManageBoardsMain()
- global $txt, $context, $cat_tree, $boards, $boardList, $scripturl, $sourcedir, $txt, $smcFunc;
+ global $txt, $context, $cat_tree, $boards, $boardList, $scripturl, $sourcedir, $smcFunc;
loadTemplate('ManageBoards');
@@ -29,7 +29,7 @@ if (!defined('SMF'))
function Memberlist()
- global $scripturl, $txt, $modSettings, $context, $modSettings;
+ global $scripturl, $txt, $modSettings, $context;
// Make sure they can view the memberlist.
isAllowedTo('view_mlist');
@@ -177,7 +177,7 @@ function PackageServers()
function PackageGBrowse()
- global $txt, $boardurl, $context, $scripturl, $boarddir, $sourcedir, $forum_version, $context, $smcFunc;
+ global $txt, $boardurl, $context, $scripturl, $boarddir, $sourcedir, $forum_version, $smcFunc;
if (isset($_GET['server']))
@@ -182,7 +182,7 @@ function loadProfileFields($force_reload = false)
'log_change' => true,
'permission' => 'profile_password',
'input_validate' => create_function('&$value', '
- global $context, $old_profile, $context, $profile_vars, $sourcedir, $modSettings;
+ global $context, $old_profile, $profile_vars, $sourcedir, $modSettings;
if (strtolower($value) == strtolower($old_profile[\'email_address\']))
return false;
@@ -26,7 +26,7 @@ if (!defined('SMF'))
function Register($reg_errors = array())
global $txt, $boarddir, $context, $modSettings, $user_info;
- global $language, $scripturl, $smcFunc, $sourcedir, $smcFunc, $cur_profile;
+ global $language, $scripturl, $smcFunc, $sourcedir, $cur_profile;
// Is this an incoming AJAX check?
if (isset($_GET['sa']) && $_GET['sa'] == 'usernamecheck')
@@ -24,7 +24,7 @@ if (!defined('SMF'))
function createMenu($menuData, $menuOptions = array())
- global $context, $settings, $options, $txt, $modSettings, $scripturl, $smcFunc, $user_info, $sourcedir, $options;
+ global $context, $settings, $options, $txt, $modSettings, $scripturl, $smcFunc, $user_info, $sourcedir;
/* Note menuData is array of form:
@@ -2628,7 +2628,7 @@ function template_issueWarning()
// Template to show for deleting a users account - now with added delete post capability!
function template_deleteAccount()
- global $context, $settings, $options, $scripturl, $txt, $scripturl;
+ global $context, $settings, $options, $scripturl, $txt;
// The main containing header.
echo '