ich installiere einen Mod und da ist nur eine install Datei dabei, keine manuelle SQL Anleitung.
Nun sind die Tabellen in der Datenbank alle anders benannt anstatt phpbb_........
Was müsste ich tun, um die SQL Befehle manuell ausführen zu können?
Hier mal die install.php Datei.
Code: Alles auswählen
<?
$tablename = 'config';
// ******************* NO EDITING BELOW THIS LINE *******************
$lpetver = '1.0.0';
// connect to phpbb
include('./config.php');
$cnx = mysql_connect($dbhost, $dbuser, $dbpasswd)
or die("Unable to connect to database server.");
mysql_select_db($dbname, $cnx)
or die("Unable to select database.");
$sql1 = "INSERT INTO ". $table_prefix.$tablename ." (config_name, config_value) VALUES ('board_note_enable', '1')";
$result = mysql_query($sql1);
if(!$result)
echo "<font color ='red'>Install failed<BR><BR></font>";
if (mysql_error()) { echo "Error Report: <B>".mysql_error()."</B><BR><BR>"; }
else {
echo "<font color ='green'>Install complete, new row in the table added.</font><BR><BR><BR>Please remember to delete this file ASAP.<BR><BR><BR>";
}
$sql1 = "INSERT INTO ". $table_prefix.$tablename ." (config_name, config_value) VALUES ('board_note', 'Board Note Text<br><br>HTH AWSW <img src=\"images/smiles/icon_rolleyes.gif\"><br><a href=\"http://www.awsw.de\">www.awsw.de</a>')";
$result = mysql_query($sql1);
if(!$result)
echo "<font color ='red'>Install failed<BR><BR></font>";
if (mysql_error()) { echo "Error Report: <B>".mysql_error()."</B><BR><BR>"; }
else {
echo "<font color ='green'>Install complete, new row in the table added.</font><BR><BR><BR>Please remember to delete this file ASAP.";
}
exit;
?>