diff options
| author | WubTheCaptain <wub@partyvan.eu> | 2015-09-18 05:32:38 +0200 |
|---|---|---|
| committer | pantsucat <contact@pantsu.cat> | 2015-09-19 08:19:21 +0200 |
| commit | 25a28ccda67bc39ab1a7b8eaa38fee09e17c154f (patch) | |
| tree | 8ce96117f2eaadc1b9dafd94208b6cd22a16970f /moe | |
| parent | 064faa9a4cdd7841c91cf3e86c73dded4f491b46 (diff) | |
Fix whitespace and restore PSR-2 style
Diffstat (limited to 'moe')
| -rw-r--r-- | moe/includes/api.php | 1 | ||||
| -rw-r--r-- | moe/index.php | 1 | ||||
| -rw-r--r-- | moe/login/index.html | 60 | ||||
| -rw-r--r-- | moe/panel/index.php | 77 |
4 files changed, 69 insertions, 70 deletions
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/login/index.html b/moe/login/index.html index 895b831..73fc81d 100644 --- a/moe/login/index.html +++ b/moe/login/index.html @@ -1,48 +1,48 @@ <html lang="en-US"> - <head> - <link rel="stylesheet" type="text/css" href="../css/ass.css" media="screen" /> - <meta charset="utf-8"> + <head> + <link rel="stylesheet" type="text/css" href="../css/ass.css" media="screen" /> + <meta charset="utf-8"> - <title>Moe Login</title> + <title>Moe Login</title> - <!--[if lt IE 9]> - <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> - <![endif]--> + <!--[if lt IE 9]> + <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> - </head> + </head> - <body> + <body> - <div id="login-form"> + <div id="login-form"> - <h3>Login</h3> + <h3>Login</h3> - <fieldset> + <fieldset> - <form action="../includes/api.php?do=login" method="post"> + <form action="../includes/api.php?do=login" method="post"> - <input type="Email" name="email" required value="Email" onBlur="if(this.value=='')this.value='Email'" onFocus="if(this.value=='Email')this.value='' "> <!-- JS because of IE support; better: placeholder="Email" --> - <input type="password" name="pass" required value="pass" onBlur="if(this.value=='')this.value='pass'" onFocus="if(this.value=='pass')this.value='' "> <!-- JS because of IE support; better: placeholder="Password" --> + <input type="Email" name="email" required value="Email" onBlur="if(this.value=='')this.value='Email'" onFocus="if(this.value=='Email')this.value='' "> <!-- JS because of IE support; better: placeholder="Email" --> + <input type="password" name="pass" required value="pass" onBlur="if(this.value=='')this.value='pass'" onFocus="if(this.value=='pass')this.value='' "> <!-- JS because of IE support; better: placeholder="Password" --> - <input type="submit" value="Login"> + <input type="submit" value="Login"> - <footer class="clearfix"> + <footer class="clearfix"> - <p><span class="info">?</span><a href="#">Forgot Password</a></p> - <p><span class="info">?</span><a href="../register">Register</a></p> + <p><span class="info">?</span><a href="#">Forgot Password</a></p> + <p><span class="info">?</span><a href="../register">Register</a></p> - </footer> + </footer> - </form> + </form> - </fieldset> + </fieldset> - </div> <!-- end login-form --> - <div id="fail"> - <h3>Wrong email or password</h3> - <fieldset> - <p>You have entered the wrong email or password, or something else went wrong.</p> - </fieldset> - </div> - </body> + </div> <!-- end login-form --> + <div id="fail"> + <h3>Wrong email or password</h3> + <fieldset> + <p>You have entered the wrong email or password, or something else went wrong.</p> + </fieldset> + </div> + </body> </html> diff --git a/moe/panel/index.php b/moe/panel/index.php index 1c0cc6b..17e241a 100644 --- a/moe/panel/index.php +++ b/moe/panel/index.php @@ -18,47 +18,44 @@ <!--[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 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> |
