was muß ich denn nun hier von manuell einauen....
<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
//
//
// Restrict to members:
if( !$userdata['session_logged_in'] )
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised'], $lang['Not_Authorised']);
exit;
}
//
//
if ( $userdata['user_level'] == ADMIN )
{
}
else
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised'], $lang['Not_Authorised']);
exit;
}
echo '<html>
<head>
<title>SQL-DB-Installer - AWSW Calendar</title>
</head>
<body>
<h1>SQL-DB-Installer - AWSW Calendar</h1>
<hr />';
if (!isset($HTTP_GET_VARS['install'])) {
echo '<a href="?install=1">Please click here | Bitte hier klicken</a>';
}
else {
$queries = array(
"CREATE TABLE " . $table_prefix . "awswcal (
id int(11) NOT NULL auto_increment,
word varchar(2) NOT NULL default '',
replacement Text NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;",
"INSERT INTO " . $table_prefix . "awswcal VALUES (1, '1', '
http://www.domainlinkurl1.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (2, '2', '
http://www.domainlinkurl2.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (3, '3', '
http://www.domainlinkurl3.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (4, '4', '
http://www.domainlinkurl4.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (5, '5', '
http://www.domainlinkurl5.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (6, '6', '
http://www.domainlinkurl6.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (7, '7', '
http://www.domainlinkurl7.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (8, '8', '
http://www.domainlinkurl8.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (9, '9', '
http://www.domainlinkurl9.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (10, '10', '
http://www.domainlinkurl10.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (11, '11', '
http://www.domainlinkurl11.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (12, '12', '
http://www.domainlinkurl12.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (13, '13', '
http://www.domainlinkurl13.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (14, '14', '
http://www.domainlinkurl14.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (15, '15', '
http://www.domainlinkurl15.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (16, '16', '
http://www.domainlinkurl16.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (17, '17', '
http://www.domainlinkurl17.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (18, '18', '
http://www.domainlinkurl18.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (19, '19', '
http://www.domainlinkurl19.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (20, '20', '
http://www.domainlinkurl20.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (21, '21', '
http://www.domainlinkurl21.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (22, '22', '
http://www.domainlinkurl22.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (23, '23', '
http://www.domainlinkurl23.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (24, '24', '
http://www.domainlinkurl24.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (25, '25', '
http://www.domainlinkurl25.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (26, '26', '
http://www.domainlinkurl26.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (27, '27', '
http://www.domainlinkurl27.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (28, '28', '
http://www.domainlinkurl28.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (29, '29', '
http://www.domainlinkurl29.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (30, '30', '
http://www.domainlinkurl30.de');",
"INSERT INTO " . $table_prefix . "awswcal VALUES (31, '31', '
http://www.domainlinkurl31.de');"
);
$success = true;
foreach($queries as $query) {
if (!$db->sql_query($query)) {
echo '<font color="red">An error occurred ! Changes have not been entered successfully !<br /><br />Es Fehler ist aufgetreten ! Änderung nicht erfolgreich eingetragen !</font><br /><br />';
echo mysql_error();
$success = false;
break;
}
}
if ($success) {
echo '<font color="green">DB-Changes have been entered successfully. You should delete this SQL-DB-Installer as soon as possible !<br /><br />DB-Änderung wurde erfolgreich ausgeführt. Du solltest diesen SQL-DB-Installer sobald wie möglich löschen !';
}
}
?>
LG Dirk