summaryrefslogtreecommitdiffstats
path: root/application/controllers
AgeCommit message (Collapse)AuthorFilesLines
2015-03-08Unify file/cron and mfile->valid_idFlorian Pritz1-24/+19
Create a testable function doing all the verification/removal, add tests and use it for both cases. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08test: Fail on exceptionsFlorian Pritz1-0/+1
If we don't output a test plan prove will consider the test failed. The destructor would run when an uncaught exception is thrown so don't use a destructor to output the testplan. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-02Add imagemagick supportFlorian Pritz1-17/+33
Adds additional support for imagemagick if GD doesn't support a file type and extends the files displayed as thumbnails to all images and pdf files. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-23upload_form: Support multiple textareas/files at the same timeFlorian Pritz1-28/+83
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-22s\files: rename add_file to add_uploaded_fileFlorian Pritz2-2/+2
It doesn't add any file so it should have that name. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-19Add claiming of multipastesFlorian Pritz1-5/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-15c/f/do_upload: simpilfy multipaste creationFlorian Pritz1-12/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Use assoc array for service/user/apikeysFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Fix typo in error messageFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Unify exceptions for unknown/invalid endpointsFlorian Pritz1-4/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-10api: Require the version to start with vFlorian Pritz1-0/+7
Makes the URL easier to understand (especially the v1 case). Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-08run-tests.sh: Clean up old database before running testsFlorian Pritz1-0/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05Add simple testsuiteFlorian Pritz1-0/+37
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03lib/Image->get: check if ob_get_clean workedFlorian Pritz1-5/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Use exceptions instead of show_errorFlorian Pritz3-17/+19
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: implement file/create_multipasteFlorian Pritz2-46/+13
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: implement file/deleteFlorian Pritz2-49/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Remove unstable json apiFlorian Pritz2-29/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Improve general exception handlingFlorian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: handle json reply in api controllerFlorian Pritz3-9/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03implement api/user/create_apikeyFlorian Pritz1-2/+12
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Rework error handling in upload validatorFlorian Pritz2-17/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-02Rework api error handlingFlorian Pritz2-31/+35
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add some TODOsFlorian Pritz2-1/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16fix multipaste in service/historyFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add initial user apiFlorian Pritz2-39/+27
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add max_files_per_request to api/file/get_configFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16improve api errorsFlorian Pritz2-6/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16Fix error in file/upload_historyFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16Improve history api for multipastesFlorian Pritz1-0/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add missing filesFlorian Pritz2-0/+88
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16miscFlorian Pritz3-92/+22
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16first go at reworking; needs to be redesignedFlorian Pritz4-76/+152
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-03Ignore special dir in clean_stale_filesFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-02Add tarball support to multipastesFlorian Pritz1-0/+76
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-29Simplify creation of initial userFlorian Pritz1-0/+67
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-29Make email sender configurableFlorian Pritz1-8/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-19Clean up the postgres changesFlorian Pritz2-8/+7
Style cleanup and some regression fixes Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-10Merge remote-tracking branch 'rafi/master' into rafiFlorian Pritz2-110/+117
2014-10-03Support EXIF orientation in colorboxFlorian Pritz1-0/+2
This also reindents colorbox.css. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-03Rework image manipulation classFlorian Pritz1-3/+3
This is the first of hopefully more classes using namespaces and proper classes that can be used as objects rather than CI's singleton approach. The namespace is mainly used to gain nice autoloading capabilities and it's not really yet used for separation. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-03Move thumbnail code to dedicated classFlorian Pritz1-4/+6
This also moves the code from mfile->image_dimension() to the only place where it was called. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-09-28file/cron: Protecting identifiersRafael Bodill1-1/+2
2014-09-19where_in for in array queries a proper count usageRafael Bodill2-4/+4
2014-09-19Fix timestamp adjusting for a list of arraysRafael Bodill1-2/+6
2014-09-19Correct unsupported open/close where query statementsRafael Bodill1-3/+1
2014-09-19File controller uses query builder, except 2 queriesRafael Bodill1-32/+36
2014-09-18User controller queries built dynamicallyRafael Bodill1-74/+72
2014-09-18Query builder in user login and controllerRafael Bodill1-5/+7
2014-08-29Set title on code render pageFlorian Pritz1-0/+2
This got lost in the multipaste change. Signed-off-by: Florian Pritz <bluewind@xinu.at>