Advertisement
Guest User

shadow e2s

a guest
Nov 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. <?php
  2. session_start();
  3. require_once("inc/config.inc.php");
  4. require_once("inc/functions.inc.php");
  5.  
  6. //Überprüfe, dass der User eingeloggt ist
  7. //Der Aufruf von check_user() muss in alle internen Seiten eingebaut sein
  8. $user = check_user();
  9.  
  10. include("templates/header.inc.php");
  11. ?>
  12.  
  13.  
  14.  
  15. <div class="container main-container">
  16.  
  17. <h1>Accountübersicht <?php echo htmlentities($user['Ingamename']); ?>,</h1><br>
  18. Stand:
  19. <?php
  20. $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
  21. $result = $statement->execute();
  22. $count = 1;
  23. while($row = $statement->fetch()) {
  24. echo "<tr>";
  25. echo "<td>".$user['datum']."</td>";
  26.  
  27. }
  28. ?>
  29. <br>
  30. <br>
  31. <br>
  32.  
  33.  
  34.  
  35. <div class="panel panel-default">
  36.  
  37.  
  38. <table class="table">
  39. <tr>
  40. <th>Ingamename</th>
  41. <th>Hauptstadt</th>
  42. <th>Allianz</th>
  43.  
  44. </tr>
  45. <?php
  46. $statement = $pdo->prepare("SELECT * FROM users LIMIT 1");
  47. $result = $statement->execute();
  48. $count = 1;
  49. while($row = $statement->fetch()) {
  50. echo "<tr>";
  51. echo "<td>".$user['Ingamename']."</td>";
  52. echo "<td>".$user['Koordinaten']."</td>";
  53. echo "<td>".$user['Allianz']."</td>";
  54. echo "</tr>";
  55. }
  56. ?>
  57. </table>
  58. </div>
  59.  
  60.  
  61. </div>
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. <div class="container main-container">
  72.  
  73. <div class="panel panel-default">
  74. <h2>Stand Ressis</h2>
  75.  
  76.  
  77. <table class="table">
  78. <tr>
  79.  
  80. <th>Koordinaten</th>
  81. <th>Iridium</th>
  82. <th>Holzium</th>
  83. <th>Wasser</th>
  84. <th>Sauerstoff</th>
  85.  
  86.  
  87.  
  88. </tr>
  89. <?php
  90. $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
  91. $result = $statement->execute();
  92. $count = 1;
  93. while($row = $statement->fetch()) {
  94. echo "<tr>";
  95. echo "<td>".$row['koords']."</td>";
  96. echo "<td>".$row['iridium']."</td>";
  97. echo "<td>".$row['holzium']."</td>";
  98. echo "<td>".$row['wasser']."</td>";
  99. echo "<td>".$row['sauerstoff']."</td>";
  100. echo "</tr>";
  101. }
  102. ?>
  103. </table>
  104. </div>
  105.  
  106.  
  107.  
  108. <div class="panel panel-default">
  109. <h2>Produktion</h2>
  110. <table class="table">
  111. <tr>
  112.  
  113. <th>Koordinaten</th>
  114. <th>Iri / h</th>
  115. <th>Holz / h</th>
  116. <th>Was / h</th>
  117. <th>o2 / h</th>
  118. <th></th>
  119. <th>Iri / h</th>
  120. <th>Holz / h</th>
  121. <th>Was / h</th>
  122. <th>o2 / h</th>
  123.  
  124.  
  125.  
  126. </tr>
  127. <?php
  128. $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
  129. $result = $statement->execute();
  130. $count = 1;
  131. while($row = $statement->fetch()) {
  132. echo "<tr>";
  133. echo "<td>".$row['koords']."</td>";
  134. echo "<td>".$row['iridium']."</td>";
  135. echo "<td>".$row['holzium']."</td>";
  136. echo "<td>".$row['wasser']."</td>";
  137. echo "<td>".$row['sauerstoff']."</td>";
  138. echo "";
  139. echo "<td>".$row['iridium']."</td>";
  140. echo "<td>".$row['holzium']."</td>";
  141. echo "<td>".$row['wasser']."</td>";
  142. echo "<td>".$row['sauerstoff']."</td>";
  143. echo "</tr>";
  144. }
  145. ?>
  146. </table>
  147. </div>
  148. </div>
  149. </div>
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166. <div class="container main-container">
  167.  
  168. <div class="panel panel-default">
  169. <h2>Gebäude</h2>
  170.  
  171.  
  172. <table class="table">
  173. <tr>
  174.  
  175. <th>Koordinaten</th>
  176. <th>Iri</th>
  177. <th>Holz</th>
  178. <th>Wa</th>
  179. <th>O2</th>
  180. <th>Lg</th>
  181. <th>Ta</th>
  182. <th>Hg</th>
  183. <th>Fh</th>
  184. <th>Bz</th>
  185. <th>Tz</th>
  186. <th>Kz</th>
  187. <th>Hz</th>
  188. <th>Vz</th>
  189. <th>Ss</th>
  190.  
  191.  
  192. </tr>
  193. <?php
  194. $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
  195. $result = $statement->execute();
  196. $count = 1;
  197. while($row = $statement->fetch()) {
  198. echo "<tr>";
  199. echo "<td>".$row['koords']."</td>";
  200. echo "<td>".$row['iri']."</td>";
  201. echo "<td>".$row['holz']."</td>";
  202. echo "<td>".$row['was']."</td>";
  203. echo "<td>".$row['o2']."</td>";
  204. echo "<td>".$row['lag']."</td>";
  205. echo "<td>".$row['tan']."</td>";
  206. echo "<td>".$row['han']."</td>";
  207. echo "<td>".$row['flh']."</td>";
  208. echo "<td>".$row['bz']."</td>";
  209. echo "<td>".$row['tz']."</td>";
  210. echo "<td>".$row['kz']."</td>";
  211. echo "<td>".$row['hz']."</td>";
  212. echo "<td>".$row['vz']."</td>";
  213. echo "<td>".$row['ss']."</td>";
  214. echo "</tr>";
  215. }
  216. ?>
  217. </table>
  218. </div>
  219. </div>
  220.  
  221.  
  222.  
  223. <div class="container main-container">
  224.  
  225. <div class="panel panel-default">
  226. <h2>Technologien</h2>
  227.  
  228. <table class="table">
  229. <tr>
  230.  
  231. <th>Oxi</th>
  232. <th>Hov</th>
  233. <th>Anti</th>
  234. <th>ESW</th>
  235. <th>PSW</th>
  236. <th>NSW</th>
  237. <th>Tvr</th>
  238. <th>Fkv</th>
  239. <th>Com</th>
  240. <th>Lv</th>
  241. <th>Wk</th>
  242. <th>Bbt</th>
  243. <th>Sst</th>
  244.  
  245.  
  246.  
  247. </tr>
  248. <?php
  249. $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
  250. $result = $statement->execute();
  251. $count = 1;
  252. while($row = $statement->fetch()) {
  253. echo "<tr>";
  254. echo "<td>".$row['oxi']."</td>";
  255. echo "<td>".$row['hov']."</td>";
  256. echo "<td>".$row['anti']."</td>";
  257. echo "<td>".$row['esw']."</td>";
  258. echo "<td>".$row['psw']."</td>";
  259. echo "<td>".$row['nsw']."</td>";
  260. echo "<td>".$row['tvr']."</td>";
  261. echo "<td>".$row['fkv']."</td>";
  262. echo "<td>".$row['com']."</td>";
  263. echo "<td>".$row['lv']."</td>";
  264. echo "<td>".$row['wk']."</td>";
  265. echo "<td>".$row['bbt']."</td>";
  266. echo "<td>".$row['sst']."</td>";
  267. echo "</tr>";
  268. }
  269. ?>
  270. </table>
  271. </div>
  272. </div>
  273.  
  274.  
  275.  
  276. <div class="container main-container">
  277.  
  278. <div class="panel panel-default">
  279. <h2>Flugzeuge</h2>
  280.  
  281. <table class="table">
  282. <tr>
  283.  
  284. <th>Koordinaten</th>
  285. <th>SP</th>
  286. <th>BB</th>
  287. <th>RA</th>
  288. <th>EA</th>
  289. <th>FA</th>
  290. <th>NG</th>
  291. <th>RV</th>
  292. <th>DE</th>
  293. <th>Spi</th>
  294. <th>Se</th>
  295. <th>Sc</th>
  296. <th>Bo</th>
  297. <th>kT</th>
  298. <th>mT</th>
  299. <th>gT</th>
  300.  
  301.  
  302.  
  303. </tr>
  304. <?php
  305. $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
  306. $result = $statement->execute();
  307. $count = 1;
  308. while($row = $statement->fetch()) {
  309. echo "<tr>";
  310. echo "<td>".$row['koords']."</td>";
  311. echo "<td>".$row['spar']."</td>";
  312. echo "<td>".$row['bla']."</td>";
  313. echo "<td>".$row['ravn']."</td>";
  314. echo "<td>".$row['eagl']."</td>";
  315. echo "<td>".$row['falc']."</td>";
  316. echo "<td>".$row['nigt']."</td>";
  317. echo "<td>".$row['ravr']."</td>";
  318. echo "<td>".$row['dest']."</td>";
  319. echo "<td>".$row['spio']."</td>";
  320. echo "<td>".$row['sett']."</td>";
  321. echo "<td>".$row['scar']."</td>";
  322. echo "<td>".$row['bomb']."</td>";
  323. echo "<td>".$row['ktrp']."</td>";
  324. echo "<td>".$row['mtrp']."</td>";
  325. echo "<td>".$row['gtrp']."</td>";
  326. echo "</tr>";
  327. }
  328. ?>
  329. </table>
  330. </div>
  331. </div>
  332.  
  333.  
  334.  
  335.  
  336. <div class="container main-container">
  337.  
  338. <div class="panel panel-default">
  339. <h2>Verteidigungsanlagen</h2>
  340.  
  341. <table class="table">
  342. <tr>
  343.  
  344. <th>Koordinaten</th>
  345. <th>Ew</th>
  346. <th>Pw</th>
  347. <th>Nw</th>
  348. <th>Esq</th>
  349. <th>Psq</th>
  350. <th>Nsq</th>
  351.  
  352.  
  353.  
  354. </tr>
  355. <?php
  356. $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
  357. $result = $statement->execute();
  358. $count = 1;
  359. while($row = $statement->fetch()) {
  360. echo "<tr>";
  361. echo "<td>".$row['koords']."</td>";
  362. echo "<td>".$row['ewoo']."</td>";
  363. echo "<td>".$row['pwoo']."</td>";
  364. echo "<td>".$row['nwoo']."</td>";
  365. echo "<td>".$row['eseq']."</td>";
  366. echo "<td>".$row['pseq']."</td>";
  367. echo "<td>".$row['nseq']."</td>";
  368. echo "</tr>";
  369. }
  370. ?>
  371. </table>
  372. </div>
  373. </div>
  374.  
  375.  
  376.  
  377.  
  378.  
  379. <?php
  380. include("templates/footer.inc.php")
  381. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement