Seite 2 von 2

Verfasst: 08.06.2004 14:56
von Leuchte
Erstell eine PHP-Datei mit folgendem Inhalt und lad diese auf deinen Webspace
<?php
/***************************************************************************
* db_update.php
* -------------------
*
* copyright : ©2003 Freakin' Booty ;-P & Antony Bailey
* project : http://sourceforge.net/projects/dbgenerator
* Website : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net
*
***************************************************************************/

/***************************************************************************
*
* 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=db_update.$phpEx", true));
exit;
}

if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}


$page_title = 'Updating the database';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';


$sql = array();
$sql[] = $sql=array(
'CREATE TABLE '.DOWNLOADS_TABLE.' (
id int(11) auto_increment,
description varchar(255),
file_name varchar(255),
klicks int(11) default \'0\',
free tinyint(1) default \'0\',
extern tinyint(1) default \'0\',
long_desc text,
sort int(11) default \'0\',
cat int(11) default \'0\',
PRIMARY KEY (id)) ',

'CREATE TABLE '.DL_CAT_TABLE.' (
id int(11) auto_increment,
path varchar(255),
cat_name varchar(255),
sort int(11) default \'0\',
description text,
PRIMARY KEY (id)) ',

'ALTER TABLE '.USERS_TABLE.' ADD user_traffic INT(255) DEFAULT 0 '
);

for( $i = 0; $i < count($sql); $i++ )
{
if( !$result = $db->sql_query ($sql[$i]) )
{
$error = $db->sql_error();

echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
}
else
{
echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successful</b></font></li><br />';
}
}


echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';

echo '<tr><th>Installation Complete</th></tr><tr><td><span class="genmed">Please be sure to delete this file now.<br />If you require any further assistance, please visit the <a href="http://www.phpbbhacks.com/forums">phpBBHacks.com Support Forums</a>.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Go back to your index page</a>.</span></td></table>';

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
Anschliessend als Admin ausführen.

@Matze_1 den Beitrag hättest du dir sparen können. :roll:

Verfasst: 08.06.2004 19:00
von Alien
unter welchen namen abspeichern?

ich hab die .htaccess datei erstellt und in den media ordner reingeshcoben... jetzt klcikt mal auf meine url... ich hab etwas falsch gemacht oder?

Verfasst: 08.06.2004 22:28
von Leuchte
unter welchen namen abspeichern?
Das ist egal. Hauptsache du rufst sie später als Admin unter selben Namen auf ;)

Ich kann bei deiner URL keinen Fehler erkennen.

Verfasst: 09.06.2004 14:07
von Alien
ja, hab die .htaccess datei auch wieder vom webspace genommen... wenn ich sie aber hochlade, erscheint folgende fehlermedlung Internal Server Error.... blablabla... blabla... bla

sobald ich die datei wieder lösche ist alles i.O.

was muss ich tun, damit die fehlermeldung nicht erscheint ??

Verfasst: 20.05.2006 12:14
von eiko
Ich kann den MOd irgend wie nicht downlaoden?! Wen ich auf http://www.phpbbhacks.com/viewhack.php?id=961 gehe find ich da irgend wie keinen download link. Kann ihn mir mal jemand per ICQ oder so schicken oder hier rein posten. Wer wirklich nett!