Commit Graph

64 Commits

Author SHA1 Message Date
Aleksei Miheev
5f02930e37 import legacy codebase 2024-11-23 15:17:05 +07:00
Aleksei Mikheev
b1978dc5f9 Add memcached support with cache_get/cache_set wrappers, use them to cache video embeds indefinitely 2016-05-03 18:56:44 +07:00
Aleksei Miheev
71aee0481e Merge branch '3-move-all-db_query-call-into-separate-functions' into 'master'
Move some queries from Display.php to thier own functions

Not replacing everything, just trying out if this is useful at all.


See merge request !2
2016-05-03 12:35:54 +07:00
Aleksei Miheev
ad62c7ca5e Typo fix: disply IP addresses properly in online log 2016-01-31 10:14:16 +00:00
Aleksei Miheev
07576adb85 [HACK] set timezone to Minsk instead of Moscow because of PHP's internal tzdata 2016-01-31 08:25:01 +00:00
Aleksei Miheev
37902aace8 Use cache for video lookups (xcache instead of drop-in null eA replacement) 2016-01-31 07:59:12 +00:00
Aleksei Miheev
49203676fd Use mongodb instead of MySQL for user UIDs tracking 2016-01-31 07:55:58 +00:00
Aleksei Miheev
1259469303 Disable pinba, enable newrelic 2016-01-31 07:54:00 +00:00
Aleksei Miheev
eee426dd69 convert string IP to int by PHP instead of MySQL 2014-09-05 14:17:27 +00:00
Aleksei Miheev
d5e9235492 Remove testing bcc from sendmail() function 2014-05-19 11:24:32 +00:00
Aleksei Miheev
e2833c4010 Replace ugly vanilla sendmail() function with swiftmailer-based 2014-05-17 20:52:39 +00:00
Aleksei Miheev
0ef9e4ab27 Fix notices when debug_backtrace returns less than 2 elements 2014-05-17 20:51:25 +00:00
Aleksei Miheev
cbe53562bb Remove crappy old SMF code which appended PHPSESSID to urls despite PHP has that shit disabled 2014-02-16 17:13:59 +00:00
Aleksei Miheev
6487d3e04c Do not mangle with ini_set in loadSession, so bots won't get PHPSESSID in URLs 2014-02-16 16:21:39 +00:00
Aleksei Miheev
a0b8cc6fa0 Fix date format 2014-01-19 08:36:59 +00:00
Aleksei Miheev
3e2bfdccc4 Update date format some more 2014-01-12 11:16:20 +00:00
Aleksei Miheev
f7137f1d54 Merge branch 'master' of ssh://bitbucket.org/rusty_angel/rock-site 2014-01-12 15:13:27 +04:00
Aleksei Miheev
b4406b9a40 'Fix' date/time format 2014-01-12 15:12:17 +04:00
Alexey Miheev
9041c11ca0 Revert "(try to) optimize a little, no need for mysql to count that, we can do it just fine"
This reverts commit ac268861b5d9d405bd03ea55c37e5757db04da32.
2014-01-09 01:57:55 +04:00
Aleksei Miheev
0ea8fceea6 (try to) optimize a little, no need for mysql to count that, we can do it just fine 2014-01-08 23:52:57 +04:00
Aleksei Miheev
be5ccca2f9 More granular stats for db_query 2014-01-08 23:39:29 +04:00
Alexey Miheev
b80414f071 Typo fix 2014-01-06 03:55:25 +04:00
Alexey Miheev
1e9b9c3faa Add pinba timer for db_query 2014-01-06 03:50:37 +04:00
Aleksei Miheev
4f856d7458 Some more sanity check (I'm not sure I ever needed that) 2014-01-05 13:51:40 +00:00
Aleksei Miheev
266a72132c Properly escape filter in topiclist, so russian letters filtering would work 2014-01-05 13:50:03 +00:00
Aleksei Miheev
4cff01c3a9 Add canonical urls anywhere possible 2014-01-05 13:48:50 +00:00
Aleksei Miheev
ca3a19d306 Remove more deprecated crap 2014-01-05 13:44:35 +00:00
Aleksei Miheev
5d0e5923b1 use fixed style by default 2014-01-05 13:44:08 +00:00
Aleksei Miheev
f480a43ce7 Do not return 410 on gone topics, bots don't handle it that welll 2014-01-05 13:34:11 +00:00
Aleksei Miheev
c764d2856d Fix notices 2014-01-05 13:31:22 +00:00
Aleksei Miheev
7986670917 Escape posts titles in post history code 2014-01-05 13:30:45 +00:00
Aleksei Miheev
b930cc7b4a Fix notices 2014-01-05 13:29:44 +00:00
Aleksei Miheev
56902dc8cc get rid of eaccelerator caching (most of it was removed already) 2014-01-05 13:25:35 +00:00
Aleksei Miheev
4c2da68616 I don't know ;( probably fixing some notices 2014-01-05 13:23:27 +00:00
Aleksei Miheev
390335dae1 explicit cast to int, it's some compatibility shit;(~) 2014-01-05 13:09:02 +00:00
Aleksei Miheev
58a12c4ccb Fix typo in topic watching stuff 2014-01-05 13:06:27 +00:00
Aleksei Miheev
8342e2cd0f More foolproof code in getVideoOEmbed() 2014-01-05 12:59:24 +00:00
Aleksei Miheev
cb83c2ebc8 Add user tracking based on nginx_mod_useruid 2014-01-05 12:58:15 +00:00
Aleksei Miheev
f593337286 Hack around with smiley_set magick: force everyone to use default 2014-01-05 12:56:49 +00:00
Aleksei Miheev
6a5184e08c Rework visualwarning: store moderatorial comments separately, also some code cleanup 2014-01-05 12:51:13 +00:00
Aleksei Miheev
45e20cc4f8 Fix bbcodes in warning notification 2013-11-19 09:27:03 +00:00
Aleksei Miheev
c1fad5ae91 Final fix for mail subject encoding 2013-03-05 07:10:09 +00:00
Aleksei Miheev
c606b97e0b Encode mail subject properly 2013-03-04 14:17:28 +00:00
Aleksei Miheev
2ad646c4c1 Fix deprecation notices and add placeholder for eaccelerator_* functions 2013-02-11 22:16:39 +00:00
Aleksei Miheev
c1c28b0290 Just ignore bots who submit country while registering 2012-12-18 01:28:27 +04:00
Aleksei Miheev
52fc76145e Add add and fix lots of minor staff: topic watching, a:target thingie, etc 2012-12-18 01:27:36 +04:00
Aleksei Miheev
eb5c3e7480 People can also post https links to videos, parse those, too 2012-12-12 14:46:16 +04:00
Aleksei Miheev
09bb83046d Add option to disable some BBC parsing when needed 2012-12-12 14:43:39 +04:00
Aleksei Miheev
7c46ccaa65 If for some reason posterIP is empty, skip it when doing trackUser 2012-11-20 18:37:13 +04:00
Aleksei Miheev
8a492275f1 add 410 status code for deleted topics 2012-07-09 17:59:51 +04:00