Commit Graph

280 Commits

Author SHA1 Message Date
5f2be45f68 Fix the PHPDoc comments on these. 2014-04-25 21:42:52 -04:00
ab3f9850e4 Removing the closing PHP "?>" tag as per style guidelines. 2014-04-24 19:01:47 -04:00
993aacaea5 Update comment to reflect that a bug has been filed with PHP-analyzer. 2014-04-24 16:55:34 -04:00
afc01fda5f Prevent scrutinizer-ci from complaining about these fall-thoughs. 2014-04-24 01:36:04 -04:00
28d83fda0d Even more linting and cleaning. 2014-04-19 02:33:34 -04:00
2da8c19a07 More linting! 2014-04-19 01:36:18 -04:00
f72bfbb050 fix indentation 2014-04-06 20:47:01 +01:00
c8aa3327a1 A bunch of small changes from scrutinizer-ci; some tidying, some actual bug fixes 2014-03-30 13:26:48 +01:00
db5aa56300 remove a bunch of dead code 2014-03-29 11:44:34 +00:00
cf7f79194e Merge branch 'master' into develop 2014-03-07 08:28:03 +00:00
fa5ad5b77d bump the minimum PHP version, the README was updated but not the version check in the code. Fixes #383 2014-03-07 08:27:34 +00:00
faec25226a 'x ?: y' is a new PHP thing? 2014-03-06 09:14:03 +00:00
7eb2bd9112 Trimming trailing blank space. 2014-02-22 15:42:09 -05:00
e6057c656f Re-order the events to ensure InitExtEvent() is fired off both with and without users. 2014-02-22 01:22:14 -05:00
74639cd6b2 Missing bracket. 2014-02-21 20:49:17 -05:00
43f59cc4c0 Fix un-necessary PHP Notices being generated in the error log files. 2014-02-21 20:36:19 -05:00
cb135d4763 Fix the Notice being generated. 2014-02-19 03:11:46 -05:00
ae4da2b410 add option for getMimeType to return list of extensions 2014-01-13 10:03:38 +00:00
7d49e21792 readability + moved stuff 2014-01-13 08:19:12 +00:00
9cae856df7 use the Content-Disposition header for filename & Content-Type for
extension
if either doesn't exist, it will fallback to using pathinfo
2014-01-13 08:19:01 +00:00
0512858bd4 Some more small tweaks for speed. 2013-10-04 17:17:42 -04:00
67c026e8d8 unique request ID, for associating several log entries with one request 2013-09-12 16:29:38 +01:00
7c140680b7 log args 2013-08-30 00:19:46 +01:00
65fcbcb9ba Actually set the cookie prefix
When COOKIE_PREFIX was not shm (the default) the script tried to read cookies prefixed with the new prefix but the script was setting the old default prefix from before the constants were implemented.
2013-07-02 06:46:54 +02:00
616aa3300a Don't check the certificate when transloading
This allows the download of images via https even if the cert is self-signed.
2013-07-02 04:44:27 +02:00
dbfd747dd3 remove more slashes 2013-02-06 08:36:30 +00:00
ef44d6ccf3 Fix for issue 263 - ReCAPTCHA private and public keys reversed. 2012-11-03 13:49:10 -04:00
d8c670eaa6 move yet more stuff out of index.php 2012-10-16 23:05:11 +01:00
38fea60056 handle CLI_LOG_LEVEL not being set 2012-10-16 22:58:24 +01:00
073b21aaa1 split up event listener loading, so parts can be called individually 2012-10-16 22:31:50 +01:00
52718b0590 util.inc: Default to static extension lookup
Magic can return invalid results for video files, breaking their playback. Default to the static extension lookup to avoid this problem but still return application/octet-stream if nothing works.
2012-10-16 18:56:39 +01:00
0663bf54a0 Grr... 2012-10-16 18:55:43 +01:00
1bd6f9f0ba Update core/util.inc.php 2012-10-16 18:55:38 +01:00
412dcd05af Add video MIME types 2012-10-16 18:55:00 +01:00
e3d385aee5 Merge branch 'master' of github.com:shish/shimmie2 2012-09-24 22:36:28 +01:00
ac812b4a2a danbooru api updates 2012-09-24 22:36:09 +01:00
65ce0ff4e4 check filename extension by lowercased version of itself 2012-09-22 23:24:19 +01:00
06426bdfe6 when checking mime types, use the filename.ext from the DB, not the (non-existent) .ext on disk 2012-09-22 23:15:25 +01:00
d313cea8a7 create the DB connection on demand; some pages don't require one at all thanks to caching 2012-06-24 00:50:13 +01:00
1c5bf478d9 initialise global _execs, else we get 'page used queries' when we want 'page used 0 queries' 2012-06-23 23:37:41 +01:00
6181d59975 that slash needs to be there >_< 2012-06-22 20:02:53 +01:00
e7df4edbee slashes are removed already 2012-06-21 09:07:52 +01:00
2a18da523c the define wibbling for hiphop seems to work now 2012-06-18 01:23:31 +01:00
fd5b4c5910 more re-organisation for create_monolith / hiphop friendliness 2012-06-18 01:06:36 +01:00
78d701dd53 move stuff about to make create_monolith simpler 2012-06-18 00:45:32 +01:00
930de7fc8c remove built-in full-page caching; it doesn't do much any more, and everything it does do can be done better by Varnish 2012-06-18 00:07:12 +01:00
5519c3a320 lots of tidying and removal of duplicate code 2012-06-18 00:00:21 +01:00
082e6fa31b nice, event-based command line support; try 'php index.php' for info 2012-06-17 20:06:02 +01:00
239e028662 flash messages everywhere~ 2012-06-10 04:21:03 +01:00
61754b8dfe add a type arg, even if it's not used yet 2012-06-10 01:05:03 +01:00