Also, da is dieses Feld wo man mysql admin usw einstellen kann, aber darunter ist das hier:
[code:1:fe97c3c7e2]zurück'; } else { function parse($req,$file,$pos,$echo = true) { $f = 'include/templates/'.$file.'.htm'; $fp = fopen($f, "r"); $tp = fread($fp, filesize($f)); $tp = explode('{EXPLODE}',$tp); $tp = $tp[$pos]; if (is_array($req)){ foreach($req as $var => $key) { $tp = str_replace('{'.$var.'}',$key,$tp); } } if ($echo == true) { echo $tp; } else { return $tp; } } $textToSave = parse ( array ( 'STARTPAGE' => 'news', 'TITEL' => $_POST['seiteN'], 'STYLE' => 'ilchClan', 'ADMINMAIL' => $_POST['amail'], 'PMFUNKT' => 1, 'GUESTWRIT' => 1, 'GUESTREAD' => 1, 'USAAVATA' => 1, 'MAILAK' => 0, 'DBPREFIX' => $_POST['mysql_prefix'], 'DBUSER' => $_POST['mysql_username'], 'DBHOST' => $_POST['mysql_hostname'], 'DBPASS' => $_POST['mysql_passW'], 'DBDATE' => $_POST['mysql_datenbank'] ) , 'admin/general' , 2 , false ); $open = fopen('include/incs/config.php','w+'); fwrite($open,$textToSave); fclose($open); require_once("include/incs/config.php"); if (!$verbindung = @mysql_connect($dbhost,$dbuser,$dbpass) ) { echo 'Die eingegebenen Datenbank Daten sind fehlerhaft.'; } if (!$mysql_conn = @mysql_select_db($dbdate) ) { echo 'Die eingegebene Datenbank konnte nicht ausgewält werden.'; } mysql_query("CREATE TABLE IF NOT EXISTS `".$dbprefix."_gbook` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(100) NOT NULL default '', `mail` varchar(100) NOT NULL default '', `page` varchar(100) NOT NULL default '', `time` int(20) NOT NULL default '0', `ip` varchar(20) NOT NULL default '', `txt` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM COMMENT='powered by ilch.de'"); mysql_query("CREATE TABLE IF NOT EXISTS `".$dbprefix."_menu` ( `haupt` int(10) NOT NULL default '0', `sort` int(10) NOT NULL default '0', `wozu` int(10) NOT NULL default '0', `recht` int(10) NOT NULL default '0', `name` varchar(255) NOT NULL default '', `link` varchar(255) NOT NULL default '' ) TYPE=MyISAM COMMENT='powered by ilch.de'"); mysql_query("CREATE TABLE IF NOT EXISTS `".$dbprefix."_stats` ( `wtag` tinyint(2) NOT NULL default '0', `stunde` tinyint(2) NOT NULL default '0', `day` tinyint(2) NOT NULL default '0', `mon` tinyint(2) NOT NULL default '0', `yar` int(4) NOT NULL default '0', `os` varchar(50) NOT NULL default '', `browser` varchar(50) NOT NULL default '', `ip` varchar(20) NOT NULL default '', `ref` varchar(255) NOT NULL default '' ) TYPE=MyISAM COMMENT='powered by ilch.de'"); mysql_query("CREATE TABLE IF NOT EXISTS `".$dbprefix."_online` ( `uid` int(10) NOT NULL default '0', `uptime` int(20) NOT NULL default '0', `name` varchar(100) NOT NULL default '', `ip` varchar(20) NOT NULL default '', `sid` varchar(35) NOT NULL default '' ) TYPE=MyISAM COMMENT='powered by ilch.de'"); mysql_query("CREATE TABLE IF NOT EXISTS `".$dbprefix."_teams` ( `id` int(10) NOT NULL default '0', `uid` int(10) NOT NULL default '0', `recht` tinyint(1) NOT NULL default '0', `name` varchar(100) NOT NULL default '', `user` varchar(100) NOT NULL default '', `email` varchar(100) NOT NULL default '', `status` tinyint(1) NOT NULL default '0', `pos` varchar(100) NOT NULL default '', `land` varchar(100) NOT NULL default '', `sort` int(3) NOT NULL default '0', `data` text NOT NULL ) TYPE=MyISAM COMMENT='powered by ilch.de'"); mysql_query("CREATE TABLE IF NOT EXISTS `".$dbprefix."_user` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(50) NOT NULL default '', `pass` varchar(32) NOT NULL default '', `pkey` varchar(10) NOT NULL default '', `recht` int(1) NOT NULL default '0', `posts` int(5) NOT NULL default '0', `regist` int(20) default NULL, `opm` int(1) NOT NULL default '0', `omail` int(1) NOT NULL default '0', `avata` varchar(50) NOT NULL default '', `email` varchar(100) NOT NULL default '', `page` varchar(255) NOT NULL default '', `icq` varchar(50) NOT NULL default '', `ort` varchar(100) NOT NULL default '', `llogin` int(20) default NULL, `sig` tinytext NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM COMMENT='powered by ilch.de'"); mysql_query("CREATE TABLE IF NOT EXISTS `".$dbprefix."_allg` ( `id` int(5) unsigned NOT NULL auto_increment, `k` varchar(255) NOT NULL default '', `v1` varchar(255) NOT NULL default '', `v2` varchar(255) NOT NULL default '', `v3` varchar(255) NOT NULL default '', `v4` varchar(255) NOT NULL default '', `v5` varchar(255) NOT NULL default '', `v6` varchar(255) NOT NULL default '', `t1` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM COMMENT='powered by ilch.de'"); # # Daten für Tabelle `allg` # mysql_query ("INSERT INTO `".$dbprefix."_allg` VALUES ('', 'kontakt', '', 'Joinus|ja#Fightus|ja', '', '', '', '', 'test@test.de|Webmaster')"); mysql_query ("INSERT INTO `".$dbprefix."_allg` VALUES ('', 'smilies', '', '', '', '', '', '', '@@||@@include/images/smili/1.gif##||##:)@@||@@include/images/smili/2.gif##||##:D@@||@@include/images/smili/3.gif##||##:O@@||@@include/images/smili/4.gif##||##:P@@||@@include/images/smili/5.gif##||##;)@@||@@include/images/smili/6.gif##||##:(@@||@@include/images/smili/7.gif##||##:S@@||@@include/images/smili/8.gif##||##:|')"); mysql_query ("INSERT INTO `".$dbprefix."_allg` VALUES ('', 'userRang', '', '', '', '', '', '', '1±Grünschnabel¶25±Jungspund¶50±Mitglied¶75±Eroberer¶100±Foren As¶150±Doppel-As¶250±Tripel-As¶500±Haudegen¶500±Routinier¶1000±König¶1500±Kaiser¶2000±Legende¶10000±Foren Gott')"); mysql_query ("INSERT INTO `".$dbprefix."_allg` VALUES ('', 'modulrechte', '', '', '', '', '', 'news', '')"); mysql_query ("INSERT INTO `".$dbprefix."_allg` VALUES ('', 'modulrechte', '', '', '', '', '', 'wars', '')"); mysql_query ("INSERT INTO `".$dbprefix."_allg` VALUES ('', 'modulrechte', '', '', '', '', '', 'down', '')"); mysql_query ("INSERT INTO `".$dbprefix."_allg` VALUES ('', 'modulrechte', '', '', '', '', '', 'links', '')"); # # daten für Tablle `user` # mysql_query ("INSERT INTO `".$dbprefix."_user` VALUES ('', '".$name."','".md5($pwd)."','','1','1','".time()."','1','1','','".$amail."','','','','".time()."','')"); # # daten für Tablle `menu` # mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (12, 1, 5, -4, "Menü", "navigation.php")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (21, 2, 0, -4, "Allianz", "allianz.php")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (21, 3, 0, -4, "Suche", "suchen.php")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (21, 4, 0, -4, "Statistik", "statistik.php")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (11, 13, 0, -4, "Login", "login.php")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (12, 7, 5, -4, "ClanMenü", "")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (21, 5, 0, -4, "Style", "templates.php")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (21, 1, 0, -4, "Umfrage", "vote.php")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 6, 5, -4, "Kontakt", "kontakt")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 5, 5, -4, "News", "news")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 8, 5, -4, "Wars", "wars")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 12, 5, -4, "Forum", "forum")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 11, 5, -4, "Gästebuch", "gbook")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 4, 5, -4, "Downloads", "down")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 3, 5, -4, "Links", "links")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 2, 5, -4, "Gallery", "gallery")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 10, 5, -4, "Mitglieder", "user")'); mysql_query('INSERT INTO '.$dbprefix.'_menu VALUES (13, 9, 5, -4, "Teams", "teams")'); ?>[/code:1:fe97c3c7e2]
Ausserdem, wenn ich auf Speichern gehe Passiert nix, fülle ich das irgendwie falsch aus`?:(