flesheater
Registered
Опитвам се да си инсталирам сега ето този мод http://www.phpbbhacks.com/download/1411 ...
иии имах няколко проблема ама само с последния не можах да се оправя ... с пускането на cms_install.php, който трябва да създаде базите от данни ...
ето му го съдържанието му
някой може ли да ми помогне с проблема ми ? когато го пусна този файл и ми изписва
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'irontree_phpbb3'@'localhost' (using password: NO) in /users/irontree/public_html/forums/db/mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /users/irontree/public_html/forums/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /users/irontree/public_html/forums/db/mysql4.php on line 331
phpBB : Critical Error
Could not connect to the database
иии имах няколко проблема ама само с последния не можах да се оправя ... с пускането на cms_install.php, който трябва да създаде базите от данни ...
ето му го съдържанието му
Код:
<?php
/***************************************************************************
* cms_install.php
* -------------------
* copyright : ©2003 Freakin' Booty ;-P
* built for : phpBB easyCMS
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
***************************************************************************/
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=cms_install.'.$phpEx));
exit;
}
if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}
// Define schema info
$available_dbms = array(
'mysql'=> array(
'LABEL' => 'MySQL 3.x',
'SCHEMA' => 'mysql',
'DELIM' => ';',
'DELIM_BASIC' => ';',
'COMMENTS' => 'remove_remarks'
),
'mysql4' => array(
'LABEL' => 'MySQL 4.x',
'SCHEMA' => 'mysql',
'DELIM' => ';',
'DELIM_BASIC' => ';',
'COMMENTS' => 'remove_remarks'
)
);
/*,
'postgres' => array(
'LABEL' => 'PostgreSQL 7.x',
'SCHEMA' => 'postgres',
'DELIM' => ';',
'DELIM_BASIC' => ';',
'COMMENTS' => 'remove_comments'
),
'mssql' => array(
'LABEL' => 'MS SQL Server 7/2000',
'SCHEMA' => 'mssql',
'DELIM' => 'GO',
'DELIM_BASIC' => ';',
'COMMENTS' => 'remove_comments'
),
'msaccess' => array(
'LABEL' => 'MS Access [ ODBC ]',
'SCHEMA' => '',
'DELIM' => '',
'DELIM_BASIC' => ';',
'COMMENTS' => ''
),
'mssql-odbc' => array(
'LABEL' => 'MS SQL Server [ ODBC ]',
'SCHEMA' => 'mssql',
'DELIM' => 'GO',
'DELIM_BASIC' => ';',
'COMMENTS' => 'remove_comments'
)
);*/
$page_title = 'Installing phpBB easyCMS';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
//
// Start executing the queries
//
include($phpbb_root_path . 'includes/db.'.$phpEx);
$dbms_schema = 'cms_schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_schema.sql';
$dbms_basic = 'cms_schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_basic.sql';
$remove_remarks = $available_dbms[$dbms]['COMMENTS'];
$delimiter = $available_dbms[$dbms]['DELIM'];
$delimiter_basic = $available_dbms[$dbms]['DELIM_BASIC'];
if( $dbms != 'msaccess' )
{
echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Creating the tables</th></tr><tr><td><span class="genmed"><ul type="circle">';
// Load in the sql parser
include($phpbb_root_path.'includes/sql_parse.'.$phpEx);
// Ok we have the db info go ahead and read in the relevant schema
// and work on building the table.. probably ought to provide some
// kind of feedback to the user as we are working here in order
// to let them know we are actually doing something.
$sql_query = @fread(@fopen($dbms_schema, 'r'), @filesize($dbms_schema));
$sql_query = str_replace('phpbb_', $table_prefix, $sql_query);
$sql_query = $remove_remarks($sql_query);
$sql_query = split_sql_file($sql_query, $delimiter);
for( $i = 0; $i < sizeof($sql_query); $i++ )
{
if( trim($sql_query[$i]) != '' )
{
if( !$result = $db->sql_query($sql_query[$i]) )
{
$error = $db->sql_error();
echo '<li>' . $sql_query[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
}
else
{
echo '<li>' . $sql_query[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />';
}
}
}
echo '</ul></span></td></tr><tr><td class="catBottom" height="28"> </td></tr>';
echo '<tr><th>Populating the tables</th></tr><tr><td><span class="genmed"><ul type="circle">';
// Ok tables have been built, let's fill in the basic information
$sql_query = @fread(@fopen($dbms_basic, 'r'), @filesize($dbms_basic));
$sql_query = preg_replace('/phpbb_/', $table_prefix, $sql_query);
$sql_query = $remove_remarks($sql_query);
$sql_query = split_sql_file($sql_query, $delimiter_basic);
for( $i = 0; $i < sizeof($sql_query); $i++ )
{
if( trim($sql_query[$i]) != '' )
{
if( !$result = $db->sql_query($sql_query[$i]) )
{
$error = $db->sql_error();
echo '<li>' . $sql_query[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
}
else
{
echo '<li>' . $sql_query[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />';
}
}
}
echo '</ul></span></td></tr><tr><td class="catBottom" height="28"> </td></tr>';
}
echo '<tr><th>End</th></tr><tr><td><span class="genmed">Installation is now finished. Please be sure to delete this file now and the directory cms_schemas.<br />If you have run into any errors, please visit the <a href="http://www.phpbbhacks.com/forums" target="_phpbbhacks">phpBBHacks.com support forums</a> and ask someone for help.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>';
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
някой може ли да ми помогне с проблема ми ? когато го пусна този файл и ми изписва
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'irontree_phpbb3'@'localhost' (using password: NO) in /users/irontree/public_html/forums/db/mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /users/irontree/public_html/forums/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /users/irontree/public_html/forums/db/mysql4.php on line 331
phpBB : Critical Error
Could not connect to the database