Seite 1 von 1

[erledigt]Adventskalender db-installer gesucht

Verfasst: 27.10.2005 17:05
von Ramona_FP
Hi mal wieder,

ich habe (neuerdings, keine Ahnung warum) das Problem dass ich keinen db-installer mehr ausführen kann..bis jetzt hatte ich Glück und habe für jeden MOD die SQL-Befehle gefunden damit ich sie übers phpmyadmin reinbekomm..nun bin ich über diesem Mod

http://www.phpbb.de/moddb/mod.php?id=141

und das ists mal wieder,mein Problem :-? kann mir jemand die SQL-Befehle dazu geben so dass ich sie in phpmyadmin einfügen kann? :-?

So sieht die .php dazu aus:
<?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 !';
}
}
?>
/edit; achso: Ich kann ihn nicht ausführen weil da grundsätzlich
phpBB : Critical Error

Could not connect to the database
kommt!

Verfasst: 02.11.2005 09:00
von Lord-Blackwolf
ich hab die install.php mal an jemanden weitergereicht ... ggf. schickt der mit die Query ... und dann "pooooost".

Greetz

Wolfi

Verfasst: 02.11.2005 14:06
von Ramona_FP
ui spitze dann hoooooooooff ich mal :D

Verfasst: 02.11.2005 15:33
von Lord-Blackwolf
Lobt mich mal .... :lol:

ich hab das doch wirklich selbst hingekriegt, nachdem ich - in meinem eigenen Fall - Markus Query mit der in der dementsprechenden Install verglichen habe.

Ich hab 'ne testdb angelegt und die Query eingefügt: Pfunscht!

Code: Alles auswählen

CREATE TABLE phpbb_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 phpbb_awswcal VALUES (1, '1', 'http://www.domainlinkurl1.de');
INSERT INTO phpbb_awswcal VALUES (2, '2', 'http://www.domainlinkurl2.de');
INSERT INTO phpbb_awswcal VALUES (3, '3', 'http://www.domainlinkurl3.de');
INSERT INTO phpbb_awswcal VALUES (4, '4', 'http://www.domainlinkurl4.de');
INSERT INTO phpbb_awswcal VALUES (5, '5', 'http://www.domainlinkurl5.de');
INSERT INTO phpbb_awswcal VALUES (6, '6', 'http://www.domainlinkurl6.de');
INSERT INTO phpbb_awswcal VALUES (7, '7', 'http://www.domainlinkurl7.de');
INSERT INTO phpbb_awswcal VALUES (8, '8', 'http://www.domainlinkurl8.de');
INSERT INTO phpbb_awswcal VALUES (9, '9', 'http://www.domainlinkurl9.de');
INSERT INTO phpbb_awswcal VALUES (10, '10', 'http://www.domainlinkurl10.de');
INSERT INTO phpbb_awswcal VALUES (11, '11', 'http://www.domainlinkurl11.de');
INSERT INTO phpbb_awswcal VALUES (12, '12', 'http://www.domainlinkurl12.de');
INSERT INTO phpbb_awswcal VALUES (13, '13', 'http://www.domainlinkurl13.de');
INSERT INTO phpbb_awswcal VALUES (14, '14', 'http://www.domainlinkurl14.de');
INSERT INTO phpbb_awswcal VALUES (15, '15', 'http://www.domainlinkurl15.de');
INSERT INTO phpbb_awswcal VALUES (16, '16', 'http://www.domainlinkurl16.de');
INSERT INTO phpbb_awswcal VALUES (17, '17', 'http://www.domainlinkurl17.de');
INSERT INTO phpbb_awswcal VALUES (18, '18', 'http://www.domainlinkurl18.de');
INSERT INTO phpbb_awswcal VALUES (19, '19', 'http://www.domainlinkurl19.de');
INSERT INTO phpbb_awswcal VALUES (20, '20', 'http://www.domainlinkurl20.de');
INSERT INTO phpbb_awswcal VALUES (21, '21', 'http://www.domainlinkurl21.de');
INSERT INTO phpbb_awswcal VALUES (22, '22', 'http://www.domainlinkurl22.de');
INSERT INTO phpbb_awswcal VALUES (23, '23', 'http://www.domainlinkurl23.de');
INSERT INTO phpbb_awswcal VALUES (24, '24', 'http://www.domainlinkurl24.de');
INSERT INTO phpbb_awswcal VALUES (25, '25', 'http://www.domainlinkurl25.de');
INSERT INTO phpbb_awswcal VALUES (26, '26', 'http://www.domainlinkurl26.de');
INSERT INTO phpbb_awswcal VALUES (27, '27', 'http://www.domainlinkurl27.de');
INSERT INTO phpbb_awswcal VALUES (28, '28', 'http://www.domainlinkurl28.de');
INSERT INTO phpbb_awswcal VALUES (29, '29', 'http://www.domainlinkurl29.de');
INSERT INTO phpbb_awswcal VALUES (30, '30', 'http://www.domainlinkurl30.de');
INSERT INTO phpbb_awswcal VALUES (31, '31', 'http://www.domainlinkurl31.de');
Greetz

Wolfi

Verfasst: 02.11.2005 16:01
von Ramona_FP
Looooooooooooooooooob :D Er funktioniert *freu* :grin: :grin: :grin: Danke dir :wink:

Verfasst: 02.11.2005 16:23
von Lord-Blackwolf
Danke ...... :oops: