summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-02-05Make Test-More useable for our usecaseFlorian Pritz2-5/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05Add Test-MoreFlorian Pritz35-0/+1250
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Support database table prefixesFlorian Pritz14-120/+212
This also cleans up some inconsistencies with quotes. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03lib/Image->get: check if ob_get_clean workedFlorian Pritz2-6/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Use exceptions instead of show_errorFlorian Pritz18-35/+66
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03use function instead of variableFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03generalize authentication handlingFlorian Pritz6-13/+50
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: implement file/create_multipasteFlorian Pritz5-47/+90
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: implement file/deleteFlorian Pritz3-49/+68
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Remove unstable json apiFlorian Pritz4-67/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Improve general exception handlingFlorian Pritz2-4/+13
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 Pritz2-3/+19
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Rework error handling in upload validatorFlorian Pritz8-22/+49
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-02Rework api error handlingFlorian Pritz5-33/+77
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add some TODOsFlorian Pritz3-1/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16fix multipaste in service/historyFlorian Pritz2-2/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16refactor service/file/historyFlorian Pritz1-24/+28
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add initial user apiFlorian Pritz3-39/+102
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 Pritz3-8/+9
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 Pritz2-11/+37
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 Pritz4-93/+27
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16first go at reworking; needs to be redesignedFlorian Pritz7-76/+285
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16Don't leak error heading to HTML outputFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-03Lazyload thumbnailsFlorian Pritz4-1/+251
Apparently there are users with >500 images and they view their thumbnail history on mobile phones. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-03Ignore exif_read_data warnings/errorsFlorian Pritz1-1/+1
This can throw warnings while also returning orientation info (amongst others). The rest of the code can handle missing values just fine so whatever. I give up. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-03Improve stacktrace generation (circular reference errors)Florian Pritz1-9/+39
var_export can't handle circular references which can happen in codeigniter's objects and if those get passed as arguments it will throw another fatal error and the actual trace will get lost. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-12-06Improve backtracesFlorian Pritz1-2/+13
PHP's default functions truncate longer argument values so backtrace will not be as helpful as they could be. This code tries to mimic PHP's way of printing traces except it prints full arguments. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-12-06libraries\Image::get_exif: Fix undefined index errorFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-12-06add opensuse client repoFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-08Fix handling of images with XMP instead of EXIF dataFlorian Pritz1-13/+19
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-08mfile->delete_id: Forgive if a dir doesn't existFlorian Pritz1-2/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-08install.php: Check for exif.soFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-03mfile->delete_id: Check for file before trying to unlinkFlorian Pritz1-1/+3
file->cron unlinks the file and then deletes the hash which causes an error in mfile->delete_id because the file no longer exists. 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-03Simplify mfile->delete_hashFlorian Pritz1-31/+3
This probably increases the database queries a bit, but greatly simplifies the code and fixes the missing deletion of multipaste tarballs (delete_id handles that). Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-03Properly delete multipastes when deleting a single pasteFlorian Pritz1-4/+4
mmultipaste->delete_id() also deletes multipaste tarballs which would otherwise be left over Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-03Fix deletion of multipaste tarball when deleting a multipasteFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-02Add tarball support to multipastesFlorian Pritz8-2/+262
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-29Simplify creation of initial userFlorian Pritz2-7/+68
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-29Make email sender configurableFlorian Pritz3-8/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-27install.php: Check for PHP modulesFlorian Pritz1-0/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-19Update NEWSFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-19Merge postgresql supportFlorian Pritz19-366/+599
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-19Clean up the postgres changesFlorian Pritz6-23/+21
Style cleanup and some regression fixes Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-15add file/do_multipaste to CSRF exception listFlorian Pritz1-0/+1
This is only needed for clients not yet using api keys. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-10-10Merge remote-tracking branch 'rafi/master' into rafiFlorian Pritz19-366/+601