Professional Documents
Culture Documents
php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 5.0.5 - Licence Number VBFZ48KZZQ
|| # ---------------------------------------------------------------- # ||
|| # Copyright 2000-2013 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
global $vbphrase, $phrasegroups, $vbulletin, $specialtemplates;
// identify where we are
define('VB_AREA', 'AdminCP');
define('VB_ENTRY', 1);
define('IN_CONTROL_PANEL', true);
if (!isset($phrasegroups) OR !is_array($phrasegroups))
{
$phrasegroups = array('global');
}
if (!in_array('global', $phrasegroups))
{
$phrasegroups[] = 'global';
}
$phrasegroups[] = 'cpglobal';
if (!isset($specialtemplates) OR !is_array($specialtemplates))
{
$specialtemplates = array('mailqueue');
}
// ###################### Start functions #######################
chdir('./../');
$cwd = getcwd();
if(is_link($cwd))
{
$cwd = dirname(dirname($_SERVER["SCRIPT_FILENAME"]));
}
else if (empty($cwd))
{
$cwd = '.';
}
define('CWD', $cwd);
if (!defined('VB_API'))
{
define('VB_API', false);
}
require_once(CWD . '/includes/init.php');
require_once(DIR . '/includes/adminfunctions.php');
vB_Language::preloadPhraseGroups($phrasegroups);
//Force load of the user information
vB::getCurrentSession()->loadPhraseGroups();
print_stop_message2(array('security_alert_x_still_exists', 'ins
tall.php'));
}
else if (file_exists(DIR . '/install/makeconfig.php') == true)
{
if ($_SERVER['REQUEST_METHOD'] == 'GET')
{
$continue = $vbulletin->scriptpath;
}
print_stop_message2(array('security_alert_x_still_exists', 'mak
econfig.php'));
}
else if (file_exists(DIR . '/install/tools.php'))
{
if ($_SERVER['REQUEST_METHOD'] == 'GET')
{
$continue = $vbulletin->scriptpath;
}
print_stop_message2(array('security_alert_tools_still_exists_in_
x', 'install'));
}
else if (file_exists(DIR . '/' . $vb5_config['Misc']['admincpdir'] . '/t
ools.php'))
{
if ($_SERVER['REQUEST_METHOD'] == 'GET')
{
$continue = $vbulletin->scriptpath;
}
print_stop_message2(array('security_alert_tools_still_exists_in_
x', $vb5_config['Misc']['admincpdir']));
}
else if (file_exists(DIR . '/' . $vb5_config['Misc']['modcpdir'] . '/too
ls.php'))
{
if ($_SERVER['REQUEST_METHOD'] == 'GET')
{
$continue = $vbulletin->scriptpath;
}
print_stop_message2(array('security_alert_tools_still_exists_in_
x', $vb5_config['Misc']['modcpdir']),NULL,array(),NULL, $continue);
}
}
// ############################################ Start Login Check ##############
######################
$vbulletin->input->clean_array_gpc('p', array(
'adminhash' => vB_Cleaner::TYPE_STR,
'ajax'
=> vB_Cleaner::TYPE_BOOL,
));
assert_cp_sessionhash();
if (!CP_SESSIONHASH OR $checkpwd OR ($vbulletin->options['timeoutcontrolpanel']
AND !vB::getCurrentSession()->get('loggedin')))
{
// #####################################################################
########
// Put in some auto-repair ;)
$check = array();
if (!$check['usergroupcache'] OR !$check['forumcache'])
{
build_channel_permissions();
}
if (!$check['noticecache'])
{
build_datastore('noticecache', '', 1);
}
if (!$check['loadcache'])
{
update_loadavg();
}
if (!$check['prefixcache'])
{
require_once(DIR . '/includes/adminfunctions_prefix.php');
build_prefix_datastore();
}
// Legacy Hook 'admin_global_datastore_check' Removed //
// end auto-repair
// #####################################################################
########
print_cp_login();
}
else if ($_POST['do'] AND ADMINHASH != $vbulletin->GPC['adminhash'])
{
print_cp_login(true);
}
if (file_exists(DIR . '/includes/version_vbulletin.php'))
{
include_once(DIR . '/includes/version_vbulletin.php');
}
if (defined('FILE_VERSION_VBULLETIN') AND FILE_VERSION_VBULLETIN !== '')
{
define('ADMIN_VERSION_VBULLETIN', FILE_VERSION_VBULLETIN);
}
else
{
define('ADMIN_VERSION_VBULLETIN', $vbulletin->options['templateversion']
);
}
// Legacy Hook 'admin_global' Removed //
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:34, Sat Sep 28th 2013
|| # CVS: $RCSfile$ - $Revision: 77139 $
|| ####################################################################
\*======================================================================*/