Commit graph

1397 commits

Author SHA1 Message Date
Shish
cbbc0bab26 version bump 2015-01-24 17:10:23 +00:00
Shish
edde7848b8 add mp3 to thumbless filetypes, see #454 2015-01-24 16:44:27 +00:00
Shish
217559dc22 set statement_timeout for postgres 2014-12-31 13:16:00 +00:00
Shish
caa2691bb9 Merge pull request #468 from jgen/develop
Allow Shimmie to work with older versions of FFmpeg
2014-12-17 13:44:25 +00:00
Shish
7bcf2fc29e Merge pull request #465 from shish/min_space_config
Turn MIN_FREE_SPACE into a userspace config option
2014-12-17 13:41:55 +00:00
Shish
c0279565f4 Merge pull request #462 from shish/bypass_comment_checks
Allow admins to bypass comment checks (rate limit etc)
2014-12-17 13:40:06 +00:00
jgen
95b94bd115 Some minor linting. 2014-12-14 16:06:31 -08:00
Shish
40734ef711 turn MIN_FREE_SPACE into a userspace config option 2014-12-07 13:54:47 +00:00
Shish
9abcadffb6 throw Ex() -> throw new Ex(); 2014-12-07 13:20:36 +00:00
Shish
316f7ff858 Give a better error if User::class has been screwed up somehow 2014-12-07 03:44:17 +00:00
Shish
88f1df9ca6 HIPHOP is no longer supported (it's HHVM now, and HHVM supports PDO params anyway) 2014-12-07 01:10:12 +00:00
Shish
5ab8f9e5e2 log sets and deletes in CACHE_DEBUG mode 2014-12-06 23:50:56 +00:00
Shish
4d6e6ade1c version bump 2014-12-06 23:48:03 +00:00
Shish
b3931dd403 version bump 2014-12-06 23:47:17 +00:00
Shish
010b0620df add a user flag for bypassing comment checks 2014-11-30 13:52:29 +00:00
Shish
c0dfd9adc0 a little extra consistency in cache variable names 2014-11-26 13:09:49 +00:00
Shish
4721d666cd log time spent waiting for database queries 2014-11-26 13:09:22 +00:00
Shish
1c60942730 log hit/miss when DEBUG_CACHE is on 2014-11-26 13:07:30 +00:00
Shish
dfba656355 die more explicitly when memcache is missing (PHP is terrible) 2014-11-24 02:21:45 +00:00
Shish
f873d2304d Check event handler exists before calling it, in case the cache is out of date. Fixes #442 2014-08-24 11:33:05 +01:00
Daku
14f682da75 avoid errors if tag exceeds limit + flash message showing the problem tag 2014-06-20 00:39:29 +01:00
Shish
9069b0c1fb Merge pull request #429 from DakuTree/patch-misc
Pool updates + other misc tweaks.
2014-06-09 21:05:19 +01:00
Shish
d067545969 Merge pull request #432 from DakuTree/patch-sqlfix
Fix for #431 - Fix negative tags not working if they don't exist.
2014-06-09 20:59:11 +01:00
Daku
5bd7369d7c Merge pull request #427 from shish/bcrypt
Use bcrypt for password storage
2014-06-05 18:00:19 +01:00
Daku
72fbafc271 fixes negative tags not working if they don't exist
fixes #431
2014-06-04 00:52:01 +01:00
Daku
77607e0c02 keep aspect ratio when created video thumbnail 2014-05-29 18:40:17 +01:00
Daku
aa0cf27e7e add theme name to cached css/js filename to avoid loading cached files of old theme after theme change 2014-05-29 18:37:49 +01:00
Shish
e259b8cd5a bcrypt had bugs before 5.3.7 2014-05-24 10:51:09 +01:00
Shish
1b655704f3 Merge remote branch 'yaoifox/patch-1' into develop 2014-05-24 10:18:10 +01:00
Shish
eb51a9b639 migrate to bcrypt for password storage 2014-05-24 09:47:42 +01:00
Daku
36713803e3 Merge pull request #418 from jgen/develop
Even more linting and cleaning!
2014-05-23 23:24:32 +01:00
Daku
64e2565236 check for lowercase header if camelcase header doesn't exist
fixes #423
2014-05-19 07:32:16 +01:00
jgen
a58bdbdc62 More PHP Doc comments. 2014-04-29 17:45:13 -04:00
jgen
317028a63b More PHP Doc comments. 2014-04-29 01:33:03 -04:00
jgen
3b1513f791 Adding some more PHP Doc comments. 2014-04-28 20:37:31 -04:00
jgen
c682ccef69 Adding more PHP Doc comments to the config classes. 2014-04-28 20:12:31 -04:00
jgen
eb18790dc9 More comments. 2014-04-28 19:50:01 -04:00
jgen
86612bb1ff Adding more PHP Doc comments. 2014-04-28 17:36:11 -04:00
jgen
e37c5cb9d0 More linting! 2014-04-28 02:23:45 -04:00
jgen
8a2eb4b121 Fixing more PHP Doc related issues. 2014-04-27 19:29:36 -04:00
jgen
03b3cdcbd2 Updating/Fixing/Adding more comments with the PHP Doc style. 2014-04-27 18:59:01 -04:00
jgen
a703bb9854 Bump the version number. 2014-04-27 15:45:22 -04:00
jgen
4f51e942be Updating/Fixing/Adding more comments with the PHP Doc style. 2014-04-27 15:33:57 -04:00
jgen
4e9e5ca2be Fixing/adding/cleaning up the PHP Doc comments. 2014-04-26 05:01:49 -04:00
jgen
e6b1d514d1 Some more type hinting via the comments. 2014-04-25 23:22:34 -04:00
jgen
24371d8c34 Fix the PHP Doc comments. 2014-04-25 23:19:18 -04:00
jgen
8f60467848 This code doesn't seem to actually be used by anything at all. 2014-04-25 22:33:57 -04:00
jgen
5f2be45f68 Fix the PHPDoc comments on these. 2014-04-25 21:42:52 -04:00
jgen
5b5fd955b7 New exception type. 2014-04-25 16:07:30 -04:00
jgen
2706f72ce4 Update and fix the PHPDoc comments. 2014-04-24 19:08:23 -04:00
jgen
ab3f9850e4 Removing the closing PHP "?>" tag as per style guidelines. 2014-04-24 19:01:47 -04:00
jgen
993aacaea5 Update comment to reflect that a bug has been filed with PHP-analyzer. 2014-04-24 16:55:34 -04:00
jgen
c4dcba1e91 Explicitly check for the existence of these properties before attempting to use them. 2014-04-24 05:37:26 -04:00
jgen
7e41194b7f Shish you are too clever for scrutinizer-ci. 2014-04-24 05:29:02 -04:00
jgen
ce524e8729 This variable does exist, it is actually pulled from the database. Making it explicit for the linter. 2014-04-24 05:25:12 -04:00
jgen
f67220f64b From stack-overflow: The 'var' keyword is for declaring class variables in PHP4. It works in PHP5 but can raise an E_STRICT warning in from version 5.0.0 up to version 5.1.2, as it has been deprecated.
Changing to public as that is really what these variables are anyways.
2014-04-24 04:36:05 -04:00
jgen
67c087c30f From stack-overflow: The 'var' keyword is for declaring class variables in PHP4. It works in PHP5 but can raise an E_STRICT warning in from version 5.0.0 up to version 5.1.2, as it has been deprecated.
Changing to public as that is really what these variables are anyways.
2014-04-24 04:30:58 -04:00
jgen
dbe30ad37d Rename variable to make it more clear. 2014-04-24 01:36:30 -04:00
jgen
afc01fda5f Prevent scrutinizer-ci from complaining about these fall-thoughs. 2014-04-24 01:36:04 -04:00
jgen
b775c007cd Give these HTML headers some slight priority over the default value of 50. 2014-04-23 23:07:10 -04:00
jgen
e838fc2a03 Comment this in case someone else wonders why its there. 2014-04-19 04:17:58 -04:00
jgen
28d83fda0d Even more linting and cleaning. 2014-04-19 02:33:34 -04:00
jgen
2da8c19a07 More linting! 2014-04-19 01:36:18 -04:00
Shish
f72bfbb050 fix indentation 2014-04-06 20:47:01 +01:00
Shish
c8aa3327a1 A bunch of small changes from scrutinizer-ci; some tidying, some actual bug fixes 2014-03-30 13:26:48 +01:00
Shish
db5aa56300 remove a bunch of dead code 2014-03-29 11:44:34 +00:00
Shish
7b68d8ebfd use new-style constructors everywhere 2014-03-22 09:00:59 +00:00
Shish
da29912646 tidy up a bunch of lint errors 2014-03-17 22:05:37 +00:00
Shish
208e8de7f0 Merge pull request #382 from DakuTree/patch
New metatags, fixes various PostgreSQL errors & misc tweaks.
2014-03-08 15:33:58 +00:00
Shish
cf7f79194e Merge branch 'master' into develop 2014-03-07 08:28:03 +00:00
Shish
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
Shish
faec25226a 'x ?: y' is a new PHP thing? 2014-03-06 09:14:03 +00:00
Daku
d675827173 order[=|:]random_#### metatag
possible replacement for random_list ext?
2014-02-24 19:54:15 +00:00
Daku
58c5746e9b speed: use isset rather than identical 2014-02-23 22:32:15 +00:00
Daku
bdb3255116 speed: lowercase ext on image insert
avoids having to lowercase every build_thumb_html call
most extensions tend to match against their lowercase versions anyway
2014-02-23 22:27:52 +00:00
jgen
cebc197fba Merge branch 'develop' of git://github.com/shish/shimmie2 2014-02-23 03:11:09 -05:00
jgen
7eb2bd9112 Trimming trailing blank space. 2014-02-22 15:42:09 -05:00
jgen
e6057c656f Re-order the events to ensure InitExtEvent() is fired off both with and without users. 2014-02-22 01:22:14 -05:00
jgen
ba0aef4f30 The Database class should really throw an error here. This will likely break the existing tests. 2014-02-22 00:40:14 -05:00
jgen
74639cd6b2 Missing bracket. 2014-02-21 20:49:17 -05:00
jgen
43f59cc4c0 Fix un-necessary PHP Notices being generated in the error log files. 2014-02-21 20:36:19 -05:00
jgen
bbfba90ad4 Merge pull request #380 from DakuTree/patch-3
Misc tweaks/fixes 2 (fixes #349)
2014-02-21 13:40:52 -05:00
jgen
f4f94e6273 Merge pull request #379 from DakuTree/patch-2
Misc tweaks/fixes (fixes/closes issue 17 & 323)
2014-02-21 13:40:15 -05:00
jgen
7d90c20297 Cleaning up. 2014-02-19 16:16:01 -05:00
jgen
cb135d4763 Fix the Notice being generated. 2014-02-19 03:11:46 -05:00
jgen
a90f5bed8e This would be a good idea. 2014-02-19 02:50:10 -05:00
jgen
b570ef1573 Forgot a bracket. 2014-02-19 02:17:23 -05:00
jgen
2ca74a3b33 Expose methods to allow users of the database class to control when transactions occur. 2014-02-19 02:12:56 -05:00
jgen
ced3006915 At its finest. 2014-02-18 21:25:08 -05:00
jgen
892b323c4d 21st century debugging 2014-02-18 20:58:08 -05:00
jgen
741eb0f739 I too like to live dangerously. 2014-02-18 20:49:20 -05:00
Daku
857f7e4041 don't force hellban ext + add [Beta] tags 2014-02-18 07:24:26 +00:00
jgen
fe83e3d343 Adding comments to help explain the simpletest setup. 2014-02-17 13:59:41 -05:00
Daku
1909f9072e use mt_rand() instead of rand()
rand() isn't so random on windows: http://tjl.co/blog/code/followup-php-rand-vs-mt_rand/
mt_rand() is also slightly faster
2014-02-16 04:43:38 +00:00
Daku
629f9940c3 thumbnail border-color for post relationships
also removed build_thumb_html from themes (mostly old versions of the default base function)
2014-02-04 18:41:40 +00:00
Daku
b7778b54c9 add TagTermParseEvent for parsing tags during tagging 2014-02-01 09:36:10 +00:00
Shish
d7ce075a43 Merge pull request #367 from DakuTree/patch
Metatag tweaks + Fix for issue 359 & 362.
2014-01-25 06:58:35 -08:00
Daku
c07dc2e0ab use resolve_aliases rather than resolve_alias 2014-01-16 03:28:23 +00:00
Daku
ae4da2b410 add option for getMimeType to return list of extensions 2014-01-13 10:03:38 +00:00
Daku
7d49e21792 readability + moved stuff 2014-01-13 08:19:12 +00:00
Daku
152f5fbf26 add config option for default order 2014-01-13 08:19:11 +00:00
Daku
2c2f27ca64 add order metatag
not too happy with how this works...but it does work
2014-01-13 08:19:11 +00:00
Daku
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
Daku
9f06a5c565 fix search not working properly for aliases to multiple tags
fix issue 359
2014-01-13 08:04:26 +00:00
Daku
25c286b71f add support for using : as a metatag seperator + updated docs 2014-01-02 14:00:24 +00:00
HungryFeline
7cf79171a8 Update extension.class.php
Fix my previous commit. Also put the results of the tests into variables so we don't need to check them again.
2014-01-01 18:25:28 +01:00
HungryFeline
fde6558a6f Don't silently ignore invalid URLs
Scenario: Providing an invalid url via $_GET (wrong/missing extension or file isn't an image (also happens on download errors))
Behavior before: Silently redirect to index
Behavior after: Display error message
2014-01-01 01:41:11 +01:00
Daku
3dd3101995 added option to set pool & source via tag 2013-12-30 08:15:10 +00:00
jgen
a5ea9ed743 Lets comment this rather tricky function. 2013-11-28 00:31:46 -05:00
jgen
bf4d434c86 Fixes for the installer. Display error messages on failures, as well as actually check for tables before installing. 2013-11-28 00:31:09 -05:00
jgen
5b1a99d0c5 Fixing missing $. (Thanks Shish!) 2013-10-05 14:28:02 -04:00
jgen
b01ca89220 Some more small speed related tweaks. 2013-10-04 17:53:26 -04:00
jgen
0512858bd4 Some more small tweaks for speed. 2013-10-04 17:17:42 -04:00
jgen
70428b2b5d Its better to pass to the right function. (Side note, this is why you always test your code) 2013-10-03 21:19:19 -04:00
jgen
393a9e60df No need to have HTML in the image thumb title. Derp. 2013-10-03 21:17:15 -04:00
jgen
2d041d468f Adding ability to specify the 'date' in the image thumbnail title (when you hover over the thumbnail). 2013-10-03 21:09:41 -04:00
jgen
1db371345e Merge branch 'master' of git://github.com/shish/shimmie2 2013-10-03 20:33:47 -04:00
Shish
67c026e8d8 unique request ID, for associating several log entries with one request 2013-09-12 16:29:38 +01:00
Shish
1b73dd4ddc add 'hellbanned' user class, with support from the comments extension 2013-09-09 13:41:08 +01:00
Shish
7c95981319 load thumbnails on demand is more trouble than it's worth 2013-09-08 23:21:06 +01:00
Shish
07304861f3 log IDs of things 2013-08-30 00:19:46 +01:00
Shish
7c140680b7 log args 2013-08-30 00:19:46 +01:00
Shish
12bc4a90f7 core-image -> core_image, for elasticsearch's sake 2013-08-30 00:19:46 +01:00
Shish
44deff21a8 Merge branch 'master' of https://github.com/shish/shimmie2 2013-08-05 20:37:40 +01:00
Shish
4fc1f2f217 save cached config when saving database config, fixes #311 2013-08-05 20:21:57 +01:00
Shish
e50d9c4dbb only sanitise when saving tags - when searching, '*' is important 2013-08-04 18:21:52 +01:00
Shish
8b22652aa0 resolve negative aliases 2013-08-04 18:19:23 +01:00
Shish
2b628a395f resolve_list -> resolve_aliases, to better describe what it actually does 2013-08-04 18:13:50 +01:00
Shish
7e89481105 have Tag::resolve_list always take an array 2013-08-04 18:11:02 +01:00
Shish
00e297c7d4 Merge pull request #317 from HungryFeline/patch-1
Let the admin define how much space should be free
2013-07-07 03:28:44 -07:00
Shish
39753fe7a9 Finish the process of removing $query from thumb links. (Forgot to remove $query from the thumb links) 2013-07-07 10:34:19 +01:00
HungryFeline
9edbaf2ec7 Let the user define how much space should be free 2013-07-07 09:08:50 +02:00
Shish
47c1b5d094 move query-string-passing to JS rather than embedding in the HTML, so that the HTML can be commonised and cached better 2013-07-05 22:32:16 +01:00
Shish
30886b3a69 cache lookup debugging 2013-07-05 22:32:16 +01:00
HungryFeline
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
HungryFeline
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
Shish
df2f90016f trim leading slashes more efficiently 2013-06-13 12:20:27 +01:00
Shish
19c0868b2c sqlite got case sensitive by default at some point - lowercase strings for comparing them 2013-06-13 10:34:47 +01:00
jgen
cc95eb5deb Some more small speed tweaks. 2013-05-13 20:40:01 -04:00
Shish
7701758959 log old source in event log when changing source 2013-05-07 09:13:03 +01:00
Shish
7ff0ae51a1 fixup wildcards 2013-03-03 18:34:27 +00:00
Shish
72a82c7487 saner wildcard handling, and only handle '*' 2013-03-03 18:26:47 +00:00
Shish
dbfd747dd3 remove more slashes 2013-02-06 08:36:30 +00:00
Shish
c9491ad714 Get SQLite:scoreql_to_sql to return something 2013-01-31 08:07:19 +00:00
Shish
78442e96c3 add daily cache breakage to gravatars 2012-12-30 18:08:58 +00:00
Shish
cebebcd975 Merge branch 'master' of https://github.com/shish/shimmie2 2012-12-10 21:28:44 +00:00
Shish
5a3b4dae49 normalise usernames 2012-12-10 21:28:41 +00:00
green-ponies
ef44d6ccf3 Fix for issue 263 - ReCAPTCHA private and public keys reversed. 2012-11-03 13:49:10 -04:00
Shish
d8c670eaa6 move yet more stuff out of index.php 2012-10-16 23:05:11 +01:00
Shish
b141632785 some mock objects, for testing (coming soon, maybe) 2012-10-16 22:58:47 +01:00
Shish
38fea60056 handle CLI_LOG_LEVEL not being set 2012-10-16 22:58:24 +01:00
Shish
073b21aaa1 split up event listener loading, so parts can be called individually 2012-10-16 22:31:50 +01:00
velocity37
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
velocity37
0663bf54a0 Grr... 2012-10-16 18:55:43 +01:00
velocity37
1bd6f9f0ba Update core/util.inc.php 2012-10-16 18:55:38 +01:00
velocity37
fcdf784acc Update static thumb + bug fix
Add videos to static thumb and make Shimmie compare lowercase extensions.
2012-10-16 18:55:23 +01:00
velocity37
412dcd05af Add video MIME types 2012-10-16 18:55:00 +01:00
Shish
e3d385aee5 Merge branch 'master' of github.com:shish/shimmie2 2012-09-24 22:36:28 +01:00
Shish
ac812b4a2a danbooru api updates 2012-09-24 22:36:09 +01:00
Shish
65ce0ff4e4 check filename extension by lowercased version of itself 2012-09-22 23:24:19 +01:00
Shish
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
Shish
c57801bce7 wildcards aren't regular tags either 2012-09-03 11:13:08 +01:00
Shish
7dd929e5a8 remove a whole load of event->user variables that weren't used -- things should be using global user 2012-08-18 19:45:39 +01:00
Shish
6fcdf4717e Merge branch 'js-classes' 2012-08-15 21:26:56 +01:00
Shish
6394cd8100 make shm-thumb use consistent across themes, with data-tags and data-post-id 2012-08-15 20:42:56 +01:00
Shish
61e9909327 hardcoded config too (unrelated) 2012-08-15 18:31:28 +01:00
Shish
112422a2ca time and timestamp are incompatible 2012-07-28 12:07:46 +01:00
Shish
acf285bd68 IPs are variable length 2012-07-28 11:57:22 +01:00
Shish
53ad7d4a2f more sqlite, and indexes 2012-06-27 00:08:51 +01:00
Shish
02a286cba0 sqlite updates 2012-06-26 23:46:38 +01:00
Shish
f9008a70a6 refactoring fail 2012-06-24 07:13:53 +01:00
Shish
8dfeb7cda3 longer cache timings, with better invalidation 2012-06-24 01:57:12 +01:00
Shish
6c4fd0d14d remove ancient non-comment 2012-06-24 01:49:53 +01:00
Shish
38f7555d98 get rid of direct references to Database's engine 2012-06-24 00:57:55 +01:00
Shish
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
Shish
bcfcca7cda checking the engine can trigger a database init... 2012-06-24 00:25:47 +01:00
Shish
008cc4253b wibble database / cache connection functions, make them repeatable, and set persistant DB connections as an option 2012-06-23 23:57:34 +01:00
Shish
63437d1e09 cache user sessions 2012-06-23 23:38:28 +01:00
Shish
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
Shish
d3e2653002 some cached values are often zero (eg unread PMs), 'zero' is still a cache hit though, only 'false' is miss 2012-06-23 23:17:17 +01:00
Shish
6181d59975 that slash needs to be there >_< 2012-06-22 20:02:53 +01:00
Shish
e7df4edbee slashes are removed already 2012-06-21 09:07:52 +01:00
Shish
2a18da523c the define wibbling for hiphop seems to work now 2012-06-18 01:23:31 +01:00
Shish
fd5b4c5910 more re-organisation for create_monolith / hiphop friendliness 2012-06-18 01:06:36 +01:00
Shish
553aad8a36 cache vars do nothing 2012-06-18 00:51:09 +01:00
Shish
78d701dd53 move stuff about to make create_monolith simpler 2012-06-18 00:45:32 +01:00
Shish
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
Shish
5519c3a320 lots of tidying and removal of duplicate code 2012-06-18 00:00:21 +01:00
Shish
082e6fa31b nice, event-based command line support; try 'php index.php' for info 2012-06-17 20:06:02 +01:00
Shish
239e028662 flash messages everywhere~ 2012-06-10 04:21:03 +01:00
Shish
61754b8dfe add a type arg, even if it's not used yet 2012-06-10 01:05:03 +01:00
Shish
37b3dd60b6 flash_message(str) function and support in themes 2012-06-09 17:00:25 +01:00
Shish
e89c14c72c Merge branch 'master' of github.com:shish/shimmie2 2012-06-05 13:09:31 +01:00
Shish
d167d25942 don't add navblock if there is already one 2012-05-28 10:03:17 +01:00
Shish
2e76add61b enhance zglob to allow really long patterns 2012-05-22 12:46:56 +01:00
Shish
545f5234bb less nesting, 25% speed gain 2012-05-16 07:36:20 +01:00
Shish
4cbd00c039 Merge branch 'master' of github.com:shish/shimmie2 2012-05-16 05:32:56 +01:00
Shish
fd725d3363 merge image ID lists before scanning the images table, not after 2012-05-16 05:12:19 +01:00
Shish
2347b1fab8 fff. 2012-05-14 11:12:50 +01:00
Shish
f7e25daeb5 move getMimeType to utils 2012-05-14 06:43:23 +01:00
green-ponies (jgen)
3902036477 Avoid breaking things. 2012-04-18 02:20:42 -04:00
green-ponies (jgen)
2fcc271f3d Small typo. 2012-04-18 01:17:44 -04:00
green-ponies (jgen)
1615f79be4 Examine integers separately. Also, don't break search. >_< 2012-04-18 00:56:11 -04:00
green-ponies (jgen)
caec1ac824 Support multiple databases as well. 2012-04-18 00:55:39 -04:00
green-ponies (jgen)
dd88127c30 Undoing this commit: Removing unnecessary call to int_escape(). Simply cast to int inline, saving function call overhead. 2012-04-18 00:54:18 -04:00
green-ponies (jgen)
f8832a5024 Merge branch 'filter_var' 2012-04-16 16:46:38 -04:00
green-ponies (jgen)
a79875c1eb The idn_to_ascii() function is only supported by PHP version 5.3 and up. 2012-04-16 16:42:32 -04:00
green-ponies (jgen)
0c37be79a0 Actually get the proper mime type for a given file.
(FIXME: now we handle more than just images)
2012-04-15 19:55:06 -04:00
green-ponies (jgen)
a0a0ba5bbc A better version of bool_escape() that uses filter_var if possible.
Also removed undb_bool() as it was basically a copy of the old bool_escape function.
2012-04-15 19:28:27 -04:00
green-ponies (jgen)
372f4fad7c Use filter_var for function url_escape($input). 2012-04-15 18:59:23 -04:00
green-ponies (jgen)
a82f9382d1 Removing unnecessary call to int_escape(). Simply cast to int inline, saving function call overhead. 2012-04-15 18:40:06 -04:00
Shish
678215e4bd width / height were never used individually, now just have images 2012-04-01 17:47:39 +01:00
Shish
7ad3ae55f9 inet = char(45) in mysql, to fit IPv6 addrs 2012-04-01 15:44:43 +01:00
Shish
eb05458c9f change user class / delete user separate from admin 2012-03-31 19:25:27 +01:00
Shish
67f1c1c51d store enabled exts in a config file, rather than moving directories around 2012-03-31 18:59:28 +01:00
Shish
15df989f72 nicer error reporting 2012-03-31 17:07:11 +01:00
Shish
55d8d16ee8 suggest a perm when dev typos 2012-03-31 17:06:53 +01:00
Shish
81c7ac0120 mass source set perm 2012-03-31 16:31:10 +01:00
Shish
1673e8e7ef et perm 2012-03-31 15:48:29 +01:00
Shish
4856af9c49 more perms 2012-03-31 12:33:55 +01:00
Shish
7ef52c853f more perms 2012-03-31 12:28:34 +01:00
Shish
f7f70b8600 more perms 2012-03-30 20:54:33 +01:00
Shish
62e13eda96 always create 2012-03-30 20:28:09 +01:00
Shish
7cbb62c8cc move data to data folder 2012-03-30 18:21:35 +01:00
Shish
29cebb44f9 event_listeners is a bit of cached data 2012-03-30 18:07:40 +01:00
Shish
fd094050fc move config file to data 2012-03-30 18:03:55 +01:00
Shish
e210fe739b more spaced out priorities 2012-03-30 16:41:25 +01:00
Shish
da786ee3c1 tags on thumb element 2012-03-22 13:18:15 +00:00
Shish
1085925504 css=style, js=script 2012-03-22 12:30:02 +00:00
Shish
88767b4c96 syntax 2012-03-22 12:15:03 +00:00
Shish
b156d4f380 no need for 'load files in a good way' to be optional, just do it 2012-03-21 15:04:17 +00:00
Shish
e71cf291a9 hide empty bits, not just null 2012-03-19 19:00:25 +00:00
Shish
a69d80d950 generic blocks, now with database storage 2012-03-19 18:40:37 +00:00
Shish
ea90e21d86 wiki perms 2012-03-19 13:21:59 +00:00
Shish
ee4b223f65 comment_anon bool -> create_comment perm 2012-03-19 13:17:47 +00:00
Shish
bca3dd919d upload_anon bool -> create_image perm 2012-03-19 12:59:02 +00:00
Shish
0300065b9d default anon can do nothing 2012-03-19 11:42:56 +00:00
Shish
45bff3ff31 inherit the class, not the name 2012-03-19 11:33:06 +00:00
Shish
50a6013569 nicer custom classes 2012-03-19 11:27:01 +00:00
Onivis Yhonay d'Izeworudi
f72b8babc0 Load style.css from theme when autocache is enabled 2012-03-18 16:59:13 +01:00
Shish
f518c608d9 lazy loading for thumbs 2012-03-15 19:26:16 +00:00
Shish
144c1afcbc ffffff, PHP, doing something weird rather than having a userful error message 2012-03-14 20:35:15 +00:00
Shish
6632521218 permission name tweaks 2012-03-14 19:24:10 +00:00
Shish
9a0228720a truncate as a function, which works 2012-03-13 07:01:27 +00:00
Shish
d54580e453 PLT is used by tooltips too... 2012-03-13 07:01:15 +00:00
Shish
dde5d4c9b5 html5 validation 2012-03-13 06:33:21 +00:00
Shish
efd05179f3 better log for owner change 2012-03-13 04:55:49 +00:00
Shish
a5ba9279c4 modification dates on CSS/JS links 2012-03-12 23:17:20 +00:00
Shish
02428a17f5 note of perms 2012-03-12 17:30:33 +00:00
Shish
0e262f5500 change_X -> edit_X for consistency 2012-03-12 17:29:03 +00:00
Shish
f15fa1c635 a newline so source is less cramped 2012-03-12 15:06:07 +00:00
Shish
3eb1f1c2ab move move common code into base classes 2012-03-12 05:08:40 +00:00
Shish
15777b3bb5 move common themelt parts into a base class 2012-03-12 05:04:29 +00:00
Shish
c638af1d76 consistent block rendering 2012-03-12 04:39:04 +00:00
Shish
652984adc1 trim comma from tags as well as whitespace 2012-03-11 14:54:14 +00:00
Shish
cf907237c6 with 5.2.1, we have an accurate, peak memory use 2012-03-11 04:33:24 +00:00
Shish
1b30aea557 compressed coverage logs 2012-03-11 00:36:57 +00:00
Shish
a6dbe3b7f2 Image::locked should always be a boolean 2012-03-10 18:53:42 +00:00
Shish
77b99adca7 remove more unused bits 2012-03-10 02:19:12 +00:00
Shish
b451f90b47 ip2color() was never used 2012-03-10 02:14:33 +00:00
Shish
bab3145fbc plural() was never used 2012-03-10 02:13:50 +00:00
Shish
f9910ba98f whitespace consistency 2012-03-09 22:27:12 +00:00
Shish
1f07a273f6 move copy & pasted transload code into a shared function 2012-03-09 21:07:21 +00:00
Shish
79ce40abd0 less code 2012-03-09 18:14:14 +00:00
Shish
569e93cd6b postgres requires a sequence name to be passed to get_last_insert_id 2012-03-08 02:55:04 +00:00
Shish
f928d178f4 Merge branch 'master' of github.com:shish/shimmie2 2012-03-08 01:30:38 +00:00
Shish
0ce9aa02a2 'false' == true. Convert the first param from DB value to real bool, and also use triple equals 2012-03-08 01:27:59 +00:00
Shish
5a6f146444 more detailed docs 2012-03-05 18:42:05 +00:00
Shish
88ee6ea148 get_theme_object is only used once, move it closer to where it's used 2012-03-05 14:21:41 +00:00
Shish
171a4b7c85 php syntax 2012-03-05 13:58:04 +00:00
Shish
383dd0088e documentation updates 2012-03-05 13:56:36 +00:00
Shish
df72e4580b userclass docs 2012-02-22 21:08:57 +00:00
Shish
0351ffcd28 commit_hash is unknown by default 2012-02-22 13:33:35 +00:00
Shish
eccea620ba only admins can change user classes, and they should be protected from moderators 2012-02-22 12:32:54 +00:00
Shish
0e6b20f286 apple touch icon 2012-02-22 10:14:19 +00:00
Shish
f77c66848f DB exception -> SCoreException 2012-02-16 16:58:39 +00:00
Shish
6410199a84 basic CLI support 2012-02-16 16:10:31 +00:00
Daku
bbb9d6bd4c update ext now grabs extra info via JSON 2012-02-16 07:50:28 +00:00
Shish
e79d26ae8c check against the class /name/... 2012-02-14 21:15:19 +00:00
Shish
ff40907fe3 and commit the file... 2012-02-14 21:11:23 +00:00
Shish
3c1b20e05b user classes 2012-02-14 20:38:19 +00:00
Shish
629e998f45 more work on user classes 2012-02-14 06:41:45 +00:00
green-ponies (jgen)
f345fde006 Fixing function to get PHP's memory limit. 2012-02-12 19:48:07 -05:00
green-ponies (jgen)
f1367ecf6e Added some more comments / documentation. 2012-02-12 14:56:21 -05:00
Shish
a54ab11205 all_events isn't used any more 2012-02-12 17:06:23 +00:00
Shish
0984ebd062 Revert "group the scripts". Apparently this is bad.
This reverts commit 59a17792f5.
2012-02-12 11:43:26 +00:00
Shish
59a17792f5 group the scripts 2012-02-12 11:40:36 +00:00
Shish
8527da445e per-theme favicon possibilities 2012-02-12 11:40:00 +00:00
Shish
5eab692a97 have themes/x/style.css auto-loaded, and put it after the ext/*/style.css so it can override them 2012-02-12 11:29:41 +00:00
Shish
c640b4ce71 Merge branch 'master' of github.com:shish/shimmie2 2012-02-12 07:47:49 +00:00
Shish
4d0b3e69bd give a count of reported images in the admin's userbox 2012-02-12 07:47:53 +00:00
Shish
edbb8943d2 count pages by the aliased-to tag, not what the user typed 2012-02-12 07:30:16 +00:00
Shish
fbce628e04 note who has already reported an image 2012-02-12 06:41:10 +00:00
Shish Moom
6da4da8060 Merge pull request #129 from green-ponies/master
Type hints
2012-02-11 01:22:43 -08:00
Shish
9aa5644504 colours don't scale either D: numbers then... 2012-02-11 08:33:09 +00:00
green-ponies (jgen)
30eb5ddd8b More type hints! 2012-02-09 23:04:37 -05:00
Shish
77fc6f22b2 colour anons by IP address, for easier samefag spotting (commented out atm though) 2012-02-10 02:16:44 +00:00
Shish
c627e564c4 Merge branch 'master' of github.com:shish/shimmie2 2012-02-10 01:29:49 +00:00
Shish
01b89c2a1b function for showing IPs with ban button 2012-02-09 22:51:41 +00:00
Shish
d26afae583 ban_ip ability 2012-02-09 22:18:51 +00:00
Shish
410c4ff1a0 default gravatar url needs urlencoding 2012-02-09 17:37:41 +00:00
Shish
fbbdc898b0 Move image uploader info into the image info editor, make it editable 2012-02-09 17:03:39 +00:00
Shish
3584f40551 Merge branch 'master' of github.com:shish/shimmie2 2012-02-09 01:07:21 +00:00
Shish
0698b780f9 remove regular Extension, have SimpleExtension take its place, optimise the event system based on SimpleExtension methods 2012-02-08 12:07:01 +00:00
green-ponies (jgen)
d69fa6ae9d Merge branch 'master' into speed_tweaks 2012-02-07 23:21:56 -05:00
green-ponies (jgen)
ac1b3d00e2 Some more comments. 2012-02-07 20:13:58 -05:00
green-ponies (jgen)
5af54bb9e0 Added some more comments and type hints. 2012-02-07 20:05:38 -05:00
Shish
5c1f028249 more type hints 2012-02-07 19:55:31 +00:00
Shish Moom
1409eef470 Merge pull request #106 from green-ponies/master
Changes to the Install script
2012-02-07 10:54:43 -08:00
Shish
d715b3d8a6 brain-o 2012-02-07 18:27:53 +00:00
Shish
0589f9d72e fine grained permission bits 2012-02-07 15:15:18 +00:00
Shish
bff5a8453f start of fine-grained permissions 2012-02-07 13:44:54 +00:00
Shish
2162dbebdd base_href variable for javascript, to avoid generating dynamic JS with PHP 2012-02-07 11:33:27 +00:00
Shish
3b205d98eb charset 2012-02-07 10:56:46 +00:00
Shish
7211b0a30b vary cookie only with CACHE_HTTP 2012-02-07 10:17:37 +00:00
green-ponies (jgen)
a78ca78c9b More changes to the install script.
More error checking, better formating, etc..
2012-02-05 16:35:34 -05:00
Shish
2d334e08ea How did this typo get back in here? :/ 2012-02-05 05:06:55 +00:00
Shish
4e1300631b Merge branch 'master' of github.com:shish/shimmie2 2012-02-05 04:25:58 +00:00
Shish
a55eca4462 so many bots crawling the infinite search space... 2012-02-05 04:21:03 +00:00
green-ponies (jgen)
3b028696a0 Rewind arrays before foreach loops over all the elements.
(fixed a small typo as well)
2012-02-04 15:35:21 -05:00
green-ponies (jgen)
cd1f5d9ed0 Missed a semicolon. 2012-02-04 14:49:48 -05:00
green-ponies (jgen)
68e9bd694e Storing copies of config variables outside of for loops. 2012-02-04 14:17:52 -05:00
Shish
ee94aca3cd missed a bit 2012-02-02 16:08:49 +00:00
Shish
dab85e5f26 merge type hints 2012-02-02 14:16:14 +00:00
Shish
52ff412b38 hiphop type hint placeholders 2012-02-02 13:58:48 +00:00
Shish
bbb51b60f8 typos~ 2012-02-02 08:09:48 +00:00
Shish
baa409eb98 special PDO init for hiphop 2012-02-02 07:43:43 +00:00
Shish
16745aadc6 only require flexihash once 2012-02-02 04:35:26 +00:00
Shish
f198128f06 config.php might not exist, eg in monolith mode 2012-02-02 03:53:18 +00:00
Shish
2a375e7129 standard syntax 2012-02-01 17:01:41 +00:00
Shish
93540faca8 a note for the future 2012-02-01 17:00:44 +00:00
Shish
e049ea874d require php 5.2.6 (debian-old's oldest version), get rid of ancient compat 2012-02-01 16:51:38 +00:00
Shish
e6d7e0c1d6 changes for easier monolithing 2012-02-01 16:41:18 +00:00
Shish
a70484be31 moving big functions out of index.php 2012-02-01 15:07:03 +00:00
Shish
04ed07a0df some image links are absolute for good reason (eg they point to a CDN with a different hostname) 2012-01-31 15:11:06 +00:00
Daku
a1cc88cade this should fix custom image links 2012-01-31 14:58:55 +00:00
Daku
bab893bbda really ugly update ext
(although it works, the code is a mess :x)
2012-01-31 14:58:52 +00:00
Shish
853ea10fea merge mass tagger 2012-01-31 14:28:34 +00:00
Shish
fe85b2b5ee Merge remote branch 'zshall/master' 2012-01-31 14:00:41 +00:00
Shish
aed5e1a30e hand merge of speed tweaks 2012-01-31 13:20:43 +00:00
Shish
db609745d3 Merge remote branch 'snowstrypes/error_wdir' 2012-01-31 12:59:19 +00:00
Shish
6e6138793b DEBUG_SQL can be null for user-defined 2012-01-31 12:16:47 +00:00
Shish
c2689ba519 set remote addr in postgres connection 2012-01-31 12:16:19 +00:00
Shish
55447d1aa8 toggle for sql debugging 2012-01-30 05:00:21 +00:00
Shish
8623ab2917 _count_execs actually works nicely for PDO, if called... 2012-01-30 04:56:08 +00:00
Shish
3d582dc0d9 protip: don't break everything 2012-01-27 19:08:17 +00:00
Shish
6e64857936 wibble towards being totally SimpleExtension based, as that's easier to programatically optimise 2012-01-27 18:16:46 +00:00
Shish
7a5f87572c an image already knows what its own details are, it doesn't need to be passed them... 2012-01-27 16:27:02 +00:00
Shish
96b8253b38 term can be empty to start with >_< 2012-01-26 17:56:48 +00:00
Shish
ae56e591e9 sometimes, there is no token :O 2012-01-26 17:36:22 +00:00
Shish
70fc4b5a54 Currently SCore is pretty behind-the-scenes 2012-01-26 17:32:30 +00:00
Shish
f1d4fc700e persist connections 2012-01-26 17:24:56 +00:00
Shish
4530efc1e0 minus on its own was being turned into 'negative null-tag', which confused things 2012-01-26 17:16:06 +00:00
Shish
717024d464 explicit no-cache stops varnish from caching 2012-01-26 16:53:59 +00:00
Shish
54031fcb90 still bail on assert failures even when debug is off 2012-01-26 15:26:00 +00:00
Shish
ad686975b7 Merge branch 'master' of github.com:shish/shimmie2 2012-01-26 02:15:12 +00:00
Shish
a208d5c6bc lock logging fix 2012-01-26 02:15:06 +00:00
Shish
96b3b5c72a subfolders in data/ 2012-01-23 05:39:47 +00:00
Shish
03204859c1 merge~ 2012-01-22 15:11:39 +00:00
Shish
565b15c91e access the start time too... 2012-01-22 14:48:06 +00:00
Shish
da45389c42 have autodate include hours and minutes 2012-01-22 14:40:25 +00:00
Daku
3338ff0420 tags/source/rating/locked should only update/log if different than current 2012-01-21 00:17:07 +00:00
Daku
7049b3bf4d rating/source/locked now log info when set 2012-01-20 23:04:28 +00:00
Shish
208320f072 Reeeeeeally old bug that nobody cared about: getrusage returns CPU time used by the current process, not by the current page. PHP-FPM has many pages per process 2012-01-20 05:45:09 +00:00
Shish
9b96b44d64 tag cache is glitchy, too many things might update it 2012-01-20 05:16:40 +00:00
Shish
49e7bfa1b2 tidy up some ancient base_href / data_href messes; base_href as a config variable is no longer used 2012-01-20 03:29:29 +00:00
Shish
18e36f9b31 Rather than three levels of configuration, let's have two (define()'d values in config.php for system-level stuff, the web-editable config table for user-level stuff). Basically switches database_dsn from a global variable to a defined constant. 2012-01-20 03:15:58 +00:00
Shish
e46c22a228 weighted CDN targets 2012-01-17 15:47:58 +00:00
Shish
6ca81cb636 Merge branch 'master' of github.com:shish/shimmie2 2012-01-16 20:59:00 +00:00
Shish
cc3bda38f0 attempt to hand-merge jgen's revert by IP vits 2012-01-16 20:58:55 +00:00
Shish Moom
40c3861bc9 Merge pull request #76 from tkorpe/master
Bulk add faster
2012-01-16 12:41:56 -08:00
Shish
8f56b9ae2c argh php, syntax that used to be required is now deprecated... 2012-01-16 19:58:03 +00:00
green-ponies (jgen)
cd7de93a0a Changing for-loops to use pre-calculated values.
Rather than calculating the value each time.
2012-01-16 00:07:04 -05:00
Shish
9bde42d452 consistent hashing for multiple data mirrors 2012-01-16 02:53:38 +00:00
green-ponies (jgen)
7195d3d1f3 Changes using empty instead of strlen. 2012-01-12 23:07:14 -05:00
green-ponies (jgen)
2c6b5128c6 More tweaks for minor speed gains. 2012-01-12 21:17:37 -05:00
green-ponies (jgen)
3f7646bc8b typo 2012-01-12 20:30:26 -05:00
green-ponies (jgen)
fc12bbbfe5 More small changes to help save a few microseconds. 2012-01-12 15:46:34 -05:00
green-ponies (jgen)
d7ff1b96ab More stupid typos. Gah. 2012-01-12 15:13:38 -05:00
green-ponies (jgen)
c739e5b2e8 Silly typo. 2012-01-12 15:06:32 -05:00
green-ponies (jgen)
2e0e8475a1 A few more small changes for speed. 2012-01-12 14:46:58 -05:00
Thasan
9f8a49483f check if thumbnail already exists before regenerating it, way to force regen. 2012-01-12 03:54:27 +02:00
green-ponies (jgen)
26d383198a More small changes for speed. 2012-01-11 15:57:00 -05:00
green-ponies (jgen)
ea15574226 Changes and tweaks for speed.
Because every microsecond counts! :P
These changes are based on information from:
http://phpbench.com/
http://stackoverflow.com/questions/482202/is-there-a-performance-benefit-single-quote-vs-double-quote-in-php
2012-01-11 15:08:27 -05:00
Shish
5b717870d1 case sensitivity blargh 2012-01-01 17:13:50 +00:00
Shish
beff330a37 Merge branch 'master' of github.com:shish/shimmie2 2012-01-01 16:54:58 +00:00
Shish
56a780bfd3 in per-letter mode, don't separate a and A 2012-01-01 16:54:44 +00:00
Daku
dff1eef51a make_form now has a onsubmit option 2011-12-31 14:18:55 +00:00
Shish
ad2bb8b8b6 switch timeago to a javascript implementation 2011-12-31 14:12:34 +00:00
Shish
cfbeddde9f HTTP level caching, so we can stick varnish in front of the web pages 2011-12-27 19:23:37 +00:00
Shish
b7bd74055d PHP is officially the worst web API ever 2011-12-25 17:57:15 +00:00
Shish
67e0c87b20 create a generic bool_escape function, use that 2011-12-25 15:11:26 +00:00
Shish
3e6d5cec6f rating event rather than database access 2011-12-25 14:35:55 +00:00
Shish Moom
d25ef4e6f6 Merge pull request #63 from DakuTree/master
Few new features + More fixes
2011-12-25 06:31:36 -08:00
Shish
cd609141f4 optional warehouse split levels 2011-12-25 11:24:20 +00:00
Shish
6d3cdb208c those functions aren't /called/ unless coverage is set ._.;; 2011-12-24 21:55:33 +00:00
Shish
883c73c9ff even if xdebug is installed, only run coverage when told to 2011-12-24 21:51:48 +00:00
Daku
ee1fc7e3ae Admin can now lock image while transloading. 2011-12-24 20:18:00 +00:00
Shish
5121e99dbe speed hax and niceurl forcing from r34 2011-12-24 14:49:55 +00:00
Daku
cd11e75e40 Can now set rating/external source while uploading via the bookmarklets. 2011-12-23 21:27:38 +00:00
Daku
c37569f3d4 Fixed reCaptcha. 2011-12-21 02:28:39 +00:00
Shish
a89c5943d8 error details when the file copy fails 2011-11-08 11:02:04 +00:00
green-ponies (jgen)
ef61a4cb4a Small patch for Blotter extension, and also added Version to debug output. 2011-10-23 21:54:04 -04:00
Shish
ac3bf33402 tag_n wasn't used by accurate search, but was by ugly 2011-10-18 22:32:04 +01:00
Shish
5a6501f2be log event handlers as well as events 2011-10-09 17:08:13 +01:00
Shish
eb7927b3b1 Merge branch 'master' of github.com:shish/shimmie2 2011-10-09 12:10:22 +01:00
Shish
4b86497816 support for Context profiling 2011-10-09 12:01:48 +01:00
green-ponies (jgen)
bba4301bfa Disabled option for Minifying CSS and JavaScript. (not currently supported) 2011-10-06 15:23:49 -04:00
Yaro
9e2522f86f fixed unpredictable working directory inside register_shutdown_function 2011-10-04 17:03:53 +04:00
green-ponies (jgen)
c1df2653a8 Cleaned up the comments a bit. 2011-09-25 14:16:20 -04:00
green-ponies (jgen)
944f3bdf3d Fixed caching from not outputing JS if only CSS is enabled. 2011-09-25 14:00:56 -04:00
green-ponies (jgen)
97d137f365 Working on Automatic Caching feature for CSS and JS files.
Added config options to main Shimmie config.
2011-09-25 13:40:34 -04:00
Shish
a1da59804e Merge branch 'master' of github.com:shish/shimmie2 2011-09-25 12:45:59 +01:00
Shish
5b09467310 fix for alisaing suggested by Diftraku 2011-09-25 12:45:08 +01:00
green-ponies (jgen)
2e276a095e Fix for Issue 22 from HungryFeline. 2011-09-11 21:41:46 -04:00
green-ponies (jgen)
864e823447 Small change to headers for efficiency.
These two headers are always sent and do not need
to be added to the header queue. (wastes time)
2011-09-11 21:26:23 -04:00
green-ponies (jgen)
6e7789c40b Added feature to try and cache the CSS and Javascript files by default.
This reduces the total number of HTTP requests (and hopefully
allows the site to load faster).
2011-09-11 21:24:18 -04:00
green-ponies (jgen)
1c8ba8dc26 Wrong brackets. 2011-09-04 14:24:14 -04:00
green-ponies (jgen)
c2ef8736b8 Fixed a typo. 2011-09-04 14:19:06 -04:00
green-ponies (jgen)
bd31bcd79a The page class now supports both HTML headers and HTTP headers.
From the comment:
FIXME: should be $page->blah
2011-09-04 14:06:44 -04:00
green-ponies (jgen)
19a3a5a6f9 Working on changed $page to support http headers as well as html headers. 2011-09-04 14:06:39 -04:00
green-ponies (jgen)
fca286913e Working on moving header() inside of the global $page data structure. 2011-09-04 14:06:34 -04:00
green-ponies (jgen)
d05344d5e3 Image resize is working now! (uses the GD library only for now)
Moved resize into contrib folder.
2011-09-04 11:17:14 -04:00
green-ponies (jgen)
17999cade8 Image Replace feature working, just needs more testing. 2011-08-25 21:35:59 -04:00
green-ponies (jgen)
f3b6fde7a5 Working on adding a "Replace Image" feature. 2011-08-24 20:53:53 -04:00
green-ponies (jgen)
3a4aea45d5 Small addition for giving forms unique IDs. Mainly so that javascript has
something to hook onto.
2011-08-12 21:56:48 -04:00
a5f3a36fa4 fix for mySQL>5.1 - should remain compatible with versions prior to 5.1 2011-05-12 12:32:34 -07:00
Shish
1abb96159b PDO returns 'false' for no rows, but various parts of the code expect it to return 'null'; for now, emulate the old behaviour 2011-03-24 14:27:11 +00:00
Shish
cd86859f08 cache anon, it gets looked up a lot 2011-03-23 11:26:11 +00:00
Shish
811f9e0f66 cd variable for sites who want /ab/cb/abcd 2011-03-23 11:19:34 +00:00
Shish
e279e69f96 fix single-tag searches 2011-03-14 14:20:30 +00:00
Shish
c554a12be0 hacky fix for searching, make sure query variables are unique 2011-03-14 12:44:58 +00:00
Diftraku
fb65286863 Critical change to deltree, it seems Windows version of PHP does not consider symlinks to be links when checked with is_link(). 2011-03-06 03:17:40 +02:00
Diftraku
3d66c7ce41 "Fix'd" the execute query to pass args array without binding, assuming the first value is at index 0 and the query uses questionmarks. 2011-03-05 03:11:29 +02:00
Diftraku
93e2110056 Because Windows... shitty OS is shitty. Added a Windows-only fix to the extension symlink and deltree.
Windows will nag about file info not found on relative paths with symlink (php bug?).
Also, when deleting a symlink on Windows, it needs to be rmdir'd, no unlink'd (kept throwing permission denied for unlink).
2011-03-03 11:40:34 +02:00
Shish
20cc4cc165 don't have super-thin / super-short thumbs 2011-02-13 11:18:23 +00:00
zshall
cc6b9753bb Added email extension. 2011-02-11 17:43:18 -05:00
Shish
4b5795cc5b fucking php, this took an hour to debug because it just dies with no error message -_- 2011-01-26 12:19:18 +00:00
Shish
3896c71a9a strnorm bits 2011-01-22 15:51:55 +00:00
Shish
ee3c24117b more pdo compat, database bits 2011-01-03 15:18:24 +00:00
seinoxygen
115d992ff0 merged image zoom 2011-01-01 19:19:18 +00:00
Shish
06a3be4941 Merge branch 'pdo' 2011-01-01 18:47:55 +00:00
Shish
27056f369f sort tags when imploding / exploding 2011-01-01 18:40:21 +00:00
Shish
2532091ae8 PDO DSN handling (PS. PHP is retarded) 2011-01-01 16:59:41 +00:00
Shish
d6baeab977 more pdo compat 2011-01-01 16:28:04 +00:00
Shish
7684def0f8 add get_pairs 2011-01-01 16:27:56 +00:00
Shish
8d978aa06a more pdo compat 2011-01-01 15:58:09 +00:00
Shish
175ceac490 PDO compat 2011-01-01 15:28:30 +00:00
Shish
8b2e3262fe clean up database API for completeness and sensibleness 2011-01-01 15:27:24 +00:00
Shish
6b557983c4 more PDO compat 2010-12-31 20:25:03 +00:00
Shish
8e63827c0f PDO exceptions for error handling 2010-12-31 19:56:28 +00:00
Shish
1d7b929871 convert parts of core/database to pdo 2010-12-31 19:29:15 +00:00
Shish
7403fd7c87 Revert "checks for files without extensions, from AtomicDryad"
This seems to break something, such that uploading a jpeg results
in image size 0x0 (other bits seem to work though o_O)

Will take a look at what's up and re-commit later...

This reverts commit ead87d3934.
2010-12-24 20:44:38 +00:00
Shish
ead87d3934 checks for files without extensions, from AtomicDryad 2010-12-22 21:43:00 +00:00
Shish
dfef932463 use config.php as CSRF salt 2010-10-07 21:26:28 +01:00
Shish
1e04df7765 <form> -> make_form(), or add auth token manually 2010-10-07 21:26:27 +01:00
Shish
6cd53fed8a csrf functions 2010-10-07 21:26:15 +01:00
Christian Walde
52f5a265fa changed the windows coverage fix from closure to parameter passing, since older phps can't do that 2010-09-09 20:10:37 +02:00
Christian Walde
e5b3afb31c this makes coverage dumping work on windows; on windows the cwd is changed to the apache executable's path by the time the coverage end is reached, changing the coverage end function to a closure that gives back a function with the actual shimmie cwd stored fixes this 2010-09-09 20:10:24 +02:00
Christian Walde
cd6015203e replaced deprecated split with explode 2010-09-09 20:09:37 +02:00
Shish
c6f358a8fc split is deprecated in php5.3, use explode instead 2010-07-30 15:36:33 +01:00
Shish
10dbe650e2 external CSS comes before external JS 2010-07-30 13:39:11 +01:00
Shish
7abb4742a5 hack 2010-07-19 13:35:10 +01:00
Shish
d80ccbe497 SimpleExtension priority framework 2010-05-28 13:06:18 +01:00
Shish
c6e61b096b timeline function for profiling 2010-05-27 11:48:29 +01:00
Shish
23216d7549 for compiling under hiphop 2010-05-15 14:53:37 +01:00
Shish
e1f9d77271 turns out that this was necessary o_O 2010-04-26 06:07:34 +01:00
Shish
062f30abe7 Merge branch 'pagevent' 2010-04-26 04:53:31 +01:00
Shish
0bd1108933 new jquery 2010-04-26 04:52:28 +01:00
Shish
e211207ac5 event -> this 2010-04-26 03:39:02 +01:00
Shish
5a83a18df3 add the functions 2010-04-26 02:35:53 +01:00
Shish
2c1fa2fd7f move warehouse directory creation into a single place 2010-04-23 05:46:07 +01:00
Shish
dbf529825c double-escape backslashes as well as forward 2010-04-23 03:31:10 +01:00
Shish
3eee6f313e avatar options 2010-04-21 17:56:01 +01:00
Shish
9cb7946d69 make memcachecache pay attention to the URI 2010-03-25 10:53:02 +00:00
Shish
7efc4a0dfe if necessary 2010-03-25 10:37:52 +00:00
Shish
20edd68093 avoid double escapes 2010-03-24 18:24:47 +00:00
Shish
f4cbd8b24f AHA! This bug took ages to track down, as the trigger was in a completely different system to the error message... Many, many thanks to zshall for managing to reproduce the error, then narrowing it down to a single line \o/ 2010-03-21 02:20:09 +00:00
Shish
7a5be72cbd build warehouse directories on demand 2010-03-15 04:31:28 +00:00
Shish
2c710bb654 make captchas optional and off by default, some people are having problems 2010-03-14 02:14:28 +00:00
Shish
161a2d1757 postgres is true too 2010-02-17 15:09:00 +00:00
Shish
9c26f9efb4 image locking 2010-02-17 14:16:20 +00:00
Shish
a214856481 post/view?search -> post/view#search for better caching 2010-02-09 10:06:21 +00:00
Shish
320877f80b URI based hash, for nginx compatability 2010-02-09 07:42:21 +00:00
Shish
b33aa49f00 a technical explanation of build_accurate_search_querylet 2010-02-09 02:07:19 +00:00
Shish
937a430a50 only optimise this case for regular tags 2010-02-03 22:03:46 +00:00
Shish
3b2941a5bc if the search is for one tag, then 'count(tag)' (expensive function) = 'tag.count' (index lookup) 2010-02-02 18:19:55 +00:00
Shish
74693f9d9f make apc not warn 2010-02-02 18:14:31 +00:00
Shish
387e13f9f0 activate caches if cache_dsn is set 2010-02-02 17:34:45 +00:00
Shish
892214a0c7 APC cache mechanism, faster than memcache? 2010-02-02 17:12:40 +00:00
Shish
a28a3ffcb9 case-insensitive search 2010-02-02 11:52:24 +00:00
Shish
efac91598c SCORE_STRNORM = lowercase-if-necessary-for-comparison 2010-02-02 02:13:45 +00:00
Shish
b34dc57f9e this uses the warehouse too 2010-02-02 01:55:18 +00:00
Shish
898f1e1f73 typo 2010-02-02 00:56:28 +00:00
Shish
155f3cf9e8 lowercase match for pgsql 2010-02-02 00:45:15 +00:00
Shish
f7f3057278 some only have concat, some only have pipes... 2010-02-02 00:43:10 +00:00
Shish
05150706cc wtf git 2010-02-02 00:34:44 +00:00
Shish
9ca5fcd51a MemCache is already used... 2010-02-01 16:17:12 +00:00
Shish
69001a375c no concat in postgres, use pipes 2010-02-01 16:15:53 +00:00
Shish
ad83c7634c 'PRAGMA foreign_keys' is SQLite-specific 2010-02-01 16:13:24 +00:00
Shish
9d40eda409 make memcaching work for pages, and log if DEBUG is set 2010-02-01 16:11:26 +00:00
Shish
d715c38341 disable captchas when debugging from localhost 2010-01-23 12:48:43 +00:00
Shish
ccaeca19eb make make_http not break with '' as an argument 2010-01-18 08:29:35 +00:00
Shish
13fb551fb3 SQLite now supports foreign keys (3.6.19 onwards) 2010-01-17 09:42:35 +00:00
Shish
af36f37902 documentation updates 2010-01-12 15:01:34 +00:00
Shish
f4a74c4d4c better logging 2010-01-05 10:52:23 +00:00
Shish
3bb3ee2e86 securimage support as an alternative captcha 2010-01-03 08:15:52 +00:00
Shish
830635c5a9 preliminary image locking 2009-12-30 08:54:04 +00:00
Shish
694200d9f8 proper logging 2009-12-30 07:59:40 +00:00
Shish
d65adf1dab Content-Length header for data pages 2009-12-26 01:00:38 +00:00
Shish
1c7ce5a3ac get the THUMB link... *headdesk* 2009-12-24 07:34:29 +00:00
Shish
a14b2a8a63 how did nobody spot this? x_x 2009-11-20 11:51:51 +00:00
Shish
6818e598e5 forgot to replace this 2009-11-15 12:09:09 +00:00
Shish
7f47c594c8 handle the case of the SQL log failing to open 2009-11-15 10:26:17 +00:00
Shish
14b48d5599 fixed? 2009-11-12 09:30:41 +00:00
Shish
b428a56e5f fail 2009-11-12 09:27:09 +00:00
Shish
0c7c90f2cd hash_ab and hash_cd templates for image URLs 2009-11-12 09:23:47 +00:00
Shish
7a46a9a962 html tooltip for autodates 2009-11-10 03:49:56 +00:00
Shish
ab4f69eb88 months and years for autodate 2009-11-10 03:36:39 +00:00
Shish
1d46dbbe18 this setting is used before the database is connected to... 2009-10-26 11:39:53 +00:00
Shish
dd65b63be9 avatar css 2009-10-10 01:52:39 +01:00
Shish
6baf616692 truthomatic 2009-10-08 17:44:25 +01:00
Shish
71999a3065 find truth 2009-10-08 17:43:18 +01:00
Shish
a7caf1e060 prefixed cookies 2009-10-08 13:59:12 +01:00
Shish
159a862c02 configurability for avatars 2009-10-08 12:40:52 +01:00
Shish
6ed28c8a43 User::get_avatar_html() 2009-10-08 02:58:58 +01:00
Shish
304c479dba make debugging and coverage separate settings 2009-09-27 14:04:27 +01:00
Shish
bb4085972b code coverage stuff 2009-09-19 20:13:37 +01:00
Shish
f71a0e4390 configurable autodate format 2009-09-15 18:29:22 +01:00
Shish
ea215fbff2 split() is deprecated in php5.3 2009-09-14 21:19:13 +01:00
Shish
39f7688888 allow themes to override this function 2009-08-24 03:00:42 +01:00
Shish
d5dea776c5 ignore duplicate tag history entries 2009-08-24 03:33:51 +01:00
Shish
685d079da8 use_autodate option 2009-08-18 23:06:15 +01:00
Shish
76a9090ded settable email field 2009-08-11 17:07:03 +01:00
Shish
fe9dd98387 slightly less strict filename sanitising, for the unicode users 2009-08-11 15:12:48 +01:00
Shish
51dab939ea if hit on disk, reload into memcache 2009-08-10 13:33:08 +01:00
Shish
b1df14ca4a only cache gets 2009-08-10 11:46:47 +01:00
Shish
a9a9318c41 better caching code 2009-08-09 13:11:54 +01:00
Shish
1e8e5adbbf load config.php sooner 2009-08-09 13:10:59 +01:00
Shish
7c790414b5 update this too 2009-08-02 09:10:28 +01:00
Shish
1614248c35 compressed cached pages 2009-08-01 08:57:28 +01:00
Shish
bdcca24f8d static file caching 2009-08-01 02:31:49 +01:00
Shish
a3f57c8fd6 make autodate work, and use it a bit 2009-07-28 23:56:46 +01:00
Shish
d850a562db updateses 2009-07-28 01:09:00 +01:00
Shish
a16b3db48c somewhat updated danbooru comment theme 2009-07-28 00:54:47 +01:00
Shish
ecef1edb14 make_http function 2009-07-24 08:08:29 +01:00
Shish
572f84511a lots of docs, and some internal changes 2009-07-21 07:38:53 +01:00
Shish
2471a8e2eb docs 2009-07-21 07:38:46 +01:00
Shish
fd5242d1ad more tests, and make link to image work better 2009-07-19 19:36:11 +01:00
Shish
8875422bed someone else is defining these... 2009-07-19 17:22:01 +01:00
Shish
627ecdbf4c lots of docs 2009-07-19 08:38:27 +01:00
Shish
d8e027b776 a load more tests 2009-07-19 04:49:14 +01:00
Shish
bc3c2d5a5b sqlite returns column names as table.name, not just name 2009-07-17 13:10:42 +01:00
Shish
be5ed6272c merge both log functions into one; simply saying that they take different numbers of arguments isn't enough... 2009-07-17 01:56:40 +01:00
Shish
4abf2ac7dd more tests 2009-07-16 20:21:28 +01:00
Shish
96e69c4f20 aaaaaaaargh dates and times in sql 2009-07-16 00:05:25 +01:00
Shish Moom
8dac266af4 minor fix 2009-07-14 12:52:55 -07:00
Shish Moom
d9b97996ca store arrays in config, edit in setup with add_multichoice_option 2009-07-11 04:43:18 -07:00
Shish Moom
f070bbe69e auto-include library scripts 2009-07-07 06:48:59 -07:00
Shish Moom
57b2a13a62 no need for hostname 2009-07-01 05:17:09 -07:00
Shish
0b83a9d786 don't break when base_href='' 2009-06-29 19:02:25 -07:00
Erik Youngren
4bbb3569eb You know that feeling you've done something the hard way? Yeah. Replacing theme_redirect with a three line function in core/utils.inc.php 2009-06-06 06:08:26 -07:00
Shish Moom
f77c6e64cd array_contains -> in_array 2009-06-05 12:53:00 -07:00
Shish Moom
c5e9788358 fetch a block of users 2009-05-30 06:47:35 -07:00
Shish
4765e51e7c explanation and credit 2009-05-15 01:52:55 -07:00
JJS
412750dec2 Bugfix: $c->get_string to $config->get_string 2009-05-12 03:11:01 -07:00
Shish
8dd3f8cbc0 SimpleExtension, like Extension but with more Magic 2009-05-11 14:08:32 -07:00
Shish
6a5b8bd46d allow this to be turned on via config 2009-05-11 12:53:55 -07:00
Shish
9ae557c250 a couple of fixes 2009-05-11 07:48:18 -07:00
Shish
bb84a735a2 requestcontext stuff is messy, go back to globals :( 2009-05-11 07:04:33 -07:00
Shish
47fd679354 ugly mysql thing from 2.3 2009-05-11 03:52:48 -07:00
Shish
f592167c6a comment out example thingy 2009-05-08 04:45:23 -07:00
Shish
561c9fdbb7 punctuations 2009-05-08 04:43:45 -07:00
Shish
5609976164 no need for formatting 2009-05-08 04:41:03 -07:00
Shish
7648d3db67 newline 2009-05-08 04:07:46 -07:00
Shish
415f6901da logging things 2009-05-08 03:52:29 -07:00
Shish
4e551cf9c5 move shimmie-specific sqlite things out of adodb and into shimmie's database engine 2009-01-25 09:18:58 -08:00
Shish
2d46a5c269 more functions that sqlite needs 2009-01-25 09:18:48 -08:00
Shish
5600e00de9 fixes 2009-01-24 10:59:00 -08:00
Shish
394cff1909 move tag functions into the tag class 2009-01-24 03:32:48 -08:00
Shish
abf448cdc8 old bits 2009-01-22 10:23:15 -08:00
Shish
33fa2f9b28 xmlschema was fail 2009-01-22 10:21:31 -08:00
Shish
35cc1aad48 more sqlite fixes 2009-01-22 09:08:33 -08:00
Shish
4e4f0be4e5 more sqlite niceness 2009-01-22 07:51:50 -08:00
Shish
f3a3d50f95 sqlite love 2009-01-22 07:08:37 -08:00
Shish
8619be809e sqlite engine 2009-01-22 05:53:30 -08:00
Shish
d98962a30e a bunch of fixes 2009-01-22 05:42:44 -08:00
Shish
fb7e14ad21 fixes 2009-01-22 04:14:38 -08:00
Shish
e37531f26a mysql too 2009-01-22 04:12:15 -08:00
Shish
f347384a50 php developers can go choke on a bucket of cocks 2009-01-22 04:11:43 -08:00
Shish
44ac62e1ae get rid of xmlschema 2009-01-22 04:05:55 -08:00
Shish
64fb261b87 simpler table creation function 2009-01-22 03:22:55 -08:00
Shish
6667ac553d niceurl magic 2009-01-22 02:49:22 -08:00
Shish
0ff11d71ed make use of this 2009-01-21 23:21:03 -08:00
Shish
fcca11f20c make cache engines work <_< 2009-01-20 03:54:43 -08:00
Shish
03bee56193 move extension specific parts out of user and into extensions 2009-01-20 03:24:35 -08:00
Shish
6e6a6bdd16 scoreyness 2009-01-20 03:17:49 -08:00
Shish
776a42d519 cache objects 2009-01-20 02:47:20 -08:00
Shish
5e75ad3cd4 start of cache engines 2009-01-20 02:34:17 -08:00
Shish
f9dffb96cb brain fart 2009-01-20 02:33:34 -08:00