Commit Graph

206 Commits

Author SHA1 Message Date
Martin Ambrus 448504694a fix: using getTimeFormat from DateTime project class everywhere in Admin 2017-11-22 19:51:31 +01:00
Martin Ambrus 0b3f689e4c fix: beginner's protection shown wrong date and time in profile picture 2017-11-22 19:43:58 +01:00
Martin Ambrus 2f9d134ec9 feat: indicator for fields under construction
Also, all line separators are now Linux-style :-P

Closes #321
2017-11-22 15:32:35 +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 645793dde2 refactor: s1_vdata queries cached and reused
#313
2017-11-20 10:10:29 +01:00
Martin Ambrus 0984c7ef34 fix: DB connection is global and tries 2 tested ways to connect
Some installations seem to support localhost:port for 1st parameter of
mysqli_connect(), others will only support the official parameters with
port towards the end. This fix tries them both - first the official one,
then the localhost:port one.

Also, there were a lot of mysqli_connect()'s inside Admin mods. These
now also use the central Database class.
2017-11-20 01:09:49 +01:00
Martin Ambrus 1c8b732c39 chore: cleanup of old unused templates 2017-11-19 15:58:07 +01:00
Martin Ambrus 24789507a7 refactor: getProfileVillages() takes multiple IDs
#313
2017-11-19 15:57:52 +01:00
Martin Ambrus 05d3b676a2 fix: Lang folder letter case correction
#346
2017-11-13 12:00:34 +01:00
Martin Ambrus f959e08595 fix: undefined index 2017-11-09 23:26:14 +01:00
Martin Ambrus 6b63b0bc63 fix: manual description scrolls when space is too short 2017-11-08 11:12:01 +01:00
Martin Ambrus 312507fe9f feat: MySQL port into installation options
Closes #279
2017-11-07 12:30:32 +01:00
Martin Ambrus 8a7f12268c fix: logging works, tech log link added to Admin 2017-11-07 10:34:50 +01:00
Martin Ambrus 6a332f292b fix: Enter works on the form 2017-11-07 10:25:23 +01:00
Martin Ambrus 7f16182e76 fix: oasis can be deleted (un-conquered) via Admin
Closes #283
2017-11-06 21:15:23 +01:00
Martin Ambrus 4e91b02f07 fix: removing single medal from player
Relates to #283
2017-11-06 21:05:28 +01:00
Martin Ambrus 48c46aa4e4 fix: failing to redirect from sendMessage.php in Admin
Closes #307
2017-11-06 18:34:08 +01:00
Martin Ambrus a822504706 fix: counting queries optimization
Closes #300
2017-11-04 15:41:35 +01:00
Martin Ambrus 7c67e1e7b9 fix: only 1 hero can exist and is deleted upon new hero training start
Closes #261
2017-11-02 11:05:26 +01:00
Martin Ambrus 041726fbd2 fix: undefined indexes 2017-11-01 21:35:24 +01:00
Martin Ambrus 769f5afe0e fix: admins should see all buildings, even great ones and the greatest 2017-10-29 11:01:09 +01:00
Martin Ambrus 25a657e60f fix: correcting admin link 2017-10-28 11:55:39 +02:00
Martin Ambrus 4621c29e05 fix: admin session username stored in session 2017-10-28 09:40:23 +02:00
Martin Ambrus 4678fd273b fix: undefined index 2017-10-28 09:35:09 +02:00
Martin Ambrus b906e94dcc fix: large map vertical position fix 2017-10-28 00:38:28 +02:00
Martin Ambrus 1066fff9a2 refactor: installation happens at MySQL side
A lot has happened here. Here's the list:

1. autoloader was added that should prevent various "failed to open
stream" errors when trying to load new classes

2. PHP-based data generation was replaced by MySQL-based one, hopefully
fixing the installation problems when insert payload it too high and the
DB wouldn't populate with some users

3. thanks to step 2, the installation should be really almost
instantenious, instead of waiting a long time for many SQL connections
and queries to populate the world

4. World Data & Oasis generation and population is done in 1 step now
2017-10-27 18:27:03 +02:00
Martin Ambrus 93fbba445e fix: big map not centered on screen in high resolutions
Closes #239
2017-10-26 21:07:27 +02:00
Martin Ambrus 743a6a3f90 fix: open quote was left unattended :P 2017-10-25 23:47:22 +02:00
Martin Ambrus 30d3b9c4fa refactor: OOP code movements started :) 2017-10-25 13:38:38 +02:00
Martin Ambrus c7dec214f8 fix: unstupiding stupid SQL 2017-10-24 17:29:22 +02:00
Martin Ambrus b8de6338bf refactor: SQL optimizations 2017-10-23 00:33:13 +02: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 d1ff824278 fix: troops adjustment form reacts on Enter as well now 2017-10-22 19:56:45 +02:00
Martin Ambrus 6f5b464160 fix: quest 1 reloads page to show wood 1 once finished and dialog closes 2017-10-22 17:08:34 +02:00
Martin Ambrus 965ba37f67 feat: Admins can see Support messages if set in config 2017-10-22 14:47:27 +02:00
Martin Ambrus c7f62f2307 fix: current Quest display in Admin 2017-10-22 13:56:06 +02:00
Martin Ambrus 92d2964b51 feat: mass message sent as Support rather than Multihunter 2017-10-22 13:43:43 +02:00
Martin Ambrus 48cea5ea2b feat: new messages-related links in Admin 2017-10-22 13:36:12 +02:00
Martin Ambrus 0e231d3483 chore: cleanup of duplicated unused files 2017-10-22 12:22:10 +02:00
Martin Ambrus 838f6be2d4 fix: message sending to players via Admin now works 2017-10-22 00:39:25 +02:00
Martin Ambrus 680cb209f4 fix: Enter when editing additional user info in Admin saves data 2017-10-22 00:06:07 +02:00
Martin Ambrus 38a377bec6 fix: gone are invalid <br /> tags when editing user description in Admin 2017-10-21 23:47:42 +02:00
Martin Ambrus 77a1d9879d fix: Great Workshop shown as error in Admin (editing Village) 2017-10-21 22:38:01 +02:00
Martin Ambrus d0a3aaa044 fix: return to server URL correction 2017-10-21 22:33:06 +02:00
Martin Ambrus 78694da32b fix: player deleting & password checks work as intended 2017-10-21 11:30:38 +02:00
Martin Ambrus b63df89034 fix: logs work again (were missing mysqli connection identifier) 2017-10-21 10:45:22 +02:00
Martin Ambrus e519826621 feat: Admin page titles update to reflect subpages 2017-10-20 17:29:34 +02:00
Martin Ambrus f4021d1452 feat: MD5 passwords exchanged for bcrypt ones 2017-10-20 12:31:27 +02:00
Martin Ambrus 69902b4af4 fix: Admin Map shows Natars when Player villages are not showing 2017-10-19 23:56:07 +02:00
Martin Ambrus 51cfe8fa3f fix: Multihunter village no longer shows as Natar on Map in Admin 2017-10-19 23:47:41 +02:00