
29.09.2009, 10:19
|
|
Познающий
Регистрация: 27.11.2008
Сообщений: 44
С нами:
9186112
Репутация:
7
|
|
index.php тоже обыскал, но ничего подобного не нашёл(((
привожу начало индекса:
Код:
<?php // ######################## SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // ##################### DEFINE IMPORTANT CONSTANTS ####################### define('CVS_REVISION', '$RCSfile$ - $Revision: 29519 $'); // #################### PRE-CACHE TEMPLATES AND DATA ###################### $phrasegroups = array('cphome'); $specialtemplates = array('maxloggedin', 'acpstats'); // ########################## REQUIRE BACK-END ############################ require_once('./global.php'); // ########################### START MAIN SCRIPT ############################### // ############################## Start build_acpstats_datastore #################################### /** * Stores a cache of various data for ACP Home Quick Stats into the datastore. */ function build_acpstats_datastore() { global $vbulletin, $starttime, $mysqlversion; $data = $vbulletin->db->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "attachment"); $vbulletin->acpstats['attachsize'] = $data['size']; $data = $vbulletin->db->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "customavatar"); $vbulletin->acpstats['avatarsize'] = $data['size']; $data = $vbulletin->db->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "customprofilepic"); $vbulletin->acpstats['profilepicsize'] = $data['size']; $data = $vbulletin->db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE joindate >= $starttime"); $vbulletin->acpstats['newusers'] = $data['count']; $data = $vbulletin->db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE lastactivity >= $starttime"); $vbulletin->acpstats['userstoday'] = $data['count']; $data = $vbulletin->db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= $starttime"); $vbulletin->acpstats['newposts'] = $data['count']; $vbulletin->acpstats['indexsize'] = 0; $vbulletin->acpstats['datasize'] = 0; if ($mysqlversion['version'] >= '3.23') { $vbulletin->db->hide_errors(); $tables = $vbulletin->db->query_write("SHOW TABLE STATUS"); $errno = $vbulletin->db->errno; $vbulletin->db->show_errors(); if (!$errno) { while ($table = $vbulletin->db->fetch_array($tables)) { $vbulletin->acpstats['datasize'] += $table['Data_length']; $vbulletin->acpstats['indexsize'] += $table['Index_length']; } } } if (!$vbulletin->acpstats['indexsize']) { $vbulletin->acpstats['indexsize'] = -1; } if (!$vbulletin->acpstats['datasize']) { $vbulletin->acpstats['datasize'] = -1; } $vbulletin->acpstats['lastupdate'] = TIMENOW; build_datastore('acpstats', serialize($vbulletin->acpstats), 1); } if (empty($_REQUEST['do'])) { log_admin_action(); } // ############################################################################# $vbulletin->input->clean_array_gpc('r', array( 'redirect' => TYPE_STR, 'nojs' => TYPE_BOOL, )); // ################################## REDIRECTOR ############################### if (!empty($vbulletin->GPC['redirect'])) { require_once(DIR . '/includes/functions_login.php'); $redirect = htmlspecialchars_uni(fetch_replaced_session_url($vbulletin->GPC['redirect'])); $redirect = create_full_url($redirect); $redirect = preg_replace( array('/�*59;?/', '/�*3B;?/i', '#;#'), '%3B', $redirect ); $redirect = preg_replace('#&%3B#i', '&', $redirect); print_cp_header($vbphrase['redirecting_please_wait'], '', "<meta http-equiv=\"Refresh\" content=\"0; URL=$redirect\" />"); echo "<p> </p><blockquote><p>$vbphrase[redirecting_please_wait]</p></blockquote>"; print_cp_footer(); exit; } // ############################### LOG OUT OF CP ############################### if ($_REQUEST['do'] == 'cplogout') { vbsetcookie('cpsession', '', false, true, true); $db->query_write("DELETE FROM " . TABLE_PREFIX . "cpsession WHERE userid = " . $vbulletin->userinfo['userid'] . " AND hash = '" . $db->escape_string($vbulletin->GPC[COOKIE_PREFIX . 'cpsession']) . "'"); vbsetcookie('customerid', '', 0); if (!empty($vbulletin->session->vars['sessionurl_js'])) { exec_header_redirect('index.php?' . $vbulletin->session->vars['sessionurl_js']); } else { exec_header_redirect('index.php'); } }
|
|
|