summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-02-28upload_form: Resize textarea using responsive css rather than jsFlorian Pritz3-16/+17
This no longer resizes the textarea after the user change the size themself. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-25Use better word breaking.Florian Pritz1-1/+1
This breaks at spaces, dots, ... if possible, but falls back to breaking anywhere if needed. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-25pygmentize: Disable newline strippingFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-25automatically wrap linesFlorian Pritz5-50/+94
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-23INSTALL: Clarify hash_password URLFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-23CLI: update_file_metadata: also update mimetypesFlorian Pritz2-9/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-23install.php: Add test for pygmentizeFlorian Pritz1-0/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-23Rearrange upload formFlorian Pritz2-14/+29
This allows the textarea to be wider without vanishing behind the file upload form. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-14Move cli client login code to muser constructorFlorian Pritz2-21/+21
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-14Improve show_error() for cli clientsFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-13Change license to AGPLFlorian Pritz7-86/+73
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-08c/file/claim_id(): Call _show_url() with an arrayFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-08Add a viewport meta tag to control the layout on mobile browsersMarkus Cisler1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-08Add some mimetypes and sort the listFlorian Pritz1-32/+41
fileinfo uses some different mimetypes than File::MimeInfo. This tries to add most of those that are currently on paste.xinu.at. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-04Add files to add localized html header and cssFlorian Pritz1-0/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-04Handle text/x-diff MIME typeFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-03Use php's fileinfo instead of perl to detect mimetypeFlorian Pritz4-41/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-03Abort execution if we hit any php error/warning/noticeFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-03Suppress open_basedir warning for /dev/urandomFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-02Add tex highlightingFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-31Duser: small comment fixesFlorian Pritz1-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-30Remove userid from session upon logoutFlorian Pritz1-0/+1
No necessary, but better safe than sorry. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-30Make authentication driver configureableFlorian Pritz2-2/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-30Modularize authentication systemFlorian Pritz4-37/+164
This allows to easily add LDAP and other support. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-25Refactor querying action tableFlorian Pritz2-21/+18
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-24Use the alert-error class for some error message in views/userFlorian Pritz3-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-24m/user/username_exists: fix bug on empty/false argumentFlorian Pritz1-0/+4
username_exists(false) returned true because the condition matches any existing user. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-24Add password reset function/pages/linksFlorian Pritz7-0/+171
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-24Repurpose invitations table to actionsFlorian Pritz4-14/+54
This can be used to track data for all kinds of one-time actions like invitations and password resets. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-23Reverse sort order on upload_historyFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-17Support multiple uploads in the same requestFlorian Pritz7-83/+155
This change *should* be backwards compatible. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-17Reduce font size on error pageFlorian Pritz1-0/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-17Fix js TypeError on pages != upload_formFlorian Pritz1-1/+1
The jquery code won't produce an error message if there is no element machting the search. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-09Fix some indentation issuesFlorian Pritz4-8/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-09Fix copyright informationFlorian Pritz4-2/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-12-16c/user: register() prevent DB error if username is non-asciiFlorian Pritz1-4/+4
The DB col is set to ascii_general_ci so if the username doesn't pass the charset check we shouldn't even bother query the db because that can trigger a collation error (utf-8 vs ascii). Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-12-06Extend INSTALL fileFlorian Pritz1-1/+22
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-11-09file/client: Add information about fb's config fileFlorian Pritz1-5/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-11-09Rework file/client pageFlorian Pritz2-13/+38
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-31Fix "invite" link on upload_formFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-29Add button to wrap long lines in code viewFlorian Pritz2-0/+13
Since wrapping would break the line numbers we hide them. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-27remove unused iconFlorian Pritz2-73/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-27Set font in textarea on upload_form to monospacedFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-26fix handling of special chars in lexer namesFlorian Pritz1-1/+5
xml+php would break twice because + isn't an allowed char and because urldecode() converts it to a space. We fix this by providing a proper urlencoded string. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-26fix missing htmlspecialchars in html_header.phpFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-25Increase width of paste containerFlorian Pritz2-2/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-23Prevent date wrapping on history pageFlorian Pritz2-1/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-23Use better monospace fontsFlorian Pritz1-0/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-22Don't send a cli client unwanted HTML codeFlorian Pritz4-3/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-22retab css; remove unused css classFlorian Pritz1-76/+72
Signed-off-by: Florian Pritz <bluewind@xinu.at>