Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //ANGEL DU WEEB DAD HEITEN MUSS AN DEN trinte.php AM SELWECHTEN FOLDER WEI DEI HEI DATEI
- ini_set('session.cookie_secure', true);
- ini_set('session.use_only_cookies', true);
- ini_set('session.cookie_path', rawurlencode(dirname($_SERVER['PHP_SELF'])));
- if (!isset($_SERVER['HTTPS'])) header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
- if (!isset($_SESSION)) session_start();
- if (!isset($_SESSION['generated']) || $_SESSION['generated'] < (time() - 30)) {
- session_regenerate_id();
- $_SESSION['generated'] = time();
- }
- //DAD HEITEN NET MEI!!
- //MA DEI "//" FORT
- //require_once ("trinte.php");
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>WuSeL Online Shop</title>
- <link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
- <style>
- html {
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- }
- body {
- overflow: hidden;
- background: white;
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- margin: 0;
- font-family: 'Roboto', sans-serif;
- }
- #People {
- width: 100%;
- height: auto;
- display: block;
- max-width: none;
- overflow: hidden;
- }
- label {
- display: inline-block;
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- }
- #header {
- background-color: rgba(0, 0, 0, .6);
- width: 42%;
- float: left;
- position: absolute;
- margin: 48px -100% 48px 2%;
- padding: 0 48px 40px;
- box-sizing: border-box;
- color: white;
- font-family: Univers, sans-serif;
- min-width: 530px;
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- }
- h1 {
- color: white;
- border-bottom: 1px solid rgba(255, 255, 255, .2);
- margin: 48px 0 24px;
- padding-bottom: 20px;
- font-family: 'Audiowide', cursive;
- }
- .form-field {
- border-radius: 4px;
- box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0, inset rgba(000, 000, 000, 0.7) 0 0 0;
- padding: 6px;
- width: 240px;
- margin-left: 50px;
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- }
- .submit-button {
- border: 1px solid #244152;
- background: #565b5c;
- background: -webkit-gradient(linear, left top, left bottom, from(#242729), to(#565b5c));
- background: -webkit-linear-gradient(top, #242729, #565b5c);
- background: -moz-linear-gradient(top, #242729, #565b5c);
- background: -ms-linear-gradient(top, #242729, #565b5c);
- background: -o-linear-gradient(top, #242729, #565b5c);
- background-image: -ms-linear-gradient(top, #242729 0%, #565b5c 100%);
- padding: 5px 11px;
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- border-radius: 0;
- -webkit-box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0, inset rgba(255, 255, 255, 0.4) 0 1px 0;
- -moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0, inset rgba(255, 255, 255, 0.4) 0 1px 0;
- box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0, inset rgba(255, 255, 255, 0.4) 0 1px 0;
- text-shadow: #383b3d 0 1px 0;
- color: #f5f5f5;
- font-size: 15px;
- font-family: helvetica, serif;
- text-decoration: none;
- vertical-align: middle;
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- }
- .submit-button:hover {
- border: 1px solid #bfbfbf;
- text-shadow: #d9d9d9 0 1px 0;
- background: #f5f5f5;
- background: -webkit-gradient(linear, left top, left bottom, from(#a1a1a1), to(#f5f5f5));
- background: -webkit-linear-gradient(top, #a1a1a1, #f5f5f5);
- background: -moz-linear-gradient(top, #a1a1a1, #f5f5f5);
- background: -ms-linear-gradient(top, #a1a1a1, #f5f5f5);
- background: -o-linear-gradient(top, #a1a1a1, #f5f5f5);
- background-image: -ms-linear-gradient(top, #a1a1a1 0%, #f5f5f5 100%);
- color: #000000;
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- }
- .submit-button:active {
- text-shadow: #6f7478 0 1px 0;
- border: 1px solid #5e0e61;
- background: #aa3db0;
- background: -webkit-gradient(linear, left top, left bottom, from(#da6bff), to(#f5f5f5));
- background: -webkit-linear-gradient(top, #da6bff, #aa3db0);
- background: -moz-linear-gradient(top, #da6bff, #aa3db0);
- background: -ms-linear-gradient(top, #da6bff, #aa3db0);
- background: -o-linear-gradient(top, #da6bff, #aa3db0);
- background-image: -ms-linear-gradient(top, #da6bff 0%, #aa3db0 100%);
- color: #fcf7fc;
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- }
- form {
- cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
- }
- #wslheader {
- background-color: black;
- height: 300px;
- color: white;
- width: 100%;
- position: fixed;
- margin: 0;
- padding: 0;
- display: inline;
- }
- #nav {
- height: 35px;
- line-height: 35px;
- background-color: #ffffff;
- color: #000000;
- width: 100%;
- margin: 0;
- padding: 0;
- }
- #shopstart {
- width: 100%;
- }
- ul {
- color: #000;
- font-size: 12px;
- margin: -36px 11px 10px 0;
- padding: 0;
- float: right;
- list-style: none;
- }
- .lii {
- border-right: 1px solid #000;
- float: left;
- list-style: none;
- padding: 0 19px;
- }
- li {
- float: left;
- list-style: none;
- padding: 0 5px;
- }
- #logo {
- margin: 0 auto;
- display: block;
- }
- #menu-bar {
- width: 100%;
- min-width: 650px;
- margin: auto;
- margin-top: 200px;
- padding: 12px 6px 4px 6px;
- height: 40px;
- line-height: 100%;
- box-shadow: 2px 2px 3px #aaaaaa;
- background: #ffffff;
- background: -moz-linear-gradient(top, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%);
- background: -webkit-linear-gradient(top, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%);
- background: linear-gradient(to bottom, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%);
- border: solid 1px #6D6D6D;
- }
- #menu-bar li {
- margin: 0 0 6px 0;
- padding: 0 6px 0 6px;
- float: left;
- position: relative;
- list-style: none;
- }
- #menu-bar a {
- font-weight: bold;
- font-style: normal;
- font-size: 18px;
- color: black;
- text-decoration: none;
- display: block;
- padding: 6px 20px 6px 20px;
- margin: 0 0 6px 0;
- border-radius: 10px;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
- text-shadow: 2px 2px 3px #000000;
- }
- #menu-bar li ul li a {
- margin: 0;
- }
- #menu-bar .active a, #menu-bar li:hover > a {
- background: #0399D4;
- background: linear-gradient(top, #EBEBEB, #A1A1A1);
- background: -ms-linear-gradient(top, #EBEBEB, #A1A1A1);
- background: -webkit-gradient(linear, left top, left bottom, from(#EBEBEB), to(#A1A1A1));
- background: -moz-linear-gradient(top, #EBEBEB, #A1A1A1);
- color: #444444;
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
- -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
- box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
- text-shadow: 2px 2px 3px #FFFFFF;
- }
- #menu-bar ul li:hover a, #menu-bar li:hover li a {
- background: none;
- border: none;
- color: #666;
- }
- #menu-bar ul a:hover {
- background: #0399D4 !important;
- background: linear-gradient(top, #04ACEC, #0186BA) !important;
- background: -ms-linear-gradient(top, #04ACEC, #0186BA) !important;
- background: -webkit-gradient(linear, left top, left bottom, from(#04ACEC), to(#0186BA)) !important;
- background: -moz-linear-gradient(top, #04ACEC, #0186BA) !important;
- color: #FFFFFF !important;
- border-radius: 0;
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- text-shadow: 2px 2px 3px #FFFFFF;
- }
- #menu-bar li:hover > ul {
- display: block;
- }
- #menu-bar ul {
- background: #DDDDDD;
- background: linear-gradient(top, #FFFFFF, #CFCFCF);
- background: -ms-linear-gradient(top, #FFFFFF, #CFCFCF);
- background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CFCFCF));
- background: -moz-linear-gradient(top, #FFFFFF, #CFCFCF);
- display: none;
- margin: 0;
- padding: 0;
- width: 185px;
- position: absolute;
- top: 30px;
- left: 0;
- border: solid 1px #B4B4B4;
- border-radius: 10px;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
- -webkit-box-shadow: 2px 2px 3px #222222;
- -moz-box-shadow: 2px 2px 3px #222222;
- box-shadow: 2px 2px 3px #222222;
- }
- #menu-bar ul li {
- float: none;
- margin: 0;
- padding: 0;
- font-size: 18px;
- }
- #menu-bar ul a {
- padding: 10px 0 10px 15px;
- color: #424242 !important;
- font-size: 18px;
- font-style: normal;
- font-weight: normal;
- text-shadow: 2px 2px 3px #FFFFFF;
- }
- #menu-bar ul li:first-child > a {
- border-top-left-radius: 10px;
- -webkit-border-top-left-radius: 10px;
- -moz-border-radius-topleft: 10px;
- border-top-right-radius: 10px;
- -webkit-border-top-right-radius: 10px;
- -moz-border-radius-topright: 10px;
- }
- #menu-bar ul li:last-child > a {
- border-bottom-left-radius: 10px;
- -webkit-border-bottom-left-radius: 10px;
- -moz-border-radius-bottomleft: 10px;
- border-bottom-right-radius: 10px;
- -webkit-border-bottom-right-radius: 10px;
- -moz-border-radius-bottomright: 10px;
- }
- #menu-bar:after {
- content: ".";
- display: block;
- clear: both;
- visibility: hidden;
- line-height: 0;
- height: 0;
- }
- #wslbody {
- padding-top: 320px;
- }
- #Artikel1 {
- margin-left: 20px;
- width: 300px;
- height: 300px;
- }
- .product-item {
- }
- </style>
- </head>
- <body>
- <?php
- $username = "Angel";
- $password = " ";
- if (isset($_POST["username"]) && isset($_POST["password"])) {
- if ($_POST["username"] === $username && $_POST["password"] === $password) {
- $_SESSION["loggedin"] = 1;
- $_SESSION["cart"] = "";
- $_SESSION["total"] = 0;
- }
- }
- if (isset($_POST["logout"])) {
- $_SESSION = [];
- if (session_id() != "" || isset($_COOKIE[session_name()])) {
- $params = session_get_cookie_params();
- setcookie(session_name(), '', 1, $params["path"],
- $params["domain"], $params["secure"], $params["httponly"]
- );
- }
- }
- if (isset($_POST["trakter0"])){
- $_SESSION["cart"] .= $_POST["quantity"] . " Trakter, ";
- $_SESSION["total"] += $_POST["quantity"] * 5000;
- }
- if (isset($_SESSION["loggedin"])) {
- echo '
- <div id="wslheader">
- <div id="nav">
- <form method=post> Eingeloggt <input type="submit" value="Logout" name="logout"></form>
- <ul>
- <li class="lii">Sprache</li>
- <li class="lii">Account</li>
- <li>Hilfe<li>
- </ul>
- <div id="shopstart">
- <img id="logo" src="WuSeL.png">
- </div>
- </div>
- <nav>
- <ul id="menu-bar">
- <li class="active"><a href="#">Startseite</a></li>
- <li><a href="#">Kleider</a>
- <ul>
- <li><a href="#">Frauen</a></li>
- <li><a href="#">Männer</a></li>
- </ul>
- </li>
- <li><a href="#">Accessoires</a>
- <ul>
- <li><a href="#">Piercings</a></li>
- <li><a href="#">Mützen</a></li>
- <li><a href="#">Snapbacks</a></li>
- <li><a href="#">Bilder L.</a></li>
- </ul>
- </li>
- <li><a href="#">Über uns</a></li>
- <li><a href="#">Kontakt</a></li>
- </ul>
- </nav>
- </div>
- <div id=wslbody>
- <br>
- <div class="product-item">
- <form method="post">
- <div class="product-image"><img src="Traktor0.jpg" id=Artikel1></div>
- <div><strong>Trakter</strong></div>
- <div class="product-price">5000 Euro</div>
- <div><input type="text" name="quantity" value="1" size="2" /><input
- type="submit" value="Add to cart" class="btnAddAction" name="trakter0"/></div>
- </form>
- </div>
- </div>
- ';
- echo "Traktoren im Warenkorb :" . $_SESSION["cart"] . " <br><hr style='float: left; width: 100px;'><br>" . $_SESSION["total"] . "€";
- } else {
- echo '
- <audio autoplay>
- <source src="bgmusic.mp3" type="audio/mpeg" />
- Your browser does not support the audio element.
- </audio>
- <div id="header">
- <h1>WuSeL Online Shop</h1>
- <form method=post>
- <h2>Anmelden</h2>
- <table>
- <tr>
- <tr>
- <td>
- Benutzername(Angel):</td>
- <td><label><input class=form-field type="text" name="username" required></label></td>
- </tr>
- <tr>
- <td>Passwort( ):</label></td>
- <td><label><input class=form-field type="password" name="password" required></td>
- </tr>
- </table>
- <input class="submit-button" type="submit" name="submit" value="Login">
- </form>
- </div>
- <div id="bgd">
- <img src="People.jpg" id=People alt=owner>
- </div>
- ';
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement