view.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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="dist/main.css">
  11. <link rel="shortcut icon" href="favicon.ico">
  12. <link rel="apple-touch-icon" href="src/images/apple-touch-icon-iphone.png" sizes="120x120">
  13. <link rel="apple-touch-icon" href="src/images/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. <a class="button button--right" id="button_info" title="About Photo">
  36. <svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#info"></use></svg>
  37. </a>
  38. <a class="button button--right" id="button_direct" title="Direct Link">
  39. <svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#link-intact"></use></svg>
  40. </a>
  41. <a id="title" class="view"></a>
  42. </header>
  43. <!-- ImageView -->
  44. <div id="imageview" class="view"></div>
  45. <!-- Infobox -->
  46. <div id="infobox">
  47. <div class='header'>
  48. <h1>About</h1>
  49. <a class='close' title='Close About'>
  50. <svg viewBox="0 0 8 8" class="iconic"><use xlink:href="src/images/iconic.svg#circle-x"></use></svg>
  51. </a>
  52. </div>
  53. <div class='wrapper'>
  54. </div>
  55. </div>
  56. <!-- JS -->
  57. <script type="text/javascript" src="dist/view.js"></script>
  58. </body>
  59. </html>