db_update.php.txt

Jak postawić ShoutBox? Proszę o dokładne instrukcje.

Plikom należy skasować rozszerzenie txt bo nie mogę przesłaś na forum elektrody plików z rozszerzeniem php


& lt; ?php

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//


if( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid('login.'.$phpEx.'?redirect=db_update.'.$phpEx));
exit;
}

if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}


$page_title = 'Updating the database';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

echo ' & lt; table width= " 100% " cellspacing= " 1 " cellpadding= " 2 " border= " 0 " class= " forumline " & gt; ';
echo ' & lt; tr & gt; & lt; th & gt; Updating the database & lt; /th & gt; & lt; /tr & gt; & lt; tr & gt; & lt; td & gt; & lt; span class= " genmed " & gt; & lt; ul type= " circle " & gt; ';


$sql = array();
$sql[] = " INSERT INTO " . CONFIG_TABLE . " ( `config_name` , `config_value` ) VALUES ('gzip_level', '9') " ;

for( $i = 0; $i & lt; count($sql); $i++ )
{
if( !$result = $db- & gt; sql_query ($sql[$i]) )
{
$error = $db- & gt; sql_error();

echo ' & lt; li & gt; ' . $sql[$i] . ' & lt; br / & gt; +++ & lt; font color= " #FF0000 " & gt; & lt; b & gt; Error: & lt; /b & gt; & lt; /font & gt; ' . $error['message'] . ' & lt; /li & gt; & lt; br / & gt; ';
}
else
{
echo ' & lt; li & gt; ' . $sql[$i] . ' & lt; br / & gt; +++ & lt; font color= " #00AA00 " & gt; & lt; b & gt; Successfull & lt; /b & gt; & lt; /font & gt; & lt; /li & gt; & lt; br / & gt; ';
}
}


echo ' & lt; /ul & gt; & lt; /span & gt; & lt; /td & gt; & lt; /tr & gt; & lt; tr & gt; & lt; td class= " catBottom " height= " 28 " & gt; & nbsp; & lt; /td & gt; & lt; /tr & gt; ';

echo ' & lt; tr & gt; & lt; th & gt; End & lt; /th & gt; & lt; /tr & gt; & lt; tr & gt; & lt; td & gt; & lt; span class= " genmed " & gt; Installation is now finished. Please be sure to delete this file now. & lt; br / & gt; If you have run into any errors, please visit the & lt; a href= " http://www.phpbbhacks.com/forums " target= " _phpbbhacks " & gt; phpBBHacks.com support forums & lt; /a & gt; and ask someone for help. & lt; /span & gt; & lt; /td & gt; & lt; /tr & gt; ';
echo ' & lt; tr & gt; & lt; td class= " catBottom " height= " 28 " align= " center " & gt; & lt; span class= " genmed " & gt; & lt; a href= " ' . append_sid( " index.$phpEx " ) . ' " & gt; Have a nice day & lt; /a & gt; & lt; /span & gt; & lt; /td & gt; & lt; /table & gt; ';

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

? & gt;


Download file - link to post
  Search 5 million + Products