Martin Ambrus
8d8c96014b
refactor: multiple calls to getVSumField() replaced by a single one
...
#313
2017-11-25 20:29:12 +01:00
Martin Ambrus
446e9b5f1d
fix: artefacts couldn't be claimed after last db caching optimizations
2017-11-25 19:26:19 +01:00
Martin Ambrus
cca9feaded
refactor: s1_bdata table SELECTs optimized and cached
...
#313
2017-11-25 19:05:01 +01:00
Martin Ambrus
f656f631ea
refactor: s1_artefact table SELECTs optimized and cached
...
#313
2017-11-25 18:22:13 +01:00
Martin Ambrus
4e51c9c527
fix: fetch all players, not only one for embassy check
2017-11-25 11:19:14 +01:00
Martin Ambrus
08abff97d1
fix: mysqli_fetch_all() only available with native mysqlnd driver
2017-11-25 09:24:56 +01:00
Martin Ambrus
687dca4cec
fix: MySQL 5.7 incompatibility
2017-11-25 01:46:33 +01:00
Martin Ambrus
571fb9019f
fix: hero can be killed even if unit not present anywhere on the map
...
#371
2017-11-25 01:21:28 +01:00
Martin Ambrus
f599e08586
fix: wrong non-multi-array caching of getMovement caused a lot of error
...
#377
2017-11-25 00:45:33 +01:00
Martin Ambrus
97fe8ffb25
fix: incorrect return value for getMovement() caused a lot of warnings
2017-11-24 23:45:29 +01:00
Martin Ambrus
56aa916f82
fix: undefined indexes
2017-11-24 18:04:22 +01:00
Martin Ambrus
2bcaeb1fef
fix: undefined index
2017-11-24 16:02:54 +01:00
Martin Ambrus
866b0886fe
fix: undefined index
2017-11-24 15:59:22 +01:00
Martin Ambrus
12fe632bf4
fix: prevent reuse of old attacks by re-POSTing same values
2017-11-24 10:17:54 +01:00
Martin Ambrus
c06c62ba6a
fix: hero training and revive got messed up
2017-11-22 21:38:57 +01:00
Martin Ambrus
96663574ad
fix: compatibility issue with MySQL 5.7
2017-11-22 20:12:31 +01:00
Martin Ambrus
9d73275522
fix: incorrect hero return time calculation
2017-11-22 18:58:16 +01:00
Martin Ambrus
5492ad29b2
fix: incorrect resources SQL
2017-11-22 16:52:25 +01:00
Martin Ambrus
aec0380e17
fix: resources falling to 0 will auto-fill warehouse/crop to max value
2017-11-22 16:29:25 +01:00
Martin Ambrus
6b7424fffb
fix: incoming units not shown at rally point
2017-11-22 16:01:12 +01:00
Martin Ambrus
ddb8614b14
fix: construction of a palace and a residence in one village
...
#323
2017-11-22 14:35:33 +01:00
Martin Ambrus
65a62becc2
fix: rat reinforcement does not arrive due to a wrong reinfs check
...
#366
2017-11-22 11:47:17 +01:00
Martin Ambrus
56565ef8dd
fix: s1_abdata caching doesn't give data
...
#313
2017-11-21 01:19:59 +01:00
Martin Ambrus
80160d683e
refactor: s1_wdata caching implemented
...
#313
2017-11-21 00:59:06 +01:00
Martin Ambrus
676de95764
refactor: s1_hero to update last timestamps in a single query
...
#313
2017-11-21 00:22:30 +01:00
Martin Ambrus
572c99559c
refactor: s1_research caching implemented
...
#313
2017-11-21 00:01:30 +01:00
Martin Ambrus
bc2eaa1380
refactor: s1_abdata & s1_tdata caching implemented
...
#313
2017-11-20 23:46:45 +01:00
Martin Ambrus
3792fd5ed5
refactor: s1_prisoners caching implemented
...
#313
2017-11-20 23:22:56 +01:00
Martin Ambrus
06d468ce6f
refactor: s1_odata caching implemented
...
#313
2017-11-20 22:58:49 +01:00
Martin Ambrus
82a0c0ad07
fix: s1_enforcement caching improved
...
#313
2017-11-20 22:33:35 +01:00
Martin Ambrus
f58878abfa
fix: s1_vdata caching correction
...
#313
2017-11-20 21:25:11 +01:00
Martin Ambrus
4612125f0f
refactor: s1_movement caching implemented
...
#313
2017-11-20 20:54:34 +01:00
Martin Ambrus
13cccebf94
refactor: s1_enforcement caching implemented
...
#313
2017-11-20 17:55:27 +01:00
Martin Ambrus
ceeb6a3a9b
refactor: s1_units caching implemented
...
#313
2017-11-20 16:17:26 +01:00
Martin Ambrus
64d7d158c7
refactor: s1_fdata caching implemented
...
#313
2017-11-20 15:41:29 +01:00
Martin Ambrus
a4ce48ca38
refactor: s1_vdata sometimes didn't get cached
...
#313
2017-11-20 14:11:45 +01:00
Martin Ambrus
4a7ab1f81a
fix: quests do not progress
...
#354
2017-11-20 11:06:54 +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
c27b397016
refactor: preparation to vdata queries consolidation
...
#313
2017-11-20 00:52:24 +01:00
Martin Ambrus
66132a7cdf
refactor: Session.php only included once, login procedure optimization
...
#313
2017-11-20 00:39:37 +01:00
Martin Ambrus
cb843dda57
refactor: getVSumField() in Automation replaced by direct update instead
...
#313
2017-11-20 00:13:52 +01:00
Martin Ambrus
1747a26c1e
fix: cannot send traders to village determined by a village name
2017-11-19 23:37:38 +01:00
Martin Ambrus
7fa58f42a1
fix: stupid mistakes, blame the programmer's fatigue
...
#313
2017-11-19 20:21:55 +01:00
Martin Ambrus
5d951f8e9e
refactor: getVSumField() to cache data for multiple user IDs
...
#313
2017-11-19 18:55:47 +01:00
Martin Ambrus
e3a667de10
refactor: caching more data during login
...
#313
2017-11-19 17:50:05 +01:00
Martin Ambrus
d148383655
refactor: fix: user fields are not always returned from cache
...
#313
2017-11-19 17:04:51 +01:00
Martin Ambrus
61eda5d663
refactor: caching added to checkIfResearched()
...
#313
2017-11-19 16:32:28 +01:00
Martin Ambrus
a87802296b
refactor: getBuildingByType2() takes multiple IDs
...
#313
2017-11-19 16:24:33 +01:00
Martin Ambrus
24789507a7
refactor: getProfileVillages() takes multiple IDs
...
#313
2017-11-19 15:57:52 +01:00