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