summaryrefslogtreecommitdiff
path: root/static
AgeCommit message (Collapse)Author
2018-05-02Login.class.php: Set secure cookies.Mandragorat Wandystanu
2018-04-01Get login data from a new system.Mandragorat Wandystanu
2017-11-30Embed glyphicons-512-copy.png into app.js.Mandragorat Wandystanu
2017-11-18pomf.css: Fix margin widths of copy button and progress bar.Mandragorat Wandystanu
2017-11-18glyphicons-512-copy.png: Optimise file size.Mandragorat Wandystanu
2017-11-18Change favicon to the Wandystan's one.Mandragorat Wandystanu
2017-11-18show.php: Display 404 page if file not found; also a slight cleanup of the code.Mandragorat Wandystanu
2017-11-18index.php: Add missing licence header.Mandragorat Wandystanu
2017-11-18show.php: Change licence to the upstream one.Mandragorat Wandystanu
2017-11-18New site layout.Mandragorat Wandystanu
2017-11-17Allow users to upload files only when they're logged in to SSW.Mandragorat Wandystanu
2017-11-17Remove grill.php and associated files: your waifu is trash and you should ↵Mandragorat Wandystanu
feel bad.
2017-11-17Add show.php: Display file securely on some (shitty) servers.Mandragorat Wandystanu
2017-11-16static/js/app.js: Display error description returned by upload.php even if ↵Mandragorat Wandystanu
it returns status code other than 200 OK.
2017-11-16database.inc.php: Source settings from settings_local.inc.php if it exists ↵Mandragorat Wandystanu
(modelled after GNU MediaGoblin).
2017-11-14upload.php: Clean up code. Detect MIME type of an uploaded file and store it ↵Mandragorat Wandystanu
in a database.
2017-01-21Delete redundent readmeAustin
2017-01-04Update licensesAustin Gillmann
2017-01-04Merge php submodule into pomf, delete expiry.Austin Gillmann
2016-07-05Fix small typos and add documentation for app.jsr3c0d3x
2016-07-04Cleared selection first upon copy button click to fix #45ileyd
2016-07-03have JS POST to upload.php in current working directoryAustin
2016-07-02Replace tabs with spaces as per airbnb css specEliot Whalan
2016-07-01Replace tabs with spaces as per airbnb specEliot Whalan
2016-06-29Switch copy button styling code to CSS fileAustin
2016-06-28Changed glyph to png formatileyd
2016-06-28Added copy iconileyd
2016-06-28Implemented clipboard supportileyd
2016-06-24Begin formatting fixup of js codeEliot Whalan
2016-06-19Move php directory to php/ to avoid confusionEliot Whalan
2016-06-18Remove zlib compression as it is already handled by nginxEliot Whalan
2016-06-17Removed redundant $uploadDir variable; put constant directly in $uploadFileakpu1
2016-06-17Move favicon to imgEliot Whalan
2016-06-17Create php fileEliot Whalan
2016-06-17Move img to static folderEliot Whalan
2016-06-17Move css to static folderEliot Whalan
2016-06-17Move js to static folderEliot Whalan
2016-06-17Rename all functions to camelCase as set by psr2Eliot Whalan
2016-06-16Revert most ofddccf5f1c26517bf58cd45e3d92096fc760d9db6Eliot Whalan
2016-06-14Revert "Remove now-dead code for kawaii grill images"Eliot Whalan
This reverts commit 79fbcfb4a236650b2ee48569729947878e997466.
2016-06-14Revert "upload.php: Deprecate all named functions"Eliot Whalan
This reverts commit cae3cb012812c2d7e1995301e85c8954567a499d.
2016-05-30Revert "Merge branch 'wub/deprecate-ewhal'"Eliot Whalan
This reverts commit 647d32a29978579f88baa7c06c207e6a8d6a0d3e, reversing changes made to 22063af06536671b680fa9bc84b4626192c106cc.
2016-05-29upload.php: Deprecate all named functionsJuuso Lapinlampi
Deprecates diverse_array(), generate_name(), refiles() and upload_file(). These pollute the global namespace and do not follow the PSR-2 naming convention. The plan is to create a new file with a new class to share this common code, leaving upload.php only with the last lines of code that it really needs to do (calling other class functions). Acked-by: Eliot Whalan <ewhal@pantsu.cat>
2016-05-29Merge branch 'wub/deprecate-ewhal'Juuso Lapinlampi
Deprecate (nearly) all things authored by Eliot Whalan. Misfeatures and customizations specifically used only by Pantsu.cat, and design choices where complexity and code duplication do not matter to achieve features easily are his efforts. Cue code maintenance hell. This merge includes: - pages: Bring back autistic neckbeard rant - pages: Deprecate JavaScript-free upload - pages: Deprecate other services - Response: Deprecate HTML and text responses Eliot disagrees with this merge and threatens to branch off development. No commits by ewhal@ since 2016 to today, only code reviews. Anything that extends Pomf core functionality should be a repository or a branch of its own, an extension. If later removed, HTML and text responses may be reintroduced as extensions (pomf-response-html, pomf-response-text repositories) or as different PHP files/classes once the code is stable enough to support those features in a sensible and maintainable way. The JavaScript-free uploader is a mess of duplicated Swig templates. The "other services" page is mainly only useful for Pantsu.cat. I love autistic neckbeards. Then there's this quote: ewhal4 | I've made pantsu.cat as autism friendly as possible and now you are removing it :( Preliminary, I welcome to follow ~wub/pomf.git if development branches off from here.
2016-05-29upload.php: Don't unlink() tempfiles in upload_file()Juuso Lapinlampi
We don't need to care about garbage collection and explicitly unlinking temporary files: PHP will handle that for us automatically. In other words, this is "dead" code. Less code the better. Updates the comment before it to reflect this. Tested on PHP 5.6.22 and PHP 7.0.7 on Debian stretch/sid GNU/Linux. Tested-by: Juuso Lapinlampi <wub@partyvan.eu> See: https://secure.php.net/manual/en/function.tmpfile.php
2016-05-29Response: Deprecate HTML and text responsesJuuso Lapinlampi
HTML and text responses were introduced by Eliot to Pomf 2.0 primarily for the JavaScript-free uploader (which is also deprecated). I can't imagine any sane tool preferring to have either of these flawed responses over JSON or CSV. They increase code complexity and duplication. Let them fall off. ewhal fell off. Cc: Eliot Whalan <ewhal@pantsu.cat>
2016-05-29Merge branch 'maint'Juuso Lapinlampi
Sync with Pomf 2.0.x maint branch. - Response: Return 500 Internal Server Error on error()
2016-05-29Response: Clarify what http_response_code(200); isJuuso Lapinlampi
Add a comment explaining how HTTP status code 200 means success. Cherry-picked from master 4606553f38909b483bc06674f9558ede1a9ff1f6.
2016-05-29Response: Return 500 Internal Server Error on error()Juuso Lapinlampi
Fix a bug where Response class `error()` function may blow up and return an invalid HTTP status code `42` if `PDO::ATTR_ERRMODE` is set to `PDO::ERRMODE_EXCEPTION` during PDO initialization or query. By default, it is implicitly set to `PDO::ERRMODE_SILENT`. This bug can occur when a MySQL server is running, but encounters an error post-login (e.g. table doesn't exist).
2016-05-25upload.php: Deprecate ob_start (output buffering)Juuso Lapinlampi
None of us can find a reason why we would need to buffer our output in a PHP application. My best guess is this may be a relic from Pomf 1.0.0 or Moe panel. Unless someone finds a better reason to keep this, this feature is useless and has negligible benefit and will be removed. In respect for SemVer, deprecating this feature happens first in a minor version before removal in a next major version. Acked-by: Eliot Whalan <ewhal@pantsu.cat>