diff options
53 files changed, 1083 insertions, 89 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index d090cbf..ae01b75 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,7 +17,11 @@ module.exports = function (grunt) { 'pages/tools.swig', 'pages/other.swig', 'pages/nojs.swig', - 'pages/ca.swig' + 'pages/indexca.swig', + 'pages/faqca.swig', + 'pages/toolsca.swig', + 'pages/otherca.swig', + 'pages/nojsca.swig' ], siteUrl: 'https://pantsu.cat/', production: false, @@ -41,8 +45,8 @@ module.exports = function (grunt) { uglify: { options: { banner: '/*! <%= pkg.name %> (<%= pkg.repository.url %>) @ <%= grunt.template.today("yyyy-mm-dd") %> */\n' + - '// @source https://git.pantsu.cat/pantsu/pomf/src/master/js\n' + - '// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat\n', + '// @source https://git.pantsu.cat/pantsu/pomf/src/master/js\n' + + '// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat\n', footer: '\n// @license-end', screwIE8: true }, @@ -1,8 +1,7 @@ -The MIT License (MIT) - -Copyright (c) 2013, 2014, 2015 Eric Johansson -Copyright (c) 2013, 2014 Peter Lejeck -Copyright (c) 2015 the Pantsu.cat developers +Copyright (c) 2013, 2014, 2015 Eric Johansson <neku@pomf.se> +Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 cenci0 <alchimist94@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in @@ -37,8 +37,8 @@ however, client-side configuration for max size, the `data-max-size` attribute on the file input in `pages/upload_form.swig`. Make sure to disable PHP from being executed on the file download -domain/directory (e.g a.site.com), otherwise a attacker can upload a malicious -.php file and execute it on your server. +domain/directory (e.g., `a.pomf.example`), otherwise an attacker can upload a +malicious `.php` file and execute it on your server. ### Apache @@ -52,8 +52,8 @@ configuration file. ## License -Pomf is free software, and is released under the terms of the MIT (Expat) -license. See LICENSE. +Pomf is free software, and is released under the terms of the Expat license. See +`LICENSE`. ## Contact diff --git a/css/pomf.css b/css/pomf.css index 737091d..452544d 100644 --- a/css/pomf.css +++ b/css/pomf.css @@ -1,4 +1,26 @@ /** + * Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/** * USE BORDER BOX */ *, @@ -13,11 +35,11 @@ * PAGE LAYOUT */ body { - background-attachment: fixed, fixed; + background-attachment: fixed; background-color: #F7F7F7; - background-image: url('grill.php'), url('img/bg.png'); - background-position: 85% 100%, top left; - background-repeat: no-repeat, repeat; + background-image: url('img/bg.png'); + background-position: top left; + background-repeat: repeat; color: #333; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; diff --git a/img/10.png b/img/10.png Binary files differdeleted file mode 100644 index 226f062..0000000 --- a/img/10.png +++ /dev/null diff --git a/img/2.png b/img/2.png Binary files differdeleted file mode 100644 index acb0a0b..0000000 --- a/img/2.png +++ /dev/null diff --git a/img/3.png b/img/3.png Binary files differdeleted file mode 100644 index ca9eca5..0000000 --- a/img/3.png +++ /dev/null diff --git a/img/4.png b/img/4.png Binary files differdeleted file mode 100644 index 177db67..0000000 --- a/img/4.png +++ /dev/null diff --git a/img/5.png b/img/5.png Binary files differdeleted file mode 100644 index b8dc3fe..0000000 --- a/img/5.png +++ /dev/null diff --git a/img/6.png b/img/6.png Binary files differdeleted file mode 100644 index 080335a..0000000 --- a/img/6.png +++ /dev/null diff --git a/img/7.png b/img/7.png Binary files differdeleted file mode 100644 index 60f7586..0000000 --- a/img/7.png +++ /dev/null diff --git a/img/8.png b/img/8.png Binary files differdeleted file mode 100644 index cd2415e..0000000 --- a/img/8.png +++ /dev/null diff --git a/img/9.png b/img/9.png Binary files differdeleted file mode 100644 index 68b2018..0000000 --- a/img/9.png +++ /dev/null diff --git a/js/cabinet.js b/js/cabinet.js index cb8039b..f6f5f20 100644 --- a/js/cabinet.js +++ b/js/cabinet.js @@ -1,3 +1,25 @@ +/** + * Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + /* jshint browser:true, jquery:true */ (function($) { $.hasFileAPI = function hasFileAPI() { diff --git a/js/cheesesteak.js b/js/cheesesteak.js index 47aee93..821b9cd 100644 --- a/js/cheesesteak.js +++ b/js/cheesesteak.js @@ -1,3 +1,25 @@ +/** + * Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + /* jshint browser:true, jquery:true */ (function() { /* Lightweight EventEmitter implementation */ @@ -1,7 +1,30 @@ +/** + * Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + * Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + /* jshint browser:true, jquery:true */ $(function() { var uploadInput = $('#upload-input'), - uploadBtn = $('#upload-btn'), + uploadBtn = $('#upload-btn'), uploadFiles = $('#upload-filelist'); var btnContent = ''; @@ -54,7 +77,7 @@ $(function() { rowName = $('<span class=file-name>'), rowProg = $('<div class="file-progress progress-outer">'), rowSize = $('<span class=file-size>'), - rowUrl = $('<span class=file-url>'); + rowUrl = $('<span class=file-url>'); rowItem.addClass(extra || ''); @@ -81,11 +104,12 @@ $(function() { var totalRow = createRow('', files.humanSize, 'total'); totalRow.appendTo(uploadFiles); + var totalName = $('.file-name', totalRow); + if (files.size > MAX_SIZE) { uploadFiles.addClass('error'); - $('.file-name', totalRow).html('onii-chan y-your upload is t-too ' + - 'big…'); + totalName.html('onii-chan y-your upload is t-too big…'); return; } @@ -95,14 +119,12 @@ $(function() { var hits = {}; files.forEach(function(file) { ++hits[file.name] || (hits[file.name] = 0); - var row = $($('li[data-filename="' + escape(file.name) + '"]') + - [hits[file.name] || 0]); + var row = $($('li[data-filename="' + + escape(file.name) + '"]')[hits[file.name] || 0]); fn.call(row, row, file, files); }); }; - var totalName = $('.file-name', totalRow); - up.on('uploadprogress', function(e, files) { eachRow(files, function(row, file, files) { $('.progress-inner', row).width((file.percentUploaded * 100) + '%'); @@ -121,8 +143,7 @@ $(function() { var res = JSON.parse(res); if (!res.success) { uploadFiles.addClass('error'); - $('.file-name', totalRow).text('Something went wrong; try again ' + - 'later.'); + totalName.text('Something went wrong; try again later.'); break; } eachRow(res.files, function(row, file, files) { diff --git a/package.json b/package.json index eb89515..442c1f2 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,16 @@ "author": "Eliot Whalan <ewhal@pantsu.cat>", "contributors": [ { - "name": "Eric Johansson", - "email": "neku@pomf.se" + "name": "Eric Johansson", + "email": "neku@pomf.se" }, { - "name": "Peter Lejeck", - "emai": "peter.lejeck@gmail.com" + "name": "Peter Lejeck", + "email": "peter.lejeck@gmail.com" + }, + { + "name": "cenci0", + "email": "alchimist94@gmail.com" } ], "license": "MIT", @@ -26,7 +30,7 @@ "grunt": "^0.4.1", "grunt-contrib-copy": "^0.8.1", "grunt-contrib-cssmin": "^0.14.0", - "grunt-contrib-htmlmin": "^0.4.0", + "grunt-contrib-htmlmin": "^0.5.0", "grunt-contrib-imagemin": "^0.9.4", "grunt-contrib-jshint": "^0.11.3", "grunt-contrib-uglify": "^0.9.2", diff --git a/pages/banners.swig b/pages/banners.swig index 59b72e8..e8f0cbd 100644 --- a/pages/banners.swig +++ b/pages/banners.swig @@ -1,3 +1,24 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + {% for banner in banners %} {% include banner %} {% endfor %} diff --git a/pages/banners/donate.swig b/pages/banners/donate.swig index 6adbf9a..f4706c9 100644 --- a/pages/banners/donate.swig +++ b/pages/banners/donate.swig @@ -1,5 +1,26 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + <p class="alert alert-info"> - <strong>pomf.se is a free service, but our hosting bill isn't</strong> — we need almost $100 a month for that. Donations help keep pomf.se free, online, and fast. Everything (after fees) goes to the hosting bill. + <strong>pomf.se is a free service, but our hosting bill isn't</strong> — we need almost $100 a month for that. Donations help keep pomf.se free, online, and fast. Everything (after fees) goes to the hosting bill. <span class="donate-btns"> <a class="donate-btn donate-paypal" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BHUVEZY96YZ6N" target="_BLANK"> <span class="icon icon-paypal"></span> diff --git a/pages/banners/virusscans.swig b/pages/banners/virusscans.swig index 1de0f92..4a3d5a8 100644 --- a/pages/banners/virusscans.swig +++ b/pages/banners/virusscans.swig @@ -1,3 +1,24 @@ -<p class="alert alert-error"> +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +<p class="alert alert-info"> <strong>Virus scans are now a daily routine</strong> — if a file gets detected it will be removed without further notice. </p> diff --git a/pages/bannersca.json b/pages/bannersca.json new file mode 100644 index 0000000..105c5c0 --- /dev/null +++ b/pages/bannersca.json @@ -0,0 +1,3 @@ +[ + "bannersca/virusscans.swig" +] diff --git a/pages/bannersca.swig b/pages/bannersca.swig new file mode 100644 index 0000000..a6e9361 --- /dev/null +++ b/pages/bannersca.swig @@ -0,0 +1,25 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +{% for banner in bannersca %} + {% include banner %} +{% endfor %} diff --git a/pages/bannersca/donate.swig b/pages/bannersca/donate.swig new file mode 100644 index 0000000..d246b35 --- /dev/null +++ b/pages/bannersca/donate.swig @@ -0,0 +1,39 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +<p class="alert alert-info"> + <strong>pomf.se es un servici gratuït, però la nostra factura d'allotjament no ho és</strong> — necessitem al menys 100$ per mes. Les donacions ajuden a pomf.se a seguir sent gratuït, en línia i ràpid. Tot (quotes includes) està destinat a pagar l'allotjament. + <span class="donate-btns"> + <a class="donate-btn donate-paypal" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BHUVEZY96YZ6N" target="_BLANK"> + <span class="icon icon-paypal"></span> + PayPal + </a> + <a class="donate-btn donate-bitcoin" href="bitcoin:1CrbCGSTFM5ccmjFoU4jRSQod44Ttu8nHY?label=pomf.se&message=Hosting%20Bills" target="_BLANK"> + <span class="icon icon-bitcoin"></span> + Bitcoin + </a> + <a class="donate-btn donate-flattr" href="https://flattr.com/submit/auto?user_id=neku&url=http://pomf.se" target="_BLANK"> + <span class="icon icon-flattr"></span> + Flattr + </a> + </span> +</p> diff --git a/pages/bannersca/virusscans.swig b/pages/bannersca/virusscans.swig new file mode 100644 index 0000000..23244f9 --- /dev/null +++ b/pages/bannersca/virusscans.swig @@ -0,0 +1,25 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +<p class="alert alert-info"> + <strong>Fem ànalisis de virus diariament</strong> — si es detecta un arxiu infectat, serà borrat sense previ avís. +</p> diff --git a/pages/ca.swig b/pages/ca.swig deleted file mode 100644 index 252ff7c..0000000 --- a/pages/ca.swig +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "layoutca.swig" %} - -{% block body %} -<div class="jumbotron"> - <header> - <h1>Ropa Interior~</h1> - </header> - <p class="lead">Màxima grandària de pujada {{max_upload_size}}MiB, read the <a href="faq.html">FAQ</a></p> - {% include "check_scriptca.swig" %} - {% include "check_fileapica.swig" %} - {% include "upload_formca.swig" %} -</div> -{% include "banners.swig" %} -{% include "nav.swig" %} -<script src="pomf.min.js"></script> -{% endblock %} diff --git a/pages/check_fileapi.swig b/pages/check_fileapi.swig index a4efb07..2ba1d86 100644 --- a/pages/check_fileapi.swig +++ b/pages/check_fileapi.swig @@ -1,3 +1,24 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + <p id="no-file-api" class="alert alert-error"> <strong>Your browser is shit.</strong> Install the latest <a href="http://firefox.com/">Firefox</a> or <a href="http://chrome.google.com/">Botnet</a> and come back <3 </p> diff --git a/pages/check_fileapica.swig b/pages/check_fileapica.swig index aba061d..aa8943e 100644 --- a/pages/check_fileapica.swig +++ b/pages/check_fileapica.swig @@ -1,3 +1,25 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + <p id="no-file-api" class="alert alert-error"> - <strong>El seu navegador és una merda.</strong> Instal l'última <a href="http://firefox.com/">Firefox</a> o <a href="http://chrome.google.com/">Botnet</a> i tornar <3 + <strong>El teu navegador és una merda.</strong> Instal·la el <a href="http://firefox.com/">Firefox</a> més recent o <a href="http://chrome.google.com/">Botnet</a> i torna <3 </p> diff --git a/pages/check_script.swig b/pages/check_script.swig index 6ebaea8..2da9f79 100644 --- a/pages/check_script.swig +++ b/pages/check_script.swig @@ -1,3 +1,24 @@ +{# +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + <noscript> <p class="alert alert-error"><a href="https://no.pantsu.cat">Javascript free version</a></p> </noscript> diff --git a/pages/check_scriptca.swig b/pages/check_scriptca.swig index 3c8b01a..ac4737c 100644 --- a/pages/check_scriptca.swig +++ b/pages/check_scriptca.swig @@ -1,3 +1,25 @@ +{# +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + <noscript> - <p class="alert alert-error"><a href="https://no.pantsu.cat">Javascript versió gratuïta</a></p> + <p class="alert alert-error"><a href="https://no.pantsu.cat">Versió sense Javascript</a></p> </noscript> diff --git a/pages/faq.swig b/pages/faq.swig index d04dc16..2bd11de 100644 --- a/pages/faq.swig +++ b/pages/faq.swig @@ -1,3 +1,26 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2014 Eric Johansson <neku@pomf.se> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + {% extends "layout.swig" %} {% block title %}FAQ{% endblock %} diff --git a/pages/faqca.swig b/pages/faqca.swig new file mode 100644 index 0000000..4debd8c --- /dev/null +++ b/pages/faqca.swig @@ -0,0 +1,46 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2014 Eric Johansson <neku@pomf.se> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +{% extends "layoutca.swig" %} + +{% block title %}FAQ{% endblock %} +{% block body %} +<div class="jumbotron"> + <h1>FAQ</h1> + {% include "navca.swig" %} +</div> +<ul> + <li>Pantsu no soporta Internet Explorer o versions velles de Firefox, Chrome, Opera o Safari.</li> + <li>Existeixen estris de pujada per a Pantsu en <a href="/toolsca.html">Estris</a>.</li> + <li>El pes màxim per fitxer és de {{max_upload_size}}MiB. Per favor, no abuseu el servici.</li> + <li>No es permiteix pornografia infantil o virus.</li> + <li>Qualsevol tipus de fitxer està permitit (gif,exe,jpg,rar,ass,srt,etc,etc).</li> + <li>No guardem ningun tipus de dades sobre els usuaris, cosa que no canviarà. No utilitzem Cloudflare</li> + <li>Contacteu l'administrador amb l'adreça <a href="mailto:contact@pantsu.cat">contact@pantsu.cat</a> (en anglés).</li> + <li>Envieu qualsevol petició DMCA a <a href="mailto:abuse@pantsu.cat">abuse@pantsu.cat</a></li> + <li>Si canviem la nostra política, t'informarem.</li> + <li>La pàgina intenta ser el més transparent possible. Qualsevol arxiu borrat serà llistat públicament amb la còpia de l'avís DMCA. Per a més informació, visiteu <a href="//transparency.pantsu.cat">informació de transparència</a> page.</li> +</ul> +{% include "bannersca.swig" %} +{% endblock %} diff --git a/pages/index.swig b/pages/index.swig index 8dfa75b..ff7db42 100644 --- a/pages/index.swig +++ b/pages/index.swig @@ -1,11 +1,30 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + {% extends "layout.swig" %} {% block body %} <div class="jumbotron"> - <header> - <h1>Pantsu~</h1> - <p lang="ca">Ropa Interior~</p> - </header> + <h1>Pantsu~</h1> <p class="lead">Max upload size is {{max_upload_size}}MiB, read the <a href="faq.html">FAQ</a></p> {% include "check_script.swig" %} {% include "check_fileapi.swig" %} diff --git a/pages/indexca.swig b/pages/indexca.swig new file mode 100644 index 0000000..d7b468c --- /dev/null +++ b/pages/indexca.swig @@ -0,0 +1,37 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +{% extends "layoutca.swig" %} + +{% block body %} +<div class="jumbotron"> + <h1>Pantsu~</h1> + <p class="lead">Màxima grandària de pujada {{max_upload_size}}MiB, llig la <a href="faqca.html">FAQ</a></p> + {% include "check_scriptca.swig" %} + {% include "check_fileapica.swig" %} + {% include "upload_formca.swig" %} +</div> +{% include "bannersca.swig" %} +{% include "navca.swig" %} +<script src="pomf.min.js"></script> +{% endblock %} diff --git a/pages/layout.swig b/pages/layout.swig index cad6365..3eb9eff 100644 --- a/pages/layout.swig +++ b/pages/layout.swig @@ -1,3 +1,25 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + <!DOCTYPE html> <html lang="en"> <head> diff --git a/pages/layoutca.swig b/pages/layoutca.swig index 536676f..264cedd 100644 --- a/pages/layoutca.swig +++ b/pages/layoutca.swig @@ -1,15 +1,38 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + <!DOCTYPE html> <html lang="ca"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>Ropa Interior.cat · {% block title %}Allotjament d'arxius valent{% endblock %}</title> + <title>Pantsu.cat · {% block title %}Allotjament d'Arxius Kawaii{% endblock %}</title> <link rel="icon" href="favicon.ico"> <link rel="stylesheet" href="pomf.min.css"> </head> <body> <div class="container"> - {% block body %}What the fuck are you doing here, baka?{% endblock %} + {% block body %}Què cony fas ací, baka?{% endblock %} </div> </body> </html> diff --git a/pages/nav.swig b/pages/nav.swig index 96ed6cd..90aec20 100644 --- a/pages/nav.swig +++ b/pages/nav.swig @@ -1,11 +1,32 @@ +{# +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + <nav> <ul> - <li><a href="//pantsu.cat/">Pantsu</a></li> + <li><a href="/">Pantsu</a></li> <li><a href="//p.pantsu.cat/">Paste</a></li> <li><a href="tools.html">Tools</a></li> <li><a href="//git.pantsu.cat/pantsu/pomf">Git</a></li> <li><a href="other.html">Other</a></li> <li><a href="//transparency.pantsu.cat">Transparency</a></li> - <li><a href="ca.html">Catalan</a></li> + <li lang="ca"><a href="indexca.html">Català</a></li> </ul> </nav> diff --git a/pages/navca.swig b/pages/navca.swig new file mode 100644 index 0000000..748b421 --- /dev/null +++ b/pages/navca.swig @@ -0,0 +1,33 @@ +{# +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +<nav> + <ul> + <li><a href="indexca.html">Pantsu</a></li> + <li><a href="//p.pantsu.cat/">Text</a></li> + <li><a href="toolsca.html">Estris</a></li> + <li><a href="//git.pantsu.cat/pantsu/pomf">Git</a></li> + <li><a href="otherca.html">Altres</a></li> + <li><a href="//transparency.pantsu.cat">Transparència</a></li> + <li lang="en"><a href="/">English</a></li> + </ul> +</nav> diff --git a/pages/nojs.swig b/pages/nojs.swig index 5b13a11..24d702b 100644 --- a/pages/nojs.swig +++ b/pages/nojs.swig @@ -1,11 +1,30 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + {% extends "layout.swig" %} {% block body %} <div class="jumbotron"> - <header> - <h1>Pantsu~</h1> - <p lang="ca">Ropa Interior~</p> - </header> + <h1>Pantsu~</h1> <p class="lead">Max upload size is {{max_upload_size}}MiB, read the <a href="faq.html">FAQ</a></p> {% include "check_fileapi.swig" %} {% include "upload_form_nojs.swig" %} diff --git a/pages/nojsca.swig b/pages/nojsca.swig new file mode 100644 index 0000000..76378ff --- /dev/null +++ b/pages/nojsca.swig @@ -0,0 +1,35 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +{% extends "layoutca.swig" %} + +{% block body %} +<div class="jumbotron"> + <h1>Pantsu~</h1> + <p class="lead">Màxima grandària de pujada: {{max_upload_size}}MiB, llig la <a href="faqca.html">FAQ</a></p> + {% include "check_fileapica.swig" %} + {% include "upload_form_nojs.swig" %} +</div> +{% include "bannersca.swig" %} +{% include "navca.swig" %} +{% endblock %} diff --git a/pages/other.swig b/pages/other.swig index 5835fe5..a664aa5 100644 --- a/pages/other.swig +++ b/pages/other.swig @@ -1,3 +1,25 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + {% extends "layout.swig" %} {% block title %}Other Services{% endblock %} diff --git a/pages/otherca.swig b/pages/otherca.swig new file mode 100644 index 0000000..9f963eb --- /dev/null +++ b/pages/otherca.swig @@ -0,0 +1,38 @@ +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +{% extends "layoutca.swig" %} + +{% block title %}Altres Servicis{% endblock %} +{% block body %} +<div class="jumbotron"> + <h1>Altres Servicis</h1> +</div> +<ul> + <li><a href="//git.pantsu.cat">Git</a></li> + <li><a href="firefox/">/g/uia de Firefox</a></li> + <li><a href="http://mg7aqol36qpx7oij.onion/">Servici Ocult</a> + <li><a href="//no.pantsu.cat">Versió sense JS</a> +</ul> +{% include "nav.swig" %} +{% endblock %} diff --git a/pages/tools.swig b/pages/tools.swig index 5260310..1a23427 100644 --- a/pages/tools.swig +++ b/pages/tools.swig @@ -1,3 +1,26 @@ +{# +Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2013, 2014 Eric Johansson <neku@pomf.se> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + {% extends "layout.swig" %} {% block title %}Tools{% endblock %} diff --git a/pages/toolsca.swig b/pages/toolsca.swig new file mode 100644 index 0000000..e037073 --- /dev/null +++ b/pages/toolsca.swig @@ -0,0 +1,79 @@ +{# +Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2013, 2014 Eric Johansson <neku@pomf.se> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +{% extends "layoutca.swig" %} + +{% block title %}Estris{% endblock %} +{% block body %} +<div class="jumbotron"> +<h1>Pomf Tools</h1> +{% include "nav.swig" %} +</div> +<section> + <h2>pomfload</h2> + <dl> + <dt>Descàrrega</dt> + <dd><a href="https://git.pantsu.cat/pantsu/pomfload">https://git.pantsu.cat/pantsu/pomfload</a></dd> + <dt>Contacte</dt> + <dd><a href="https://twitter.com/AnonymousLink">https://twitter.com/AnonymousLink</a></dd> + </dl> +</section> +<section> + <h2>limf</h2> + <dl> + <dt>Descàrrega</dt> + <dd><a href="https://github.com/lich/limf">https://github.com/lich/limf</a></dd> + <dt>Contacte</dt> + <dd><a href="http://lich.github.io/">http://lich.github.io/</a></dd> + </dl> +</section> +<section> + <h2>1339secure</h2> + <dl> + <dt>Descàrrega</dt> + <dd><a href="https://git.pantsu.cat/pantsucat/pomfsecure">https://git.pantsu.cat/pantsucat/pomfsecure</a></dd> + <dt>Contacte</dt> + <dd><a href="mailto:adriankoshcha@teknik.io">adriankoshcha@teknik.io</a></dd> + </dl> +</section> +<section> + <h2>Sharex</h2> + <dl> + <dt>Descàrrega</dt> + <dd><a href="https://code.google.com/p/sharex/">https://code.google.com/p/sharex/</a></dd> + <dt>Configuració</dt> + <dd><a href="https://p.pantsu.cat/view/raw/fcaeab90">https://p.pantsu.cat/view/raw/fcaeab90</a></dd> + </dl> +</section> +<section> + <h2>Client Gyazo (com el de Puush)</h2> + <dl> + <dt>Descàrrega</dt> + <dd><a href="https://github.com/pantsu/gyazowin">https://github.com/pantsu/gyazowin</a></dd> + <dd><a href="https://i.pantsu.cat/hnpgjr.exe">https://i.pantsu.cat/hnpgjr.exe</a></dd> + <dt>Contacte</dt> + <dd><a href="https://twitter.com/4vailable">https://twitter.com/4vailable</a></dd> + </dl> +</section> +{% endblock %} diff --git a/pages/upload_form.swig b/pages/upload_form.swig index d193512..7266f2b 100644 --- a/pages/upload_form.swig +++ b/pages/upload_form.swig @@ -1,3 +1,24 @@ -<a href="javascript:;" id="upload-btn" class="btn">Select <span>or drop </span> file(s)</a> +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +<button id="upload-btn" class="btn" type="button">Select or drop file(s)</button> <input type="file" id="upload-input" name="files[]" multiple data-max-size="{{max_upload_size}}MiB"> <ul id="upload-filelist"></ul> diff --git a/pages/upload_form_nojs.swig b/pages/upload_form_nojs.swig index 73b331b..378a1d5 100644 --- a/pages/upload_form_nojs.swig +++ b/pages/upload_form_nojs.swig @@ -1,6 +1,28 @@ -<form enctype="multipart/form-data" method="post" action="upload.php?output=html"> - <input type="file" name="files[]" multiple data-max-size="{{max_upload_size}}MiB"> - <br> - <input type="submit" value="Submit"> +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +<form enctype="multipart/form-data" method="post" action="upload.php"> + <input type="hidden" name="output" value="html"> + <input type="file" name="files[]" multiple data-max-size="{{max_upload_size}}MiB"> + <input type="submit" value="Submit"> </form> <ul id="upload-filelist"></ul> diff --git a/pages/upload_formca.swig b/pages/upload_formca.swig index a98a40b..2ba2210 100644 --- a/pages/upload_formca.swig +++ b/pages/upload_formca.swig @@ -1,3 +1,26 @@ -<a href="javascript:;" id="upload-btn" class="btn">Seleccionar <span>o deixar anar </span> expedient(s)</a> +{# +Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> +Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> +Copyright (c) 2015 Cupkle <cupkle@openmailbox.org> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#} + +<button id="upload-btn" class="btn" type="button">Selecciona o arrastra fitxers(s) ací</button> <input type="file" id="upload-input" name="files[]" multiple data-max-size="{{max_upload_size}}MiB"> <ul id="upload-filelist"></ul> diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php index 037d94f..3afcfdb 100755 --- a/static/classes/Response.class.php +++ b/static/classes/Response.class.php @@ -1,5 +1,28 @@ <?php +/** + * Copyright (c) 2015 cenci0 <alchimist94@gmail.com> + * Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + class Response { private $type; @@ -107,7 +130,7 @@ class Response return POMF_URL.$files[0]['url']; } - private static function txt_error($code, $description) + private static function text_error($code, $description) { return 'ERROR: ('.$code.') '.$description; } @@ -123,7 +146,7 @@ class Response private static function html_error($code, $description) { - return 'ERROR: ('.$code.') '.$description; + return '<p>ERROR: ('.$code.') '.$description.'</p>'; } private static function html_success($files) diff --git a/static/classes/UploadException.class.php b/static/classes/UploadException.class.php index 66be853..dbe47eb 100755 --- a/static/classes/UploadException.class.php +++ b/static/classes/UploadException.class.php @@ -1,5 +1,76 @@ <?php +/** + * -------------------------------------------------------------------- + * The PHP License, version 3.01 + * Copyright (c) 1999 - 2014 The PHP Group. All rights reserved. + * -------------------------------------------------------------------- + * + * Redistribution and use in source and binary forms, with or without + * modification, is permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The name "PHP" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact group@php.net. + * + * 4. Products derived from this software may not be called "PHP", nor + * may "PHP" appear in their name, without prior written permission + * from group@php.net. You may indicate that your software works in + * conjunction with PHP by saying "Foo for PHP" instead of calling + * it "PHP Foo" or "phpfoo" + * + * 5. The PHP Group may publish revised and/or new versions of the + * license from time to time. Each version will be given a + * distinguishing version number. + * Once covered code has been published under a particular version + * of the license, you may always continue to use it under the terms + * of that version. You may also choose to use such covered code + * under the terms of any subsequent version of the license + * published by the PHP Group. No one other than the PHP Group has + * the right to modify the terms applicable to covered code created + * under this License. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes PHP software, freely available from + * <http://www.php.net/software/>". + * + * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND + * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP + * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * -------------------------------------------------------------------- + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the PHP Group. + * + * The PHP Group can be contacted via Email at group@php.net. + * + * For more information on the PHP Group and the PHP project, + * please see <http://www.php.net>. + * + * PHP includes the Zend Engine, freely available at + * <http://www.zend.com>. + */ + // Exception class extension from: http://php.net/manual/en/features.file-upload.errors.php#89374 // Handles files error returning a proper error description diff --git a/static/classes/UploadedFile.class.php b/static/classes/UploadedFile.class.php index 5e8ae1c..ac39646 100644 --- a/static/classes/UploadedFile.class.php +++ b/static/classes/UploadedFile.class.php @@ -1,5 +1,27 @@ <?php +/** + * Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + class UploadedFile { /* Public attributes */ @@ -11,7 +33,6 @@ class UploadedFile /* Cached checksums */ private $sha1; - private $crc32; /** * Generates the SHA1 or returns the cached SHA1 hash for the file. diff --git a/static/grill.php b/static/grill.php deleted file mode 100644 index 5984b12..0000000 --- a/static/grill.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -$images = array( - 'img/2.png', - 'img/3.png', - 'img/4.png', - 'img/5.png', - 'img/6.png', - 'img/7.png', - 'img/8.png', - 'img/9.png', - 'img/10.png', -); - -if (headers_sent() === false) { - header('Location: '.$images[array_rand($images)], true, 303); -} diff --git a/static/includes/database.inc.php b/static/includes/database.inc.php index 5049487..0374afa 100644 --- a/static/includes/database.inc.php +++ b/static/includes/database.inc.php @@ -1,5 +1,27 @@ <?php +/** + * Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + include_once 'settings.inc.php'; /* NOTE: we don't have to unref the PDO because we're not long-running */ diff --git a/static/includes/settings.inc.php b/static/includes/settings.inc.php index 37bc4a0..6072249 100644 --- a/static/includes/settings.inc.php +++ b/static/includes/settings.inc.php @@ -1,5 +1,29 @@ <?php +/** + * Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> + * Copyright (c) 2015 cenci0 <alchimist94@gmail.com> + * Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + // PDO socket // mysql.sock path can be different from /tmp/mysql.sock, see /etc/my.cnf define('POMF_DB_CONN', 'mysql:unix_socket=/tmp/mysql.sock;dbname=pomf'); diff --git a/static/upload.php b/static/upload.php index d14fee7..9703ede 100644 --- a/static/upload.php +++ b/static/upload.php @@ -1,5 +1,30 @@ <?php +/** + * Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> + * Copyright (c) 2013, 2014, 2015 Eric Johansson <neku@pomf.se> + * Copyright (c) 2015 cenci0 <alchimist94@gmail.com> + * Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + // Check if we can compress our output; if we can, we'll do it if (ini_get('zlib.output_compression') !== 'Off' && isset($_SERVER['HTTP_ACCEPT_ENCODING']) |
