PageRenderTime 47ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/index.php

https://gitlab.com/seckmaster/Cloud-password
PHP | 114 lines | 101 code | 11 blank | 2 comment | 4 complexity | 41347595e28f0983d22c8ca04e16d8f3 MD5 | raw file
  1. <?php
  2. // Start the session
  3. if(session_id() == '' || !isset($_SESSION)) {
  4. // session isn't started
  5. session_start();
  6. }
  7. var_dump($_SESSION);
  8. ob_start();
  9. if (isset($_SESSION["user"])) {
  10. header("Location: user/");
  11. exit();
  12. }
  13. include "../database.php";
  14. ?>
  15. <html>
  16. <head>
  17. <link rel="stylesheet" type="text/css" href="css/style.css" />
  18. <link rel="stylesheet" type="text/css" href="css/inputs.css" />
  19. <link rel="stylesheet" type="text/css" href="css/colorbox.css" />
  20. <link href="http://fonts.googleapis.com/css?family=Crimson+Text" rel="stylesheet" type="text/css">
  21. <link href="http://fonts.googleapis.com/css?family=Allerta" rel="stylesheet" type="text/css">
  22. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  23. <title>Cloud Password</title>
  24. <script>
  25. $(function(){
  26. $("#slideshow > div:gt(0)").hide();
  27. setInterval(function() {
  28. $('#slideshow > div:first')
  29. .fadeOut(1000)
  30. .next()
  31. .fadeIn(1000)
  32. .end()
  33. .appendTo('#slideshow');
  34. }, 3000);
  35. });
  36. </script>
  37. </head>
  38. <body>
  39. <div id="header" class="shadow">
  40. <div class="container">
  41. <a href="#" class="logo_small">
  42. <img class="header_logo" src="images/small.png" width="77px"/>
  43. </a>
  44. <a href="login/index.php" class="txt">Sign Up</a>
  45. <a href="about.php" class="txt">About</a>
  46. </div>
  47. </div>
  48. <div id="wrap">
  49. <div class="container">
  50. <div id="slideshow">
  51. <div class="anim">
  52. <h2>Fast</h2>
  53. <img src="images/clock.png">
  54. </div>
  55. <div class="anim">
  56. <h2>Fun</h2>
  57. <img src="images/tup.png">
  58. </div>
  59. <div class="anim">
  60. <h2>Free</h2>
  61. <img src="images/money.png">
  62. </div>
  63. <ul>
  64. <li><a href="#" class="panel"></a></li>
  65. <li><a href="#" class="panel"></a></li>
  66. <li><a href="#" class="panel"></a></li>
  67. </ul>
  68. </div>
  69. <div id="logo_container">
  70. <img src="images/logo2.png" class="logo"/>
  71. <img src="images/text.png"/>
  72. </div>
  73. </div>
  74. <div id="whatIsCP">
  75. <ul class="container">
  76. <li>
  77. <div id="li1">
  78. <h2>It's fast</h2>
  79. <p>Have you evere forgotten your password and then it took you ages to recover it? Not anymore! <br>Cloud Password allows you to save all your passwords risk free online. <br>FOR FREE!</p>
  80. <img src="images/clock.png">
  81. </div>
  82. </li>
  83. <li>
  84. <div id="li2">
  85. <h2>It's fun</h2>
  86. <p>Add passwords with ease! Using Cloud Password's very simple interface have never been so easy before. Add, remove or edit passwords and never forget them again.</p>
  87. <img src="images/tup.png">
  88. </div>
  89. </li>
  90. <li>
  91. <div id="li3">
  92. <h2>It's free</h2>
  93. <p>All this awesome features of Cloud Password are absolutely free and will remain free 4ever. <br>Our team will keep working on this project to give you best experience possible.</p>
  94. <img src="images/money.png">
  95. </div>
  96. </li>
  97. </ul>
  98. </div>
  99. <div id="noName">
  100. </div>
  101. </div>
  102. </body>
  103. </html>