diff --git a/install/templates/config.tpl b/install/templates/config.tpl new file mode 100644 index 00000000..184a1b5f --- /dev/null +++ b/install/templates/config.tpl @@ -0,0 +1,273 @@ +Error creating constant.php check cmod.
"; +} +?> +
+ +

+ SERVER RELATED + + + + + + + + + + + + + + + + + + + + +
Server name:
Server speed:
Troop speed:
Evasion speed:
Trader capacity (1 = 1x...):
World size: + +
Register Open: + +
Server:
Domain:
Homepage:
Language: + +
Beginners protection length: + +
Plus account length: + +
+25% production length: + +
Storage Multipler:
Tourn Threshold:
Great Workshop: + +
ww: + +
Peace system: + +
+

+ +

+ ADMIN ACCOUNT + + + + + +
Admin name:
Admin email:
Show admin in stats: + +
+

+ +

+ SQL RELATED + + + + + + + +
Hostname:
Username:
Password:
DB name:
Prefix:
Type:
+

+ + + + + + + +

+ NEWSBOX OPTIONS + + + + +
Newsbox 1:
Newsbox 2:
Newsbox 3:
+

+ +

+ LOG RELATED (You should disable them) + + + + + + + + + + + +
Log Building:
Log Tech:
Log Login:
Log Gold:
Log Admin:
Log War:
Log Market:
Log Illegal:
Log :
+

+ +

+ EXTRA OPTIONS + + + + + + + + + + +
Quest:
Activate:
Limit Mailbox: (NOT DONE)
Max mails: (NOT DONE)
Demolish - lvl required:
Village Expand:
Error Reporting:
T4 is Coming screen:
+

+
+ Server Start Settings + + + +
Start Date:
Start Time:
+ +
+ +
+
+ + \ No newline at end of file diff --git a/install/templates/dataform.tpl b/install/templates/dataform.tpl new file mode 100644 index 00000000..ffc2788a --- /dev/null +++ b/install/templates/dataform.tpl @@ -0,0 +1,25 @@ +Error importing database. Check configuration.
"; +} +?> +
+ + +

+ Create SQL Structure + + + +
Warning: This can take some time. Do not click, just wait till the next page has been loaded!
+

+
+ \ No newline at end of file diff --git a/install/templates/end.tpl b/install/templates/end.tpl new file mode 100644 index 00000000..6c2dee05 --- /dev/null +++ b/install/templates/end.tpl @@ -0,0 +1,20 @@ + +

+Thanks for installing TravianX. +

Please remove/rename the installation folder.

+All the files are placed. The database is created, so you can now start playing on your own Travian. +

+ + +

+

> My TravianX homepage <
+

+ \ No newline at end of file diff --git a/install/templates/field.tpl b/install/templates/field.tpl new file mode 100644 index 00000000..60374858 --- /dev/null +++ b/install/templates/field.tpl @@ -0,0 +1,25 @@ +Error creating wdata. Check configuration or file.
"; +} +?> +
+ + +

+ Create World Data + + + +
Warning: This can take some time. Do not click, just wait till the next page has been loaded!
+

+
+ \ No newline at end of file diff --git a/install/templates/greet.tpl b/install/templates/greet.tpl new file mode 100644 index 00000000..20e9df2d --- /dev/null +++ b/install/templates/greet.tpl @@ -0,0 +1,43 @@ + +
+ +

  Disclaimer

+ + + + + +
+ TravianX Team +
+
+ +
+
+ +
+
+ + diff --git a/install/templates/menu.tpl b/install/templates/menu.tpl new file mode 100644 index 00000000..01be4f88 --- /dev/null +++ b/install/templates/menu.tpl @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/install/templates/multihunter.tpl b/install/templates/multihunter.tpl new file mode 100644 index 00000000..13bc860d --- /dev/null +++ b/install/templates/multihunter.tpl @@ -0,0 +1,29 @@ + + + + +
+ +

+ Create Multihunter account + + + + +
Name:
Password:
Note: Rember this password! You need it for the ACP
+

+ +
+
+
+ + \ No newline at end of file diff --git a/install/templates/oasis.tpl b/install/templates/oasis.tpl new file mode 100644 index 00000000..eeb1dacb --- /dev/null +++ b/install/templates/oasis.tpl @@ -0,0 +1,18 @@ + +
+

+ Populate Oasis + + + +
Warning: This can take some time. Do not click, just wait till the next page has been loaded!
+

+
diff --git a/install/templates/script.tpl b/install/templates/script.tpl new file mode 100644 index 00000000..26c9141f --- /dev/null +++ b/install/templates/script.tpl @@ -0,0 +1,145 @@ + + +bar_id = uniqid('progressbar'); + $this->label = $label; + + $this->max_ticks = $max_ticks; + $this->ticks = 0; + } + + public function tick() { + $this->ticks++; + $this->draw_progress(); + } + + public function draw() { + $this->draw_bar(); + $this->draw_progress(); + } + + static public function draw_css() { + echo ' + + '; + } + + protected function draw_bar() { + echo ' +
+ +
+ +
+
+ '; + echo ' + + '; + + $this->flush(); + } + + protected function draw_progress() { + + $width = round($this->ticks / $this->max_ticks * 100, 2); + $label = sprintf($this->label, $this->ticks, $this->max_ticks); + + echo ' + + + '; + $this->flush(); + } + + protected function flush() { + while(ob_get_level() > 0) { + ob_end_flush(); + } + + flush(); + } +} +?> \ No newline at end of file