Commit graph

145 commits

Author SHA1 Message Date
Daku
845543b2ba fixes #478 - import now uses AddAliasEvent rather than manually adding itself 2015-04-18 10:39:09 +01:00
Daku
6289402f2e make sure aliases.csv is downloaded, and not opened in browser
SEE: http://stackoverflow.com/questions/6468517
2015-04-18 10:38:57 +01:00
Shish
52dc36cfa6 str_getcsv rather than explode, for handling quotes 2015-01-30 03:53:58 +00:00
jgen
8fd532e5a8 More linting and removing dead code. 2014-04-28 02:43:49 -04:00
jgen
1ca3865a1c Removing the closing PHP "?>" tag as per style guidelines. (Also see: https://stackoverflow.com/questions/4410704/why-would-one-omit-the-close-tag ) 2014-04-25 22:54:51 -04:00
jgen
b241390fa4 Removing the closing PHP "?>" tag as per style guidelines. 2014-04-24 22:34:45 -04: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
jgen
3d1217a1be Trim trailing blank space. 2014-02-22 15:36:52 -05:00
jgen
96358f0bc0 Nevermind, it doesn't work. 2014-02-22 15:33:55 -05:00
jgen
2d0edde2b2 We can check that admin users see the "Add" button though. 2014-02-22 15:25:25 -05:00
jgen
d6f0213a9f Commenting out the alias tests due to consistent failing on TravisCI. 2014-02-22 15:19:06 -05:00
jgen
6efe56eddf Well, lets try this. 2014-02-22 03:10:59 -05:00
jgen
b229e114c2 Dump all the post data on failure. 2014-02-22 03:06:09 -05:00
jgen
f1aed15f32 die doesn't support commas 2014-02-22 02:59:17 -05:00
jgen
cbfc0580f6 Temporary for debugging. 2014-02-22 02:35:56 -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
f3c379b8db Rename the file. 2014-02-19 18:36:38 -05:00
jgen
141be8768f Better detection of running on the command line. 2014-02-19 18:10:40 -05:00
jgen
5a49bb59e4 Check that regular users can't add aliases. 2014-02-19 17:03:35 -05:00
jgen
1a7cbc9b2a Check the actual http response code. 2014-02-19 16:40:28 -05:00
jgen
f1a516ef18 Extra debugging when Alias fails. 2014-02-19 16:24:47 -05:00
jgen
bdbb280064 Fixing the alias test cases. 2014-02-19 04:27:29 -05:00
jgen
c05b4719d6 Fix the tests for the Alias extension. 2014-02-17 01:52:30 -05:00
Shish
48e40a6712 trim whitespace when adding aliases 2013-07-06 10:42:25 +01:00
HungryFeline
03b0c82887 Better CSV validation
When uploading a CSV, check every entry before executing the INSERT. The checks are the same as with the normal add except that no errors are shown.
2013-07-06 00:33:31 +02:00
HungryFeline
db64370815 Fixing csv upload form
The 2nd argument of make_form is the method. Also, I don't see any point in defining the $multipart variable. Just true as argument is enough. C&P mistake?!
2013-07-06 00:12:25 +02:00
Shish
e49e90f9ab fff, php 2013-03-07 03:23:35 +00:00
Shish
e013d86b56 disallow aliases to other aliases 2013-03-03 18:32:56 +00:00
Shish
239e028662 flash messages everywhere~ 2012-06-10 04:21:03 +01:00
Shish
e538181fa1 add alias after finishing the mass tag edit 2012-03-30 16:40:14 +01:00
Shish
cd8ec7bf41 sort alias CSV file the same way as the table 2012-03-25 03:32:32 +01:00
Shish
eb8c15b9a0 whitespace 2012-03-09 22:08:55 +00:00
Shish
a4f2c417ec CSS3 powarr 2012-02-22 14:27:56 +00:00
Shish
af7704825b use HTTP status codes with error messages 2012-02-16 15:37:05 +00:00
Shish
519e46578d more notation for which strings are HTML safe and which aren't 2012-02-13 20:51:34 +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
Shish
0589f9d72e fine grained permission bits 2012-02-07 15:15:18 +00:00
Shish
dab85e5f26 merge type hints 2012-02-02 14:16:14 +00:00
Shish
cc8f1f35a5 more type hints 2012-02-02 14:14:33 +00:00
Shish
75b9bc2650 typo in merged code 2012-01-31 14:46:19 +00:00
Shish
6f22207603 merge pdo fixes 2012-01-31 13:55:12 +00:00
green-ponies (jgen)
6c3e91e01c changed script tags to include language 2011-08-12 21:40:51 -04:00
Josh Sutinen
c89eb46800 alias_editor: More PDO compatibility 2011-02-22 17:35:07 -05:00
Shish
ee3c24117b more pdo compat, database bits 2011-01-03 15:18:24 +00:00
Shish
d6baeab977 more pdo compat 2011-01-01 16:28:04 +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
97db78d29e get rid of extra bits 2010-05-15 14:20:40 +01:00
Shish
0d7efd0256 class type hints for hiphop's benefit 2010-05-15 12:17:32 +01:00
Shish
ba814aebaa mysql can go choke on a bucket of cocks 2010-04-27 11:36:07 +01:00
Shish
8a08571325 'offset ? limit ?' is supported by more than 'limit ?, ?' 2010-04-23 16:10:46 +01:00
Shish
9ab6fec30a remove carridge returns when parsing alias CSVs 2010-03-27 04:01:29 +00:00
Shish
a295c210a2 limit/offset incompatability blah 2010-02-02 13:15:24 +00:00
Shish
b292bc7a6c postgres requires separate 'offset' aside from 'limit' 2010-02-01 16:19:38 +00:00
Shish
18c0fa7df8 more documentation, and set some extensions to be hidden from the user docs list 2010-01-05 13:13:11 +00:00
Shish
7a60e6fae5 lots of extension docs 2010-01-05 10:11:53 +00:00
Shish
694200d9f8 proper logging 2009-12-30 07:59:40 +00:00
Shish
281c34d64e more testing 2009-09-19 23:03:47 +01:00
Shish
ac85a520d7 link to target of alias 2009-09-15 18:42:42 +01:00
Shish
a69d1086ec paginated aliases 2009-08-25 02:36:00 +01:00
Shish
1946e3c943 consistent naming for test functions 2009-08-19 01:28:48 +01:00
Shish
43d9161d6b only show uploader to admins 2009-08-03 10:24:32 +01:00
Shish
fddbe0f605 everything else only has add boxes at the bottom 2009-08-02 09:09:09 +01:00
Shish
4abf2ac7dd more tests 2009-07-16 20:21:28 +01:00
Shish
c88ecebb7b A ton of tests, figured out how to test uploads \o/ 2009-07-15 02:43:14 +01:00
Shish Moom
7f73a1f87e jquery start 2009-07-07 05:42:34 -07:00
Shish
bb84a735a2 requestcontext stuff is messy, go back to globals :( 2009-05-11 07:04:33 -07:00
Shish
4a8034cabe zebra improvements 2009-01-16 20:53:11 -08:00
Shish
a2e5ad707b lots of zebras! 2009-01-16 20:24:43 -08:00
Shish
eeda4d6ab3 very classy 2009-01-04 11:54:16 -08:00
Shish
11873e9601 remove EOL whitespace 2009-01-04 11:18:37 -08:00
Shish
1c8094cabf replace the veto system with exceptions 2009-01-04 06:01:59 -08:00
shish
98f6800f9d configurable testing URL
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1096 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-18 10:34:15 +00:00
shish
c68df68195 test files for various extensions
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1070 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-11 07:09:42 +00:00
shish
96a37605e4 port page_matches from score to trunk
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1028 7f39781d-f577-437e-ae19-be835c7a54ca
2008-09-06 17:48:03 +00:00
shish
f8f7470e61 much friendlier get_theme_object
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1019 7f39781d-f577-437e-ae19-be835c7a54ca
2008-09-06 16:59:02 +00:00
shish
434fab2dc5 and make the extensions match
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1003 7f39781d-f577-437e-ae19-be835c7a54ca
2008-08-23 12:08:19 +00:00
shish
09b2be6830 PHP4 is dead \o/ \o/ \o/ (Part 1, make use of instanceof)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@994 7f39781d-f577-437e-ae19-be835c7a54ca
2008-08-22 09:41:30 +00:00
shish
4940e3cd6f some changes from r34
git-svn-id: file:///home/shish/svn/shimmie2/trunk@979 7f39781d-f577-437e-ae19-be835c7a54ca
2008-08-12 00:04:10 +00:00
shish
abc2fe278a ordered alias list
git-svn-id: file:///home/shish/svn/shimmie2/trunk@737 7f39781d-f577-437e-ae19-be835c7a54ca
2008-03-31 02:39:08 +00:00
shish
04fe9ad03a import aliases from file
git-svn-id: file:///home/shish/svn/shimmie2/trunk@720 7f39781d-f577-437e-ae19-be835c7a54ca
2008-02-16 03:58:05 +00:00
shish
98a0154db2 alias csv export fixed
git-svn-id: file:///home/shish/svn/shimmie2/trunk@530 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-18 02:35:01 +00:00
shish
88336cc323 less global user, more event->user
git-svn-id: file:///home/shish/svn/shimmie2/trunk@478 7f39781d-f577-437e-ae19-be835c7a54ca
2007-08-24 22:29:34 +00:00
shish
0b7c038f52 much theme docs, and some display_my_foo_error replaced with generic display_error
git-svn-id: file:///home/shish/svn/shimmie2/trunk@395 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-28 20:30:01 +00:00
shish
0c5f7244db consistency
git-svn-id: file:///home/shish/svn/shimmie2/trunk@312 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-17 07:45:35 +00:00
shish
f459de3176 after adding / removing aliases, redirect to alias/list rather than admin
git-svn-id: file:///home/shish/svn/shimmie2/trunk@251 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-10 05:39:45 +00:00
shish
b6809c3b0a tags(image_id,tag) split into image_tags(image_id,tag_id) and tags(id,tag,count)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@227 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-05 21:30:37 +00:00
shish
a625fcd787 the bulk of theme engine 2.0; it's still rough, but it works
git-svn-id: file:///home/shish/svn/shimmie2/trunk@201 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-30 01:19:11 +00:00
shish
9bab5f0c29 nicety
git-svn-id: file:///home/shish/svn/shimmie2/trunk@160 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-04 04:48:36 +00:00
shish
b87c304ed9 more alias list things
git-svn-id: file:///home/shish/svn/shimmie2/trunk@159 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-04 03:31:52 +00:00
shish
b5b5e56f01 csv export for aliases
git-svn-id: file:///home/shish/svn/shimmie2/trunk@154 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-04 02:43:58 +00:00
shish
979b0f936a alias list / edit moved to its own page
git-svn-id: file:///home/shish/svn/shimmie2/trunk@153 7f39781d-f577-437e-ae19-be835c7a54ca
2007-06-04 02:35:28 +00:00
shish
6c26fa0fc1 use wrapped database execute function
git-svn-id: file:///home/shish/svn/shimmie2/trunk@129 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-23 22:19:12 +00:00
shish
19d3062314 extensions moved to folders
git-svn-id: file:///home/shish/svn/shimmie2/trunk@75 7f39781d-f577-437e-ae19-be835c7a54ca
2007-05-07 15:04:46 +00:00