diff options
| author | WubTheCaptain <wub@partyvan.eu> | 2015-09-18 05:32:38 +0200 |
|---|---|---|
| committer | pantsucat <contact@pantsu.cat> | 2015-09-18 06:28:40 +0200 |
| commit | f35494491e5b94752108059c6a7d68f4db95a9c6 (patch) | |
| tree | 265fb7b3e454b0af53c077a295458cc635b279de | |
| parent | 064faa9a4cdd7841c91cf3e86c73dded4f491b46 (diff) | |
Fix whitespace
| -rw-r--r-- | Gruntfile.js | 6 | ||||
| -rw-r--r-- | moe/includes/api.php | 1 | ||||
| -rw-r--r-- | moe/index.php | 1 | ||||
| -rw-r--r-- | moe/panel/index.php | 119 | ||||
| -rw-r--r-- | pages/ca.swig | 6 | ||||
| -rw-r--r-- | pages/check_fileapica.swig | 2 | ||||
| -rw-r--r-- | pages/check_scriptca.swig | 2 | ||||
| -rw-r--r-- | pages/faq.swig | 24 | ||||
| -rw-r--r-- | pages/index.swig | 8 | ||||
| -rw-r--r-- | pages/layout.swig | 24 | ||||
| -rw-r--r-- | pages/layoutca.swig | 24 | ||||
| -rw-r--r-- | pages/nav.swig | 16 | ||||
| -rw-r--r-- | pages/nojs.swig | 8 | ||||
| -rw-r--r-- | pages/other.swig | 7 | ||||
| -rwxr-xr-x | static/classes/Response.class.php | 8 |
15 files changed, 127 insertions, 129 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 70cbfbe..96fbab2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -18,9 +18,9 @@ module.exports = function (grunt) { 'index.swig', 'faq.swig', 'tools.swig', - 'other.swig', - 'nojs.swig', - 'ca.swig' + 'other.swig', + 'nojs.swig', + 'ca.swig' ], siteUrl: 'https://pantsu.cat/', production: false, diff --git a/moe/includes/api.php b/moe/includes/api.php index b85cbbf..634cd74 100644 --- a/moe/includes/api.php +++ b/moe/includes/api.php @@ -1,4 +1,5 @@ <?php + // This file will act as a APIish thing require_once 'core.php'; diff --git a/moe/index.php b/moe/index.php index 70e081b..8a44f41 100644 --- a/moe/index.php +++ b/moe/index.php @@ -1,4 +1,5 @@ <?php + session_start(); if (isset($_SESSION['id'])) { diff --git a/moe/panel/index.php b/moe/panel/index.php index 1c0cc6b..9a1dbdf 100644 --- a/moe/panel/index.php +++ b/moe/panel/index.php @@ -1,64 +1,61 @@ <!DOCTYPE HTML> <html> - <head> - <title>Moe Panel</title> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <meta name="description" content="" /> - <meta name="keywords" content="" /> - <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400" rel="stylesheet" /> - <script src="js/jquery.min.js"></script> - <script src="js/config.js"></script> - <script src="js/skel.min.js"></script> - <noscript> - <link rel="stylesheet" href="css/skel-noscript.css" /> - <link rel="stylesheet" href="css/style.css" /> - <link rel="stylesheet" href="css/style-desktop.css" /> - <link rel="stylesheet" href="css/noscript.css" /> - </noscript> - <!--[if lte IE 8]><script src="js/html5shiv.js"></script><link rel="stylesheet" href="css/ie8.css" /><![endif]--> - </head> - <body class="homepage"> - - <!-- Wrapper--> - <div id="wrapper"> - - <!-- Nav --> - <nav id="nav"> - <a href="#me" class="fa fa-home active"><span>Home</span></a> - <a href="ghetto-search.php" class="fa fa-folder"><span>Files</span></a> - <a href="http://twitter.com/nekunekus" target="_BLANK" class="fa fa-twitter"><span>Twitter</span></a> - </nav> - - <!-- Main --> - <div id="main"> - - <!-- Me --> - <article id="me" class="panel"> - <header> - <h1><?php session_start(); - if(!isset($_SESSION['id'])){ - header('Location: ../login/'); - } - echo 'Hi '.$_SESSION['email'];?></h1> - <span class="byline">Are you being cayoot today?</span> - </header> - <a href="#files" class="jumplink pic"> - <img src="images/cute.png" alt="" /> - </a> - </article> - </div> - <!-- Footer --> - <div id="footer"> - <ul class="links"> - <li><a href="http://pomf.se/">Pomf</a></li> - <li><a href="http://p.pomf.se/">Paste</a></li> - <li><a href="http://blog.pomf.se">Blog</a></li> - <li><a href="http://pomf.se/faq.html">FAQ</a></li> - <li><a href="../includes/api.php?do=logout">Logout</a></li> - </ul> - </div> - - </div> - - </body> + <head> + <title>Moe Panel</title> + <meta http-equiv="content-type" content="text/html; charset=utf-8" /> + <meta name="description" content="" /> + <meta name="keywords" content="" /> + <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400" rel="stylesheet" /> + <script src="js/jquery.min.js"></script> + <script src="js/config.js"></script> + <script src="js/skel.min.js"></script> + <noscript> + <link rel="stylesheet" href="css/skel-noscript.css" /> + <link rel="stylesheet" href="css/style.css" /> + <link rel="stylesheet" href="css/style-desktop.css" /> + <link rel="stylesheet" href="css/noscript.css" /> + </noscript> + <!--[if lte IE 8]><script src="js/html5shiv.js"></script><link rel="stylesheet" href="css/ie8.css" /><![endif]--> + </head> + <body class="homepage"> + <!-- Wrapper--> + <div id="wrapper"> + <!-- Nav --> + <nav id="nav"> + <a href="#me" class="fa fa-home active"><span>Home</span></a> + <a href="ghetto-search.php" class="fa fa-folder"><span>Files</span></a> + <a href="http://twitter.com/nekunekus" target="_BLANK" class="fa fa-twitter"><span>Twitter</span></a> + </nav> + <!-- Main --> + <div id="main"> + <!-- Me --> + <article id="me" class="panel"> + <header> + <h1> + <?php session_start(); + if (!isset($_SESSION['id'])) { + header('Location: ../login/'); + } + echo 'Hi '.$_SESSION['email']; + ?> + </h1> + <span class="byline">Are you being cayoot today?</span> + </header> + <a href="#files" class="jumplink pic"> + <img src="images/cute.png" alt="" /> + </a> + </article> + </div> + <!-- Footer --> + <div id="footer"> + <ul class="links"> + <li><a href="http://pomf.se/">Pomf</a></li> + <li><a href="http://p.pomf.se/">Paste</a></li> + <li><a href="http://blog.pomf.se">Blog</a></li> + <li><a href="http://pomf.se/faq.html">FAQ</a></li> + <li><a href="../includes/api.php?do=logout">Logout</a></li> + </ul> + </div> + </div> + </body> </html> diff --git a/pages/ca.swig b/pages/ca.swig index 68c7b97..a15a7d5 100644 --- a/pages/ca.swig +++ b/pages/ca.swig @@ -2,9 +2,9 @@ {% block body %} <div class="jumbotron"> - <header> - <h1 >Roba Interior~</h1> - </header> + <header> + <h1>Roba 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" %} diff --git a/pages/check_fileapica.swig b/pages/check_fileapica.swig index a3e8120..1797a9b 100644 --- a/pages/check_fileapica.swig +++ b/pages/check_fileapica.swig @@ -1,3 +1,3 @@ <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 / "> </a> Botnet i tornar <3 + <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 </p> diff --git a/pages/check_scriptca.swig b/pages/check_scriptca.swig index 0a5f0ea..3c8b01a 100644 --- a/pages/check_scriptca.swig +++ b/pages/check_scriptca.swig @@ -1,3 +1,3 @@ <noscript> - <p class="alert alert-error"><a href="https://no.pantsu.cat"> Javascript versió gratuïta</p> + <p class="alert alert-error"><a href="https://no.pantsu.cat">Javascript versió gratuïta</a></p> </noscript> diff --git a/pages/faq.swig b/pages/faq.swig index 320f4b4..dca3c80 100644 --- a/pages/faq.swig +++ b/pages/faq.swig @@ -3,20 +3,20 @@ {% block title %}FAQ{% endblock %} {% block body %} <div class="jumbotron"> -<h1>FAQ</h1> -{% include "nav.swig" %} + <h1>FAQ</h1> + {% include "nav.swig" %} </div> <ul> - <li>Pantsu does NOT support Internet Explorer and older versions of Firefox, Chrome, Opera and Safari.</li> - <li>Uploading tools for Pantsu can be found at Tools. (Currently working to update them all to work with pantsu.cat)</li> - <li>Max file size is {{max_upload_size}}MiB, hopefully I won't have to change this to a even lower number. (read: don't be an ass).</li> - <li>No Child porn, anything else goes until I get a lawsuit I guess. (unless its a virus, because that goes into the being an ass category).</li> - <li>All filetypes are allowed, ALL! (gif,exe,jpg,rar,ass,srt,etc,etc).</li> - <li>No data is collected or logged by us. This won't change. Cloudflare isn't in use</li> - <li>Please contact me at <a href="mailto:contact@pantsu.cat">contact@pantsu.cat</a> for any questions.</li> - <li>If you wish to send me any DMCA requests please contact me at <a href="mailto:abuse@pantsu.cat>abuse@pantsu.cat</a></li> - <li>If any changes to these policies happen you will be informed about them.</li> - <li>I will keep the site as transparent as possible. This will include any files that I remove will be publically listed and have a copy of the DMCA notice. For more information please visit the <a href="//transparency.pantsu.cat">transparency information</a> page.</li> + <li>Pantsu does NOT support Internet Explorer and older versions of Firefox, Chrome, Opera and Safari.</li> + <li>Uploading tools for Pantsu can be found at Tools. (Currently working to update them all to work with pantsu.cat)</li> + <li>Max file size is {{max_upload_size}}MiB, hopefully I won't have to change this to a even lower number. (read: don't be an ass).</li> + <li>No Child porn, anything else goes until I get a lawsuit I guess. (unless its a virus, because that goes into the being an ass category).</li> + <li>All filetypes are allowed, ALL! (gif,exe,jpg,rar,ass,srt,etc,etc).</li> + <li>No data is collected or logged by us. This won't change. Cloudflare isn't in use</li> + <li>Please contact me at <a href="mailto:contact@pantsu.cat">contact@pantsu.cat</a> for any questions.</li> + <li>If you wish to send me any DMCA requests please contact me at <a href="mailto:abuse@pantsu.cat>abuse@pantsu.cat</a></li> + <li>If any changes to these policies happen you will be informed about them.</li> + <li>I will keep the site as transparent as possible. This will include any files that I remove will be publically listed and have a copy of the DMCA notice. For more information please visit the <a href="//transparency.pantsu.cat">transparency information</a> page.</li> </ul> {% include "banners.swig" %} {% endblock %} diff --git a/pages/index.swig b/pages/index.swig index 8a1635e..3335661 100644 --- a/pages/index.swig +++ b/pages/index.swig @@ -2,10 +2,10 @@ {% block body %} <div class="jumbotron"> - <header> - <h1>Pantsu~</h1> - <p lang="ca">Ropa Interior~</p> - </header> + <header> + <h1>Pantsu~</h1> + <p lang="ca">Ropa Interior~</p> + </header> <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/layout.swig b/pages/layout.swig index 7daaf0b..d887a3e 100644 --- a/pages/layout.swig +++ b/pages/layout.swig @@ -1,15 +1,15 @@ <!DOCTYPE html> <html lang="en"> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>Pantsu.cat · {% block title %}Kawaii File Hosting{% 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 %} -</div> -</body> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Pantsu.cat · {% block title %}Kawaii File Hosting{% 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 %} + </div> + </body> </html> diff --git a/pages/layoutca.swig b/pages/layoutca.swig index 92f9824..54c54d6 100644 --- a/pages/layoutca.swig +++ b/pages/layoutca.swig @@ -1,15 +1,15 @@ <!DOCTYPE html> <html lang="ca"> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>Roba Interior.cat · {% block title %}Allotjament d'arxius valent{% 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 %} -</div> -</body> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Roba Interior.cat · {% block title %}Allotjament d'arxius valent{% 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 %} + </div> + </body> </html> diff --git a/pages/nav.swig b/pages/nav.swig index 5864c43..cd2f43d 100644 --- a/pages/nav.swig +++ b/pages/nav.swig @@ -1,11 +1,11 @@ <nav> - <ul><li> - <a href="//pantsu.cat/">Pantsu</a></li><li> - <a href="//p.pantsu.cat/">Paste</a></li><li> - <a href="tools.html">Tools</a></li><li> - <a href="//github.com/pantsucat/pomf">Github</a></li><li> - <a href="other.html">Other</a></li><li> - <a href="//transparency.pantsu.cat">Transparency</a></li> - <a href="ca.html">Catalan</a></li><li> + <ul> + <li><a href="//pantsu.cat/">Pantsu</a></li> + <li><a href="//p.pantsu.cat/">Paste</a></li> + <li><a href="tools.html">Tools</a></li> + <li><a href="//github.com/pantsucat/pomf">Github</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> </ul> </nav> diff --git a/pages/nojs.swig b/pages/nojs.swig index c526688..91d1105 100644 --- a/pages/nojs.swig +++ b/pages/nojs.swig @@ -2,10 +2,10 @@ {% block body %} <div class="jumbotron"> - <header> - <h1>Pantsu~</h1> - <p lang="ca">Ropa Interior~</p> - </header> + <header> + <h1>Pantsu~</h1> + <p lang="ca">Ropa Interior~</p> + </header> <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/other.swig b/pages/other.swig index 2efb119..4071fb5 100644 --- a/pages/other.swig +++ b/pages/other.swig @@ -3,12 +3,11 @@ {% block title %}FAQ{% endblock %} {% block body %} <div class="jumbotron"> -<h1>Other Services</h1> + <h1>Other Services</h1> </div> <ul> - <li><a href="//git.pantsu.cat">Git</a></li> - <li><a href="firefox/">Firefox /g/uide</a></li> + <li><a href="//git.pantsu.cat">Git</a></li> + <li><a href="firefox/">Firefox /g/uide</a></li> </ul> {% include "nav.swig" %} {% endblock %} - diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php index 951e39e..b7e4c5d 100755 --- a/static/classes/Response.class.php +++ b/static/classes/Response.class.php @@ -17,7 +17,7 @@ class Response $this->type = $response_type; break; - case 'html': + case 'html': header('Content-Type: text/html;charset=utf-8'); $this->type = 'html'; break; @@ -118,7 +118,7 @@ class Response $result .= $file['url']."\n"; } - return $result; + return $result; } private static function html_error($code, $description) @@ -129,10 +129,10 @@ class Response private static function html_success($files) { foreach ($files as $file) { - $result .= "<a href=\"".$file['url']."\">".$file['url']."</a><br>"; + $result .= '<a href="'.$file['url'].'">'.$file['url'].'</a><br>'; } - return $result; + return $result; } private static function json_error($code, $description) |
