Commit Graph

60 Commits

Author SHA1 Message Date
Shadow 5bc1633182 Block folder accces
+404 error
2018-06-13 11:17:18 +03: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
iopietro f7e05c9802 Optimizations
-Removed the "sort_type" 6 from the movement table, looted resources
will now be saved in the "sort_type" 4 returing attack.
This reduces a lot the spam in the tables "send" and "movement" of the
database
-Removed some useless methods in Database.php and Message.php
+Optimized report loading, own report will be loaded only once (and not
twice at random) and allied reports aren't loaded anymore
+Minor improovements and better indentation
2018-05-05 17:54:34 +02:00
iopietro 996f011666 Fixed some report bugs
+Added the report type 23, which indicates a defence during festive days
+Festive reports in the alliance no longer duplicates
+Festive reports in the village view no longer duplicates
+Fixed a bug that didn't permit to read an allied report

General:
-Removed the possibility to view an inexistent village
+Some minor improovements
2018-04-21 17:28:20 +02:00
iopietro c2f4d43b7e Reports refactor Part 2
+Heroes are now divided by tribes in battle reports
+Added to every report the support to read heroes from the battle report
data

Automation.php:
+Added the hero data, to every battle reports
+Fixed a bug that didn't count own dead defensive troops for general
attacks, top 10 attackers, attackers and hero xp
+Fixed a bug that didn't permit to add the rat enforcement to the
village, from quest number 8

Battle.php:
+Fixed a bug with catapults/rams that permitted to destroy level 1
buildings with only one catapults (even against 1000000 defensive
troops)
+Added a new function, for more readability

+General minor improovementes and bug fixing
2018-04-20 21:23:57 +02:00
iopietro 882215cd2a Reports refactor #1
-Removed 29 files from the "Templates/Notice" folder, there were a lot
of duplicated/very similar kinds of report. Now, there are only 6 kinds
of report (9.tpl isn't counted)
+Changed a lot of codes in some .tpl reports, into a foreach

Automation.php:

+Modified report data, for the refactored report system
+Some clean-up

Battle.php:

+Fixed catapults and rams, they weren't able to destroy completely a building
+Fixed a possible division by 0 error
2018-04-19 20:22:01 +02:00
iopietro 9e44c1cd6d Some replacements
+Replaced all $GLOBALS['link'] with $database->dblink
-Removed Templates/links.tpl from build.php (it's already in
Templates/menu.tpl)
2018-04-08 19:55:28 +02:00
Martin Ambrus 1d4f980871 fix: back arrow redirects to invalid page with < 10 records
#327
2017-11-26 22:42:44 +01:00
Martin Ambrus 4b52df7482 fix: messages and reports sorting fix number 2
#327
2017-11-26 21:30:59 +01:00
Martin Ambrus cb148b9aec fix: sorting in messages and reports does not work
#327
2017-11-26 17:33:10 +01:00
Martin Ambrus 98ddbe235f fix: pagination returns to ALL from Attacks page in battle reports
Closes #343
2017-11-22 12:34:38 +01:00
Martin Ambrus 583c521dc3 fix: undefined index 2017-11-18 20:50:55 +01:00
Martin Ambrus ee017adb40 refactor: most of broad SELECTs updated
Closes #301
2017-11-05 14:35:19 +01:00
Martin Ambrus 53f54ce9e9 feat: Admins can be attacked, raided and traded with via config option 2017-10-22 20:28:03 +02:00
Martin Ambrus 2fcaaa3ee8 fix: Natar random attacks while building WW show correct units 2017-10-22 17:55:37 +02:00
Martin Ambrus e3b6bbeb70 fix: reports pagination stays on subsection, if one is selected 2017-10-22 00:13:08 +02:00
Martin Ambrus 9d997ed8d4 fix: attacker name for captured Natar village random attacks is ?? 2017-10-20 00:31:04 +02:00
Martin Ambrus 6f3973748c fix: more manual typecastings 2017-10-18 00:59:49 +02:00
Martin Ambrus ac5d3538f8 fix: mysqli_error needs MySQLi connection as parameter 2017-10-17 13:05:13 +02:00
evader1337 2d26af7c46 Trying to fix this monstrosity #2 2016-09-13 18:54:25 +02:00
armando1980 1e56769a38 fix report when spies not return 2014-01-25 13:40:06 -05:00
Shadow b34ecd4a12 Update 7.tpl 2013-12-21 10:16:13 +02:00
Shadow af1b54bf89 Update 6.tpl 2013-12-21 10:16:03 +02:00
Shadow 74dd320c9c Update 5.tpl 2013-12-21 10:15:52 +02:00
Shadow 1a94d2b069 Update 4.tpl 2013-12-21 10:15:43 +02:00
Shadow 6a2bf922f5 Update 3.tpl 2013-12-21 10:15:29 +02:00
Shadow 446700a118 Update 2.tpl 2013-12-21 10:15:15 +02:00
Shadow 6ebc9a4947 Update 1.tpl 2013-12-21 10:15:07 +02:00
Shadow e6cad59930 Update 6.tpl 2013-12-08 09:35:20 +02:00
Shadow 74c464ae5d Update 5.tpl 2013-12-08 09:35:07 +02:00
Shadow 53994aebb1 Update 4.tpl 2013-12-08 09:34:59 +02:00
Shadow 9e81f69ff5 Update 3.tpl 2013-12-08 09:34:45 +02:00
Shadow 3797f1db2c Update 2.tpl 2013-12-08 09:34:36 +02:00
Shadow 8b006b2a78 Update 1.tpl 2013-12-08 09:34:11 +02:00
Shadow 9a41739f9b Update 7.tpl 2013-12-08 09:33:41 +02:00
Shadow 709e1fefa5 updates 2013-12-02 19:01:57 +02:00
Shadow 66b12aab9c Update 8.tpl 2013-12-02 09:39:50 +02:00
Shadow ab5d9ffc2d Update 17.tpl 2013-12-02 09:37:35 +02:00
Shadow 7119a040dc Update 16.tpl 2013-12-02 09:37:26 +02:00
Shadow c0caf04ea6 Update 15.tpl 2013-12-02 09:37:16 +02:00
Shadow f5696de7f5 Update 7.tpl 2013-12-01 07:38:08 +02:00
Shadow 9dfb6114a6 Update 1.tpl 2013-12-01 07:37:52 +02:00
Shadow 6852e153de Update 4.tpl 2013-11-28 10:16:10 +02:00
Shadow 3d3c29ff8e Update 3.tpl 2013-11-28 07:39:28 +02:00
Shadow 88bd9eb7fe Update 3.tpl 2013-11-27 19:10:50 +02:00
Shadow d529e47d0a Update 3.tpl 2013-11-27 19:07:50 +02:00
Shadow f60fe79705 Update 3.tpl 2013-11-27 18:54:03 +02:00
Shadow f0650dca4f Update 6.tpl 2013-11-27 18:06:26 +02:00
Shadow d46da0b043 Update 5.tpl 2013-11-27 18:05:35 +02:00
Shadow 1f909bb165 Update 3.tpl 2013-11-27 18:04:19 +02:00