summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
AgeCommit message (Collapse)AuthorFilesLines
2012-04-09Disable paste boxFlorian Pritz1-2/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-02Fix "Unknown ID" typoFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-19move stale file removal to it's own functionFlorian Pritz1-5/+9
This shouldn't be needed and it's also pretty slow. No need to run it with ever cronjob. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-19file/cron: make accessible via CLI onlyFlorian Pritz1-1/+6
In production environments the cronjob might run quite some time and could be used to overload the server. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-19file/cron: close dir handles after useFlorian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-02-19file/cron: clean up stale filesFlorian Pritz1-0/+33
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25strip base64 decoded file of special charsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-01-25allow client to overwrite filenameFlorian Pritz1-1/+12
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-18only calculate field lengths for cli clientsFlorian Pritz1-5/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-18remove parameter of client()Florian Pritz1-4/+4
Parameters of controller functions are treated as url parameter so file/client/0 would also disable the headers. The cli client has empty headers anyway so just check that. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-18display more information on delete_formFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-17use perl from PATH and copy markdown.pl to scripts/Florian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-12-17use migrations; automatically set up the databaseFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-11-18don't display "latest client" link if there is no clientFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-15remove leftover codeFlorian Pritz1-2/+0
do_paste has been remove in b8fb38927fd2cc25f6748cff51b7de94e3082701 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-13fix undefined variables in upload_form when using a cli clientFlorian Pritz1-4/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-11properly initialize $lengths arrayFlorian Pritz1-5/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-09-11add upload_history pageFlorian Pritz1-0/+48
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-19hide "Latest release" on client page if there is noneFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-19move inclusion of file_plaintext/client view to controllerFlorian Pritz1-2/+3
This allows me to remove redundant variable definition from upload_form() since the same code is in client(). Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-19make "contact me" on the main page optionalFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-08-19fix warning if data/client/latest doen't existFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-23delete: return correct error if ID doesn't existFlorian Pritz1-4/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-23fix copyright yearFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-12upload_error: print more precise error messageFlorian Pritz1-1/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-06remove do_paste()Florian Pritz1-42/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-06use javascript to allow text pastesFlorian Pritz1-0/+6
The javascript converts the content of the textarea to a HTTP POST request and sends the text as a file upload. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-04refactor cli client checkFlorian Pritz1-4/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2011-06-04simplify do_paste and return correct status codesFlorian Pritz1-7/+4
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-05-28display configured age limit on front pageFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-03-21remove file_mod->check_client_version()Florian Pritz1-3/+0
The interfaces shouldn't change anymore. Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-02-15add missing message to delete()Florian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-02-15fix missing urls in upload_formFlorian Pritz1-0/+2
Duplicating the link lines is no good fix so this needs to be cleaned up later. Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-02-15rework cli_client supportFlorian Pritz1-39/+32
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-02-02fix bug when using client to downloadFlorian Pritz1-4/+4
Do not check the client version when downloading because this breaks curl. Probably because we output and later set HTTP headers in file_mod->download(). Signed-off-by: Florian Pritz <bluewind@server-speed.net>
2011-01-28update to CI 2.0Florian Pritz1-0/+232
Signed-off-by: Florian Pritz <bluewind@server-speed.net>