Commit graph

752 commits

Author SHA1 Message Date
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