|
Page 1 of 2
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
Multiple Errors After Moving To New Host
Hi Guys,
I have a website which i have just moved to a new webhost , and i am getting a shed load of errors, take a look
Click here to view
Anyone got any ideas as i am stumped, i have copied all files over so dont understand what i have done wrong .
Edited by Chaotic, Tue 13 Jan, 2009 00:27: Made topic title more descriptive of the actual problem. :) |
#1 Mon 12 Jan, 2009 18:38 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
redrumm101
Joined: January 2009
Posts: 38
|
Re: URGENT HELP NEEDED
Well for starters it looks like your forgot to set you chmod on your cache folder it should be set at 777
Right click on your cache folder and click properties make chmod 777 in your ftp program
Make sure the rest of your folders are set correctly
Second : Looks like you are trying to send out multiple headers.
Warning: Cannot modify header information - headers already sent by (output started at /var/www/ScotBird_Forum_V1/includes/db/mysql4.php:704) in /var/www/ScotBird_Forum_V1/includes/sessions.php on line 344
|
#2 Mon 12 Jan, 2009 19:22 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
Re: URGENT HELP NEEDED
Done that, looks a bit better but still got an issue
|
#3 Mon 12 Jan, 2009 19:32 |
|
redrumm101
Joined: January 2009
Posts: 38
|
Re: URGENT HELP NEEDED
Yeh its that multiple header info
that spry you created may have something to do with it
http://www.phpbb.com/community/viewtopic.php?f=1&t=1381045
Try and comment this out of that file that you created for the spry
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
|
#4 Mon 12 Jan, 2009 19:42 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
Re: URGENT HELP NEEDED
spry no longer in my site, found they were too much of a pain
|
#5 Mon 12 Jan, 2009 19:47 |
|
redrumm101
Joined: January 2009
Posts: 38
|
Re: URGENT HELP NEEDED
Put the code up for your common.php and your page_header.php.. Make sure there is no info in there you dont want public
The "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags (<?php . . . ?>).
Last edited by redrumm101 on Mon 12 Jan, 2009 20:00; edited 1 time in total |
#6 Mon 12 Jan, 2009 19:51 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
Re: URGENT HELP NEEDED
common.php
<?php
/***************************************************************************
* common.php
* -------------------
* begin : Saturday, Feb 23, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: common.php,v 1.74.2.17 2005/02/21 19:29:30 acydburn Exp $
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
error_reporting(E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
// The following code (unsetting globals)
// Thanks to Matt Kavanagh and Stefan Esser for providing feedback as well as patch files
// PHP5 with register_long_arrays off?
if ( (@phpversion() >= '5.0.0') && (!@ini_get('register_long_arrays') || (@ini_get('register_long_arrays') == '0') || (strtolower(@ini_get('register_long_arrays')) == 'off')) )
{
$HTTP_POST_VARS = $_POST;
$HTTP_GET_VARS = $_GET;
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_COOKIE_VARS = $_COOKIE;
$HTTP_ENV_VARS = $_ENV;
$HTTP_POST_FILES = $_FILES;
// _SESSION is the only superglobal which is conditionally set
if (isset($_SESSION))
{
$HTTP_SESSION_VARS = $_SESSION;
}
}
// CrackerTracker v5.x
// Uncomment the following define to disable CT GET and POST parsing.
//define('MG_KILL_CTRACK', true);
include($phpbb_root_path . 'ctracker/engines/ct_security.' . $phpEx);
// CrackerTracker v5.x
// Protect against GLOBALS tricks
if (isset($HTTP_POST_VARS['GLOBALS']) || isset($HTTP_POST_FILES['GLOBALS']) || isset($HTTP_GET_VARS['GLOBALS']) || isset($HTTP_COOKIE_VARS['GLOBALS']))
{
die('Hacking attempt');
}
// Protect against HTTP_SESSION_VARS tricks
if (isset($HTTP_SESSION_VARS) && !is_array($HTTP_SESSION_VARS))
{
die('Hacking attempt');
}
if ( (@ini_get('register_globals') == '1') || (strtolower(@ini_get('register_globals')) == 'on') )
{
// PHP4+ path
$not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES', 'phpEx', 'phpbb_root_path');
// Not only will array_merge give a warning if a parameter
// is not an array, it will actually fail. So we check if
// HTTP_SESSION_VARS has been initialised.
if (!isset($HTTP_SESSION_VARS) || !is_array($HTTP_SESSION_VARS))
{
$HTTP_SESSION_VARS = array();
}
// Merge all into one extremely huge array; unset this later
$input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);
unset($input['input']);
unset($input['not_unset']);
while (list($var,) = @each($input))
{
if (in_array($var, $not_unset))
{
die('Hacking attempt!');
}
unset($$var);
}
unset($input);
}
//
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if( !get_magic_quotes_gpc() )
{
if( is_array($_GET) )
{
while( list($k, $v) = each($_GET) )
{
if( is_array($_GET[$k]) )
{
while( list($k2, $v2) = each($_GET[$k]) )
{
$_GET[$k][$k2] = addslashes($v2);
}
@reset($_GET[$k]);
}
else
{
$_GET[$k] = addslashes($v);
}
}
@reset($_GET);
}
if( is_array($_POST) )
{
while( list($k, $v) = each($_POST) )
{
if( is_array($_POST[$k]) )
{
while( list($k2, $v2) = each($_POST[$k]) )
{
$_POST[$k][$k2] = addslashes($v2);
}
@reset($_POST[$k]);
}
else
{
$_POST[$k] = addslashes($v);
}
}
@reset($_POST);
}
if( is_array($HTTP_COOKIE_VARS) )
{
while( list($k, $v) = each($HTTP_COOKIE_VARS) )
{
if( is_array($HTTP_COOKIE_VARS[$k]) )
{
while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) )
{
$HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
}
@reset($HTTP_COOKIE_VARS[$k]);
}
else
{
$HTTP_COOKIE_VARS[$k] = addslashes($v);
}
}
@reset($HTTP_COOKIE_VARS);
}
}
//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
$board_config = array();
$xs_news_config = array();
$userdata = array();
$theme = array();
$images = array();
$lang = array();
$nav_links = array();
$dss_seeded = false;
$pc_dateTime = array();
$gen_simple_header = false;
//<!-- BEGIN Unread Post Information to Database Mod -->
$unread = array();
//<!-- END Unread Post Information to Database Mod -->
include($phpbb_root_path . 'config.' . $phpEx);
if( !defined('PHPBB_INSTALLED') )
{
header('Location: ' . $phpbb_root_path . 'install/install.' . $phpEx);
exit;
}
include($phpbb_root_path . 'includes/constants.' . $phpEx);
if ($non_xs)
{
include($phpbb_root_path . 'includes/phpbb_template.' . $phpEx);
}
else
{
include($phpbb_root_path . 'includes/template.' . $phpEx);
}
include($phpbb_root_path . 'includes/sessions.' . $phpEx);
include($phpbb_root_path . 'includes/auth.' . $phpEx);
include($phpbb_root_path . 'includes/functions_categories_hierarchy.' . $phpEx);
include($phpbb_root_path . 'includes/functions.' . $phpEx);
include($phpbb_root_path . 'includes/db.' . $phpEx);
// MG Cash MOD For IP - BEGIN
if ( defined('CASH_MOD') && defined('IN_CASHMOD') )
{
include($phpbb_root_path . 'includes/functions_cash.' . $phpEx);
}
// MG Cash MOD For IP - END
// We do not need this any longer, unset for safety purposes
unset($dbpasswd);
//
// Obtain and encode users IP
//
// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as
// private range IP's appearing instead of the guilty routable IP, tough, don't
// even bother complaining ... go scream and shout at the idiots out there who feel
// "clever" is doing harm rather than good ... karma is a great thing ... :)
//
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
$user_ip = encode_ip($client_ip);
// CrackerTracker v5.x
include($phpbb_root_path . 'ctracker/engines/ct_varsetter.' . $phpEx);
include($phpbb_root_path . 'ctracker/engines/ct_ipblocker.' . $phpEx);
// CrackerTracker v5.x
// Start Advanced IP Tools Pack MOD
$user_agent = ( !empty($HTTP_SERVER_VARS['HTTP_USER_AGENT']) ? trim($HTTP_SERVER_VARS['HTTP_USER_AGENT']) : ( !empty($HTTP_ENV_VARS['HTTP_USER_AGENT']) ? trim($HTTP_ENV_VARS['HTTP_USER_AGENT']) : trim(getenv('HTTP_USER_AGENT')) ) );
$user_agent = addslashes($user_agent);
// End Advanced IP Tools Pack MOD
// Setup forum wide options, if this fails then we output a CRITICAL_ERROR since basic forum information is not available
//BEGIN Getting Board Configuration
$sql = "SELECT * FROM " . CONFIG_TABLE;
if (CACHE_CFG == true)
{
if( !($result = $db->sql_query($sql, false, 'config_')) )
{
message_die(CRITICAL_ERROR, 'Could not query config information', '', __LINE__, __FILE__, $sql);
}
}
else
{
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not query config information', '', __LINE__, __FILE__, $sql);
}
}
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
$db->sql_freeresult($result);
//END Getting Board Configuration
include($phpbb_root_path . ATTACH_MOD_PATH . 'attachment_mod.' . $phpEx);
//<!-- BEGIN Unread Post Information to Database Mod -->
include($phpbb_root_path . 'includes/functions_upi2db.' . $phpEx);
//<!-- END Unread Post Information to Database Mod -->
if ($board_config['disable_referrers'] == false)
{
include_once($phpbb_root_path . 'includes/functions_referrers.' . $phpEx);
}
// MG Logs - BEGIN
if ($board_config['mg_log_actions'] == true)
{
include($phpbb_root_path . 'includes/functions_mg_log.' . $phpEx);
}
// MG Logs - END
// Mighty Gorgon - Change Lang/Style - Begin
if ( isset($_GET[LANG_URL]) || isset($_POST[LANG_URL]) )
{
$language = urldecode((isset($_GET[LANG_URL])) ? $_GET[LANG_URL] : $_POST[LANG_URL]);
$language = strtr($language, array_flip(get_html_translation_table(HTML_ENTITIES)));
$language = htmlspecialchars($language);
$board_config['default_lang'] = $language;
setcookie($board_config['cookie_name'] . '_lang', $board_config['default_lang'] , (time() + 86400), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
else
{
if (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_lang']) )
{
$board_config['default_lang'] = $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_lang'];
}
}
if ( isset($_GET[STYLE_URL]) || isset($_POST[STYLE_URL]) )
{
$old_style = $board_config['default_style'];
$board_config['default_style'] = urldecode((isset($_GET[STYLE_URL])) ? intval($_GET[STYLE_URL]) : intval($_POST[STYLE_URL]));
$board_config['default_style'] = (check_style_exists($board_config['default_style']) == false) ? $old_style : $board_config['default_style'];
setcookie($board_config['cookie_name'] . '_style', $board_config['default_style'] , (time() + 86400), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
else
{
if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_style']) && (check_style_exists($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_style']) != false) )
{
$board_config['default_style'] = $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_style'];
}
}
// Mighty Gorgon - Change Lang/Style - End
if (file_exists('install'))
{
message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib');
}
if ( $board_config['admin_protect'] == true )
{
$main_admin_id = (intval($board_config['main_admin_id']) >= 2) ? $board_config['main_admin_id'] : '2';
if ($main_admin_id != '2')
{
$sql = "SELECT user_id
FROM " . USERS_TABLE . "
WHERE user_id = '" . $main_admin_id . "'
LIMIT 1";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Couldn't obtain user id', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
$main_admin_id = $row['user_id'];
$db->sql_freeresult($result);
}
else
{
$main_admin_id = '2';
}
}
// Activate Main Admin Account
$sql = "UPDATE " . USERS_TABLE . "
SET user_active = 1
WHERE user_id = '" . $main_admin_id . "'";
if (!$db->sql_query($sql))
{
message_die(GENERAL_MESSAGE, 'Unable to access the Users Table.');
}
// Delete Main Admin Ban
$sql = "DELETE FROM " . BANLIST_TABLE . "
WHERE ban_userid = '" . $main_admin_id . "'";
if (!$db->sql_query($sql))
{
message_die(GENERAL_MESSAGE, 'Unable to access the Banlist Table.');
}
$db->clear_cache('ban_');
}
if (intval($_GET['lofi']) || $_COOKIE['lofi'])
{
$lofi = 1;
}
?>OOKIE['lofi'])
{
$lofi = 1;
}
?>
overall_header.tpl
{DOCTYPE_HTML}
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
{META}
{META_TAG}
{NAV_LINKS}
<!--
<meta name="description" content="{PAGE_TITLE}" />
<meta name="keywords" content="{PAGE_TITLE}" />
<meta name="robots" content="index,follow" />
-->
<title>{PAGE_TITLE}</title>
<link rel="shortcut icon" href="{FULL_SITE_PATH}images/favicon.ico" />
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_TPL_PATH}style_{TPL_COLOR}.css" type="text/css" />
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/color_wheel.css" type="text/css" />
<script type="text/javascript" src="{FULL_SITE_PATH}language/lang_{CURRENT_LANG}/bbcb_mg.js"></script>
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/ip_scripts.js"></script>
<!-- BEGIN switch_lightbox -->
<script type="text/javascript">
<!--
// Configuration
var fileLoadingImage = "{FULL_SITE_PATH}{T_COMMON_TPL_PATH}images/loading.gif";
var fileBottomNavCloseImage = "{FULL_SITE_PATH}{T_COMMON_TPL_PATH}images/closelabel.gif";
var resizeSpeed = 7; // controls the speed of the image resizing (1=slowest and 10=fastest)
var borderSize = 10; //if you adjust the padding in the CSS, you will need to update this variable
//-->
</script>
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/lightbox.css" type="text/css" />
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/prototype.js"></script>
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/lightbox.js"></script>
<!-- END switch_lightbox -->
<!-- BEGIN switch_ajax_features -->
<script type="text/javascript">
<!--
var S_SID = '{S_SID}';
var ajax_core_defined = 0;
var phpbb_root_path = '{PHPBB_ROOT_PATH}';
var phpEx = '{PHPEX}';
var POST_FORUM_URL = '{POST_FORUM_URL}';
var POST_TOPIC_URL = '{POST_TOPIC_URL}';
var POST_POST_URL = '{POST_POST_URL}';
var LOGIN_MG = '{LOGIN_MG}';
var PORTAL_MG = '{PORTAL_MG}';
var FORUM_MG = '{FORUM_MG}';
var VIEWFORUM_MG = '{VIEWFORUM_MG}';
var VIEWTOPIC_MG = '{VIEWTOPIC_MG}';
var PROFILE_MG = '{PROFILE_MG}';
var POSTING_MG = '{POSTING_MG}';
var SEARCH_MG = '{SEARCH_MG}';
var ajax_page_charset = '{S_CONTENT_ENCODING}';
//-->
</script>
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/ajax/ajax_core.js"></script>
<!-- END switch_ajax_features -->
<!--[if lt IE 7]>
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/pngfix.js"></script>
<![endif]-->
<!-- BEGIN mg_switch_xmas_fx -->
<script type="text/javascript">
<!--
//Edit the next few lines to suit your page. Recommended values are:
//numFlakes = 10; downSpeed = 0.01; lrFlakes = 10;
var pictureSrc = '{FULL_SITE_PATH}images/xmas/snfl_01.gif'; //the location of the snowflakes
var pictureWidth = 10; //the width of the snowflakes
var pictureHeight = 12; //the height of the snowflakes
var numFlakes = 20; //the number of snowflakes
var downSpeed = 0.01; //the falling speed of snowflakes (portion of screen per 100 ms)
var lrFlakes = 10; //the speed that the snowflakes should swing from side to side
//relative to distance fallen (swing increases with fewer
//snowflakes to fill available space)
//-->
</script>
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/snow_fx.js"></script>
<!-- END mg_switch_xmas_fx -->
<!-- IE conditional comments: http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp -->
<!--[if IE]>
<style type="text/css">
/* IE hack to emulate the :hover & :focus pseudo-classes
Add the selectors below that required the extra attributes */
.row1h, .row1h-new { behavior: url("{T_COMMON_TPL_PATH}pseudo-hover.htc"); }
</style>
<![endif]-->
<!-- BEGIN switch_dropdown_on -->
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- � Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//Contents for menu 1
var menu1 = new Array();
menu1[0] = '<br /><div class="center-block-text"> <form action="{FULL_SITE_PATH}{U_SEARCH}" method="post"><input name="search_keywords" type="text" class="post" style="width: 150px;" /> <input type="submit" class="mainoption" value="{L_SEARCH}" /> <br /></form></div>';
menu1[1] = ' <a href="{FULL_SITE_PATH}{U_SEARCH}" title="{L_SEARCH_EXPLAIN}">{L_ADV_SEARCH}</a>';
//Contents for menu 2
var menu2 = new Array();
menu2[0] = '<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" title="{L_SEARCH_NEW}">{L_SEARCH_NEW2}</a>';
menu2[1] = '{L_DISPLAY_UNREAD}';
menu2[2] = '{L_DISPLAY_MARKED}';
menu2[3] = '{L_DISPLAY_PERMANENT}';
var menuwidth = '180px'; //default menu width
var menubgcolor = '#F8F8F8'; //menu bgcolor
var disappeardelay = 250; //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick = "no"; //hide menu when user clicks within menu?
/////No further editing needed
var ie4 = document.all;
var ns6 = document.getElementById && !document.all;
if (ie4 || ns6)
{
document.write('<div id="dropmenudiv" class="row1" style="visibility:hidden;width:' + menuwidth + ';" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>');
}
</script>
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/ddmenu.js"></script>
<script type="text/javascript">
if (hidemenu_onclick=="yes")
{
document.onclick=hidemenu;
}
</script>
<!-- END switch_dropdown_on -->
<!-- BEGIN switch_new_download -->
<script type="text/javascript">
<!--
window.open('{switch_new_download.U_NEW_DOWNLOAD_POPUP}', '_blank', 'width=400,height=225,resizable=yes');
//-->
</script>
<!-- END switch_new_download -->
{UPI2DB_FIRST_USE}
</head>
<body onLoad="PreloadFlag = true;">
<div align="center"><a name="top"></a>
{TOP_HTML_BLOCK}
{PROFILE_VIEW}
<!-- {GREETING_POPUP} -->
<table id="forumtable" width="100%" cellspacing="0" cellpadding="0">
</div>
<tr>
<td class="forum-header" align="left" valign="top" height="64" style="padding:5px;">
<div align="center"><a href="{FULL_SITE_PATH}{U_PORTAL}" title="{L_HOME}"><img src="{FULL_SITE_PATH}{SITELOGO}" alt="{L_HOME}" title="{L_HOME} - Home to the Scottish Birdwatching Community" /></a>
</div></td>
<td class="forum-header" align="center" valign="middle" style="padding-top:2px;">
<!-- BEGIN switch_header_banner -->
<div class="center-block-text">
{HEADER_BANNER_CODE}
</div>
<!-- END switch_header_banner -->
</td>
<!-- BEGIN switch_user_logged_out -->
<td class="forum-header" align="right" valign="top" >
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="200" height="64" id="swf_login">
<param name="movie" value="{FULL_SITE_PATH}{T_TPL_PATH}images/{TPL_COLOR}/login.swf?sid={S_SID}&action={FULL_SITE_PATH}{U_LOGIN_LOGOUT}" />
<param name="quality" value="high" />
<param name="bgcolor" value="#F8F8F8" />
<embed src="{FULL_SITE_PATH}{T_TPL_PATH}images/{TPL_COLOR}/login.swf?sid={S_SID}&action={FULL_SITE_PATH}{U_LOGIN_LOGOUT}" quality="high" bgcolor="#F8F8F8" width="200" height="64" name="swf_login" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
</td>
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<td class="forum-header header-search" align="right" valign="bottom"> </td>
<!-- END switch_user_logged_in -->
</tr>
<!-- TOP LINKS -->
<tr>
<td class="forum-buttons" colspan="3">
<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="{SPACER}" alt="" height="16" align="middle" /></td>
<td style="text-align:center;font-size:11px;color:#FF1010;" width="100%">
<!-- BEGIN mg_switch_user_is_admin -->
<b>{U_ACP}</b> •
<!-- END mg_switch_user_is_admin -->
<a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a> •
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> •
<a href="http://www.scotbird.co.uk/ScotBird_Forum_V1/album.php">Gallery</a> •
<a href="http://www.scotbird.co.uk/ScotBird_Forum_V1/kb.php?mode=cat&cat=2">Field Trips</a> •
<a href="http://www.scotbird.co.uk/ScotBird_Forum_V1/ticklist.php">ESSE Newsletter</a> •
<a href="http://www.scotbird.co.uk/ScotBird_Forum_V1/tickindex.php">TICK LISTS</a> •
<a href="{FULL_SITE_PATH}{U_BOARDRULES}">{L_BOARDRULES}</a> •
<!-- BEGIN switch_user_logged_out -->
<a href="{FULL_SITE_PATH}{U_REGISTER}"><b>{L_REGISTER}</b></a> •
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<a href="{FULL_SITE_PATH}{U_PROFILE}">{L_CPL_NAV}</a> •
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_dd_off_logged_in -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a> •
<!-- END switch_dd_off_logged_in -->
<!-- BEGIN switch_dd_on_logged_in -->
<!-- <a href="#" onMouseover="dropdownmenu(this,event,menu2,'180px')" onMouseout="delayhidemenu()">{L_POSTS}:</a><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" title="{L_SEARCH_NEW}">{L_NEW}</a>-->
<!-- END switch_dd_on_logged_in -->
<!-- BEGIN switch_upi2db_on -->
<!-- {L_DISPLAY_U} {L_DISPLAY_M} {L_DISPLAY_P} •-->
<!-- END switch_upi2db_on -->
<!-- BEGIN switch_dropdown_on -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseover="dropdownmenu(this,event,menu1,'250px')" onMouseout="delayhidemenu()">{L_SEARCH}</a> •
<!-- END switch_dropdown_on -->
<!-- BEGIN switch_dropdown_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a> •
<!-- END switch_dropdown_off -->
<a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a> •
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>
</td>
<td><img src="{SPACER}" alt="" height="16" align="bottom" /></td>
</tr>
</table>
</td>
</tr>
<!-- BEGIN switch_header_table -->
<tr>
<td width="100%" colspan="3">
<center>
<table class="forumline" width="90%" cellspacing="0" cellpadding="0">
<tr><td class="row-header"><span>{L_STAFF_MESSAGE}</span></td></tr>
<tr><td class="row-post"><div class="post-text"><br />{switch_header_table.HEADER_TEXT}<br /><br /></div></td></tr>
</table>
</center>
</td>
</tr>
<!-- END switch_header_table -->
<!-- BEGIN ctracker_message -->
<tr>
<td width="100%" colspan="3">
<center>
<table class="forumline" width="80%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="background-color:#{ctracker_message.ROW_COLOR};"><img src="{ctracker_message.ICON_GLOB}" alt="" title="" border="0"></td>
<td align="center" style="background-color:#{ctracker_message.ROW_COLOR};"><span class="gensmall">{ctracker_message.L_MESSAGE_TEXT}</span></td>
</tr>
<tr>
<td class="row1 row-center" colspan="2">
<span class="gensmall"><b><a href="{ctracker_message.U_MARK_MESSAGE}">{ctracker_message.L_MARK_MESSAGE}</a></b></span><br />
</td>
</tr>
</table>
</center>
</td>
</tr>
<!-- END ctracker_message -->
<tr>
<td colspan="3" id="content">
<!--
<div id="quick_links2" style="padding-top: 5px; padding-bottom: 5px; display: none; margin-left: -7px; text-align: left;"><a href="javascript:ShowHide('quick_links','quick_links2','quick_links');" title="{L_SHOW} {L_QUICK_LINKS}"><img src="{SHOW_QUICK_LINKS_IMG}" alt="{L_SHOW} {L_QUICK_LINKS}" height="124" width="22" /></a></div>
<div id="news2" style="padding-top: 5px; padding-bottom: 5px; display: none; margin-left: -7px; text-align: left;"><a href="javascript:ShowHide('news','news2','news');" title="{L_SHOW} {NEWS_TITLE}"><img src="{SHOW_LATEST_NEWS_IMG}" alt="{L_SHOW} {NEWS_TITLE}" height="127" width="22" /></a></div>
<div id="calendar2" style="padding-top: 5px; padding-bottom: 5px; display: visible; margin-left: -7px; text-align: left;"><a href="javascript:ShowHide('calendar_display','calendar2','calendar_display');" title="{L_SHOW} {L_CALENDAR}"><img src="{TOGGLE_ICON}" alt="{L_SHOW} {L_CALENDAR}" height="125" width="22" /></a></div>
-->
<!-- BEGIN switch_user_logged_in -->
<div class="popup{PRIVMSG_IMG}"><a href="{FULL_SITE_PATH}{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a></div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_admin_disable_board -->
<table width="100%" align="center" cellspacing="0" cellpadding="10" border="0">
<tr><td align="center" class="forumline-no"><span class="gen"><font class="topic_ann"><b>{L_BOARD_DISABLE}</b></span></td></tr>
</table>
<!-- END switch_admin_disable_board -->
<!-- BEGIN switch_importal -->
{PORTAL_HEADER}
<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
{PORTAL_HEADERLEFT}
<td valign="top">
{PORTAL_HEADERCENTER}
<!-- END switch_importal -->
Edited by Chaotic, Mon 12 Jan, 2009 20:08: Added Spoiler BBCode. :) |
#7 Mon 12 Jan, 2009 19:59 |
|
redrumm101
Joined: January 2009
Posts: 38
|
Re: URGENT HELP NEEDED
OOKIE['lofi'])
{
$lofi = 1;
}
?>
That is your problem remove that and you will be good
make sure there is only one ?> at the bottom
<?php
/***************************************************************************
* common.php
* -------------------
* begin : Saturday, Feb 23, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: common.php,v 1.74.2.17 2005/02/21 19:29:30 acydburn Exp $
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
error_reporting(E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
// The following code (unsetting globals)
// Thanks to Matt Kavanagh and Stefan Esser for providing feedback as well as patch files
// PHP5 with register_long_arrays off?
if ( (@phpversion() >= '5.0.0') && (!@ini_get('register_long_arrays') || (@ini_get('register_long_arrays') == '0') || (strtolower(@ini_get('register_long_arrays')) == 'off')) )
{
$HTTP_POST_VARS = $_POST;
$HTTP_GET_VARS = $_GET;
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_COOKIE_VARS = $_COOKIE;
$HTTP_ENV_VARS = $_ENV;
$HTTP_POST_FILES = $_FILES;
// _SESSION is the only superglobal which is conditionally set
if (isset($_SESSION))
{
$HTTP_SESSION_VARS = $_SESSION;
}
}
// CrackerTracker v5.x
// Uncomment the following define to disable CT GET and POST parsing.
//define('MG_KILL_CTRACK', true);
include($phpbb_root_path . 'ctracker/engines/ct_security.' . $phpEx);
// CrackerTracker v5.x
// Protect against GLOBALS tricks
if (isset($HTTP_POST_VARS['GLOBALS']) || isset($HTTP_POST_FILES['GLOBALS']) || isset($HTTP_GET_VARS['GLOBALS']) || isset($HTTP_COOKIE_VARS['GLOBALS']))
{
die('Hacking attempt');
}
// Protect against HTTP_SESSION_VARS tricks
if (isset($HTTP_SESSION_VARS) && !is_array($HTTP_SESSION_VARS))
{
die('Hacking attempt');
}
if ( (@ini_get('register_globals') == '1') || (strtolower(@ini_get('register_globals')) == 'on') )
{
// PHP4+ path
$not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES', 'phpEx', 'phpbb_root_path');
// Not only will array_merge give a warning if a parameter
// is not an array, it will actually fail. So we check if
// HTTP_SESSION_VARS has been initialised.
if (!isset($HTTP_SESSION_VARS) || !is_array($HTTP_SESSION_VARS))
{
$HTTP_SESSION_VARS = array();
}
// Merge all into one extremely huge array; unset this later
$input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);
unset($input['input']);
unset($input['not_unset']);
while (list($var,) = @each($input))
{
if (in_array($var, $not_unset))
{
die('Hacking attempt!');
}
unset($$var);
}
unset($input);
}
//
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if( !get_magic_quotes_gpc() )
{
if( is_array($_GET) )
{
while( list($k, $v) = each($_GET) )
{
if( is_array($_GET[$k]) )
{
while( list($k2, $v2) = each($_GET[$k]) )
{
$_GET[$k][$k2] = addslashes($v2);
}
@reset($_GET[$k]);
}
else
{
$_GET[$k] = addslashes($v);
}
}
@reset($_GET);
}
if( is_array($_POST) )
{
while( list($k, $v) = each($_POST) )
{
if( is_array($_POST[$k]) )
{
while( list($k2, $v2) = each($_POST[$k]) )
{
$_POST[$k][$k2] = addslashes($v2);
}
@reset($_POST[$k]);
}
else
{
$_POST[$k] = addslashes($v);
}
}
@reset($_POST);
}
if( is_array($HTTP_COOKIE_VARS) )
{
while( list($k, $v) = each($HTTP_COOKIE_VARS) )
{
if( is_array($HTTP_COOKIE_VARS[$k]) )
{
while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) )
{
$HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
}
@reset($HTTP_COOKIE_VARS[$k]);
}
else
{
$HTTP_COOKIE_VARS[$k] = addslashes($v);
}
}
@reset($HTTP_COOKIE_VARS);
}
}
//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
$board_config = array();
$xs_news_config = array();
$userdata = array();
$theme = array();
$images = array();
$lang = array();
$nav_links = array();
$dss_seeded = false;
$pc_dateTime = array();
$gen_simple_header = false;
//<!-- BEGIN Unread Post Information to Database Mod -->
$unread = array();
//<!-- END Unread Post Information to Database Mod -->
include($phpbb_root_path . 'config.' . $phpEx);
if( !defined('PHPBB_INSTALLED') )
{
header('Location: ' . $phpbb_root_path . 'install/install.' . $phpEx);
exit;
}
include($phpbb_root_path . 'includes/constants.' . $phpEx);
if ($non_xs)
{
include($phpbb_root_path . 'includes/phpbb_template.' . $phpEx);
}
else
{
include($phpbb_root_path . 'includes/template.' . $phpEx);
}
include($phpbb_root_path . 'includes/sessions.' . $phpEx);
include($phpbb_root_path . 'includes/auth.' . $phpEx);
include($phpbb_root_path . 'includes/functions_categories_hierarchy.' . $phpEx);
include($phpbb_root_path . 'includes/functions.' . $phpEx);
include($phpbb_root_path . 'includes/db.' . $phpEx);
// MG Cash MOD For IP - BEGIN
if ( defined('CASH_MOD') && defined('IN_CASHMOD') )
{
include($phpbb_root_path . 'includes/functions_cash.' . $phpEx);
}
// MG Cash MOD For IP - END
// We do not need this any longer, unset for safety purposes
unset($dbpasswd);
//
// Obtain and encode users IP
//
// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as
// private range IP's appearing instead of the guilty routable IP, tough, don't
// even bother complaining ... go scream and shout at the idiots out there who feel
// "clever" is doing harm rather than good ... karma is a great thing ... :)
//
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
$user_ip = encode_ip($client_ip);
// CrackerTracker v5.x
include($phpbb_root_path . 'ctracker/engines/ct_varsetter.' . $phpEx);
include($phpbb_root_path . 'ctracker/engines/ct_ipblocker.' . $phpEx);
// CrackerTracker v5.x
// Start Advanced IP Tools Pack MOD
$user_agent = ( !empty($HTTP_SERVER_VARS['HTTP_USER_AGENT']) ? trim($HTTP_SERVER_VARS['HTTP_USER_AGENT']) : ( !empty($HTTP_ENV_VARS['HTTP_USER_AGENT']) ? trim($HTTP_ENV_VARS['HTTP_USER_AGENT']) : trim(getenv('HTTP_USER_AGENT')) ) );
$user_agent = addslashes($user_agent);
// End Advanced IP Tools Pack MOD
// Setup forum wide options, if this fails then we output a CRITICAL_ERROR since basic forum information is not available
//BEGIN Getting Board Configuration
$sql = "SELECT * FROM " . CONFIG_TABLE;
if (CACHE_CFG == true)
{
if( !($result = $db->sql_query($sql, false, 'config_')) )
{
message_die(CRITICAL_ERROR, 'Could not query config information', '', __LINE__, __FILE__, $sql);
}
}
else
{
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not query config information', '', __LINE__, __FILE__, $sql);
}
}
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
$db->sql_freeresult($result);
//END Getting Board Configuration
include($phpbb_root_path . ATTACH_MOD_PATH . 'attachment_mod.' . $phpEx);
//<!-- BEGIN Unread Post Information to Database Mod -->
include($phpbb_root_path . 'includes/functions_upi2db.' . $phpEx);
//<!-- END Unread Post Information to Database Mod -->
if ($board_config['disable_referrers'] == false)
{
include_once($phpbb_root_path . 'includes/functions_referrers.' . $phpEx);
}
// MG Logs - BEGIN
if ($board_config['mg_log_actions'] == true)
{
include($phpbb_root_path . 'includes/functions_mg_log.' . $phpEx);
}
// MG Logs - END
// Mighty Gorgon - Change Lang/Style - Begin
if ( isset($_GET[LANG_URL]) || isset($_POST[LANG_URL]) )
{
$language = urldecode((isset($_GET[LANG_URL])) ? $_GET[LANG_URL] : $_POST[LANG_URL]);
$language = strtr($language, array_flip(get_html_translation_table(HTML_ENTITIES)));
$language = htmlspecialchars($language);
$board_config['default_lang'] = $language;
setcookie($board_config['cookie_name'] . '_lang', $board_config['default_lang'] , (time() + 86400), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
else
{
if (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_lang']) )
{
$board_config['default_lang'] = $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_lang'];
}
}
if ( isset($_GET[STYLE_URL]) || isset($_POST[STYLE_URL]) )
{
$old_style = $board_config['default_style'];
$board_config['default_style'] = urldecode((isset($_GET[STYLE_URL])) ? intval($_GET[STYLE_URL]) : intval($_POST[STYLE_URL]));
$board_config['default_style'] = (check_style_exists($board_config['default_style']) == false) ? $old_style : $board_config['default_style'];
setcookie($board_config['cookie_name'] . '_style', $board_config['default_style'] , (time() + 86400), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
else
{
if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_style']) && (check_style_exists($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_style']) != false) )
{
$board_config['default_style'] = $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_style'];
}
}
// Mighty Gorgon - Change Lang/Style - End
if (file_exists('install'))
{
message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib');
}
if ( $board_config['admin_protect'] == true )
{
$main_admin_id = (intval($board_config['main_admin_id']) >= 2) ? $board_config['main_admin_id'] : '2';
if ($main_admin_id != '2')
{
$sql = "SELECT user_id
FROM " . USERS_TABLE . "
WHERE user_id = '" . $main_admin_id . "'
LIMIT 1";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Couldn't obtain user id', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
$main_admin_id = $row['user_id'];
$db->sql_freeresult($result);
}
else
{
$main_admin_id = '2';
}
}
// Activate Main Admin Account
$sql = "UPDATE " . USERS_TABLE . "
SET user_active = 1
WHERE user_id = '" . $main_admin_id . "'";
if (!$db->sql_query($sql))
{
message_die(GENERAL_MESSAGE, 'Unable to access the Users Table.');
}
// Delete Main Admin Ban
$sql = "DELETE FROM " . BANLIST_TABLE . "
WHERE ban_userid = '" . $main_admin_id . "'";
if (!$db->sql_query($sql))
{
message_die(GENERAL_MESSAGE, 'Unable to access the Banlist Table.');
}
$db->clear_cache('ban_');
}
if (intval($_GET['lofi']) || $_COOKIE['lofi'])
{
$lofi = 1;
}
?>
Edited by Chaotic, Mon 12 Jan, 2009 20:08: Added Spoiler BBCode. :) |
#8 Mon 12 Jan, 2009 20:04 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
Re: URGENT HELP NEEDED
Cheers for that, can i ask another
I am using the IP address you access site as original is still up and running until domain name changes to new web host.
How can i get my login page to redirect me to correct website, ie the IP number one as opposed to the www.scotbird.co.uk one ?
I just want to test site full before i switch old one off.
regards
|
#9 Mon 12 Jan, 2009 20:17 |
|
redrumm101
Joined: January 2009
Posts: 38
|
Re: URGENT HELP NEEDED
Yes you can go to your ACP under configuration and change your domain name to the ip address
|
#10 Mon 12 Jan, 2009 20:32 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
Re: URGENT HELP NEEDED
Tried getting into control panel, once in got this message on menu tab
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1966080 bytes) in /var/www/ScotBird_Forum_V1/adm/admin_db_maintenance.php on line 1825
thats a large chunk of memory, is that correct ??
|
#11 Mon 12 Jan, 2009 20:37 |
|
redrumm101
Joined: January 2009
Posts: 38
|
Re: URGENT HELP NEEDED
That is a large chunk.. That maybe out of my league on that one. Hopefully one of the other guys may be able to help you on that one...
But no worries these guys and gals here are great for support.. Someone will answer that one for you im sure
|
#12 Mon 12 Jan, 2009 21:06 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
Re: URGENT HELP NEEDED
Cheers RedRumm
Anyone else care to take a crack at the beast ??
|
#13 Mon 12 Jan, 2009 21:26 |
|
redrumm101
Joined: January 2009
Posts: 38
|
Re: URGENT HELP NEEDED
You are very welcome AndyGpy. Im glad i was able to help.. This community has already helped me so much in the small time i have been here so if i can contribute in some way i am going to try. Glad it helped...
|
#15 Mon 12 Jan, 2009 23:48 |
|
|
Page 1 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|