コード例 #1
0
ファイル: index.php プロジェクト: sonicmaster/RPG
     $SubTPL = gettemplate('install/ins_check');
     $bloc = $lang;
     $bloc['content'] = $content;
     $frame = parsetemplate($SubTPL, $bloc);
 } elseif ($Page == 2) {
     $SubTPL = gettemplate('install/ins_form');
     $bloc = $lang;
     $frame = parsetemplate($SubTPL, $bloc);
 } elseif ($Page == 3) {
     $host = $_POST['host'];
     $user = $_POST['user'];
     $pass = $_POST['passwort'];
     $prefix = $_POST['prefix'];
     $db = $_POST['db'];
     $installer->ConnectToDatabase($host, $user, $pass);
     $installer->SelectDatabase($db);
     $installer->CreateDatabase("xnova_database.sql", $prefix);
     $installer->WriteConfig($host, $user, $pass, $db, $prefix);
     $SubTPL = gettemplate('install/ins_form_done');
     $bloc = $lang;
     $frame = parsetemplate($SubTPL, $bloc);
 } elseif ($Page == 4) {
     echo $Page;
     //Datenbankverbindung herstellen
     include XNOVA_ROOT_PATH . 'pages/config.php';
     $db_host = $dbsettings['server'];
     $db_user = $dbsettings['user'];
     $db_pass = $dbsettings['pass'];
     $db_prefix = $dbsettings['prefix'];
     $db_db = $dbsettings['name'];
     $installer->ConnectToDatabase($db_host, $db_user, $db_pass);