Da ich so etwas auch gesucht habe, habe ich mir das auch mal geladen. habe aber ein Problem. Habe zuerst mit Automod installiert, dann sollte ich die datei /contrib/db_update.php aufrufen. habe ich auch prompt getan. Nur meldet jetzt der Browser:
Warning: include(./common.php) [function.include]: failed to open stream: No such file or directory in /contrib/db_update.php on line 14
Warning: include() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/lib/php5') in /contrib/db_update.php on line 14
Fatal error: Call to a member function session_begin() on a non-object in /contrib/db_update.php on line 17
Eine common.php gibt es in dem Mod in der Tat nicht.
Die Zeilen mit denen er Probleme hat sind folgende:
line 14:
include($phpbb_root_path . 'common.' . $phpEx);
line 17:
$user->session_begin();
in der ganzen db_update steht folgendes:
<?php
/**
* @package phpBB3
* @copyright (c) 2007 eviL3
* @license
http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// auth check
if ($user->data['user_type'] != USER_FOUNDER)
{
trigger_error('You may not run this script.');
}
// include db_tools
include($phpbb_root_path . 'includes/db/db_tools.' . $phpEx);
// perform schema changes
$db_tools = new phpbb_db_tools($db);
$db_tools->sql_column_add(USERS_TABLE, 'user_gender', array('TINT:1', 1));
// confirm
trigger_error('Genders installed successfully.<br /><br />Make sure you delete this file from your server.');
?>
WAS KANN ICH TUN??? Bitte helft mir.