- <link href="install.css" rel="stylesheet" type="text/css" />
- <style type="text/css">
- <!--
- .style3 {font-size: 9pt; color: #000000; }
- -->
- </style>
- <?php
- $buffer .= "<?php\n";
- $buffer .= "// Ice Dynasty CMS Configuration\n";
- $buffer .= "\n";
- $buffer .= "// ************************\n";
- $buffer .= "// Database Configuration\n";
- $buffer .= "// ************************\n";
- $buffer .= "\n";
- $buffer .= "\$dbhost = '".$_POST['host']."'; // Database Password\n";
- $buffer .= "\$dbuser = '".$_POST['user']."'; // Database Username\n";
- $buffer .= "\$dbpasswd = '".$_POST['pass']."'; // Database Password\n";
- $buffer .= "\$dbname = '".$_POST['data']."'; // Database Name\n";
- $buffer .= "// ************************\n";
- $buffer .= "// Status Configuration\n";
- $buffer .= "// ************************\n";
- $buffer .= "\$host = '127.0.0.1'; // Server IP for status\n";
- $buffer .= "\$log_port = '29000'; // Server port for status\n";
- $buffer .= "\$char_port = '29100'; // Server port for status\n";
- $buffer .= "\$world_port = '29200'; // Server port for status\n";
- $buffer .= "\$lonline = '<img src=pixels/online.png>'; // To say when login is online\n";
- $buffer .= "\$conline = '<img src=pixels/on2.png>'; // To say when char is online\n";
- $buffer .= "\$wonline = '<img src=pixels/on3.png>'; // To say when world is online\n";
- $buffer .= "\$loffline = '<img src=pixels/offline.png>'; // To say when login is offline\n";
- $buffer .= "\$coffline = '<img src=pixels/off2.png>'; // To say when char is offline\n";
- $buffer .= "\$woffline = '<img src=pixels/off3.png>'; // To say when world is offline\n";
- $buffer .= "?>\n";
- // Load defaults...
- mysql_connect($_POST['host'], $_POST['user'], $_POST['pass']);
- mysql_select_db($_POST['data']);
- $drop = mysql_query("DROP TABLE IF EXISTS dynastycms");
- $create = mysql_query("CREATE TABLE dynastycms (Admin varchar(100), GM varchar(100), Dev varchar(100), title varchar(100), forums varchar(100), client varchar(100), patch varchar(100), exprate varchar(100), droprate varchar(100), zulyrate varchar(100))");
- $insert = mysql_query("INSERT INTO dynastycms (Admin, GM, Dev, title, forums, client, patch, exprate, droprate, zulyrate) VALUES ('".$_POST["Admin"]."', '".$_POST["GM"]."', '".$_POST["Dev"]."', '".$_POST["title"]."', '".$_POST["forums"]."', '".$_POST["client"]."', '".$_POST["patch"]."', '".$_POST["exp"]."', '".$_POST["drop"]."', '".$_POST["zuly"]."')");
- $drop2 = mysql_query("DROP TABLE IF EXISTS icenews");
- $create2 = mysql_query("CREATE TABLE icenews (id int(100), news_date varchar(100), news_title varchar(100), news varchar(1000), events_date varchar(100), events_title varchar(100), events varchar(1000), updates_date varchar(100), updates_title varchar(100), updates varchar(1000))");
- $insert2 = mysql_query("INSERT INTO icenews (id, news_date, news_title, news, events_date, events_title, events, updates_date, updates_title, updates) VALUES ('NULL', 'news date', 'news title', 'this is the news page, edit this in the admin panel', 'events date', 'events title', 'this is the events page, edit this in the admin panel', 'updates_date', 'updates_title', 'this is the updates page, edit this in the admin panel')");
- if(!$create) {
- echo '<p class="style3">Cannot create dynastycms tables!</p>';
- exit();
- }
- if(!$create2) {
- echo '<p class="style3">Cannot create icenews tables!</p>';
- exit();
- }
- $f = fopen('../functions/config.php', 'w');
- $fd = fwrite($f, $buffer);
- $fe = fclose($f);
- $link = "../index.php";
- if(!$f) {
- die("Cant open the configuration file!!");
- }
- if(!$fd) {
- die("Cant write to the configuration file!!");
- }
- else
- {
- $asd = "../index.php";
- echo "<BR><BR><center><p class='style3'>Ice Dynasty CMS has been installed successfully.";
- }
- ?>
Hello,
i install it, its show i have error in line 8 in file goinstall.php
its works fine but, when it try to login bu user or admin the page doens't open, could anybody tell me how to make it.
Best Regards,