This should now work ... still blank screens on errors (due to way errors are now handled by db layer ... need to set return on error and handle sql errors locally in install.php)

git-svn-id: file:///svn/phpbb/trunk@3090 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-11-24 23:41:07 +00:00
parent 2c83dfae78
commit 0f31aa8416

View file

@ -22,20 +22,18 @@
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
define('IN_PHPBB', true);
$phpbb_root_path='./../';
require($phpbb_root_path . 'extension.inc');
require($phpbb_root_path . 'includes/functions.'.$phpEx);
$userdata = array();
$lang = array();
if ( !get_magic_quotes_gpc() ) if ( !get_magic_quotes_gpc() )
{ {
$_GET = slash_input_data($_GET); $_GET = slash_input_data($_GET);
$_POST = slash_input_data($_POST); $_POST = slash_input_data($_POST);
} }
define('IN_PHPBB', true);
$phpbb_root_path='./../';
require($phpbb_root_path . 'extension.inc');
require($phpbb_root_path . 'includes/functions.'.$phpEx);
/*************************************************************************** /***************************************************************************
* Install Customization Section * Install Customization Section
* *
@ -649,6 +647,16 @@ else
WHERE username = 'Admin'"; WHERE username = 'Admin'";
$db->sql_query($sql); $db->sql_query($sql);
$sql = "UPDATE " . $table_prefix . "moderator_cache
SET username = '" . $admin_name . "'
WHERE username = 'Admin'";
$db->sql_query($sql);
$sql = "UPDATE " . $table_prefix . "forums
SET forum_last_poster_name = '" . $admin_name . "'
WHERE forum_last_poster_name = 'Admin'";
$db->sql_query($sql);
$sql = "UPDATE " . $table_prefix . "users $sql = "UPDATE " . $table_prefix . "users
SET user_regdate = " . time(); SET user_regdate = " . time();
$db->sql_query($sql); $db->sql_query($sql);
@ -861,7 +869,7 @@ function page_footer($l_submit, $s_hidden_fields)
</tr> </tr>
</table></form> </table></form>
<div align="center"><span class="copyright">Powered by phpBB <?php echo $board_config['version']; ?> &copy; 2002 <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB Group</a></span></div> <div align="center"><span class="copyright">Powered by phpBB <?php echo $config['version']; ?> &copy; 2002 <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB Group</a></span></div>
<br clear="all" /> <br clear="all" />