1
0

initial version

This commit is contained in:
Stefan Frech
2008-04-20 13:26:26 +00:00
committed by Jonas Kattendick
parent 1a36b5e190
commit dc8236ccb0
29 changed files with 3724 additions and 0 deletions

50
header.php Normal file
View File

@@ -0,0 +1,50 @@
<?php
define ("ABSOLUTE_PATH", dirname (__FILE__) . "/");
if (extension_loaded ('zlib')) {
ob_start ('ob_gzhandler');
}
require_once (ABSOLUTE_PATH . "lib/webstart.php");
if (! is_file (ABSOLUTE_PATH . "config/config.php")) {
die ('You have to <a href="./install.php">install</a> Online-Bookmarks.');
}
else {
require_once (ABSOLUTE_PATH . "config/config.php");
}
require_once (ABSOLUTE_PATH . "lib/mysql.php");
$mysql = & new mysql;
require_once (ABSOLUTE_PATH . "lib/auth.php");
$auth = & new Auth;
require_once (ABSOLUTE_PATH . "lib/lib.php");
require_once (ABSOLUTE_PATH . "lib/login.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Online-Bookmarks</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="No-cache">
<link rel="stylesheet" type="text/css" href="./style.css">
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="./lib/lib.js"></script>
<!--[if lt IE 7]>
<script defer type="text/javascript" src="./lib/pngfix.js"></script>
<![endif]-->
</head>
<body>
<?php
if (is_file (ABSOLUTE_PATH . "install.php")) {
message ('Remove "install.php" before using Online-Bookmarks.');
}
if ($display_login_form) {
$auth->display_login_form ();
require_once (ABSOLUTE_PATH . "footer.php");
}
?>