summaryrefslogtreecommitdiffstats
path: root/application/libraries
AgeCommit message (Collapse)AuthorFilesLines
2016-03-29Use PHP's password_hash functionFlorian Pritz1-1/+1
This drops a third party library, but bumps our required php version to 5.5 which is currently old stable. Earlier versions are no longer supported by php upstream nor by us. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-11-23l/Pygments: Fix exception for filenames ending with a dotFlorian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-11-02l/Image/D/imagemagick: Allow output on stderrFlorian Pritz1-1/+1
Imagemagick sometimes output warnings about files that do not conform to standards, but still renders them. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-09-20l/Image::type_supported: improve performanceFlorian Pritz1-3/+10
service/file::history calls this for every entry which is rather slow. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-07-18Fix double path in exception handlerFlorian Pritz1-1/+1
APPPATH is an absolute path already so prepending FCPATH will make an invalid path. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-06-05Allow users to change their emailFlorian Pritz2-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-06-04Refactor exception handling into dedicated classFlorian Pritz1-0/+154
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-28imagemagick: Use nested exceptionFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-28Improve running of external commandsFlorian Pritz3-16/+140
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-28Execute scripts directlyFlorian Pritz1-1/+1
No need to specify the interpreter twice. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21Support multiple files with the same hashFlorian Pritz1-0/+31
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-02Get supported image types from driversFlorian Pritz1-0/+19
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-02l\Image: Refactor best_driver/readFlorian Pritz1-12/+13
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-02l\I\D\imagemagick: Only process images and pdfsFlorian Pritz1-1/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-27\l\Image->best_driver: Always ignore < 0 priorityFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-11Fix missing lexers in get_lexersFlorian Pritz1-2/+2
Broken by a11e06d4906c2e1186779b42d5e87a17f66c50ea which changed names back to a normal array. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-09Fix mime2lexer failing when using pygments infoFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Pygments: Add .lhs extensionFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Improve performance of pygments->mime2lexerFlorian Pritz1-5/+3
Normal arrays are rather slow when accessed sequentially. Use associative arrays and key lookups to reduce the render time of a multipaste with 180 items from 225ms to ~190ms. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Pygments::get_pygments_info: cache in memoryFlorian Pritz1-1/+1
It's used multiple times if we are rendering a multipaste so it makes sense not to run to the backend cache each time (if there even is one). This reduced the render time for a multipaste with 180 items from >500ms to ~225ms when using the file cache backend. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-02Fix automatic highlight of svg filesFlorian Pritz1-7/+7
They should not be highlit.. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-01Get supported mimetypes from pygments itselfFlorian Pritz1-0/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-01Refactor \libraries\Pygments::get_lexersFlorian Pritz1-4/+13
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-01Refactor lexer code into dedicated classFlorian Pritz1-0/+206
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08Add mockeryFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08autoloader: support multiple search pathsFlorian Pritz1-5/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-02Add imagemagick supportFlorian Pritz4-169/+489
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-03lib/Image->get: check if ob_get_clean workedFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Use exceptions instead of show_errorFlorian Pritz6-7/+7
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>
2014-12-06libraries\Image::get_exif: Fix undefined index errorFlorian Pritz1-1/+1
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-10-10Merge remote-tracking branch 'rafi/master' into rafiFlorian Pritz1-15/+12
2014-10-03Rework image manipulation classFlorian Pritz3-169/+293
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-0/+169
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-18Query builder in user login and controllerRafael Bodill1-15/+12
2014-08-29add multipaste supportFlorian Pritz1-0/+80
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-23Remove unneeded return statements after show_errorFlorian Pritz2-2/+0
show_error() already exits after displaying the message. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-23Implement rangeDownload() as driver and provide sendfile implementations for ↵Pierre Schmitz4-0/+202
Nginx and Lighttpd * The rangeDownload() function has been moved to libraries/Ddownload/drivers/Ddownload_php.php * The nginx and lighttpd drivers can be set via $config['download_driver'] Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2013-09-22duser_db: Remove case sensitive username checkFlorian Pritz1-5/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-22duser_fluxbb: Replace like with equalsFlorian Pritz1-2/+2
We don't use wildcards so we don't need like. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-22Add FluxBB authentication driverPierre Schmitz2-1/+54
To enable set: $config['authentication_driver'] = 'fluxbb'; $config['auth_fluxbb'] = array('database' => 'fluxbb'); Signed-off-by: Pierre Schmitz <pierre@archlinux.de> Add example array to config.php Remove $optional_functions from Duser_fluxbb to follow bb9f9274e8c2d661a1adffd87c87c3d81ec47b4d. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-16Remove executable bitsFlorian Pritz1-0/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-16Duser: Rework optional functionsFlorian Pritz2-11/+4
Not implemented functions return null and code using these no longer has to check if they are implemented, but it has to handle null properly. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-16Duser: Add some commentsFlorian Pritz2-0/+14
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-16Duser_Driver/username_exists: return null if not implementedFlorian Pritz1-1/+1
false means we know it doesn't exist, null means we don't know. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-15Add default get_email to Duser_DriverFlorian Pritz1-2/+4
This fixes a possible endless loop when the function is not implemented in the driver, but the array says it is. It also allows us to simply call it without checking if it's implemented. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-04Only store session information for stateful clientsFlorian Pritz1-0/+38
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-04Set login session data in one goFlorian Pritz1-4/+6
This reduces the amount of db queries and cookies we create since each update triggers an db update and (which is a bug) sets a new cookie. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-15Switch to CI's caching classFlorian Pritz1-202/+0
This supports more caching backends and doesn't force users to install the memcache extension. Signed-off-by: Florian Pritz <bluewind@xinu.at>