bootstrapping finish
parent
e050c0dc7f
commit
62762a9368
@ -1,51 +1,53 @@
|
|||||||
<?php
|
<?php
|
||||||
include "../../camp2011/includes/config.php";
|
require_once ('bootstrap.php');
|
||||||
include "../../camp2011/includes/error_handler.php";
|
|
||||||
include "../../camp2011/includes/config_db.php";
|
include "config/config.php";
|
||||||
|
include "includes/error_handler.php";
|
||||||
if(!isset($_SESSION))
|
include "config/config_db.php";
|
||||||
session_start();
|
|
||||||
|
if (!isset ($_SESSION))
|
||||||
include "../../camp2011/includes/secure.php";
|
session_start();
|
||||||
|
|
||||||
// Parameter check
|
include "includes/secure.php";
|
||||||
if(!isset($_GET["UID"]))
|
|
||||||
$_GET["UID"] = "-1";
|
// Parameter check
|
||||||
|
if (!isset ($_GET["UID"]))
|
||||||
$SQL = "SELECT * FROM `UserPicture` WHERE `UID`='" . $_GET["UID"] . "'";
|
$_GET["UID"] = "-1";
|
||||||
$res = mysql_query($SQL, $con);
|
|
||||||
|
$SQL = "SELECT * FROM `UserPicture` WHERE `UID`='" . $_GET["UID"] . "'";
|
||||||
if(mysql_num_rows($res) == 1) {
|
$res = mysql_query($SQL, $con);
|
||||||
// genuegend rechte
|
|
||||||
if(!isset($_SESSION['UID']) || $_SESSION['UID'] == -1) {
|
if (mysql_num_rows($res) == 1) {
|
||||||
header("HTTP/1.0 403 Forbidden");
|
// genuegend rechte
|
||||||
die("403 Forbidden");
|
if (!isset ($_SESSION['UID']) || $_SESSION['UID'] == -1) {
|
||||||
}
|
header("HTTP/1.0 403 Forbidden");
|
||||||
|
die("403 Forbidden");
|
||||||
// ist das bild sichtbar?
|
}
|
||||||
if((mysql_result($res, 0, "show") == "N") AND ($_SESSION['UID']!=$_GET["UID"]) AND ($_SESSION['CVS'][ "admin/UserPicture.php" ] == "N")) {
|
|
||||||
$SQL = "SELECT * FROM `UserPicture` WHERE `UID`='-1'";
|
// ist das bild sichtbar?
|
||||||
$res = mysql_query($SQL, $con);
|
if ((mysql_result($res, 0, "show") == "N") AND ($_SESSION['UID'] != $_GET["UID"]) AND ($_SESSION['CVS']["admin/UserPicture.php"] == "N")) {
|
||||||
|
$SQL = "SELECT * FROM `UserPicture` WHERE `UID`='-1'";
|
||||||
if(mysql_num_rows($res) != 1) {
|
$res = mysql_query($SQL, $con);
|
||||||
header("HTTP/1.0 404 Not Found");
|
|
||||||
die("404 Not Found");
|
if (mysql_num_rows($res) != 1) {
|
||||||
}
|
header("HTTP/1.0 404 Not Found");
|
||||||
}
|
die("404 Not Found");
|
||||||
|
}
|
||||||
// bild aus db auslesen
|
}
|
||||||
$bild = mysql_result($res, 0, "Bild");
|
|
||||||
|
// bild aus db auslesen
|
||||||
// ausgabe bild
|
$bild = mysql_result($res, 0, "Bild");
|
||||||
header("Accept-Ranges: bytes");
|
|
||||||
header("Content-Length: " . strlen($bild));
|
// ausgabe bild
|
||||||
header("Content-type: " . mysql_result($res, 0, "ContentType"));
|
header("Accept-Ranges: bytes");
|
||||||
header("Cache-control: public");
|
header("Content-Length: " . strlen($bild));
|
||||||
header("Cache-request-directive: min-fresh = 120");
|
header("Content-type: " . mysql_result($res, 0, "ContentType"));
|
||||||
header("Cache-request-directive: max-age = 360");
|
header("Cache-control: public");
|
||||||
echo $bild;
|
header("Cache-request-directive: min-fresh = 120");
|
||||||
} else {
|
header("Cache-request-directive: max-age = 360");
|
||||||
header("HTTP/1.0 404 Not Found");
|
echo $bild;
|
||||||
die( "404 Not Found");
|
} else {
|
||||||
}
|
header("HTTP/1.0 404 Not Found");
|
||||||
|
die("404 Not Found");
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$title = "Index";
|
require_once ('bootstrap.php');
|
||||||
$header = "Lageplan";
|
|
||||||
include "../../camp2011/includes/header.php";
|
|
||||||
|
|
||||||
echo "<p>" . Get_Text("lageplan_text1") . "</p>";
|
$title = "Index";
|
||||||
echo "<p><img src=\"./pic/lageplan/lageplan.jpg\" alt=\"\" />";
|
$header = "Lageplan";
|
||||||
|
include "includes/header.php";
|
||||||
|
|
||||||
include "../../camp2011/includes/footer.php";
|
echo "<p>" . Get_Text("lageplan_text1") . "</p>";
|
||||||
|
echo "<p><img src=\"./pic/lageplan/lageplan.jpg\" alt=\"\" />";
|
||||||
|
|
||||||
|
include "includes/footer.php";
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue