summaryrefslogtreecommitdiffstats
path: root/application
AgeCommit message (Collapse)AuthorFilesLines
2015-09-20API 2.1: Add thumbnail link to historyFlorian Pritz4-4/+26
Also adjust test cases to check for the new value. API v1 does not change. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-09-14API 2.0: Remove private fields from file/historyFlorian Pritz6-1/+620
Since this is a breaking change bump the api version to 2. The private fields are user_id and multipaste_id which where leaked via the multipaste_items field. This commit also adds a test case to both api versions that checks the returned fields. NOTE: Most of this commit is copied from the files of api v1 so when viewing the diff use --find-copies-harder for an easy to read diff. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-09-14API 1.4: Add more values to file/get_configFlorian Pritz3-2/+15
These are necessary for clients that want to send lots of fields e.g. in a delete request or upload multiple files in one upload request. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-09-01[ci skip] Correct session database setup docsAndrey Andreev1-0/+3
2015-08-18claim_id: Support multiple upload batchesFlorian Pritz1-5/+13
If the user has multiple tabs open, but is not logged in this will be called multiple times (unless he logs in after the first upload batch) and earlier uploads would be lost. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-08-18Fix redirect URI when using multiple tabsFlorian Pritz4-21/+14
If we store only the last called URI in the session we can't support multiple browser tabs that all need to log in again. Fix this by storing the URI in the URL. Also change a trim() to ltrim() so that the URI string we store keeps it's trailing slash. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-08-13Update config/constants.php with defined() checksAndrey Andreev1-34/+34
Allows for easier override with an environment-based configs. Close #4045
2015-08-10Increase thumbnail cache ttlFlorian Pritz2-1/+3
Also try to clean up when files are deleted since 1 month is a rather long time. Granted, thumbnails are small, but whatever Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-08-09Improve performance of thumbnail historyFlorian Pritz2-13/+17
- Use the filedata we already have in c/file->upload_history_thumbnails() rather than fetching it per id in m/mfile->valid_id - Construct the config array for s/f::valid_id only once and not for every validation. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-08-09Increase performance of thumbnail viewFlorian Pritz1-1/+17
site_url is rather slow and the improvement is noticeable when there are lots of thumbnails (thumbnail history). Also make the code more readable in the process by inserting some linebreaks. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-08-04Add audio and video players to multipastesFlorian Pritz3-1/+24
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-08-02Add PLS playlist support for multipastesFlorian Pritz2-0/+32
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-07-25Merge pull request #3988 from kenjis/fix-views-errors-cliAndrey Andreev2-11/+11
[ci skip] Improve readability in CLI error templates
2015-07-25Fix alignmentkenjis2-6/+6
Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>
2015-07-22Fix #3991Andrey Andreev1-0/+2
2015-07-21Fix coding stylekenjis2-10/+10
Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>
2015-07-20[ci skip] Apply changes from PR #3983 to error_exception.phpAndrey Andreev2-20/+14
2015-07-20Fix indentationkenjis1-4/+4
Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>
2015-07-18Display hash on file info pageFlorian Pritz1-0/+4
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-07-18Fix errors/cli/error_php.php outputkenjis1-13/+11
Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>
2015-07-16Add 'ssl_verify' option for mysqli driverAndrey Andreev1-0/+1
MYSQLI_OPT_SSL_VERIFY_SERVER_CERT is an undocumented option that may not always be available. Reference: http://svn.php.net/viewvc/php/php-src/trunk/ext/mysqli/tests/mysqli_constants.phpt?view=markup&pathrev=302897
2015-07-16Add SSL support for PDO_MYSQL tooAndrey Andreev1-1/+1
Related: #3896
2015-07-16[ci skip] Add note about colon-separated ssl_cipher listAndrey Andreev1-1/+1
2015-07-16Refactor proposed changes from PR #3896Andrey Andreev1-1/+10
2015-07-16Merge branch 'feature/mysqli-ssl' of github.com:ndigitals/CodeIgniter into ↵Andrey Andreev1-0/+2
feature/mysqli_ssl
2015-07-15[ci skip] Add changelog entries for PR #3828Andrey Andreev1-2/+9
2015-07-13[ci skip] Update 'ico' entry in config/mimes.phpAndrey Andreev1-1/+1
2015-07-10Make javascript baseUrl honor subdirsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-07-10[ci skip] Clarify comments about libraries/drivers autoloadingAndrey Andreev1-4/+6
Close #3964
2015-07-06[ci skip] Update config/migration.php commentsAndrey Andreev1-3/+3
Close #3951
2015-07-04Standardized new linesCalvin Tam7-21/+0
2015-07-04Fixed typosCalvin Tam1-2/+2
2015-06-26Fix ask jeeves user-agentrochefort1-1/+1
2015-06-22Added .ico mime typeÉderson1-1/+2
Just added ico to mime list
2015-06-18Fixed a cleanup miss in the default database config file to follow the ↵Tim Nolte1-6/+1
recent SSL feature changes. Signed-off-by: Tim Nolte <noltet@sekisui-spi.com>
2015-06-18Removed db_options configuration item for implementation later. Changed 5 ↵Tim Nolte1-6/+1
new MySQLi SSL configuration options to a single ssl_options config item that is an array that will be read to set the individual SSL options. Signed-off-by: Tim Nolte <noltet@sekisui-spi.com>
2015-06-08Merge branch 'develop' into feature/mysqli-sslTim Nolte5-5/+7
2015-06-08Added new MySQLi parameters/info to default database config file. Fixed ↵Tim Nolte1-0/+12
missing new MySQLi parameters from database configuration documentation examples. Signed-off-by: Tim Nolte <noltet@sekisui-spi.com>
2015-06-05Keep email reset keys after useFlorian Pritz1-2/+0
The user might click the wrong link or might change their mind and it is really not necessary to clean them up early. Let the cron job take care of that. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-06-05Allow users to change their emailFlorian Pritz4-3/+135
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-06-05Move public files to ./public_htmlFlorian Pritz4-6/+6
./data/local is not moved because it contains likely untracked files and moving it would throw an error when updating. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-06-04Refactor exception handling into dedicated classFlorian Pritz3-2/+156
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-06-01Allow stderr for pygmentsFlorian Pritz1-1/+0
This happens when an invalid lexer is used so until we use the exceptions this should not be forbidden since we won't fall back to plain text then. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-31test: Add more \libraries\Image testsFlorian Pritz1-0/+30
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-28JS: Use newest file time for cache buster0.9.2Florian Pritz1-2/+20
Really no need to reload the files with each page load. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-28imagemagick: Use nested exceptionFlorian Pritz2-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-28Improve running of external commandsFlorian Pritz4-27/+156
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-28Execute scripts directlyFlorian Pritz2-2/+2
No need to specify the interpreter twice. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-27[ci skip] Default 'db_debug' value to depend on ENVIRONMENT settingAndrey Andreev1-1/+1
Related: #3884