view.php 1.8 KB

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