189 Commits

Author SHA1 Message Date
ruan
d0417bf115 Simplify/optimize get_name() 2020-09-04 07:28:46 +02:00
ruan
2335143b34 Simplify init_tables 2020-05-04 09:27:07 +02:00
ruan
9f54f33a91 Batch verification into header query when possible 2020-08-23 14:21:34 +02:00
ruan
2b511094d2 Set init time at earliest time possible 2020-05-02 10:03:25 +02:00
ruan
4be9a62120 [CI] Fix PageTest 2020-08-18 17:09:16 +02:00
ruan
2c0b588b48 Simplify pager 2020-08-18 16:54:31 +02:00
ruan
205df0e285 Add options to show server scope/origin in info.php.
Disable server scope column by default, since most people only use global bans.
2020-08-17 08:37:54 +02:00
ruan
8eb8ddac52 Refactor settings.php 2020-08-17 08:30:19 +02:00
ruan
7b4957a5ba Replace navbar padding with position: static 2020-08-09 08:19:40 +02:00
ruan
b57ca651a5 Make padding unselectable 2020-08-09 08:17:49 +02:00
ruan
245f3a1653 [CI] PageTest: Test page 2 2020-08-08 18:59:23 +02:00
ruan
3d967f9f2c Remove lc_first function since PHP 5.2 is no longer supported 2020-08-08 13:05:37 +02:00
ruan
dc4a25c8cf Use require_once instead of include_once in all cases. 2020-08-08 13:00:39 +02:00
ruan
ca86925bb3 Fix PHP 5.3 compat issue 2020-08-07 20:43:55 +02:00
ruan
abc453bac8 [CI] Disable table verification for tests
The table was being checked before creation.
2020-08-07 20:25:58 +02:00
ruan
2df02aee73 [CI] Fix MySQL 2020-08-07 19:56:03 +02:00
ruan
2b7bc8fe2e [CI] Add pager test + MySQL service 2020-08-07 19:39:12 +02:00
ruan
e975ab8001 [CI] Update LangTest 2020-08-06 16:44:24 +02:00
ruan
dd5aa8e4c6 [CI] Refactor output of LangTest 2020-08-06 16:24:24 +02:00
ruan
c197ff0f49 [CI] Fix LangTest 2020-08-06 16:08:51 +02:00
ruan
e235f47d43 [CI] Add debug 2020-08-06 15:59:55 +02:00
ruan
e852027f8b [CI] Fix LangTest class path 2020-08-06 15:52:06 +02:00
ruan
3d393e5719 [CI] Set up PHPUnit and first unit test 2020-08-06 15:45:58 +02:00
ruan
477ccd601a Refactor locale classes for unit testing 2020-08-06 15:39:55 +02:00
ruan
82e778ff08 Allow kick expire column value to be translated (#48) 2020-06-27 12:29:48 +02:00
ruan
3a959a8d15 Fixed pager with simple_urls disabled 2020-06-21 16:49:13 +02:00
ruan
e7598dee7e Fix up default index link if simple_urls is enabled 2020-06-21 10:14:31 +02:00
ruan
4443721716 Fix history.php / info.php error when simple_urls is disabled 2020-06-21 08:35:32 +02:00
ruan
9630eaa52b Add support for simple URLs (e.g. /bans/) 2020-06-21 00:39:16 +02:00
ruan
2333fda8df Minor code inspection cleanup 2020-06-15 13:43:36 +02:00
ruan
b45b174923 Remove the redundant "avatar_allow_offline_mode_uuids" option.
Since {name} and {uuid} can be used in avatar_source_offline_mode,
 this option no longer serves a purpose. The avatar_source_offline_mode option makes avatar_allow_offline_mode_uuids obsolete.
2020-06-08 18:10:29 +02:00
ruan
ca7e7dcccc Change default avatar source
In response to Crafatar serving default skins for some reason.
2020-06-08 17:35:40 +02:00
ruan
317b1d44d0 Make configuration more consistent 2020-05-03 15:24:14 +02:00
ruan
b924f87b90 Add timezone specification example 2020-04-24 08:45:57 +02:00
ruan
355a40727d Fix redirection on non-English locales 2020-02-12 07:03:07 +02:00
ruan
6c40fdfeb9 Clean up, add query comments
All user input appended to queries is either constantified or prepared - SQL injection should be impossible.
2020-01-18 11:54:28 +02:00
ruan
56ebfe0150 Add support for checking players without JavaScript 2019-11-29 13:09:00 +02:00
ruan
439fab95ae Add server origin column, disabled by default 2019-09-08 09:13:49 +02:00
ruan
29d54464ca Hide server scope column by default
Most people only use global bans so this can easily be redundant information.
2019-09-08 08:32:23 +02:00
ruan
d6c1d89bd4 Limit jQuery attempts to 30 (3 seconds) 2019-06-17 13:10:32 +02:00
ruan
d9fe00a23c Set a default timeout of 5 seconds for database connections 2019-05-18 15:05:03 +02:00
ruan
1437d0155a Fix left-aligned avatars being collapsed to the next line if username/reason is too long
If there is a better way to fix this besides "display: flex" I'll consider it.
2019-01-01 16:25:27 +02:00
Noah van der Aa
33f2a380fe Added overlay to crafatar avatar images. 2018-12-09 17:52:37 +00:00
ruan
d4da4a8e22
Revert settings.php cleanup from last commit
Intellij diff highlighting broke for some reason.
2018-10-11 05:06:04 +02:00
ruan
4b85ad4f81
Revert "Use faster query to fetch entry counts"
This reverts commit 95bdf49
2018-10-11 04:58:53 +02:00
ruan
ef84e6f782
Use undashed UUIDs for URL parameters 2018-09-22 15:14:27 +02:00
ruan
7e4d5de57a
Fix for previous commit 2018-09-22 14:40:47 +02:00
ruan
ac9219e06a
Simplify uuid_dashify 2018-09-22 14:39:21 +02:00
ruan
f35efe70de
Use bindParam instead of execute parameters 2018-09-22 14:34:07 +02:00
ruan
c8eb678db9
Add #39 2018-09-22 14:22:19 +02:00