mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-21 03:56:08 +00:00
big update
This commit is contained in:
@@ -28,6 +28,10 @@ define("SERVER_NAME","%SERVERNAME%");
|
||||
// Defines when has server started.
|
||||
define("COMMENCE","%STARTTIME%");
|
||||
|
||||
// ***** Server Start Date / Time
|
||||
define("START_DATE", "%SSTARTDATE%");
|
||||
define("START_TIME", "%SSTARTTIME%");
|
||||
|
||||
// ***** Language
|
||||
// Choose your server language.
|
||||
define("LANG","%LANG%");
|
||||
|
||||
+22
-41
@@ -452,24 +452,6 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%demolition` (
|
||||
--
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `%prefix%destroy_log`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `%PREFIX%destroy_log` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`wid` int(10) unsigned NOT NULL,
|
||||
`log` text NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `%prefix%destroy_log`
|
||||
--
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
@@ -1329,29 +1311,28 @@ INSERT INTO `%PREFIX%users` (`id`, `username`, `password`, `email`, `tribe`, `ac
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `%PREFIX%vdata` (
|
||||
`wref` int(10) unsigned NOT NULL,
|
||||
`owner` int(10) unsigned NOT NULL,
|
||||
`name` varchar(45) NOT NULL,
|
||||
`capital` tinyint(1) unsigned NOT NULL,
|
||||
`pop` int(10) unsigned NOT NULL,
|
||||
`cp` int(10) unsigned NOT NULL,
|
||||
`celebration` int(10) NOT NULL DEFAULT '0',
|
||||
`type` int(10) NOT NULL DEFAULT '0',
|
||||
`wood` float(12,2) NOT NULL,
|
||||
`clay` float(12,2) NOT NULL,
|
||||
`iron` float(12,2) NOT NULL,
|
||||
`maxstore` int(10) unsigned NOT NULL,
|
||||
`crop` float(12,2) NOT NULL,
|
||||
`maxcrop` int(10) unsigned NOT NULL,
|
||||
`lastupdate` int(11) unsigned NOT NULL,
|
||||
`loyalty` float(9,6) unsigned NOT NULL DEFAULT '100',
|
||||
`exp1` int(10) NOT NULL,
|
||||
`exp2` int(10) NOT NULL,
|
||||
`exp3` int(10) NOT NULL,
|
||||
`created` int(11) NOT NULL,
|
||||
PRIMARY KEY (`wref`),
|
||||
KEY `wref` (`wref`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
`wref` int(10) unsigned NOT NULL,
|
||||
`owner` int(10) unsigned NOT NULL,
|
||||
`name` varchar(45) NOT NULL,
|
||||
`capital` tinyint(1) unsigned NOT NULL,
|
||||
`pop` int(10) unsigned NOT NULL,
|
||||
`cp` int(10) unsigned NOT NULL,
|
||||
`celebration` int(10) NOT NULL DEFAULT '0',
|
||||
`type` int(10) NOT NULL DEFAULT '0',
|
||||
`wood` float(12,2) NOT NULL,
|
||||
`clay` float(12,2) NOT NULL,
|
||||
`iron` float(12,2) NOT NULL,
|
||||
`maxstore` int(10) unsigned NOT NULL,
|
||||
`crop` float(12,2) NOT NULL,
|
||||
`maxcrop` int(10) unsigned NOT NULL,
|
||||
`lastupdate` int(11) unsigned NOT NULL,
|
||||
`loyalty` float(9,6) unsigned NOT NULL DEFAULT '100',
|
||||
`exp1` int(10) NOT NULL,
|
||||
`exp2` int(10) NOT NULL,
|
||||
`exp3` int(10) NOT NULL,
|
||||
`created` int(11) NOT NULL,
|
||||
PRIMARY KEY (`wref`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `%prefix%vdata`
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: install\include\constant.php");
|
||||
$text = file_get_contents("data/constant_format.tpl");
|
||||
$text = preg_replace("'%SERVERNAME%'", $_POST['servername'], $text);
|
||||
$text = preg_replace("'%SSTARTDATE%'", $_POST['start_date'], $text);
|
||||
$text = preg_replace("'%SSTARTTIME%'", $_POST['start_time'], $text);
|
||||
$text = preg_replace("'%LANG%'", $_POST['lang'], $text);
|
||||
$text = preg_replace("'%SPEED%'", $_POST['speed'], $text);
|
||||
$text = preg_replace("'%INCSPEED%'", $_POST['incspeed'], $text);
|
||||
|
||||
@@ -240,7 +240,12 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
|
||||
</select></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<br />
|
||||
<span class="f10 c">Server Start Settings</span>
|
||||
<table>
|
||||
<tr><td><span class="f9 c6">Start Date:</span></td><td width="140"><input type="text" name="start_date" id="start_date" value="<?php echo date('m/d/Y'); ?>"></td></tr>
|
||||
<tr><td><span class="f9 c6">Start Time:</span></td><td width="140"><input type="text" name="start_time" id="start_time" value="<?php echo date('H:i'); ?>"></td></tr>
|
||||
</table>
|
||||
|
||||
<center>
|
||||
<input type="submit" name="Submit" id="Submit" value="Submit">
|
||||
|
||||
Reference in New Issue
Block a user