view.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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'])&&$_GET['p']>0) {
  19. require(__DIR__ . "/php/define.php");
  20. require(LYCHEE_CONFIG_FILE);
  21. require(LYCHEE . "php/autoload.php");
  22. require(LYCHEE . "php/modules/misc.php");
  23. $database = Database::connect($dbHost, $dbUser, $dbPassword, $dbName);
  24. echo getGraphHeader($database, $_GET['p']);
  25. }
  26. ?>
  27. </head>
  28. <body class="view">
  29. <!-- Header -->
  30. <header class="view">
  31. <!-- Buttons -->
  32. <div class="tools" id="button_direct" title="Direct Link"><a class="icon-link"></a></div>
  33. <div class="tools" id="button_info" title="Show Info"><a class="icon-info-sign"></a></div>
  34. <a id="title" class="view"></a>
  35. </header>
  36. <!-- ImageView -->
  37. <div id="imageview" class="view"></div>
  38. <!-- Infobox -->
  39. <div id="infobox"></div>
  40. <!-- JS -->
  41. <script type="text/javascript" src="assets/min/view.js"></script>
  42. </body>
  43. </html>