Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. <?php
  2. include_once 'resources/session.php';
  3. include_once 'resources/database.php';
  4. include_once 'resources/utilities.php';
  5. ?>
  6.  
  7.  
  8. <html>
  9.  
  10. <head>
  11. <?php include_once 'partials/head.php' ?>
  12. <link href="css/pages/se-profile.css" rel="stylesheet" type="text/css">
  13. </head>
  14.  
  15. <body>
  16.  
  17. <?php if(!isset($_SESSION['username'])):?>
  18. <div class="login-forms">
  19. <a href="index.php"><img id="logo" class="" src="_new_images_folder/logos/horizontal_outline.png"></a>
  20. <div class="card-nomargin add_padding">
  21. <h1>Game</h1>
  22. <p>Sorry! Only registered members are allowed to see this page. <br><a href="login.php">Log in</a> or <a href="signup.php">Sign up</a> to play.</br></p>
  23. </div>
  24. </div>
  25. <?php else: ?>
  26.  
  27. <?php include_once 'partials/headers.php' ?>
  28. <?php include_once 'partials/parseProfile.php' ?>
  29.  
  30. <div class = "main_content">
  31.  
  32. <div class="card-firstdiv add_padding" style="position: relative;">
  33. <div class="flex-container">
  34.  
  35. <!-- Profile Image -->
  36. <div class="two-fifths">
  37. <!--div id="characterContainer" style="margin-right: 10px; width: 100%;" -->
  38. <div id="characterContainer" style="width: 100%; position: relative;" ></div>
  39. <!--img style="margin-right: 10px; width: 100%;" src="profile/scholar_sprite.php" -->
  40. </div>
  41. <!-- Info on the right (Your Information, Your Scholar, Your Account) -->
  42. <div class="three-fifths">
  43. <h1>Profile</h1>
  44.  
  45. <div>
  46. <!-- <div class="flex-panel" style="padding: 10px; border: 2px solid #f3def2; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;"> -->
  47. <div class="x-card-purple">
  48. <div class="x-card-purple-header">
  49. <div class="center">
  50. <h4>YOUR INFORMATION</h4>
  51. </div>
  52. </div>
  53.  
  54. <div class="x-card-content">
  55. <p style="width:100%;"><b>Email:</b> <?php if(isset($email)) echo $email; ?> | <a href="profile/edit_email.php?user_identity=<?php if(isset($encode_id)) echo $encode_id; ?>">Edit</a></p>
  56. </br>
  57.  
  58. <p style="width:100%;"><b>Username:</b> <?php if(isset($username)) echo $username; ?> | <a href="profile/edit_username.php?user_identity=<?php if(isset($encode_id)) echo $encode_id; ?>">Edit</a></p>
  59. </br>
  60.  
  61. <p style="width:100%;"><b>Password:</b> ********** | <a href="profile/edit_password.php?user_identity=<?php if(isset($encode_id)) echo $encode_id; ?>">Edit</a></p>
  62. </br>
  63.  
  64. <p style="width:100%;"><b>Date Joined:</b> <?php if(isset($date_joined)) echo $date_joined; ?></p>
  65. </br>
  66. </div>
  67. </div>
  68. </div>
  69.  
  70. <div>
  71. <div class="x-card-yellow">
  72. <div class="x-card-yellow-header">
  73. <div class="center">
  74. <h4>YOUR SCHOLAR</h4>
  75. </div>
  76. </div>
  77.  
  78. <div class="x-card-content">
  79. <img style="width: 100%; border-radius: 10px;" src="profile/profile_idcard.php">
  80. </div>
  81. </div>
  82. </div>
  83.  
  84.  
  85. <div>
  86. <div class="x-card-pink">
  87. <div class="x-card-pink-header">
  88. <div class="center">
  89. <h4>YOUR ACCOUNT</h4>
  90. </div>
  91. </div>
  92.  
  93. <div class="x-card-content flex-container center">
  94. <div class="one-half">
  95. <div id="reset-progess" class="button pink_button"><a style="color:white;">Reset Progress</a></div>
  96. </div>
  97. <div class="one-half">
  98. <div id="delete-account" class="button pink_button"><a style="color:white;">Delete account</a></div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106.  
  107. <div id = "DB_handle"></div>
  108.  
  109. <div id = "resetProgressDiv-popupHandler">
  110. <div id = "resetProgressDiv">
  111. <div id = "resetProgressDiv-progressBar-logo"></div>
  112. <div id = "resetProgressDiv-progressBar"></div>
  113. </div>
  114. </div>
  115.  
  116. </div>
  117. <?php include_once 'partials/footers.php' ?>
  118.  
  119. <?php endif ?>
  120.  
  121. </body>
  122.  
  123. <script>
  124.  
  125. document.getElementById('reset-progess').onclick = function()
  126. {
  127. var resetProgress = popup("RESET PROGRESS?", "yes/no");
  128.  
  129. //override the onclick of the buttons
  130. resetProgress[0].onclick = function ()
  131. {
  132. deletePopup();
  133. resetAllProgress();
  134. }
  135.  
  136. //override the onclick of the buttons
  137. resetProgress[1].onclick = function ()
  138. {
  139. deletePopup();
  140. }
  141. }
  142.  
  143. document.getElementById('delete-account').onclick = function()
  144. {
  145. var deleteAccount = popup("DELETE ACCOUNT?", "yes/no");
  146.  
  147. //override the onclick of the buttons
  148. deleteAccount[0].onclick = function ()
  149. {
  150.  
  151. deletePopup();
  152. }
  153.  
  154. //override the onclick of the buttons
  155. deleteAccount[1].onclick = function ()
  156. {
  157. deletePopup();
  158. }
  159. }
  160.  
  161.  
  162. refreshImage();
  163. </script>
  164.  
  165. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement