I've been battling with this all evening. I just overwrote the existing files on my server and suddenly was only seeing the directory when I logged into the site. I have rolled back and reinstalled, and rolled back again, but no joy. This is the current error I'm getting when I try to log into the forum:
Any thoughts will be much appreciated!
TIA
Gillian
[CODE]=========================================================*/ ?>ry_write(" REPLACE INTO " . TABLE_PREFIX . "datastore (title, data, unserialize) VALUES ('" . $vbulletin->db->escape_string(trim($title)) . "', '" . $vbulletin->db->escape_string(trim($data)) . "', " . intval($unserialize) . ") "); if (method_exists($vbulletin->datastore, 'build')) { $vbulletin->datastore->build($title, $data); } } } // ############################################################################# /** * Updates the LoadAverage DataStore */ function update_loadavg() { global $vbulletin; if (!isset($vbulletin->loadcache)) { $vbulletin->loadcache = array(); } if ($stats = @exec('uptime 2>&1') AND trim($stats) != '' AND preg_match('#: ([\d.,]+),?\s+([\d.,]+),?\s+([\d.,]+)$#', $stats, $regs)) { $vbulletin->loadcache['loadavg'] = $regs[2]; } else if (@file_exists('/proc/loadavg') AND $filestuff = @file_get_contents('/proc/loadavg')) { $loadavg = explode(' ', $filestuff); $vbulletin->loadcache['loadavg'] = $loadavg[1]; } else { $vbulletin->loadcache['loadavg'] = 0; } $vbulletin->loadcache['lastcheck'] = TIMENOW; build_datastore('loadcache', serialize($vbulletin->loadcache), 1); } // ############################################################################# /** * Escapes quotes in strings destined for Javascript * * @param string String to be prepared for Javascript * @param string Type of quote (single or double quote) * * @return string */ function addslashes_js($text, $quotetype = "'") { if ($quotetype == "'") { // single quotes return str_replace(array('\\', '\'', "\n", "\r"), array('\\\\', "\\'","\\n", "\\r"), $text); } else { // double quotes return str_replace(array('\\', '"', "\n", "\r"), array('\\\\', "\\\"","\\n", "\\r"), $text); } } // ############################################################################# /** * Returns the provided string with occurences of replacement variables replaced with their appropriate replacement values * * @param string Text containing replacement variables * @param array Override global $style if specified * * @return string */ function process_replacement_vars($newtext, $paramstyle = false) { global $vbulletin, $stylevar; static $replacementvars; if (connection_status()) { exit; } if (is_array($paramstyle)) { $style =& $paramstyle; } else { $style =& $GLOBALS['style']; } ($hook = vBulletinHook::fetch_hook('replacement_vars')) ? eval($hook) : false; // do vBulletin 3 replacement variables if (!empty($style['replacements'])) { if (!isset($replacementvars["$style[styleid]"])) { $replacementvars["$style[styleid]"] = unserialize($style['replacements']); } if (is_array($replacementvars["$style[styleid]"]) AND !empty($replacementvars["$style[styleid]"])) { $newtext = preg_replace(array_keys($replacementvars["$style[styleid]"]), $replacementvars["$style[styleid]"], $newtext); } } return $newtext; } // ############################################################################# /** * Finishes off the current page (using templates), prints it out to the browser and halts execution * * @param string The HTML of the page to be printed * @param boolean Send the content length header? */ function print_output($vartext, $sendheader = true) { global $pagestarttime, $querytime, $vbulletin, $show; global $vbphrase, $stylevar; if ($vbulletin->options['addtemplatename']) { if ($doctypepos = @strpos($vartext, $stylevar['htmldoctype'])) { $comment = substr($vartext, 0, $doctypepos); $vartext = substr($vartext, $doctypepos + strlen($stylevar['htmldoctype'])); $vartext = $stylevar['htmldoctype'] . "\n" . $comment . $vartext; } } if (!empty($vbulletin->db->explain) OR $vbulletin->debug) { $pageendtime = microtime(); $starttime = explode(' ', $pagestarttime); $endtime = explode(' ', $pageendtime); $totaltime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1]; $vartext .= ""; } // set cookies for displayed notices if ($show['notices'] AND !defined('NOPMPOPUP') AND !empty($vbulletin->np_notices_displayed) AND is_array($vbulletin->np_notices_displayed)) { $np_notices_cookie = $_COOKIE[COOKIE_PREFIX . 'np_notices_di($times)" . ($_TEMPLATEQUERIES["$template_name"] ? "$template_name" : $template_name); } } else { $tempusagecache = array(); } $hook_usage = ''; foreach (vBulletinHook::fetch_hookusage() AS $hook_name => $has_code) { $hook_usage .= '<li class="smallfont' . (!$has_code ? ' shade' : '') . '">' . $hook_name . ''; } if (!$hook_usage) { $hook_usage = '<li class="smallfont"> '; } $phrase_groups = ''; sort($GLOBALS['phrasegroups']); foreach ($GLOBALS['phrasegroups'] AS $phrase_group) { $phrase_groups .= '<li class="smallfont">' . $phrase_group . ''; } if (!$phrase_groups) { $phrase_groups = '<li class="smallfont"> '; } $debughtml = " X vBulletin {$vbulletin->options[templateversion]} Debug Information
Any thoughts will be much appreciated!
TIA
Gillian
[CODE]=========================================================*/ ?>ry_write(" REPLACE INTO " . TABLE_PREFIX . "datastore (title, data, unserialize) VALUES ('" . $vbulletin->db->escape_string(trim($title)) . "', '" . $vbulletin->db->escape_string(trim($data)) . "', " . intval($unserialize) . ") "); if (method_exists($vbulletin->datastore, 'build')) { $vbulletin->datastore->build($title, $data); } } } // ############################################################################# /** * Updates the LoadAverage DataStore */ function update_loadavg() { global $vbulletin; if (!isset($vbulletin->loadcache)) { $vbulletin->loadcache = array(); } if ($stats = @exec('uptime 2>&1') AND trim($stats) != '' AND preg_match('#: ([\d.,]+),?\s+([\d.,]+),?\s+([\d.,]+)$#', $stats, $regs)) { $vbulletin->loadcache['loadavg'] = $regs[2]; } else if (@file_exists('/proc/loadavg') AND $filestuff = @file_get_contents('/proc/loadavg')) { $loadavg = explode(' ', $filestuff); $vbulletin->loadcache['loadavg'] = $loadavg[1]; } else { $vbulletin->loadcache['loadavg'] = 0; } $vbulletin->loadcache['lastcheck'] = TIMENOW; build_datastore('loadcache', serialize($vbulletin->loadcache), 1); } // ############################################################################# /** * Escapes quotes in strings destined for Javascript * * @param string String to be prepared for Javascript * @param string Type of quote (single or double quote) * * @return string */ function addslashes_js($text, $quotetype = "'") { if ($quotetype == "'") { // single quotes return str_replace(array('\\', '\'', "\n", "\r"), array('\\\\', "\\'","\\n", "\\r"), $text); } else { // double quotes return str_replace(array('\\', '"', "\n", "\r"), array('\\\\', "\\\"","\\n", "\\r"), $text); } } // ############################################################################# /** * Returns the provided string with occurences of replacement variables replaced with their appropriate replacement values * * @param string Text containing replacement variables * @param array Override global $style if specified * * @return string */ function process_replacement_vars($newtext, $paramstyle = false) { global $vbulletin, $stylevar; static $replacementvars; if (connection_status()) { exit; } if (is_array($paramstyle)) { $style =& $paramstyle; } else { $style =& $GLOBALS['style']; } ($hook = vBulletinHook::fetch_hook('replacement_vars')) ? eval($hook) : false; // do vBulletin 3 replacement variables if (!empty($style['replacements'])) { if (!isset($replacementvars["$style[styleid]"])) { $replacementvars["$style[styleid]"] = unserialize($style['replacements']); } if (is_array($replacementvars["$style[styleid]"]) AND !empty($replacementvars["$style[styleid]"])) { $newtext = preg_replace(array_keys($replacementvars["$style[styleid]"]), $replacementvars["$style[styleid]"], $newtext); } } return $newtext; } // ############################################################################# /** * Finishes off the current page (using templates), prints it out to the browser and halts execution * * @param string The HTML of the page to be printed * @param boolean Send the content length header? */ function print_output($vartext, $sendheader = true) { global $pagestarttime, $querytime, $vbulletin, $show; global $vbphrase, $stylevar; if ($vbulletin->options['addtemplatename']) { if ($doctypepos = @strpos($vartext, $stylevar['htmldoctype'])) { $comment = substr($vartext, 0, $doctypepos); $vartext = substr($vartext, $doctypepos + strlen($stylevar['htmldoctype'])); $vartext = $stylevar['htmldoctype'] . "\n" . $comment . $vartext; } } if (!empty($vbulletin->db->explain) OR $vbulletin->debug) { $pageendtime = microtime(); $starttime = explode(' ', $pagestarttime); $endtime = explode(' ', $pageendtime); $totaltime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1]; $vartext .= ""; } // set cookies for displayed notices if ($show['notices'] AND !defined('NOPMPOPUP') AND !empty($vbulletin->np_notices_displayed) AND is_array($vbulletin->np_notices_displayed)) { $np_notices_cookie = $_COOKIE[COOKIE_PREFIX . 'np_notices_di($times)" . ($_TEMPLATEQUERIES["$template_name"] ? "$template_name" : $template_name); } } else { $tempusagecache = array(); } $hook_usage = ''; foreach (vBulletinHook::fetch_hookusage() AS $hook_name => $has_code) { $hook_usage .= '<li class="smallfont' . (!$has_code ? ' shade' : '') . '">' . $hook_name . ''; } if (!$hook_usage) { $hook_usage = '<li class="smallfont"> '; } $phrase_groups = ''; sort($GLOBALS['phrasegroups']); foreach ($GLOBALS['phrasegroups'] AS $phrase_group) { $phrase_groups .= '<li class="smallfont">' . $phrase_group . ''; } if (!$phrase_groups) { $phrase_groups = '<li class="smallfont"> '; } $debughtml = " X vBulletin {$vbulletin->options[templateversion]} Debug Information
Comment