Advertisement
Guest User

Untitled

a guest
Mar 8th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.22 KB | None | 0 0
  1. <?php
  2. //ANGEL DU WEEB DAD HEITEN MUSS AN DEN trinte.php AM SELWECHTEN FOLDER WEI DEI HEI DATEI
  3.  
  4. ini_set('session.cookie_secure', true);
  5. ini_set('session.use_only_cookies', true);
  6. ini_set('session.cookie_path', rawurlencode(dirname($_SERVER['PHP_SELF'])));
  7. if (!isset($_SERVER['HTTPS'])) header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
  8. if (!isset($_SESSION)) session_start();
  9. if (!isset($_SESSION['generated']) || $_SESSION['generated'] < (time() - 30)) {
  10. session_regenerate_id();
  11. $_SESSION['generated'] = time();
  12. }
  13. //DAD HEITEN NET MEI!!
  14. //MA DEI "//" FORT
  15. //require_once ("trinte.php");
  16. ?>
  17. <!DOCTYPE html>
  18. <html lang="en">
  19. <head>
  20. <meta charset="UTF-8">
  21. <title>WuSeL Online Shop</title>
  22. <link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet">
  23. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  24. <style>
  25. html {
  26. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  27. }
  28.  
  29. body {
  30. overflow: hidden;
  31. background: white;
  32. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  33. margin: 0;
  34. font-family: 'Roboto', sans-serif;
  35. }
  36.  
  37. #People {
  38. width: 100%;
  39. height: auto;
  40. display: block;
  41. max-width: none;
  42. overflow: hidden;
  43. }
  44.  
  45. label {
  46. display: inline-block;
  47. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  48. }
  49.  
  50. #header {
  51. background-color: rgba(0, 0, 0, .6);
  52. width: 42%;
  53. float: left;
  54. position: absolute;
  55. margin: 48px -100% 48px 2%;
  56. padding: 0 48px 40px;
  57. box-sizing: border-box;
  58. color: white;
  59. font-family: Univers, sans-serif;
  60. min-width: 530px;
  61. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  62. }
  63.  
  64. h1 {
  65. color: white;
  66. border-bottom: 1px solid rgba(255, 255, 255, .2);
  67. margin: 48px 0 24px;
  68. padding-bottom: 20px;
  69. font-family: 'Audiowide', cursive;
  70. }
  71.  
  72. .form-field {
  73. border-radius: 4px;
  74. box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0, inset rgba(000, 000, 000, 0.7) 0 0 0;
  75. padding: 6px;
  76. width: 240px;
  77. margin-left: 50px;
  78. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  79.  
  80. }
  81.  
  82. .submit-button {
  83. border: 1px solid #244152;
  84. background: #565b5c;
  85. background: -webkit-gradient(linear, left top, left bottom, from(#242729), to(#565b5c));
  86. background: -webkit-linear-gradient(top, #242729, #565b5c);
  87. background: -moz-linear-gradient(top, #242729, #565b5c);
  88. background: -ms-linear-gradient(top, #242729, #565b5c);
  89. background: -o-linear-gradient(top, #242729, #565b5c);
  90. background-image: -ms-linear-gradient(top, #242729 0%, #565b5c 100%);
  91. padding: 5px 11px;
  92. -webkit-border-radius: 0;
  93. -moz-border-radius: 0;
  94. border-radius: 0;
  95. -webkit-box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0, inset rgba(255, 255, 255, 0.4) 0 1px 0;
  96. -moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0, inset rgba(255, 255, 255, 0.4) 0 1px 0;
  97. box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0, inset rgba(255, 255, 255, 0.4) 0 1px 0;
  98. text-shadow: #383b3d 0 1px 0;
  99. color: #f5f5f5;
  100. font-size: 15px;
  101. font-family: helvetica, serif;
  102. text-decoration: none;
  103. vertical-align: middle;
  104. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  105. }
  106.  
  107. .submit-button:hover {
  108. border: 1px solid #bfbfbf;
  109. text-shadow: #d9d9d9 0 1px 0;
  110. background: #f5f5f5;
  111. background: -webkit-gradient(linear, left top, left bottom, from(#a1a1a1), to(#f5f5f5));
  112. background: -webkit-linear-gradient(top, #a1a1a1, #f5f5f5);
  113. background: -moz-linear-gradient(top, #a1a1a1, #f5f5f5);
  114. background: -ms-linear-gradient(top, #a1a1a1, #f5f5f5);
  115. background: -o-linear-gradient(top, #a1a1a1, #f5f5f5);
  116. background-image: -ms-linear-gradient(top, #a1a1a1 0%, #f5f5f5 100%);
  117. color: #000000;
  118. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  119. }
  120.  
  121. .submit-button:active {
  122. text-shadow: #6f7478 0 1px 0;
  123. border: 1px solid #5e0e61;
  124. background: #aa3db0;
  125. background: -webkit-gradient(linear, left top, left bottom, from(#da6bff), to(#f5f5f5));
  126. background: -webkit-linear-gradient(top, #da6bff, #aa3db0);
  127. background: -moz-linear-gradient(top, #da6bff, #aa3db0);
  128. background: -ms-linear-gradient(top, #da6bff, #aa3db0);
  129. background: -o-linear-gradient(top, #da6bff, #aa3db0);
  130. background-image: -ms-linear-gradient(top, #da6bff 0%, #aa3db0 100%);
  131. color: #fcf7fc;
  132. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  133. }
  134.  
  135. form {
  136. cursor: url('http://www.snazzyspace.com/cursorsfolder/cross.png'), auto !important;
  137. }
  138.  
  139. #wslheader {
  140. background-color: black;
  141. height: 300px;
  142. color: white;
  143. width: 100%;
  144. position: fixed;
  145. margin: 0;
  146. padding: 0;
  147. display: inline;
  148. }
  149.  
  150. #nav {
  151. height: 35px;
  152. line-height: 35px;
  153. background-color: #ffffff;
  154. color: #000000;
  155. width: 100%;
  156. margin: 0;
  157. padding: 0;
  158. }
  159.  
  160. #shopstart {
  161. width: 100%;
  162. }
  163.  
  164. ul {
  165. color: #000;
  166. font-size: 12px;
  167. margin: -36px 11px 10px 0;
  168. padding: 0;
  169. float: right;
  170. list-style: none;
  171. }
  172.  
  173. .lii {
  174. border-right: 1px solid #000;
  175. float: left;
  176. list-style: none;
  177. padding: 0 19px;
  178. }
  179.  
  180. li {
  181. float: left;
  182. list-style: none;
  183. padding: 0 5px;
  184. }
  185.  
  186. #logo {
  187. margin: 0 auto;
  188. display: block;
  189. }
  190.  
  191. #menu-bar {
  192. width: 100%;
  193. min-width: 650px;
  194. margin: auto;
  195. margin-top: 200px;
  196. padding: 12px 6px 4px 6px;
  197. height: 40px;
  198. line-height: 100%;
  199. box-shadow: 2px 2px 3px #aaaaaa;
  200. background: #ffffff;
  201. background: -moz-linear-gradient(top, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%);
  202. background: -webkit-linear-gradient(top, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%);
  203. background: linear-gradient(to bottom, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%);
  204. border: solid 1px #6D6D6D;
  205. }
  206.  
  207. #menu-bar li {
  208. margin: 0 0 6px 0;
  209. padding: 0 6px 0 6px;
  210. float: left;
  211. position: relative;
  212. list-style: none;
  213. }
  214.  
  215. #menu-bar a {
  216. font-weight: bold;
  217. font-style: normal;
  218. font-size: 18px;
  219. color: black;
  220. text-decoration: none;
  221. display: block;
  222. padding: 6px 20px 6px 20px;
  223. margin: 0 0 6px 0;
  224. border-radius: 10px;
  225. -webkit-border-radius: 10px;
  226. -moz-border-radius: 10px;
  227. text-shadow: 2px 2px 3px #000000;
  228. }
  229.  
  230. #menu-bar li ul li a {
  231. margin: 0;
  232. }
  233.  
  234. #menu-bar .active a, #menu-bar li:hover > a {
  235. background: #0399D4;
  236. background: linear-gradient(top, #EBEBEB, #A1A1A1);
  237. background: -ms-linear-gradient(top, #EBEBEB, #A1A1A1);
  238. background: -webkit-gradient(linear, left top, left bottom, from(#EBEBEB), to(#A1A1A1));
  239. background: -moz-linear-gradient(top, #EBEBEB, #A1A1A1);
  240. color: #444444;
  241. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  242. -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  243. box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  244. text-shadow: 2px 2px 3px #FFFFFF;
  245. }
  246.  
  247. #menu-bar ul li:hover a, #menu-bar li:hover li a {
  248. background: none;
  249. border: none;
  250. color: #666;
  251. }
  252.  
  253. #menu-bar ul a:hover {
  254. background: #0399D4 !important;
  255. background: linear-gradient(top, #04ACEC, #0186BA) !important;
  256. background: -ms-linear-gradient(top, #04ACEC, #0186BA) !important;
  257. background: -webkit-gradient(linear, left top, left bottom, from(#04ACEC), to(#0186BA)) !important;
  258. background: -moz-linear-gradient(top, #04ACEC, #0186BA) !important;
  259. color: #FFFFFF !important;
  260. border-radius: 0;
  261. -webkit-border-radius: 0;
  262. -moz-border-radius: 0;
  263. text-shadow: 2px 2px 3px #FFFFFF;
  264. }
  265.  
  266. #menu-bar li:hover > ul {
  267. display: block;
  268. }
  269.  
  270. #menu-bar ul {
  271. background: #DDDDDD;
  272. background: linear-gradient(top, #FFFFFF, #CFCFCF);
  273. background: -ms-linear-gradient(top, #FFFFFF, #CFCFCF);
  274. background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CFCFCF));
  275. background: -moz-linear-gradient(top, #FFFFFF, #CFCFCF);
  276. display: none;
  277. margin: 0;
  278. padding: 0;
  279. width: 185px;
  280. position: absolute;
  281. top: 30px;
  282. left: 0;
  283. border: solid 1px #B4B4B4;
  284. border-radius: 10px;
  285. -webkit-border-radius: 10px;
  286. -moz-border-radius: 10px;
  287. -webkit-box-shadow: 2px 2px 3px #222222;
  288. -moz-box-shadow: 2px 2px 3px #222222;
  289. box-shadow: 2px 2px 3px #222222;
  290. }
  291.  
  292. #menu-bar ul li {
  293. float: none;
  294. margin: 0;
  295. padding: 0;
  296. font-size: 18px;
  297. }
  298.  
  299. #menu-bar ul a {
  300. padding: 10px 0 10px 15px;
  301. color: #424242 !important;
  302. font-size: 18px;
  303. font-style: normal;
  304. font-weight: normal;
  305. text-shadow: 2px 2px 3px #FFFFFF;
  306. }
  307.  
  308. #menu-bar ul li:first-child > a {
  309. border-top-left-radius: 10px;
  310. -webkit-border-top-left-radius: 10px;
  311. -moz-border-radius-topleft: 10px;
  312. border-top-right-radius: 10px;
  313. -webkit-border-top-right-radius: 10px;
  314. -moz-border-radius-topright: 10px;
  315. }
  316.  
  317. #menu-bar ul li:last-child > a {
  318. border-bottom-left-radius: 10px;
  319. -webkit-border-bottom-left-radius: 10px;
  320. -moz-border-radius-bottomleft: 10px;
  321. border-bottom-right-radius: 10px;
  322. -webkit-border-bottom-right-radius: 10px;
  323. -moz-border-radius-bottomright: 10px;
  324. }
  325.  
  326. #menu-bar:after {
  327. content: ".";
  328. display: block;
  329. clear: both;
  330. visibility: hidden;
  331. line-height: 0;
  332. height: 0;
  333. }
  334.  
  335. #wslbody {
  336. padding-top: 320px;
  337. }
  338.  
  339. #Artikel1 {
  340. margin-left: 20px;
  341. width: 300px;
  342. height: 300px;
  343. }
  344.  
  345. .product-item {
  346. }
  347. </style>
  348. </head>
  349. <body>
  350. <?php
  351. $username = "Angel";
  352. $password = " ";
  353.  
  354. if (isset($_POST["username"]) && isset($_POST["password"])) {
  355. if ($_POST["username"] === $username && $_POST["password"] === $password) {
  356. $_SESSION["loggedin"] = 1;
  357. $_SESSION["cart"] = "";
  358. $_SESSION["total"] = 0;
  359. }
  360. }
  361.  
  362. if (isset($_POST["logout"])) {
  363. $_SESSION = [];
  364. if (session_id() != "" || isset($_COOKIE[session_name()])) {
  365. $params = session_get_cookie_params();
  366. setcookie(session_name(), '', 1, $params["path"],
  367. $params["domain"], $params["secure"], $params["httponly"]
  368. );
  369. }
  370. }
  371.  
  372. if (isset($_POST["trakter0"])){
  373. $_SESSION["cart"] .= $_POST["quantity"] . " Trakter, ";
  374. $_SESSION["total"] += $_POST["quantity"] * 5000;
  375. }
  376.  
  377. if (isset($_SESSION["loggedin"])) {
  378.  
  379. echo '
  380. <div id="wslheader">
  381. <div id="nav">
  382. <form method=post> Eingeloggt <input type="submit" value="Logout" name="logout"></form>
  383. <ul>
  384. <li class="lii">Sprache</li>
  385. <li class="lii">Account</li>
  386. <li>Hilfe<li>
  387. </ul>
  388. <div id="shopstart">
  389. <img id="logo" src="WuSeL.png">
  390. </div>
  391. </div>
  392. <nav>
  393. <ul id="menu-bar">
  394. <li class="active"><a href="#">Startseite</a></li>
  395. <li><a href="#">Kleider</a>
  396. <ul>
  397. <li><a href="#">Frauen</a></li>
  398. <li><a href="#">Männer</a></li>
  399. </ul>
  400. </li>
  401. <li><a href="#">Accessoires</a>
  402. <ul>
  403. <li><a href="#">Piercings</a></li>
  404. <li><a href="#">Mützen</a></li>
  405. <li><a href="#">Snapbacks</a></li>
  406. <li><a href="#">Bilder L.</a></li>
  407. </ul>
  408. </li>
  409. <li><a href="#">Über uns</a></li>
  410. <li><a href="#">Kontakt</a></li>
  411. </ul>
  412. </nav>
  413. </div>
  414. <div id=wslbody>
  415. <br>
  416. <div class="product-item">
  417. <form method="post">
  418. <div class="product-image"><img src="Traktor0.jpg" id=Artikel1></div>
  419. <div><strong>Trakter</strong></div>
  420. <div class="product-price">5000 Euro</div>
  421. <div><input type="text" name="quantity" value="1" size="2" /><input
  422. type="submit" value="Add to cart" class="btnAddAction" name="trakter0"/></div>
  423. </form>
  424. </div>
  425. </div>
  426. ';
  427.  
  428. echo "Traktoren im Warenkorb :" . $_SESSION["cart"] . " <br><hr style='float: left; width: 100px;'><br>" . $_SESSION["total"] . "€";
  429.  
  430. } else {
  431. echo '
  432. <audio autoplay>
  433. <source src="bgmusic.mp3" type="audio/mpeg" />
  434. Your browser does not support the audio element.
  435. </audio>
  436. <div id="header">
  437. <h1>WuSeL Online Shop</h1>
  438. <form method=post>
  439. <h2>Anmelden</h2>
  440. <table>
  441. <tr>
  442. <tr>
  443. <td>
  444. Benutzername(Angel):</td>
  445. <td><label><input class=form-field type="text" name="username" required></label></td>
  446. </tr>
  447.  
  448. <tr>
  449. <td>Passwort( ):</label></td>
  450. <td><label><input class=form-field type="password" name="password" required></td>
  451. </tr>
  452. </table>
  453. <input class="submit-button" type="submit" name="submit" value="Login">
  454.  
  455. </form>
  456. </div>
  457.  
  458. <div id="bgd">
  459. <img src="People.jpg" id=People alt=owner>
  460. </div>
  461.  
  462. ';
  463. }
  464. ?>
  465.  
  466.  
  467. </body>
  468. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement