Parse error: syntax error, unexpected T_ELSE in /domains/*****public_html/common.php on line 229
include($phpbb_root_path . 'config/'.$mforum.'.'.$phpEx); } } else { exit; } { else {
Co trzeba poprawic
Parse error: syntax error, unexpected T_ELSE in /domains/*****public_html/common.php on line 229
include($phpbb_root_path . 'config/'.$mforum.'.'.$phpEx); } } else { exit; } { else {
include($phpbb_root_path . 'config/'.$mforum.'.'.$phpEx); } } else { exit; } { <- usuń to,lub zmień na } else {
<?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.25 2006/05/26 17:46:59 grahamje 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. * ***************************************************************************/ { } // // 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 { $HTTP_SESSION_VARS = $_SESSION; } } // Protect against GLOBALS tricks { } // Protect against HTTP_SESSION_VARS tricks { } { // 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. { } // 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); { { } } } // // 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. // { { { { { } } else { } } } { { { { } } else { } } } { { { { } } else { } } } } // // Define some basic configuration arrays this also prevents // malicious rewriting of language and otherarray values via // URI params // $dss_seeded = false; $gen_simple_header = FALSE; // Start Multi-Forums Mod include $phpbb_root_path . "config/multiforums.config.inc.php"; if ($_GET["mforum"]==true) { $mforum = $_GET["mforum"]; } else { $mforum = $_COOKIE["ForumSetCookie"]; } if ($mforum==false) { exit; } else { { if ($multiforums_setting[master_offline] == "1") { exit; } else { $resultlink = mysql_query("SELECT * FROM `multiforums_forums` WHERE 1 AND `access_name` LIKE '$mforum' LIMIT 0 , 1"); if ($forum[bannerless] == "1") { $this_forum_bannerless = "1"; } else { $this_forum_bannerless = "0"; } if ($forum[online] == false) { exit; } } include($phpbb_root_path . 'config/'.$mforum.'.'.$phpEx); } } else { exit; } } else { { if ($multiforums_setting[master_offline] == "1") { exit; } else { $resultlink = mysql_query("SELECT * FROM `multiforums_forums` WHERE 1 AND `access_name` LIKE '$mforum' LIMIT 0 , 1"); if ($forum[bannerless] == "1") { $this_forum_bannerless = "1"; } else { $this_forum_bannerless = "0"; } if ($forum[online] == false) { exit; } } include($phpbb_root_path . 'config/'.$mforum.'.'.$phpEx); } } else { exit; } } // End Multi-Forums Mod { //header("Location: install/install.$phpEx"); exit; } include($phpbb_root_path . 'includes/constants.'.$phpEx); 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.'.$phpEx); include($phpbb_root_path . 'includes/db.'.$phpEx); // We do not need this any longer, unset for safety purposes // // 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 ... :) // $user_ip = encode_ip($client_ip); // // Setup forum wide options, if this fails // then we output a CRITICAL_ERROR since // basic forum information is not available // $sql = "SELECT * FROM " . CONFIG_TABLE; 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']; } { message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib'); } // // Show 'Board is disabled' message if needed. // { message_die(GENERAL_MESSAGE, 'Board_disable', 'Information'); } ?>