view.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  5. <title>Lychee</title>
  6. <meta name="author" content="Tobias Reich">
  7. <meta name="keywords" content="">
  8. <meta name="description" content="">
  9. <!-- CSS -->
  10. <link type="text/css" rel="stylesheet" href="assets/min/main.css">
  11. <link rel="shortcut icon" href="favicon.ico">
  12. <link rel="apple-touch-icon" href="assets/img/apple-touch-icon-iphone.png" sizes="120x120">
  13. <link rel="apple-touch-icon" href="assets/img/apple-touch-icon-ipad.png" sizes="152x152">
  14. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0">
  15. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  16. <meta name="apple-mobile-web-app-capable" content="yes">
  17. <?php
  18. if(isset($_GET['p'])) {
  19. define("LYCHEE", true);
  20. require("data/config.php");
  21. require("php/modules/Module.php");
  22. require("php/modules/Database.php");
  23. require("php/modules/misc.php");
  24. $database = Database::connect($dbHost, $dbUser, $dbPassword, $dbName);
  25. echo getGraphHeader($database, $_GET['p']);
  26. }
  27. ?>
  28. </head>
  29. <body class="view">
  30. <!-- Header -->
  31. <header class="view">
  32. <!-- Buttons -->
  33. <div class="tools" id="button_direct" title="Direct Link"><a class="icon-link"></a></div>
  34. <div class="tools" id="button_info" title="Show Info"><a class="icon-info-sign"></a></div>
  35. <a id="title" class="view"></a>
  36. </header>
  37. <!-- ImageView -->
  38. <div id="imageview" class="view"></div>
  39. <!-- Infobox -->
  40. <div id="infobox"></div>
  41. <!-- JS -->
  42. <script type="text/javascript" src="assets/min/view.js"></script>
  43. </body>
  44. </html>