Fatal error: Call to undefined function diedie_mysql() in /var/www/vhosts/eldacraft.de/eldacraft/neu/install.php on line 42
verwendete ilch Version: 1.1 P
betroffene Homepage: externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
| Geschlossen | ||

Fatal error: Call to undefined function diedie_mysql() in /var/www/vhosts/eldacraft.de/eldacraft/neu/install.php on line 42





<?php
# Copyright by: Manuel Staechele
# Edit by: Nero
# Support: www.ilch.de
function die_mysql(){die('<span style="color:#FF0000;font-size:bold;">Beim installieren ist ein Fehler aufgetreten, bitte benachrichtigen Sie umgehend den Entwickler</span><br><br>Fehler: <br>'.mysql_error());}
if ( empty ($_POST['step']) ) {
?>
<html>
<head><title>... ::: Installations-Script by Nero ::: ...</title>
<link rel="stylesheet" href="include/admin/templates/style.css" type="text/css">
</head>
<body>
<form action="install.php" method="POST">
<input type="hidden" name="step" value="3">
<table width="400" class="border" border="0" cellspacing="1" cellpadding="3" align="center">
<tr class="Chead">
<td colspan="2"><b>Installation</b></td>
</tr><tr class="Cmite">
<td colspan="2" align="center">Um das Modul zu installieren bitte auf "Installieren" klicken <br></td>
</tr><tr class="Cnorm">
<td> "include/images/articles" CHMOD 777<br></td>
<td><?php if ( @is_writeable ( 'include/images/articles' ) ) { echo '<font color="#40aa00"><b>RICHTIG</b></font>'; } else { echo '<font color="#FF0000"><b>FALSCH</b></font>'; } ?></td>
</tr><tr class="Cdark">
<td colspan="2" align="center"><input type="submit" value="Installieren"></td>
</tr>
</table>
</form>
</body>
</html>
<?php
} elseif ($_POST['step'] == '3') {
define ( 'main' , TRUE );
require_once('include/includes/config.php');
require_once('include/includes/func/db/mysql.php');
db_connect();
$sql_file = implode('',file('install.sql'));
$sql_file = preg_replace ("/(\015\012|\015|\012)/", "\n", $sql_file);
$sql_statements = explode(";\n",$sql_file);
foreach ( $sql_statements as $sql_statement ) {
if ( trim($sql_statement) != '' ) {
#echo '<pre>'.$sql_statement.'</pre><hr>';
db_query($sql_statement) OR diedie_mysql();
}
}
?>
<html>
<head><title>... ::: Installations-Script by Nero ::: ...</title>
<link rel="stylesheet" href="include/admin/templates/style.css" type="text/css">
<body>
<table width="400" class="border" border="0" cellspacing="0" cellpadding="25" align="center">
<tr>
<td class="Cmite">
<h2><b>Installation abgeschlossen</b></h2>
<br /><br />
Sofern keine Fehler aufgetreten sind ist die Installation abgeschlossen.
<br /><br /><br />
<span style="color:#FF0000;font-size:bold;">Bitte unbedingt install.sql und install.php löschen!</span>
</td>
</tr>
</table>
</body>
</html>
<?php
}
?>

db_query($sql_statement) OR diedie_mysql();durch
db_query($sql_statement) OR die_mysql();und rufe die Installation erneut auf.
| Geschlossen | ||
![]() |
Zurück zu Module und Modifikationen | |