File size: 1.21Kb
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
echo '<p><a href="index.php">Форумы</a>|Обновление</p>
<hr/><p>При успешном обновлении Базы Данных должно светиться два слова "OK"!</p><hr/>';
$sql = array();
$sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_number varchar(15)";
$sql[] = "ALTER TABLE " . $table_prefix . "forums ADD forum_postcount TINYINT(1) DEFAULT '1' NOT NULL";
for( $i = 0; $i < count($sql); $i++ )
{
if( !$result = $db->sql_query ($sql[$i]) )
{
$error = $db->sql_error();
echo '<p><span style="color:#FF1493"><b>ERROR</b></span><br/>' . $error['message'] . '</p>';
}
else
{
echo '<p><span style="color:#32CD32"><b>OK</b></span></p>';
}
}
echo '<p><span class="genmed">(c) чел, 2007</span></p>';
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>