<?php
if
(
empty
(
$_POST
[
'step'
]) ) { ?>
<html>
<head><title>... ::: [ I n s t a l l a t i o n f ü r Bonuspointsystem v o n Rock@wulf ] ::: ...</title>
<link rel=
"stylesheet"
href=
"include/designs/ilchClan/style.css"
type=
"text/css"
>
</head>
<body>
<form action=
"install.php"
method=
"POST"
>
<input type=
"hidden"
name=
"step"
value=
"3"
>
<table width=
"100%"
class
=
"border"
border=
"0"
cellspacing=
"1"
cellpadding=
"3"
align=
"center"
>
<tr
class
=
"Chead"
>
<td colspan=
"3"
><b>Installation</b></td>
</tr><tr
class
=
"Cmite"
>
<td colspan=
"3"
align=
"center"
>Drücken sie Installieren, um
die
Tabellen in
die
datenbank zu schreiben.<br/> Alle angaben bezüglich konto werden im Admin bereich eingegeben<br/><br/>Hinweiß: Hierbei wird das BBcode update von SetZero mit installiert, Besten dank an SetZero</td>
</tr><tr
class
=
"Cdark"
>
<td colspan=
"3"
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_statements
=
explode
(
';'
,
$sql_file
);
foreach
(
$sql_statements
as
$sql_statement
) {
if
( trim(
$sql_statement
) !=
''
) {
#
echo
'<pre>'
.
$sql_statement
.
'</pre><hr>'
;
db_query(
$sql_statement
);
}
}
db_close();
?>
<html>
<head><title>... ::: [ I n s t a l l a t i o n f ü r Bonuspointsystem v o n Rock@wulf ] ::: ...</title>
<link rel=
"stylesheet"
href=
"include/designs/ilchClan/style.css"
type=
"text/css"
></head>
<body>
<table width=
"70%"
class
=
"border"
border=
"0"
cellspacing=
"0"
cellpadding=
"25"
align=
"center"
>
<tr>
<td
class
=
"Cmite"
>
<h2><b>Installation abgeschlosen</b></h2>
<br /><br />
Sofern keine Fehler aufgetreten sind ist
die
Installation abgescholssen.
<br />
Die Seite kann jetzt unter <a href=
"index.php?forum"
>Aufgerufen</a> werden.
<br /><br />
Bitte unbedingt install.sql und install.php löschen!
</td>
</tr>
</table>
</body>
</html>
<?php
}
?>