Commit Graph

656 Commits

Author SHA1 Message Date
iopietro 1f86162179 Artifacts fix
+Added the possibility to add WW villages to a player, in the admin
panel
+Fixed the WW villages counter
+Deleted Natars' artifacts can now be recovered from the admin panel
2018-07-25 15:32:14 +02:00
iopietro ee0b4984c2 #554 Fixes and General fixes
+Fixed a bug that could have happened in the statistics if there were 0
users in the server
+Fixed a compatibility bug with PHP 7.0
2018-07-24 18:19:44 +02:00
iopietro 81dcd16e3d Merge branch 'master' of https://github.com/Shadowss/TravianZ 2018-07-24 03:04:37 +02:00
iopietro 77136a9784 Artifacts update and optimizations
+Added the "Artifacts" section in the Admin Panel, which contains two
options: return a deleted artifact to the Natars and create new
Artifacts, assigned to a specified player
+Return to Natars coded, in the village section of the Admin Panel
+Moved a lot of functions and costants from Automation.php to the "new"
class Artifacts.php
+Optimized a lot the whole Natars creation process, decreased the number
of query of about 600
+Optimized a lot the function which deletes a player's account, it's now
executed almost instantly, even with players with a lot of villages
+Redesigned the map spawn system, using a more Travian-like village
distribution
+Fixed a bug that did show a broken village in the artifact chronology,
if that village was destroyed
+Reduced the amount of redundant code (about 230 lines) for
27_1.tpl/27_2.tpl and 27_3.tpl
+Fixed a bug that permitted to build the Great Granary and the Great
Warehouse in the whole account, with only a village effect artifact
+Fixed a bug in the Admin Panel map that didn't permit to show village
informations, if that village contained single quotes in its name
2018-07-24 03:04:25 +02:00
Vladyslav 48a0aaba7f Minor changes to medals
Now during the editing of the profile instead of the word "Bonus" a specific name of the medal is written
2018-07-17 18:54:04 +03:00
Shadow 8d25ef9424 Merge branch 'master' of https://github.com/Shadowss/TravianZ 2018-06-27 13:00:48 +03:00
Shadow dc1bce2aec Pyapal email
@iopietro : can you check why that email doesn`t change from configuration file ? If i press buy website redirect to paypal to pay at mail that i put on install , but in files remain old email
2018-06-27 13:00:44 +03:00
Vladyslav 3cbcdd4bd1 Redirect to profile overview if vacation mode is disabled
+Now if vacation mode is disabled and whoever wants to go to the well-known 
vacation mode link, it will be redirected to an overview of its profile.
2018-06-27 11:11:47 +03:00
Vladyslav 3f64e4f3bc Enable (Disable) Vacation Mode
+Enable (Disable) Vacation Mode
+Fixed an error displaying the icon to
delete the villages in the admin search

NOTE 1: To play this version of the game, you need
to reinstall the server OR you can simply add
these lines of code into your file:

GameEngine/config.php

define("NEW_FUNCTIONS_VACATION", false);

GameEngine/Admin/Mods/constant_format.tpl

define("NEW_FUNCTIONS_VACATION", %NEW_FUNCTIONS_VACATION%);

NOTE 2: pay special attention to the fact that these are two
different records !!! If the records are entered incorrectly,
you will receive a non-working code!
2018-06-26 20:52:47 +03:00
Vladyslav dffdcc4411 Enable (Disable) some new features
+Enable (Disable) New forum post message
+Enable (Disable) Tribes images in profile
+Enable (Disable) MHs images in profile
+Enable (Disable) Display artifact in profile
+Minor changes

NOTE 1: To play this version of the game, you need to reinstall
the server OR you can simply add these lines of code into your file:
ameEngine/config.php

define("NEW_FUNCTIONS_FORUM_POST_MESSAGE", False);
define("NEW_FUNCTIONS_TRIBE_IMAGES", False);
define("NEW_FUNCTIONS_MHS_IMAGES", False);
define("NEW_FUNCTIONS_DISPLAY_ARTIFACT", False);

GameEngine/Admin/Mods/constant_format.tpl

define("NEW_FUNCTIONS_FORUM_POST_MESSAGE", %NEW_FUNCTIONS_FORUM_POST_MESSAGE%);
define("NEW_FUNCTIONS_TRIBE_IMAGES", %NEW_FUNCTIONS_TRIBE_IMAGES%);
define("NEW_FUNCTIONS_MHS_IMAGES", %NEW_FUNCTIONS_MHS_IMAGES%);
define("NEW_FUNCTIONS_DISPLAY_ARTIFACT", %NEW_FUNCTIONS_DISPLAY_ARTIFACT%);

NOTE 2: pay special attention to the fact that these are two
different records !!! If the records are entered incorrectly,
you will receive a non-working code!
2018-06-25 21:06:30 +03:00
iopietro c4d6d70128 General fixes
+Fixed a bug that showed deleted artifacts in the treasury
2018-06-22 12:57:05 +02:00
iopietro fc562d92dd Merge branch 'master' of https://github.com/Shadowss/TravianZ
Conflicts:
	Templates/Profile/overview.tpl
2018-06-21 15:01:56 +02:00
iopietro c574a71b3a General fixes
+Fixed a bug that didn't delete artifacts when a player deleted his
account
+Added "(artifact)" if a village has an artifact in the village overview
+Added the artifact section in the multihunter panel (return to natars
doesn't work yet)

NOTE: To play this version of the game, you have to run this query first
(where "s1_" is the prefix of your server):

ALTER TABLE `s1_artefacts` ADD `del` TINYINT(1) NULL DEFAULT '0' AFTER
`lastupdate`;
ALTER TABLE `testtravian`.`s1_artefacts` ADD INDEX
`active-owner-conquered-del` (`active`, `owner`, `conquered`, `del`);
2018-06-21 14:43:47 +02:00
Shadow 168733c4c2 Merge branch 'master' of https://github.com/Shadowss/TravianZ 2018-06-21 15:24:16 +03:00
Shadow 135f8fa24f Little mistake in market
+fix vacation in market.
+for the moment is a problem in database (not register vacation in database)
2018-06-21 15:24:14 +03:00
Catalin Novgorodschi aa671c51a9 Update medal images code
+reduce the line
2018-06-21 14:43:48 +03:00
Vladyslav 6ef38c50cb Minor changes using boolean statements 2018-06-21 00:54:41 +03:00
Vladyslav 11ae61c013 Enable and disable display of oases
+Now during the installation (or after installation in the admin panel) you can enable or disable oasis display for villages in the player profile.

NOTE: To play this version of the game, you need to reinstall the server OR you can simply add these lines of code into your file:
GameEngine/config.php

/////////////////////////////////////////////////
//   ****  NEW MECHANICS AND FUNCTIONS  ****   //
/////////////////////////////////////////////////
define("NEW_FUNCTIONS_OASIS", True);

GameEngine/Admin/Modsconstant_format.tpl

/////////////////////////////////////////////////
//   ****  NEW MECHANICS AND FUNCTIONS  ****   //
/////////////////////////////////////////////////
define("NEW_FUNCTIONS_OASIS", %NEW_FUNCTIONS_OASIS%);

NOTICE 2: pay special attention to the fact that these are two different records !!! If the records are entered incorrectly, you will receive a non-working code!
2018-06-20 16:57:13 +03:00
Vladyslav 1a9f71e23d General fixes
+Activation correction plus (it was not displayed correctly)
+Added a transfer to a new line of long words in the admin panel (for the description of the player's profile and the alliance)
2018-06-17 18:40:13 +03:00
Vladyslav a547938514 Change the date display
In the code, the dates have a variety of display formats so everything can not be displayed at once. It is possible that somewhere else there are dates in other display formats.
2018-06-17 15:28:58 +03:00
Vladyslav 56c729a211 Fix the display of long words in the alliance
Now the long words in the alliance description are not hidden but are transferred to a new line
2018-06-17 15:13:34 +03:00
Vladyslav 7fde3e5ec2 Fix the display of long words in the profile
Now the long words in the player's description are not hidden but are transferred to a new line
2018-06-17 14:01:53 +03:00
phaze1G a799afdbd9 Small fix to calcualted/servertime (#548)
* Calcuated & server time

* Update plus1.php

* Update rules.php

* Update menu.tpl

* Update maintenance.php

* Update version.php

* Update dorf3.php

* Update karte.php

* Update berichte.php

* Update dorf2.php

* Update plus.php

* Update warsim.php

* Update support.php

* Update statistiken.php

* Update nachrichten.php

* Update spieler.php

* Update crop_finder.php

* Update winner.php

* Update a2b2.php
2018-06-14 00:52:44 +02:00
Shadow 5bc1633182 Block folder accces
+404 error
2018-06-13 11:17:18 +03:00
iopietro 048b0d9589 General fixes
+Better indentation, why doesn't anyone use arrays :(
2018-06-11 16:03:54 +02:00
iopietro 365e56addf A little forgetfulness 2018-06-11 16:01:37 +02:00
Catalin Novgorodschi 2cd42a3e4e Ups something went wrong
@iopietro a little forgot :))
2018-06-11 14:55:22 +03:00
Shadow 3697f761b3 Update oasis images
+update oasis images
+thanks @velhbxtyrj
2018-06-11 11:02:44 +03:00
iopietro 79eb6a73d6 General fixes
+Removed almost all "BANNED" controls to template and .php UI files. The
control will be done only once and in the Session class
2018-06-11 02:22:22 +02:00
iopietro f264cb6b8d General fixes
+Oases are now displayed in the players profile
+Fixed a bug that showed a wrong localization in the Castle
2018-06-10 00:41:18 +02:00
iopietro 0ad0100b3f Merge branch 'master' of https://github.com/Shadowss/TravianZ 2018-06-09 19:02:10 +02:00
iopietro 3504c98bea General fixes
+Completely coded "Players report" in the admin panel, now you can see
any report you want
+Added "Players message", you can now see every message of any player
+Fully coded "IMG/Reports" section, it now works properly
+Fully CSSed reports, they'll now look like in game
+Centered the whole admin panel (because we're in 2018, lul)
2018-06-09 19:02:00 +02:00
Vladyslav 75a6bd3376 Change the date display in the treasury 2018-06-09 16:14:16 +03:00
Vladyslav 29cf71f95f A small fix of newsbox 2 2018-06-09 11:16:26 +03:00
Catalin Novgorodschi 02c05f677d Added oasis part
+must to be coded to activate from the install section
2018-06-09 09:32:11 +03:00
Catalin Novgorodschi f849a5613a Update special medals
@iopietro must to code to activate/deactivate from admin panel.
+also must code the images for WW Builder and WW Winner (WW Builder must to appear when you conquer the Natar Village) and (WW Winner must to remain in any server based on email register)
2018-06-08 09:00:44 +03:00
Catalin Novgorodschi fd461e8879 Vacation enabled for everyone
Fix
2018-06-07 08:32:15 +03:00
Catalin Novgorodschi 0dcb390053 Vacation enabled for everyone 2018-06-07 08:31:03 +03:00
Catalin Novgorodschi 8af84113e5 fix view of crop finder 2018-06-07 08:21:56 +03:00
iopietro b7f958b203 General fixes
+Changed error control priority in the Armoury and Blacksmith
2018-06-06 02:25:49 +02:00
Vladyslav f81e918ca0 NPC button no longer appears when total resources is not enough pary 2
This hotfix fixes the bug described in comment: https://github.com/Shadowss/TravianZ/issues/544#issuecomment-394587340
All fixed according to the example pull request #442
2018-06-05 21:06:59 +03:00
Catalin Novgorodschi e9f90b1579 Fix rules
maybe is better @velhbxtyrj
2018-06-04 20:04:02 +03:00
Vladyslav 1c8d18611e Fixed link to rules 2018-06-04 19:30:05 +03:00
Shadow 219aadf956 Fix support 2018-06-04 14:33:01 +03:00
Shadow 57a5a70abb Modified support page like real Travian 2018-06-04 14:28:50 +03:00
iopietro 5b7a13ef5d General fixes
+You can now read all reports in the multihunter panel, it's still a
work in progress
2018-06-01 18:34:24 +02:00
iopietro 693d29c0f8 General fixes
+Fixed a bug that permitted to invite players already in an alliance
+Fixed a bug that didn't delete the alliance permissions when the
alliance was dispanded/dispersed or the user left the alliance by
destroying his embassy
+Added a new error which shows up when trying to invite someone already
in an alliance
2018-06-01 17:14:24 +02:00
iopietro b12f4d4497 General fixes
+Fixed a bug that didn't permit to see a defender hero in a spy report
+Fixed a bug that only permitted to revive the last hero on the hero
list
2018-05-31 15:23:48 +02:00
iopietro e0166b1242 General fixes
+Fixed a bug that permitted to edit alliance leader's permissions
2018-05-30 20:25:29 +02:00
iopietro d171ac02cc General fixes
+Fixed a bug that permitted to create threads and post in closed forums
(only who have the permission to manage the forum can do that)
+Fixed a bug that permitted to write posts to closed threads
+Fixed a bug that permitted to view not shared forums under certain
circumnstances
2018-05-30 20:10:59 +02:00