lychee/view.php

81 lines
2.1 KiB
PHP
Raw Normal View History

2012-10-02 15:48:08 +00:00
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
2014-04-01 22:18:25 +00:00
<title>Lychee</title>
2012-10-02 15:48:08 +00:00
2014-04-01 22:18:25 +00:00
<meta name="author" content="Tobias Reich">
2012-10-02 15:48:08 +00:00
<meta name="keywords" content="">
<meta name="description" content="">
2014-04-01 22:18:25 +00:00
<!-- CSS -->
2014-10-10 21:30:10 +00:00
<link type="text/css" rel="stylesheet" href="dist/main.css">
2014-02-23 15:12:53 +00:00
<link rel="shortcut icon" href="favicon.ico">
2014-10-10 21:30:10 +00:00
<link rel="apple-touch-icon" href="src/images/apple-touch-icon-iphone.png" sizes="120x120">
<link rel="apple-touch-icon" href="src/images/apple-touch-icon-ipad.png" sizes="152x152">
2012-10-02 15:48:08 +00:00
2014-04-01 22:18:25 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
2012-10-02 15:48:08 +00:00
<meta name="apple-mobile-web-app-capable" content="yes">
<?php
2014-04-19 18:49:34 +00:00
if (isset($_GET['p'])&&$_GET['p']>0) {
2014-08-30 16:49:10 +00:00
# Load required files
require(__DIR__ . '/php/define.php');
require(__DIR__ . '/php/autoload.php');
require(__DIR__ . '/php/modules/misc.php');
2014-04-19 18:49:34 +00:00
require(LYCHEE_CONFIG_FILE);
2014-08-30 16:49:10 +00:00
# Define the table prefix
if (!isset($dbTablePrefix)) $dbTablePrefix = '';
2014-08-30 16:49:10 +00:00
defineTablePrefix($dbTablePrefix);
2014-04-04 21:17:54 +00:00
$database = Database::connect($dbHost, $dbUser, $dbPassword, $dbName);
2014-04-04 21:17:54 +00:00
echo getGraphHeader($database, $_GET['p']);
}
?>
2012-10-02 15:48:08 +00:00
</head>
<body class="view">
2012-10-02 15:48:08 +00:00
<!-- Header -->
<header class="view">
2012-10-02 15:48:08 +00:00
2015-02-01 20:21:58 +00:00
<a class="button button--right" id="button_info" title="About Photo">
<svg class="iconic"><use xlink:href="src/images/iconic.svg#info"></use></svg>
2015-02-01 20:21:58 +00:00
</a>
<a class="button button--right" id="button_direct" title="Direct Link">
<svg class="iconic"><use xlink:href="src/images/iconic.svg#link-intact"></use></svg>
2015-02-01 20:21:58 +00:00
</a>
2012-10-02 15:48:08 +00:00
<a id="title" class="view"></a>
2012-10-02 15:48:08 +00:00
</header>
2012-10-02 15:48:08 +00:00
<!-- ImageView -->
<div id="imageview" class="view"></div>
2012-10-02 15:48:08 +00:00
<!-- Infobox -->
2015-02-01 20:21:58 +00:00
<div id="infobox">
<div class='header'>
<h1>About</h1>
<a class='close' title='Close About'>
<svg class="iconic"><use xlink:href="src/images/iconic.svg#circle-x"></use></svg>
2015-02-01 20:21:58 +00:00
</a>
</div>
<div class='wrapper'>
</div>
</div>
2012-10-02 15:48:08 +00:00
<!-- JS -->
2014-10-10 21:30:10 +00:00
<script type="text/javascript" src="dist/view.js"></script>
2012-10-02 15:48:08 +00:00
</body>
</html>