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
91049ae034
refactor: no need for 2 timestamp updates
...
#313
2017-11-20 15:25:14 +01:00
Martin Ambrus
fcb9538289
Merge remote-tracking branch 'origin/master'
2017-11-20 14:11:56 +01:00
Martin Ambrus
a4ce48ca38
refactor: s1_vdata sometimes didn't get cached
...
#313
2017-11-20 14:11:45 +01:00
Shadow
c9c825b3f4
Merge pull request #363 from Shadowss/add-code-of-conduct-1
...
Create CODE_OF_CONDUCT.md
2017-11-20 13:56:08 +02:00
Shadow
271a80aecc
Create CODE_OF_CONDUCT.md
2017-11-20 13:55:58 +02:00
Shadow
766646c380
Create CONTRIBUTING.md
2017-11-20 13:54:53 +02:00
Shadow
9e22d2c1b6
Merge pull request #362 from Shadowss/add-license-1
...
Create LICENSE
2017-11-20 13:53:55 +02:00
Shadow
e8cb0947c5
Create LICENSE
2017-11-20 13:53:34 +02:00
Martin Ambrus
4a7ab1f81a
fix: quests do not progress
...
#354
2017-11-20 11:06:54 +01:00
Martin Ambrus
b7e9c4edcb
fix: max units count shown as infinity
2017-11-20 10:15:54 +01:00
Martin Ambrus
582d9644fc
Merge remote-tracking branch 'origin/master'
2017-11-20 10:10:41 +01:00
Martin Ambrus
645793dde2
refactor: s1_vdata queries cached and reused
...
#313
2017-11-20 10:10:29 +01:00
Shadow
e34b6e68f7
fix #359
2017-11-20 09:51:19 +02: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
37c53a30f5
fix: undefined index
2017-11-19 20:41:35 +01:00
Martin Ambrus
7fa58f42a1
fix: stupid mistakes, blame the programmer's fatigue
...
#313
2017-11-19 20:21:55 +01:00
Martin Ambrus
dc501d6984
fix: don't delete if we don't have any IDs
...
#313
2017-11-19 19:25:14 +01:00
Martin Ambrus
609a61fc3e
fix: don't delete if we don't have any IDs
...
#313
2017-11-19 19:24:10 +01:00
Martin Ambrus
0df4de9413
fix: transaction did not speed things up + hero fields resetting fixed
...
#313
2017-11-19 19:08:47 +01:00
Martin Ambrus
97dba8b0f0
refactor: enclosing many updates into transaction for speed improvement
...
#313
2017-11-19 18:58:31 +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
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
699781d130
refactor: for loops optimized
...
#313
2017-11-19 15:17:24 +01:00
Martin Ambrus
2a68b07704
refactor: last of foreach loops optimized
...
#313
2017-11-19 14:32:00 +01:00
Martin Ambrus
67d9a42506
refactor: a lot of Automation foreach loops updated
...
#313
2017-11-19 14:01:30 +01:00
Martin Ambrus
481769b68e
fix: undefined index
2017-11-19 11:33:11 +01:00
Martin Ambrus
69ef6ef349
fix: undefined index
2017-11-19 11:02:23 +01:00
Martin Ambrus
fd14002d98
fix: oasis beasts do not die
2017-11-19 02:52:33 +01:00
Martin Ambrus
07e5f322e2
fix: reinforcements sent back do not hide the reinforcements table
2017-11-19 02:33:07 +01:00
Martin Ambrus
258ba60014
fix: undefined index
2017-11-19 02:26:38 +01:00
Martin Ambrus
778f42b4f1
refactor: cycle optimizations and cache fixes
...
This one specifically fixes rescured prisoners not being sent back.
Other than this fix, there are some query optimizations included.
#313
2017-11-19 01:37:31 +01:00
Martin Ambrus
4d41769a76
refactor: final round of sendunitsComplete() optimizations
...
#313
2017-11-18 22:11:24 +01:00
Martin Ambrus
4172e30dd2
fix: Gaul traps do not work
2017-11-18 21:58:54 +01:00
Martin Ambrus
349115af66
fix: undefined index
2017-11-18 21:19:41 +01:00
Martin Ambrus
609593cd10
fix: undefined index
2017-11-18 21:04:53 +01:00
Martin Ambrus
583c521dc3
fix: undefined index
2017-11-18 20:50:55 +01:00
Martin Ambrus
d768929d18
fix: catapults do not work correctly or sometimes not at all
2017-11-18 20:42:26 +01:00
Martin Ambrus
997c143634
refactor: page generation time considers real time
...
Because in environments with $_SERVER["REQUEST_TIME_FLOAT"] unavailable
the time actually only started after Village.php got loaded (which was
AFTER Automation.php kicked in and everything was already DB-loaded),
the start timer was moved more towards the top of each template.
2017-11-18 18:48:48 +01:00
Martin Ambrus
fffedc4170
fix: defender troops do not die during attack
2017-11-18 13:11:00 +01:00