Inital commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Fotos:
|
||||
Dateinamen = Zeitpunkt der Aufnahme
|
||||
Lange Seite 750px
|
||||
Metadaten entfernt
|
||||
Qualität 85
|
||||
|
||||
Beispiel: Japanabend - 2005-08-13 22-05-27.jpg
|
||||
Original, 2272x1704, mit Exif-Daten: 813.49 kB
|
||||
Verkleinert, mit Metadaten, Qualität 100: 337.64 kB
|
||||
Verkleinert, ohne Metadaten, Qualität 100: 303.57 kB
|
||||
Verkleinert, ohne Metadaten, Qualität 85: 71.57 kB
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
- RSS Feed für Seitenupdates
|
||||
|
||||
|
||||
output_add_rewrite_var('var', 'value');
|
||||
@@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>tilman.de - Uni allgemein</title>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/stylesheet.css" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php include $_SERVER["DOCUMENT_ROOT"].'/scripts.php'; ?>
|
||||
|
||||
<div id="pagetitle">
|
||||
<div class="headline">
|
||||
<a href="/index.html">tilman.de</a>
|
||||
<span class="breadcrumbs"><?php echo getBreadcrumbs($_SERVER["SCRIPT_FILENAME"], "Allgemein"); ?></span>
|
||||
</div>
|
||||
<div style="margin: 8px; padding: 0ex; border-top: 1px solid #AA0000;"></div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>
|
||||
Ich studiere seit dem Wintersemester 2001/02 an der <a href="http://www.fu-berlin.de">Freien Universität Berlin</a> <a href="http://www.inf.fu-berlin.de">Informatik</a> auf Diplom mit Nebenfach <a href="http://www.kommwiss.fu-berlin.de">Publizistik und Kommunikationswissenschaft</a>.
|
||||
</p>
|
||||
|
||||
<h2>Arbeiten, Paper, Infos:</h2>
|
||||
<p>
|
||||
<a href="Wikipedia.pdf">Wikipedia: Erfassung von komplexen und kontroversen Sachverhalten in kollaborativen Hypertextumgebungen</a> <span class="smalltext">(Ausarbeitung im Rahmen des Seminars "<a href="http://www.kommwiss.fu-berlin.de/604.html">Online-Dienste</a>")</span>
|
||||
</p>
|
||||
<p>
|
||||
<a href="Eclipse3.pdf">Architektur und Konzepte von Eclipse 3</a> <span class="smalltext">(Ausarbeitung im Rahmen des Seminars "<a href="http://www.inf.fu-berlin.de/lehre/WS04/kbse/">Komponentenbasierte Softwareentwicklung</a>")</span>
|
||||
</p>
|
||||
<p>
|
||||
<a href="PairProgramming.pdf">Pair Programming</a> <span class="smalltext">(Ausarbeitung im Rahmen des Seminars "<a href="http://projects.mi.fu-berlin.de/w/bin/view/SE/SeminarAgileProzesse2004">Agile Softwareprozesse</a>")</span>
|
||||
</p>
|
||||
|
||||
<p style="margin-top: 2em;">
|
||||
Ansonsten liegt manchmal auch was in <a href="http://www.inf.fu-berlin.de/~walther">meinem Home-Verzeichnis</a> auf dem Uni-Server.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="bottomline"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>tilman.de</title>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div style="position: absolute; top: 10px; right: 10px;">
|
||||
<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" style="border: 0px;" /></a>
|
||||
</div>
|
||||
|
||||
<div id="pagetitle">
|
||||
<h1 style="margin-left: 8px; font-weight: normal">tilman.de</h1>
|
||||
<div style="margin: 8px; padding: 2ex; border-top: 1px solid #AA0000;"></div>
|
||||
</div>
|
||||
|
||||
<div id="topics">
|
||||
|
||||
<div class="topicbox">
|
||||
<h2><a href="tilman.html">Tilman is the name</a></h2>
|
||||
<h2><a href="verweise.html">Auch im Netz</a></h2>
|
||||
<div style="font-size: 70%; margin-top: 12px; margin-bottom: 3px;">
|
||||
Hast du ein Schlagwort von mir bekommen?
|
||||
Hiermit geht's direkt auf die entsprechende Seite:
|
||||
</div>
|
||||
<div class="search">
|
||||
<form method="post" action="suche.html">
|
||||
<input type="text" size="12" class="search" id="search" value="Schlagwort">
|
||||
<input type="submit" value="Los" name="submitSearch" class="search">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topicbox">
|
||||
<h2>Uni</h2>
|
||||
<p>
|
||||
<a href="uni/aktuell/index.html">Aktuelles Semester</a><br />
|
||||
<a href="uni/archiv/index.html">Vergangene Semester</a><br />
|
||||
<a href="uni/allgemein/index.html">Allgemeines</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="topicbox">
|
||||
<h2><a href="programme.html">Programme</a></h2>
|
||||
<h2><a href="projekte.html">Projekte</a></h2>
|
||||
<h2><a href="tools.html">Online-Tools</a></h2>
|
||||
</div>
|
||||
|
||||
<div class="topicbox" style="display: non;">
|
||||
<img src="lock.gif" alt="gesichert" style="float: right" />
|
||||
<h2>Fotos & Persönliches</h2>
|
||||
<p>
|
||||
<a href="fotos/pottenstein.html">Pottenstein</a><br />
|
||||
<a href="fotos/musical.html">Musical</a><br />
|
||||
<a href="fotos/israel.html">Israel</a><br />
|
||||
<a href="fotos/fotos.html">Sonstiges</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="topicbox" style="display: non;">
|
||||
<img src="lock.gif" alt="gesichert" style="float: right" />
|
||||
<h2><a href="bookmarks.html">Bookmarks</a></h2>
|
||||
<img src="lock.gif" alt="gesichert" style="float: right" />
|
||||
<h2><a href="safe.html">Data Safe</a></h2>
|
||||
</div>
|
||||
|
||||
<div class="topicbox">
|
||||
<h2><a href="about.html">Über diese Seite</a></h2>
|
||||
<h2><a href="kontakt.html">Kontakt</a></h2>
|
||||
<h2><a href="impressum.html">Impressum</a></h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="clear: both; margin: 0px;"> </div>
|
||||
<div style="clear: both; margin: 0px; border-top: 1px solid #AA0000;"></div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
DirectoryIndex index.html index.php
|
||||
#AddType application/x-httpd-php5 .html
|
||||
#Alias /siarp /home/strato/www/ti/www.tilman.de/htdocs/info/
|
||||
|
||||
# aus .htaccess_verschiebung
|
||||
#RedirectMatch 302 ^/~(.*) http://page.inf.fu-berlin.de/~$1
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
// TEMP
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/functions.php');
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/security.php');
|
||||
|
||||
if (isset($_GET['bildnr'])) {
|
||||
$bildnr = $_GET['bildnr'];
|
||||
}
|
||||
else {
|
||||
$bildnr = 1;
|
||||
}
|
||||
|
||||
// if (isset($_SESSION['openfolders']) & is_array($_SESSION['openfolders'])) {
|
||||
// $_SESSION['openfolders'][] =
|
||||
// }
|
||||
|
||||
$bilderordner = getHomePath(dirname($_SERVER['SCRIPT_FILENAME'])).SEPARATOR.'bilder';
|
||||
|
||||
// falls Session läuft, Bilderverzeichnis zu
|
||||
// temp. erlaubten Verzeichnissen hinzufügen
|
||||
if (sessionRunning()) {
|
||||
if (isset($_SESSION['openfolders']) & is_array($_SESSION['openfolders'])) {
|
||||
if (!in_array($bilderordner, $_SESSION['openfolders'])) {
|
||||
$_SESSION['openfolders'][] = $bilderordner;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$_SESSION['openfolders'] = array($bilderordner);
|
||||
}
|
||||
}
|
||||
|
||||
echo 'Bild:<img src="'.itemURL('bilder/2005-08-13 22-05-27.jpg').'" />';
|
||||
?>
|
||||
@@ -0,0 +1,508 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!--
|
||||
TODO:
|
||||
- Löschbestätigung mit Passwort als 2. Schritt
|
||||
- Ursprünglichen Dateinamen in der Liste zeigen (erfordert neue Tabellenspalte)
|
||||
- Refactoring
|
||||
-->
|
||||
|
||||
<?php
|
||||
|
||||
// Das ist das Passwort zum Löschen von Dateien
|
||||
$passwort = 'rep ist toll';
|
||||
|
||||
// Das ist die Dateiliste. Bitte keine Änderungen vornehmen!
|
||||
/* Filelist:
|
||||
aTest.txt//Beschreibung1
|
||||
bTest.txt//Beschreibung2
|
||||
cTest.txt//Beschreibung3
|
||||
:Filelist */
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body { font-family: "Trebuchet MS", Georgia, serif; }
|
||||
a { color:#0000CC; }
|
||||
table { border-collapse: collapse; }
|
||||
th { text-align: left; background-color:#EEEEEE; font-size: 80%; }
|
||||
|
||||
.menu { font-size: 80%; }
|
||||
.smallsize { font-size: 80%; }
|
||||
-->
|
||||
</style>
|
||||
|
||||
<title>Öffentliches Recht</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php // Hilfsfunktionen
|
||||
|
||||
$totalFiles = 0;
|
||||
$totalFileSize = 0;
|
||||
|
||||
function readFileList() {
|
||||
|
||||
global $totalFiles;
|
||||
global $totalFileSize;
|
||||
$lines = file('index.php');
|
||||
|
||||
if ($lines) {
|
||||
|
||||
$i = 0;
|
||||
|
||||
while ((!strstr(substr($lines[$i],0,14), "* Filelist:")) and ($i <= count($lines))) // Lies bis zur Dateiliste
|
||||
{
|
||||
$i++;
|
||||
}
|
||||
|
||||
if (strstr(substr($lines[$i],0,14), "* Filelist:")) {
|
||||
|
||||
// Dateiliste aus index.php lesen
|
||||
$i++;
|
||||
$j = 0;
|
||||
|
||||
while (!strstr(substr($lines[$i+$j],0,14), ":Filelist *")) {
|
||||
|
||||
$liste[$j] = explode("//", $lines[$i+$j]);
|
||||
$liste[$j][1] = preg_replace("/\r|\n/s", "", $liste[$j][1]); // Zeilenumbruch hinter Beschreibung entfernen
|
||||
|
||||
/*
|
||||
$descPos = strpos($lines[$i+$j], '//');
|
||||
$liste[$j][0] = substr($lines[$i+$j], 0, $descPos);
|
||||
|
||||
// Zeilenumbruch hinter Beschreibung entfernen
|
||||
$liste[$j][1] = preg_replace("/\r|\n/s", "", substr($lines[$i+$j], $descPos+2));
|
||||
*/
|
||||
|
||||
$liste[$j][2] = filesize($liste[$j][0]);
|
||||
|
||||
$totalFiles++;
|
||||
$totalFileSize += $liste[$j][2];
|
||||
|
||||
$j++;
|
||||
}
|
||||
return $liste;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getSizeAsString($size) {
|
||||
if ($size < 2) {
|
||||
return $size." Byte";
|
||||
}
|
||||
else if ($size < 1024) {
|
||||
return $size." Bytes";
|
||||
}
|
||||
else if ($size < 1048576) {
|
||||
return round(($size/1024), 2)." KB";
|
||||
}
|
||||
else {
|
||||
return round(($size/1048576), 2)." MB";
|
||||
}
|
||||
}
|
||||
|
||||
function convertFilename($str) {
|
||||
$out = $str;
|
||||
$ersetzungen[chr(167)] = "P."; // Spezielle Juristen-Ersetzung: Paragraphenzeichen
|
||||
$ersetzungen[chr(196)] = "Ae";
|
||||
$ersetzungen[chr(214)] = "Oe";
|
||||
$ersetzungen[chr(220)] = "Ue";
|
||||
$ersetzungen[chr(223)] = "ss";
|
||||
$ersetzungen[chr(228)] = "ae";
|
||||
$ersetzungen[chr(246)] = "oe";
|
||||
$ersetzungen[chr(252)] = "ue";
|
||||
$out = strtr($out,$ersetzungen);
|
||||
$out = eregi_replace("[^[:alnum:]_\.-]","_",$out); // TODO: mit preg_replace() ersetzen
|
||||
return $out;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
//-- Hinzufügen ------------------------------------------------------------------------------------
|
||||
|
||||
if ($_GET['action'] == 'add') {
|
||||
|
||||
echo "<p class=\"menu\"><a href=\"index.php\">zurück zur Liste</a></p>\n";
|
||||
|
||||
// massive Login-Versuche abblocken
|
||||
sleep(1);
|
||||
|
||||
// Passwort checken
|
||||
if ($_POST['passwort'] == $passwort) {
|
||||
|
||||
$already_exists = file_exists($_FILES['datei']['name']);
|
||||
|
||||
if (($already_exists) and (!$overwrite == "on")) {
|
||||
echo "<p><b>Fehler:</b> Datei mit Namen <i>" . htmlspecialchars($_FILES['datei']['name']) . "</i> ist bereits vorhanden. (Überschreiben abgeschaltet.)</p>\n";
|
||||
}
|
||||
else {
|
||||
|
||||
$filename = convertFilename($_FILES['datei']['name']);
|
||||
|
||||
if (move_uploaded_file($_FILES['datei']['tmp_name'], $filename)) {
|
||||
|
||||
echo "<p>Die Datei <i>" . htmlspecialchars($_FILES['datei']['name']) . "</i> wurde übertragen.</p>\n";
|
||||
|
||||
$liste = readFileList();
|
||||
|
||||
if ($liste !== false) {
|
||||
|
||||
if ($liste !== NULL) {
|
||||
foreach($liste as $v) $s[] = $v[0];
|
||||
$idx = array_search($filename, $s);
|
||||
}
|
||||
|
||||
// FUNKY!
|
||||
if (gettype($idx) == 'integer') { // Dateiname bereits in Liste enthalten
|
||||
|
||||
$lines = file('index.php');
|
||||
|
||||
if ($lines) {
|
||||
|
||||
$fp = fopen("index.php","w+"); // Index-Datei zum Schreiben öffnen
|
||||
$i = 0;
|
||||
|
||||
while (!strstr(substr($lines[$i],0,14), "* Filelist:")) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
while (!strstr(substr($lines[$i], 0, strpos($lines[$i], '//')), $filename)) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
fputs($fp, $filename."//".$_POST['beschreibung']."\n");
|
||||
|
||||
while ($i < count($lines)) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
fclose($fp);
|
||||
|
||||
echo "<p>Tabelleneintrag wurde aktualisiert.</p>\n";
|
||||
}
|
||||
else {
|
||||
echo "<p><b>Fehler:</b> <i>index.php</i> wurde nicht gefunden!</p>\n";
|
||||
}
|
||||
}
|
||||
else { // Dateiname noch nicht in Liste enthalten
|
||||
|
||||
$lines = file('index.php');
|
||||
|
||||
if ($lines) {
|
||||
|
||||
$fp = fopen("index.php","w+"); // Index-Datei zum Schreiben öffnen
|
||||
$i = 0;
|
||||
|
||||
while (!strstr(substr($lines[$i],0,14), "* Filelist:")) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
while (!strstr($lines[$i], "*/")) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
fputs($fp, $filename."//".$_POST['beschreibung']."\n");
|
||||
|
||||
while ($i < count($lines)) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
fclose($fp);
|
||||
echo "<p>Tabelleneintrag wurde erzeugt.</p>\n";
|
||||
}
|
||||
else {
|
||||
echo "<p><b>Fehler:</b> <i>index.php</i> wurde nicht gefunden!</p>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "<p><b>Fehler:</b> Liste mit Dateien konnte nicht gefunden werden.</p>\n";
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
echo "<p><b>Fehler:</b> Datei konnte nicht übertragen werden!</p>\n";
|
||||
echo "<p>\n";
|
||||
print_r($_FILES);
|
||||
echo "\n</p>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else { // Passwort falsch
|
||||
echo "<p><b>Fehler:</b> Falsches Passwort!</p>\n";
|
||||
}
|
||||
}
|
||||
|
||||
//-- Passwortabfrage vor Löschen -------------------------------------------------------------------
|
||||
|
||||
else if ($_GET['action'] == 'deleteCheck') {
|
||||
|
||||
echo "<p class=\"menu\"><a href=\"index.php\">zurück zur Liste</a></p>\n";
|
||||
|
||||
if (isset($_REQUEST['delButton'])) {
|
||||
|
||||
echo "<div style=\"margin:2em\">\n";
|
||||
echo " <b>Auswahl löschen:</b><br>\n";
|
||||
echo " <form action=\"index.php?action=delete\" method=\"post\">\n";
|
||||
echo " <table>\n";
|
||||
|
||||
reset($_REQUEST['delButton']);
|
||||
foreach ($_REQUEST['delButton'] as $idx => $filename) {
|
||||
echo " <tr>\n";
|
||||
echo " <td>".$filename."</td>\n";
|
||||
echo " <td align=\"right\"><input type=\"checkbox\" name=\"delButton[]\" value=\"".$filename."\" checked /></td>\n";
|
||||
echo " </tr>\n";
|
||||
}
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td colspan=\"2\">\n";
|
||||
echo " <br><br>\n";
|
||||
echo " <span class=\"menu\">Passwort:</span>\n";
|
||||
echo " <input name=\"passwort\" type=\"password\" size=\"10\" /><br>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td class=\"menu\" colspan=\"2\" align=\"right\">\n";
|
||||
echo " <input type=\"submit\" value=\"";
|
||||
if (count($_REQUEST['delButton']) > 1) {
|
||||
echo "Dateien löschen\" />\n";
|
||||
}
|
||||
else {
|
||||
echo "Datei löschen\" />\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
echo " </form>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
} else {
|
||||
echo "<p><b>Fehler:</b> Keine Datei ausgewählt.</p>\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//-- Löschen ---------------------------------------------------------------------------------------
|
||||
|
||||
else if ($_GET['action'] == 'delete') {
|
||||
|
||||
echo "<p class=\"menu\"><a href=\"index.php\">zurück zur Liste</a></p>\n";
|
||||
|
||||
// massive Login-Versuche abblocken
|
||||
sleep(1);
|
||||
|
||||
// Passwort checken
|
||||
if ($_POST['passwort'] == $passwort) {
|
||||
|
||||
if (isset($_REQUEST['delButton'])) {
|
||||
|
||||
reset($_REQUEST['delButton']);
|
||||
|
||||
foreach ($_REQUEST['delButton'] as $idx => $filename) {
|
||||
|
||||
echo "<p>Lösche <i>$filename</i>...</p>\n";
|
||||
unlink($filename);
|
||||
|
||||
$lines = file('index.php');
|
||||
|
||||
if ($lines) {
|
||||
|
||||
$fp = fopen("index.php","w+"); // Index-Datei zum Schreiben öffnen
|
||||
$i = 0;
|
||||
|
||||
while (!strstr(substr($lines[$i],0,14), "* Filelist:")) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
while (!strstr(substr($lines[$i], 0, strpos($lines[$i], '//')), $filename)) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
$i++;
|
||||
|
||||
while ($i < count($lines)) {
|
||||
fputs($fp, $lines[$i]);
|
||||
$i++;
|
||||
}
|
||||
|
||||
fclose($fp);
|
||||
echo "<p>Tabelleneintrag wurde entfernt.</p>\n";
|
||||
}
|
||||
else {
|
||||
echo "<p><b>Fehler:</b> <i>index.php</i> wurde nicht gefunden!</p>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "<p><b>Fehler:</b> Keine Dateien ausgewählt.</p>\n";
|
||||
}
|
||||
}
|
||||
else { // Passwort falsch
|
||||
echo "<p><b>Fehler:</b> Falsches Passwort!</p>\n";
|
||||
}
|
||||
}
|
||||
|
||||
//-- Anzeigen --------------------------------------------------------------------------------------
|
||||
|
||||
else {
|
||||
?>
|
||||
|
||||
<p class="menu"><a href="../index.html">zurück zur Startseite</a></p>
|
||||
|
||||
<div align="center">
|
||||
<form action="index.php?action=deleteCheck" method="post">
|
||||
|
||||
<table cellspacing="5" cellpadding="5" border="1">
|
||||
<tr>
|
||||
<th><a href="index.php?action=<?php if (($_GET['action'] == 'ascByName') || ($_GET['action'] == '')) echo "descByName"; else echo 'ascByName';?>">Datei</a></th>
|
||||
<th><a href="index.php?action=<?php if ($_GET['action'] == 'ascByDescription') echo "descByDescription"; else echo 'ascByDescription';?>">Beschreibung</a></th>
|
||||
<th><a href="index.php?action=<?php if ($_GET['action'] == 'ascBySize') echo "descBySize"; else echo 'ascBySize';?>">Größe</a></th>
|
||||
<th>Auswahl</th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
$liste = readFileList();
|
||||
|
||||
if ($liste !== false) {
|
||||
|
||||
if (isset($liste)) {
|
||||
|
||||
// Liste sortieren
|
||||
if ($_GET['action'] == 'ascByDescription') {
|
||||
foreach($liste as $v) $s[] = $v[1];
|
||||
array_multisort($s, SORT_ASC, $liste);
|
||||
}
|
||||
else if ($_GET['action'] == 'descByDescription') {
|
||||
foreach($liste as $v) $s[] = $v[1];
|
||||
array_multisort($s, SORT_DESC, $liste);
|
||||
}
|
||||
else if ($_GET['action'] == 'ascBySize') {
|
||||
foreach($liste as $v) $s[] = $v[2];
|
||||
array_multisort($s, SORT_ASC, $liste);
|
||||
}
|
||||
else if ($_GET['action'] == 'descBySize') {
|
||||
foreach($liste as $v) $s[] = $v[2];
|
||||
array_multisort($s, SORT_DESC, $liste);
|
||||
}
|
||||
else if ($_GET['action'] == 'descByName') {
|
||||
foreach($liste as $v) $s[] = $v[0];
|
||||
array_multisort($s, SORT_DESC, $liste);
|
||||
}
|
||||
else {
|
||||
sort($liste);
|
||||
}
|
||||
|
||||
// Liste ausgeben
|
||||
foreach ($liste as $eintrag) {
|
||||
echo " <tr>\n";
|
||||
echo " <td><a href=\"". $eintrag[0] ."\">". $eintrag[0] ."</a></td>\n";
|
||||
echo " <td>".$eintrag[1]."</td>\n";
|
||||
echo " <td align=\"right\"><span class=\"smallsize\">".getSizeAsString($eintrag[2])."</span></td>\n";
|
||||
echo " <td align=\"center\"><input type=\"checkbox\" name=\"delButton[]\" value=\"".$eintrag[0]."\" /></td>\n";
|
||||
echo " </tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
echo "<p><b>Fehler:</b> Liste mit Dateien konnte nicht gefunden werden.</p>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="menu" colspan="4" align="right">
|
||||
<input type="submit" value="Ausgewählte Dateien löschen" style="font-size:105%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" align="center" class="smallsize">
|
||||
<?php echo $totalFiles; ?> Dateien, <?php echo getSizeAsString($totalFileSize); ?><br>
|
||||
<span style="font-size: 80%">Lister v2.9j</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
<table cellspacing="5" cellpadding="5" border="1">
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<div style="padding:8px">
|
||||
<div class="menu">Datei hinzufügen:</div>
|
||||
<form action="index.php?action=add" method="post" enctype="multipart/form-data">
|
||||
<table border="0" cellpadding="2" class="menu">
|
||||
<tr>
|
||||
<td>
|
||||
Datei:
|
||||
</td>
|
||||
<td>
|
||||
<input name="datei" type="file" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Beschreibung:
|
||||
</td>
|
||||
<td>
|
||||
<input name="beschreibung" type="text" size="30" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="checkbox" name="overwrite" /><span style="font-size:small">bereits vorhandene überschreiben</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Passwort:
|
||||
</td>
|
||||
<td>
|
||||
<input name="passwort" type="password" size="10" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right" class="menu">
|
||||
<input type="submit" value="Datei hochladen" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div style="position: absolute; top: 8px; right: 5px;">
|
||||
<a href="http://validator.w3.org/check?uri=referer"><img border="0" src="http://www.w3.org/Icons/valid-html40" alt="Valid HTML 4.0!" height="31" width="88"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 989 B |
@@ -0,0 +1,6 @@
|
||||
- Charles überarbeiten
|
||||
- ALP-Wiki von Puxus
|
||||
- Musical
|
||||
|
||||
----------
|
||||
alte ToDo (vom Server) importieren!
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
* Created on 03.05.2005
|
||||
*/
|
||||
|
||||
define("SEPARATOR", "/");
|
||||
define("UP_DIR", "../");
|
||||
|
||||
function getBreadcrumbs($filename, $pagetitle) {
|
||||
|
||||
$breadcrumbs = '';
|
||||
$dirStr = dirname(substr($filename, strlen($_SERVER["DOCUMENT_ROOT"])));
|
||||
$nodes = explode(SEPARATOR, $dirStr);
|
||||
$len = count($nodes);
|
||||
|
||||
for ($i = 1; $i < $len; $i++) {
|
||||
|
||||
$breadcrumbs = $breadcrumbs."<span class=\"bcSeparator\"> » </span><a href=\"";
|
||||
|
||||
if (($len - ($i+1)) > 0) {
|
||||
for ($j = 0; $j < ($len - ($i+1)); $j++) {
|
||||
$breadcrumbs = $breadcrumbs.UP_DIR;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$breadcrumbs = $breadcrumbs."./";
|
||||
}
|
||||
|
||||
$breadcrumbs = $breadcrumbs."\">".ucfirst($nodes[$i])."</a>";
|
||||
}
|
||||
|
||||
if (!$pagetitle == "") {
|
||||
/*$breadcrumbs = $breadcrumbs."<span class=\"bcSeparator\"> » </span><a href=\"";
|
||||
$breadcrumbs = $breadcrumbs.$dirStr.SEPARATOR.basename($filename);
|
||||
$breadcrumbs = $breadcrumbs."\">".$pagetitle."</a>";*/
|
||||
$breadcrumbs = $breadcrumbs."<span class=\"bcSeparator\"> » </span><span class=\"bcTitle\">".$pagetitle."</span>";
|
||||
}
|
||||
|
||||
return $breadcrumbs;
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
body { background-color:#FFFFFF; color:#000000; font-family: Georgia, Arial, sans-serif; }
|
||||
|
||||
h2 { font-size: 115% }
|
||||
h3 { font-size: 100% }
|
||||
|
||||
a:link { color:#000000; text-decoration: none; } /* noch nicht besuchte Ziele */
|
||||
a:visited { color:#000000; text-decoration: none; } /* besuchte Ziele */
|
||||
a:hover { text-decoration: underline; } /* Verweise bei "MouseOver" */
|
||||
/* a:active { CSS-Eigenschaft:Wert; ... } /* Angeklickte Verweise */
|
||||
/* a:focus { CSS-Eigenschaft:Wert; ... } /* Verweise, die Fokus erhalten */
|
||||
|
||||
.topicbox { float:left; background-color:#CCCCCC; margin: 1%; padding: 1ex; height: 18ex; width: 32ex; }
|
||||
/* .topicbox:hover { background-color:#A6A6A6; } */
|
||||
.topicbox h2 { font-size: 115%; font-weight: normal; margin: 0px; margin-bottom: 1ex; }
|
||||
.topicbox p { font-size: 85%; font-weight: normal; margin: 0px; margin-bottom: 1ex; margin-left: 2ex; }
|
||||
|
||||
.search { font-size: 75%; }
|
||||
|
||||
#pagetitle { color:#AA0000; }
|
||||
#pagetitle h1 { margin-bottom: 0ex; }
|
||||
@@ -0,0 +1,81 @@
|
||||
|
||||
<?php /*header("Location: http://www.tykes.de/wiki/");*/ ?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang=
|
||||
"en_US">
|
||||
<!--
|
||||
* Created on 01.05.2005
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
-->
|
||||
<head>
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
Testpage
|
||||
|
||||
<?php
|
||||
echo 'Hallo Welt!';
|
||||
?>
|
||||
|
||||
<!-- <div style="position: absolute; top: 10px; right: 10px;">
|
||||
<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" style="border: 0px;" /></a>
|
||||
</div> -->
|
||||
|
||||
|
||||
<p>Impressum gemäß §6 TDG und §10 MDStV:</p>
|
||||
|
||||
<p>Tilman Walther<br />
|
||||
Lechtaler Weg 10<br />
|
||||
12209 Berlin</p>
|
||||
|
||||
<p>tilman@tilman.de</p>
|
||||
|
||||
<p><!-- <div class="topicbox">
|
||||
<h2><a href="tilman.html">Tilman is the name</a></h2>
|
||||
<h2><a href="verweise.html">Auch im Netz</a></h2>
|
||||
<div style="font-size: 70%; margin-top: 12px; margin-bottom: 3px;">
|
||||
Hast du ein Schlagwort von mir bekommen?
|
||||
Hiermit geht's direkt auf die entsprechende Seite:
|
||||
</div>
|
||||
<div class="search">
|
||||
<form method="post" action="suche.html">
|
||||
<input type="text" size="12" class="search" id="search" value="Schlagwort">
|
||||
<input type="submit" value="Los" name="submitSearch" class="search">
|
||||
</form>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- <div class="topicbox">
|
||||
<h2><a href="programme.html">Programme</a></h2>
|
||||
<h2><a href="projekte.html">Projekte</a></h2>
|
||||
<h2><a href="tools.html">Online-Tools</a></h2>
|
||||
</div>
|
||||
|
||||
<div class="topicbox" style="display: non;">
|
||||
<img src="lock.gif" alt="gesichert" style="float: right" />
|
||||
<h2>Fotos & Persönliches</h2>
|
||||
<p>
|
||||
<a href="fotos/pottenstein.html">Pottenstein</a><br />
|
||||
<a href="fotos/musical.html">Musical</a><br />
|
||||
<a href="fotos/israel.html">Israel</a><br />
|
||||
<a href="fotos/fotos.html">Sonstiges</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="topicbox" style="display: non;">
|
||||
<img src="lock.gif" alt="gesichert" style="float: right" />
|
||||
<h2><a href="bookmarks.html">Bookmarks</a></h2>
|
||||
<img src="lock.gif" alt="gesichert" style="float: right" />
|
||||
<h2><a href="safe.html">Data Safe</a></h2>
|
||||
</div> -->
|
||||
|
||||
<?php phpinfo() ?>
|
||||
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
RECENT:
|
||||
- Sessions: Timeout programmieren oder doch PHP-Sessions benutzen
|
||||
- Fotos: Fahrradtour verlinken
|
||||
- Logout: Anmelden -> Abmelden
|
||||
- login soll (optional) zum referer weiterleiten
|
||||
- Sessions: Optional auch über Cookies (Achtung: login und imageviewer hängen session_id direkt an)
|
||||
- Keywords und Metatags einfügen
|
||||
- Paper mit Links und so einstellen
|
||||
- Israel-Fotos in alte Israel-Webseite einfügen
|
||||
- Sicherheit checken
|
||||
|
||||
INTEGRIEREN:
|
||||
- Lister.php
|
||||
- Alp-Wiki (Refactor: # -> .)
|
||||
- BackupDB
|
||||
- EXIF
|
||||
- Charles
|
||||
|
||||
DATEIOPERATIONEN
|
||||
- Downloadfunktionen: http://www.php-faq.de/q/q-datei-download.html
|
||||
- Upload-Platz, streng gesichert
|
||||
|
||||
|
||||
BÜCHER:
|
||||
Hanser S. 231
|
||||
Moehrke S. 449 (9.6.2)
|
||||
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
$access_restricted = false;
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/startup.php');
|
||||
|
||||
$pagetitle = 'Adressen';
|
||||
$breadcrumb = 'Adressen';
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/pageheader.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
mysql_connect('localhost', 'dbu1022769', 'fuB0gar7') or die ('Database error: Unable to connect to database.');
|
||||
mysql_select_db('db1022769-php') or die ('Database error: Unable to select database.');
|
||||
|
||||
if (isset($_GET['Vorname'])) {
|
||||
$insert = mysql_query('INSERT INTO adressen (Vorname,Nachname,Anschrift,PLZ,Ort,Telefon,Tel_alt,Tel_Mobil,eMail,eMail_alt,Geburtstag,Gruppe,Bemerkung) VALUES ("'.$_GET['Vorname'].'","'.$_GET['Nachname'].'","'.$_GET['Anschrift'].'","'.$_GET['PLZ'].'","'.$_GET['Ort'].'","'.$_GET['Telefon'].'","'.$_GET['Tel_alt'].'","'.$_GET['Tel_Mobil'].'","'.$_GET['eMail'].'","'.$_GET['eMail_alt'].'","'.$_GET['Geburtstag'].'","'.$_GET['Gruppe'].'","'.$_GET['Bemerkung'].'")');
|
||||
if (!$insert) {
|
||||
echo '<p>Insert failed: '.mysql_error().'</p>';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET['delete'])) {
|
||||
$delete = mysql_query('DELETE FROM adressen WHERE id='.$_GET['delete']);
|
||||
if (!$delete) {
|
||||
echo '<p>Could not delete '.$_GET['delete'].': '.mysql_error().'</p>';
|
||||
}
|
||||
}
|
||||
|
||||
$orderby = 'id';
|
||||
if (isset($_GET['orderby'])) {
|
||||
$orderby = urldecode($_GET['orderby']);
|
||||
}
|
||||
|
||||
$result = mysql_query('SELECT * FROM adressen ORDER BY "'.$orderby.'" ASC');
|
||||
if (!$result) {
|
||||
die('Database error: Unable to get table (order by: '.$orderby.')');
|
||||
}
|
||||
|
||||
function getSortingLink($row, $title) {
|
||||
return '<a href="'.$_SERVER['PHP_SELF'].'?orderby='.urlencode($row).'">'.$title.'</a>';
|
||||
}
|
||||
?>
|
||||
|
||||
<div style="font-family: Arial, sans-serif; margin-left: 1em;">
|
||||
<table border="1" style="font-size: x-small; border-collapse: collapse;">
|
||||
<tr>
|
||||
<th><?php echo getSortingLink('id', 'ID'); ?></th>
|
||||
<th><?php echo getSortingLink('Vorname', 'Vorname'); ?></th>
|
||||
<th><?php echo getSortingLink('Nachname', 'Nachname'); ?></th>
|
||||
<th><?php echo getSortingLink('Anschrift', 'Anschrift'); ?></th>
|
||||
<th><?php echo getSortingLink('PLZ', 'PLZ'); ?></th>
|
||||
<th><?php echo getSortingLink('Ort', 'Ort'); ?></th>
|
||||
<th><?php echo getSortingLink('Telefon', 'Telefon'); ?></th>
|
||||
<th><?php echo getSortingLink('Tel_alt', 'Tel. alt.'); ?></th>
|
||||
<th><?php echo getSortingLink('Tel_Mobil', 'Mobil'); ?></th>
|
||||
<th><?php echo getSortingLink('eMail', 'E-Mail'); ?></th>
|
||||
<th><?php echo getSortingLink('eMail_alt', 'E-Mail alt.'); ?></th>
|
||||
<th><?php echo getSortingLink('Geburtstag', 'Geburtstag'); ?></th>
|
||||
<th><?php echo getSortingLink('Gruppe', 'Gruppe'); ?></th>
|
||||
<th><?php echo getSortingLink('Bemerkung', 'Bemerkung'); ?></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<?php
|
||||
while ($row = mysql_fetch_array($result)) {
|
||||
echo "\t\t<tr>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['id']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Vorname']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Nachname']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Anschrift']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['PLZ']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Ort']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Telefon']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Tel_alt']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Tel_Mobil']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['eMail']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['eMail_alt']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Geburtstag']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Gruppe']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t".$row['Bemerkung']."\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t<a href=\"".$_SERVER['PHP_SELF']."?edit=".$row['id']."\">edit</a>\t\t\t</td>";
|
||||
echo "\t\t\t<td>\t\t\t\t<a href=\"".$_SERVER['PHP_SELF']."?delete=".$row['id']."\">del</a>\t\t\t</td>";
|
||||
echo "\t\t</tr>";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<div style="margin-top: 1em;">
|
||||
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
|
||||
<table border="1" style="font-size: x-small; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td>Vorname</td>
|
||||
<td>Nachname</td>
|
||||
<td>Anschrift</td>
|
||||
<td>PLZ</td>
|
||||
<td>Ort</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" name="Vorname" size="12" style="font-size: x-small;" /></td>
|
||||
<td><input type="text" name="Nachname" size="12" style="font-size: x-small;" /></td>
|
||||
<td><input type="text" name="Anschrift" size="12" style="font-size: x-small;" /></td>
|
||||
<td><input type="text" name="PLZ" size="12" style="font-size: x-small;" /></td>
|
||||
<td><input type="text" name="Ort" size="12" style="font-size: x-small;" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border="1" style="margin-top: 1ex; font-size: x-small; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td>Tel. privat</td>
|
||||
<td>Tel. geschäftlich</td>
|
||||
<td>Tel. mobil</td>
|
||||
<td>E-Mail privat</td>
|
||||
<td>E-Mail geschäftlich</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" name="Telefon" size="12" style="font-size: x-small;" /></td>
|
||||
<td><input type="text" name="Tel_alt" size="12" style="font-size: x-small;" /></td>
|
||||
<td><input type="text" name="Tel_Mobil" size="12" style="font-size: x-small;" /></td>
|
||||
<td><input type="text" name="eMail" size="12" style="font-size: x-small;" /></td>
|
||||
<td><input type="text" name="eMail_alt" size="12" style="font-size: x-small;" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border="1" style="margin-top: 1ex; font-size: x-small; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td>Geburtstag</td>
|
||||
<td>Gruppe</td>
|
||||
<td>Bemerkung</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" name="Geburtstag" size="12" style="font-size: x-small;" /></td>
|
||||
<td>
|
||||
<select name="Gruppe" style="font-size: x-small;">
|
||||
<option>Familie</option>
|
||||
<option>Beethoven</option>
|
||||
<option>Uni</option>
|
||||
<option>Bekannte</option>
|
||||
<option>Ärzte</option>
|
||||
<option>Bettinas Familie</option>
|
||||
<option>Bettinas Bekannte</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="text" name="Bemerkung" size="44" style="font-size: x-small;" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" value="Hinzufügen" style="font-size: x-small" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/pagefooter.php');
|
||||
?>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/*
|
||||
* getresource.php wird an Stelle geschützter Resourcen in eine Seite
|
||||
* eingebunden. Die Ressourcen liegen dafür in einem geschützten Verzeichnis,
|
||||
* das über den Webserver nicht erreichbar ist.
|
||||
* getresource.php öffnet die geschützte Datei lokal und "reicht sie durch";
|
||||
* auf diese Weise hat der PHP-Code die Kontrolle über die Herausgabe.
|
||||
* Damit getresource.php nicht von außen mit GET-Parametern gefüttert werden
|
||||
* kann, überprüft es bei jedem Aufruf, ob der Nutzer die Berechtigung zum
|
||||
* Öffnen der Datei hat.
|
||||
*
|
||||
* $_GET['item'] enthält den absoluten Pfad zur Resource.
|
||||
* Dieser wird mit security.itemURL() generiert.
|
||||
*/
|
||||
|
||||
@session_start();
|
||||
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/security.php');
|
||||
|
||||
if (isset($_GET['item'])) {
|
||||
$item = $_GET['item'];
|
||||
if (itemAccessible($item)) {
|
||||
$fp = fopen($item, 'r');
|
||||
|
||||
// Content-type ermitteln
|
||||
$imageInfo = getimagesize($item);
|
||||
switch ($imageInfo[2]) {
|
||||
case 1:
|
||||
header('Content-type: image/gif');
|
||||
break;
|
||||
case 2:
|
||||
header('Content-type: image/jpeg');
|
||||
break;
|
||||
case 3:
|
||||
header('Content-type: image/png');
|
||||
break;
|
||||
case 4:
|
||||
header('application/x-shockwave-flash');
|
||||
break;
|
||||
default:
|
||||
header('Content-type: text/plain');
|
||||
}
|
||||
|
||||
fpassthru($fp);
|
||||
fclose($fp);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
?>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
function check_pw($u, $p) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!isset($_SERVER['PHP_AUTH_USER'])
|
||||
or !check_pw($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
echo "Text to send if user hits Cancel button\n";
|
||||
exit;
|
||||
} else {
|
||||
echo "Hello $PHP_AUTH_USER.<P>";
|
||||
echo "You entered $PHP_AUTH_PW as your password.<P>";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
/* $pagetitle = 'tilman.de';
|
||||
$breadcrumb = 'Seite';
|
||||
// $keywords = '';
|
||||
// $description = '';
|
||||
|
||||
include_once($_SERVER["DOCUMENT_ROOT"].'/pageheader.php');
|
||||
include_once($_SERVER["DOCUMENT_ROOT"].'/functions.php');
|
||||
|
||||
$authorized = false;
|
||||
$authorized = isAuthorized($_SERVER["SCRIPT_FILENAME"]);
|
||||
|
||||
if ($authorized) {
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
showUnauthorizedMessage();
|
||||
}
|
||||
|
||||
include_once($_SERVER["DOCUMENT_ROOT"].'/pagefooter.php');
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
@session_start();
|
||||
|
||||
$pagetitle = 'tilman.de';
|
||||
$breadcrumb = 'Seite';
|
||||
// $keywords = '';
|
||||
// $description = '';
|
||||
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/security.php');
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/pageheader.php');
|
||||
|
||||
if (itemAccessible($_SERVER['SCRIPT_FILENAME'])) {
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
Geschütztes Bild: <img src="<?php echo itemURL('siegel.gif'); ?>" />
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
showUnauthorizedMessage();
|
||||
}
|
||||
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/pagefooter.php');
|
||||
?>
|
||||
@@ -0,0 +1 @@
|
||||
Deny from all
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 130 B |
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
$access_restricted = false;
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/startup.php');
|
||||
|
||||
$pagetitle = 'tilman.de';
|
||||
$breadcrumb = 'Seite';
|
||||
// $keywords = '';
|
||||
// $description = '';
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/pageheader.php');
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/pagefooter.php');
|
||||
?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/startup.php');
|
||||
|
||||
$pagetitle = 'Japan-Abend 2005-13-08';
|
||||
$breadcrumb = '';
|
||||
|
||||
$bilderordner = 'bilder';
|
||||
$bilderliste = getDirArray($bilderordner);
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/imageprovider.php');
|
||||
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/pageheader.php');
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
<?php
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/imageviewer.php');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once($_SERVER['DOCUMENT_ROOT'].'/daten/php/pagefooter.php');
|
||||
?>
|
||||
@@ -0,0 +1,569 @@
|
||||
# httpd.conf von XAMPP unter Windows (Bolide02)
|
||||
# editierte Stellen sind markiert mit "tilman"
|
||||
|
||||
#
|
||||
# This is the main Apache HTTP server configuration file. It contains the
|
||||
# configuration directives that give the server its instructions.
|
||||
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
|
||||
# In particular, see
|
||||
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
|
||||
# for a discussion of each configuration directive.
|
||||
#
|
||||
# Do NOT simply read the instructions in here without understanding
|
||||
# what they do. They're here only as hints or reminders. If you are unsure
|
||||
# consult the online docs. You have been warned.
|
||||
#
|
||||
# Configuration and logfile names: If the filenames you specify for many
|
||||
# of the server's control files begin with "/" (or "drive:/" for Win32), the
|
||||
# server will use that explicit path. If the filenames do *not* begin
|
||||
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
|
||||
# with ServerRoot set to "C:/Programme/xampp/apache" will be interpreted by the
|
||||
# server as "C:/Programme/xampp/apache/logs/foo.log".
|
||||
#
|
||||
# NOTE: Where filenames are specified, you must use forward slashes
|
||||
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
|
||||
# If a drive letter is omitted, the drive on which Apache.exe is located
|
||||
# will be used by default. It is recommended that you always supply
|
||||
# an explicit drive letter in absolute paths, however, to avoid
|
||||
# confusion.
|
||||
#
|
||||
|
||||
# ThreadsPerChild: constant number of worker threads in the server process
|
||||
# MaxRequestsPerChild: maximum number of requests a server process serves
|
||||
ThreadsPerChild 250
|
||||
MaxRequestsPerChild 0
|
||||
|
||||
#
|
||||
# ServerRoot: The top of the directory tree under which the server's
|
||||
# configuration, error, and log files are kept.
|
||||
#
|
||||
# Do not add a slash at the end of the directory path. If you point
|
||||
# ServerRoot at a non-local disk, be sure to point the LockFile directive
|
||||
# at a local disk. If you wish to share the same ServerRoot for multiple
|
||||
# httpd daemons, you will need to change at least LockFile and PidFile.
|
||||
#
|
||||
ServerRoot "C:/Programme/xampp/apache"
|
||||
|
||||
#
|
||||
# Listen: Allows you to bind Apache to specific IP addresses and/or
|
||||
# ports, instead of the default. See also the <VirtualHost>
|
||||
# directive.
|
||||
#
|
||||
# Change this to Listen on specific IP addresses as shown below to
|
||||
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
|
||||
#
|
||||
#Listen 12.34.56.78:80
|
||||
Listen 80
|
||||
|
||||
#
|
||||
# Dynamic Shared Object (DSO) Support
|
||||
#
|
||||
# To be able to use the functionality of a module which was built as a DSO you
|
||||
# have to place corresponding `LoadModule' lines at this location so the
|
||||
# directives contained in it are actually available _before_ they are used.
|
||||
# Statically compiled modules (those listed by `httpd -l') do not need
|
||||
# to be loaded here.
|
||||
#
|
||||
# Example:
|
||||
# LoadModule foo_module modules/mod_foo.so
|
||||
#
|
||||
LoadModule actions_module modules/mod_actions.so
|
||||
LoadModule alias_module modules/mod_alias.so
|
||||
LoadModule asis_module modules/mod_asis.so
|
||||
LoadModule auth_basic_module modules/mod_auth_basic.so
|
||||
#LoadModule auth_digest_module modules/mod_auth_digest.so
|
||||
#LoadModule authn_anon_module modules/mod_authn_anon.so
|
||||
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
|
||||
LoadModule authn_default_module modules/mod_authn_default.so
|
||||
LoadModule authn_file_module modules/mod_authn_file.so
|
||||
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
|
||||
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
|
||||
LoadModule authz_default_module modules/mod_authz_default.so
|
||||
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
|
||||
LoadModule authz_host_module modules/mod_authz_host.so
|
||||
LoadModule authz_user_module modules/mod_authz_user.so
|
||||
#LoadModule autoindex_module modules/mod_autoindex.so # don't load because of mod_autoindex_color.so
|
||||
#LoadModule bucketeer_module modules/mod_bucketeer.so
|
||||
#LoadModule cache_module modules/mod_cache.so
|
||||
#LoadModule disk_cache_module modules/mod_disk_cache.so
|
||||
#LoadModule file_cache_module modules/mod_file_cache.so
|
||||
#LoadModule mem_cache_module modules/mod_mem_cache.so
|
||||
#LoadModule cern_meta_module modules/mod_cern_meta.so
|
||||
#LoadModule charset_lite_module modules/mod_charset_lite.so
|
||||
LoadModule cgi_module modules/mod_cgi.so
|
||||
LoadModule dav_module modules/mod_dav.so
|
||||
LoadModule dav_fs_module modules/mod_dav_fs.so
|
||||
#LoadModule deflate_module modules/mod_deflate.so
|
||||
LoadModule dir_module modules/mod_dir.so
|
||||
#LoadModule dumpio_module modules/mod_dumpio.so
|
||||
LoadModule env_module modules/mod_env.so
|
||||
#LoadModule expires_module modules/mod_expires.so
|
||||
#LoadModule ext_filter_module modules/mod_ext_filter.so
|
||||
#LoadModule headers_module modules/mod_headers.so
|
||||
#LoadModule ident_module modules/mod_ident.so
|
||||
#LoadModule imagemap_module modules/mod_imagemap.so
|
||||
LoadModule include_module modules/mod_include.so
|
||||
LoadModule info_module modules/mod_info.so
|
||||
LoadModule isapi_module modules/mod_isapi.so
|
||||
LoadModule ldap_module modules/mod_ldap.so
|
||||
#LoadModule logio_module modules/mod_logio.so
|
||||
LoadModule log_config_module modules/mod_log_config.so
|
||||
#LoadModule log_forensic_module modules/mod_log_forensic.so
|
||||
LoadModule mime_module modules/mod_mime.so
|
||||
#LoadModule mime_magic_module modules/mod_mime_magic.so
|
||||
LoadModule negotiation_module modules/mod_negotiation.so
|
||||
#LoadModule proxy_module modules/mod_proxy.so
|
||||
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
|
||||
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
|
||||
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
|
||||
#LoadModule proxy_http_module modules/mod_proxy_http.so
|
||||
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
|
||||
#LoadModule rewrite_module modules/mod_rewrite.so
|
||||
LoadModule setenvif_module modules/mod_setenvif.so
|
||||
#LoadModule speling_module modules/mod_speling.so
|
||||
LoadModule status_module modules/mod_status.so
|
||||
#LoadModule unique_id_module modules/mod_unique_id.so
|
||||
#LoadModule userdir_module modules/mod_userdir.so
|
||||
#LoadModule usertrack_module modules/mod_usertrack.so
|
||||
#LoadModule version_module modules/mod_version.so
|
||||
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
|
||||
LoadModule ssl_module modules/mod_ssl.so
|
||||
|
||||
LoadModule autoindex_color_module modules/mod_autoindex_color.so
|
||||
#LoadModule mysql_auth_module modules/mod_auth_mysql.so
|
||||
#LoadModule auth_remote_module modules/mod_auth_remote.so
|
||||
#LoadModule sspi_auth_module modules/mod_auth_sspi.so
|
||||
#LoadModule log_sql_module modules/mod_log_sql.so
|
||||
#LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
|
||||
#<IfModule ssl_module>
|
||||
# LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
|
||||
#</IfModule>
|
||||
#LoadModule proxy_html_module modules/mod_proxy_html.so
|
||||
#LoadModule xmlns_module modules/mod_xmlns.so
|
||||
#LoadModule proxy_xml_module modules/mod_proxy_xml.so
|
||||
#LoadModule bw_module modules/mod_bw.so
|
||||
|
||||
# 'Main' server configuration
|
||||
#
|
||||
# The directives in this section set up the values used by the 'main'
|
||||
# server, which responds to any requests that aren't handled by a
|
||||
# <VirtualHost> definition. These values also provide defaults for
|
||||
# any <VirtualHost> containers you may define later in the file.
|
||||
#
|
||||
# All of these directives may appear inside <VirtualHost> containers,
|
||||
# in which case these default settings will be overridden for the
|
||||
# virtual host being defined.
|
||||
#
|
||||
|
||||
#
|
||||
# ServerAdmin: Your address, where problems with the server should be
|
||||
# e-mailed. This address appears on some server-generated pages, such
|
||||
# as error documents. e.g. admin@your-domain.com
|
||||
#
|
||||
ServerAdmin admin@localhost
|
||||
|
||||
#
|
||||
# ServerName gives the name and port that the server uses to identify itself.
|
||||
# This can often be determined automatically, but we recommend you specify
|
||||
# it explicitly to prevent problems during startup.
|
||||
#
|
||||
# If your host doesn't have a registered DNS name, enter its IP address here.
|
||||
#
|
||||
ServerName localhost:80
|
||||
|
||||
#
|
||||
# DocumentRoot: The directory out of which you will serve your
|
||||
# documents. By default, all requests are taken from this directory, but
|
||||
# symbolic links and aliases may be used to point to other locations.
|
||||
#
|
||||
#DocumentRoot "C:/Programme/xampp/htdocs"
|
||||
#tilman
|
||||
DocumentRoot "D:/Eigene Dateien/eclipse workspace/Homepage"
|
||||
|
||||
#
|
||||
# Each directory to which Apache has access can be configured with respect
|
||||
# to which services and features are allowed and/or disabled in that
|
||||
# directory (and its subdirectories).
|
||||
#
|
||||
# First, we configure the "default" to be a very restrictive set of
|
||||
# features.
|
||||
#
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</Directory>
|
||||
|
||||
#
|
||||
# Note that from this point forward you must specifically allow
|
||||
# particular features to be enabled - so if something's not working as
|
||||
# you might expect, make sure that you have specifically enabled it
|
||||
# below.
|
||||
#
|
||||
|
||||
#
|
||||
# This should be changed to whatever you set DocumentRoot to.
|
||||
#
|
||||
#<Directory "C:/Programme/xampp/htdocs">
|
||||
#tilman
|
||||
<Directory "D:/Eigene Dateien/eclipse workspace/Homepage">
|
||||
#
|
||||
# Possible values for the Options directive are "None", "All",
|
||||
# or any combination of:
|
||||
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
|
||||
#
|
||||
# Note that "MultiViews" must be named *explicitly* --- "Options All"
|
||||
# doesn't give it to you.
|
||||
#
|
||||
# The Options directive is both complicated and important. Please see
|
||||
# http://httpd.apache.org/docs/2.2/mod/core.html#options
|
||||
# for more information.
|
||||
#
|
||||
Options Indexes FollowSymLinks Includes ExecCGI
|
||||
|
||||
#
|
||||
# AllowOverride controls what directives may be placed in .htaccess files.
|
||||
# It can be "All", "None", or any combination of the keywords:
|
||||
# Options FileInfo AuthConfig Limit
|
||||
#
|
||||
AllowOverride None
|
||||
|
||||
#
|
||||
# Controls who can get stuff from this server.
|
||||
#
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
|
||||
</Directory>
|
||||
|
||||
#tilman
|
||||
#<Directory "C:/Programme/xampp/htdocs/xampp">
|
||||
# DirectoryIndex index.php
|
||||
# Options All
|
||||
# AllowOverride All
|
||||
# Order allow,deny
|
||||
# Allow from all
|
||||
#</Directory>
|
||||
|
||||
|
||||
#
|
||||
# DirectoryIndex: sets the file that Apache will serve if a directory
|
||||
# is requested.
|
||||
#
|
||||
<IfModule dir_module>
|
||||
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
|
||||
</IfModule>
|
||||
|
||||
#
|
||||
# The following lines prevent .htaccess and .htpasswd files from being
|
||||
# viewed by Web clients.
|
||||
#
|
||||
<FilesMatch "^\.ht">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
|
||||
#
|
||||
# ErrorLog: The location of the error log file.
|
||||
# If you do not specify an ErrorLog directive within a <VirtualHost>
|
||||
# container, error messages relating to that virtual host will be
|
||||
# logged here. If you *do* define an error logfile for a <VirtualHost>
|
||||
# container, that host's errors will be logged there and not here.
|
||||
#
|
||||
ErrorLog logs/error.log
|
||||
|
||||
#
|
||||
# LogLevel: Control the number of messages logged to the error_log.
|
||||
# Possible values include: debug, info, notice, warn, error, crit,
|
||||
# alert, emerg.
|
||||
#
|
||||
LogLevel warn
|
||||
|
||||
<IfModule log_config_module>
|
||||
#
|
||||
# The following directives define some format nicknames for use with
|
||||
# a CustomLog directive (see below).
|
||||
#
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
||||
|
||||
<IfModule logio_module>
|
||||
# You need to enable mod_logio.c to use %I and %O
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
||||
</IfModule>
|
||||
|
||||
#
|
||||
# The location and format of the access logfile (Common Logfile Format).
|
||||
# If you do not define any access logfiles within a <VirtualHost>
|
||||
# container, they will be logged here. Contrariwise, if you *do*
|
||||
# define per-<VirtualHost> access logfiles, transactions will be
|
||||
# logged therein and *not* in this file.
|
||||
#
|
||||
CustomLog logs/access.log common
|
||||
|
||||
#
|
||||
# If you prefer a logfile with access, agent, and referer information
|
||||
# (Combined Logfile Format) you can use the following directive.
|
||||
#
|
||||
#CustomLog logs/access.log combined
|
||||
</IfModule>
|
||||
|
||||
<IfModule alias_module>
|
||||
#
|
||||
# Redirect: Allows you to tell clients about documents that used to
|
||||
# exist in your server's namespace, but do not anymore. The client
|
||||
# will make a new request for the document at its new location.
|
||||
# Example:
|
||||
# Redirect permanent /foo http://www.example.com/bar
|
||||
|
||||
#
|
||||
# Alias: Maps web paths into filesystem paths and is used to
|
||||
# access content that does not live under the DocumentRoot.
|
||||
# Example:
|
||||
# Alias /webpath /full/filesystem/path
|
||||
#
|
||||
# If you include a trailing / on /webpath then the server will
|
||||
# require it to be present in the URL. You will also likely
|
||||
# need to provide a <Directory> section to allow access to
|
||||
# the filesystem path.
|
||||
|
||||
#
|
||||
# ScriptAlias: This controls which directories contain server scripts.
|
||||
# ScriptAliases are essentially the same as Aliases, except that
|
||||
# documents in the target directory are treated as applications and
|
||||
# run by the server when requested rather than as documents sent to the
|
||||
# client. The same rules about trailing "/" apply to ScriptAlias
|
||||
# directives as to Alias.
|
||||
#
|
||||
ScriptAlias /cgi-bin/ "C:/Programme/xampp/cgi-bin/"
|
||||
|
||||
</IfModule>
|
||||
|
||||
#
|
||||
# "C:/Programme/xampp/cgi-bin" should be changed to whatever your ScriptAliased
|
||||
# CGI directory exists, if you have that configured.
|
||||
#
|
||||
<Directory "C:/Programme/xampp/cgi-bin">
|
||||
AllowOverride None
|
||||
Options None
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
#
|
||||
# Apache parses all CGI scripts for the shebang line by default.
|
||||
# This comment line, the first line of the script, consists of the symbols
|
||||
# pound (#) and exclamation (!) followed by the path of the program that
|
||||
# can execute this specific script. For a perl script, with perl.exe in
|
||||
# the C:\Program Files\Perl directory, the shebang line should be:
|
||||
|
||||
#!c:/program files/perl/perl
|
||||
|
||||
# Note you _must_not_ indent the actual shebang line, and it must be the
|
||||
# first line of the file. Of course, CGI processing must be enabled by
|
||||
# the appropriate ScriptAlias or Options ExecCGI directives for the files
|
||||
# or directory in question.
|
||||
#
|
||||
# However, Apache on Windows allows either the Unix behavior above, or can
|
||||
# use the Registry to match files by extention. The command to execute
|
||||
# a file of this type is retrieved from the registry by the same method as
|
||||
# the Windows Explorer would use to handle double-clicking on a file.
|
||||
# These script actions can be configured from the Windows Explorer View menu,
|
||||
# 'Folder Options', and reviewing the 'File Types' tab. Clicking the Edit
|
||||
# button allows you to modify the Actions, of which Apache 1.3 attempts to
|
||||
# perform the 'Open' Action, and failing that it will try the shebang line.
|
||||
# This behavior is subject to change in Apache release 2.0.
|
||||
#
|
||||
# Each mechanism has it's own specific security weaknesses, from the means
|
||||
# to run a program you didn't intend the website owner to invoke, and the
|
||||
# best method is a matter of great debate.
|
||||
#
|
||||
# To enable the this Windows specific behavior (and therefore -disable- the
|
||||
# equivilant Unix behavior), uncomment the following directive:
|
||||
#
|
||||
#ScriptInterpreterSource registry
|
||||
#
|
||||
# The directive above can be placed in individual <Directory> blocks or the
|
||||
# .htaccess file, with either the 'registry' (Windows behavior) or 'script'
|
||||
# (Unix behavior) option, and will override this server default option.
|
||||
#
|
||||
|
||||
#
|
||||
# DefaultType: the default MIME type the server will use for a document
|
||||
# if it cannot otherwise determine one, such as from filename extensions.
|
||||
# If your server contains mostly text or HTML documents, "text/plain" is
|
||||
# a good value. If most of your content is binary, such as applications
|
||||
# or images, you may want to use "application/octet-stream" instead to
|
||||
# keep browsers from trying to display binary files as though they are
|
||||
# text.
|
||||
#
|
||||
DefaultType text/plain
|
||||
|
||||
<IfModule mime_module>
|
||||
#
|
||||
# TypesConfig points to the file containing the list of mappings from
|
||||
# filename extension to MIME-type.
|
||||
#
|
||||
TypesConfig conf/mime.types
|
||||
|
||||
#
|
||||
# AddType allows you to add to or override the MIME configuration
|
||||
# file specified in TypesConfig for specific file types.
|
||||
#
|
||||
#AddType application/x-gzip .tgz
|
||||
#
|
||||
# AddEncoding allows you to have certain browsers uncompress
|
||||
# information on the fly. Note: Not all browsers support this.
|
||||
#
|
||||
#AddEncoding x-compress .Z
|
||||
#AddEncoding x-gzip .gz .tgz
|
||||
#
|
||||
# If the AddEncoding directives above are commented-out, then you
|
||||
# probably should define those extensions to indicate media types:
|
||||
#
|
||||
AddType application/x-compress .Z
|
||||
AddType application/x-gzip .gz .tgz
|
||||
|
||||
#
|
||||
# AddHandler allows you to map certain file extensions to "handlers":
|
||||
# actions unrelated to filetype. These can be either built into the server
|
||||
# or added with the Action directive (see below)
|
||||
#
|
||||
# To use CGI scripts outside of ScriptAliased directories:
|
||||
# (You will also need to add "ExecCGI" to the "Options" directive.)
|
||||
#
|
||||
AddHandler cgi-script .cgi
|
||||
|
||||
# For files that include their own HTTP headers:
|
||||
#AddHandler send-as-is asis
|
||||
|
||||
# For server-parsed imagemap files:
|
||||
#AddHandler imap-file map
|
||||
|
||||
# For type maps (negotiated resources):
|
||||
#AddHandler type-map var
|
||||
|
||||
#
|
||||
# Filters allow you to process content before it is sent to the client.
|
||||
#
|
||||
# To parse .shtml files for server-side includes (SSI):
|
||||
# (You will also need to add "Includes" to the "Options" directive.)
|
||||
#
|
||||
#AddType text/html .shtml
|
||||
#AddOutputFilter INCLUDES .shtml
|
||||
</IfModule>
|
||||
|
||||
#
|
||||
# The mod_mime_magic module allows the server to use various hints from the
|
||||
# contents of the file itself to determine its type. The MIMEMagicFile
|
||||
# directive tells the module where the hint definitions are located.
|
||||
#
|
||||
#MIMEMagicFile conf/magic
|
||||
|
||||
#
|
||||
# Customizable error responses come in three flavors:
|
||||
# 1) plain text 2) local redirects 3) external redirects
|
||||
#
|
||||
# Some examples:
|
||||
#ErrorDocument 500 "The server made a boo boo."
|
||||
#ErrorDocument 404 /missing.html
|
||||
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
|
||||
#ErrorDocument 402 http://www.example.com/subscription_info.html
|
||||
#
|
||||
|
||||
#
|
||||
# EnableMMAP and EnableSendfile: On systems that support it,
|
||||
# memory-mapping or the sendfile syscall is used to deliver
|
||||
# files. This usually improves server performance, but must
|
||||
# be turned off when serving from networked-mounted
|
||||
# filesystems or if support for these functions is otherwise
|
||||
# broken on your system.
|
||||
#
|
||||
#EnableMMAP off
|
||||
#EnableSendfile off
|
||||
|
||||
# Supplemental configuration
|
||||
#
|
||||
# The configuration files in the conf/extra/ directory can be
|
||||
# included to add extra features or to modify the default configuration of
|
||||
# the server, or you may simply copy their contents here and change as
|
||||
# necessary.
|
||||
|
||||
# XAMPP specific settings
|
||||
Include conf/extra/httpd-xampp.conf
|
||||
|
||||
# Server-pool management (MPM specific)
|
||||
# Include conf/extra/httpd-mpm.conf
|
||||
|
||||
# Multi-language error messages
|
||||
Include conf/extra/httpd-multilang-errordoc.conf
|
||||
|
||||
# Fancy directory listings
|
||||
Include conf/extra/httpd-autoindex.conf
|
||||
|
||||
# Language settings
|
||||
Include conf/extra/httpd-languages.conf
|
||||
|
||||
# User home directories
|
||||
Include conf/extra/httpd-userdir.conf
|
||||
|
||||
# Real-time info on requests and configuration
|
||||
Include conf/extra/httpd-info.conf
|
||||
|
||||
# Virtual hosts
|
||||
Include conf/extra/httpd-vhosts.conf
|
||||
|
||||
# Local access to the Apache HTTP Server Manual
|
||||
Include conf/extra/httpd-manual.conf
|
||||
|
||||
# Distributed authoring and versioning (WebDAV)
|
||||
Include conf/extra/httpd-dav.conf
|
||||
|
||||
# Various default settings
|
||||
Include conf/extra/httpd-default.conf
|
||||
|
||||
# Secure (SSL/TLS) connections
|
||||
Include conf/extra/httpd-ssl.conf
|
||||
#
|
||||
# Note: The following must must be present to support
|
||||
# starting without SSL on platforms with no /dev/random equivalent
|
||||
# but a statically compiled-in mod_ssl.
|
||||
#
|
||||
<IfModule ssl_module>
|
||||
SSLRandomSeed startup builtin
|
||||
SSLRandomSeed connect builtin
|
||||
</IfModule>
|
||||
|
||||
# -- tilman ------------------------------------------------------------------
|
||||
#Alias /homepage "D:/Eigene Dateien/eclipse workspace/Homepage"
|
||||
#<Directory "D:/Eigene Dateien/eclipse workspace/Homepage">
|
||||
# Order allow,deny
|
||||
# Allow from all
|
||||
#</Directory>
|
||||
|
||||
Alias /tykes "D:/Eigene Dateien/eclipse workspace/TykesHome"
|
||||
<Directory "D:/Eigene Dateien/eclipse workspace/TykesHome">
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
Alias /bizit "D:/Eigene Dateien/eclipse workspace/bizIT"
|
||||
<Directory "D:/Eigene Dateien/eclipse workspace/bizIT">
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
Alias /scivis "D:/Eigene Dateien/eclipse workspace/SciVis"
|
||||
<Directory "D:/Eigene Dateien/eclipse workspace/SciVis">
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
Alias /xampp "C:/Programme/xampp/htdocs/xampp"
|
||||
<Directory "C:/Programme/xampp/htdocs/xampp">
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 130 B |
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
session_start();
|
||||
$_SESSION['visits']++;
|
||||
$_SESSION['angemeldet'] = true;
|
||||
|
||||
$pagetitle = 'tilman.de';
|
||||
$breadcrumb = 'Seite';
|
||||
// $keywords = '';
|
||||
// $description = '';
|
||||
|
||||
include_once($_SERVER["DOCUMENT_ROOT"].'/security.php');
|
||||
include_once($_SERVER["DOCUMENT_ROOT"].'/pageheader.php');
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
<?php print 'You have visited here '.$_SESSION['visits'].' times.'; ?><br />
|
||||
<?php echo "<a href=\"\uni\index.php\">Seite ohne Sessionmanagement</a>"; ?><br />
|
||||
<?php echo "<a href=\"page2.php\">page2</a>"; ?><br />
|
||||
<?php echo "<a href=\"{$_SERVER['PHP_SELF']}\">Diese Seite</a>"; ?><br />
|
||||
<a href="http://localhost/Metainformationen/media/index.php">Diese Seite direkt</a>
|
||||
</div>
|
||||
|
||||
<div style="text-align: center;">
|
||||
<img src="<?php echo itemURL('bilder/siegel.gif'); ?>" border="1" />
|
||||
<?php echo $kalua; ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
include_once($_SERVER["DOCUMENT_ROOT"].'/pagefooter.php');
|
||||
?>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
session_start();
|
||||
$_SESSION['visits']++;
|
||||
|
||||
$pagetitle = 'tilman.de';
|
||||
$breadcrumb = 'Seite';
|
||||
// $keywords = '';
|
||||
// $description = '';
|
||||
|
||||
include_once($_SERVER["DOCUMENT_ROOT"].'/pageheader.php');
|
||||
?>
|
||||
|
||||
<div style="position: absolute; top: 3px; right: 3px; font-size: x-small;">
|
||||
<?php echo '<a href="/logout.php">Abmelden</a>'; ?>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<?php print 'You have visited here '.$_SESSION['visits'].' times.'; ?><br />
|
||||
<?php echo "<a href=\"index.php\">index</a>"; ?><br />
|
||||
<?php echo "<a href=\"{$_SERVER['PHP_SELF']}\">Diese Seite</a>"; ?>
|
||||
</div>
|
||||
|
||||
<div style="text-align: center;">
|
||||
<img src="bilder/siegel.gif" border="0" />
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once($_SERVER["DOCUMENT_ROOT"].'/pagefooter.php');
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
session_start();
|
||||
session_destroy();
|
||||
$_SESSION['tilman']++;
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<?php
|
||||
echo 'tilman = '.$_SESSION['tilman'];
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<a href="http://localhost/Metainformationen/session/seite1.php">Seite1</a><br>
|
||||
<a href="http://localhost/Metainformationen/session/ende.php">Ende</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
// ini_set('session.use_trans_sid', true);
|
||||
// ini_set('session.use_cookies', '0');
|
||||
session_start();
|
||||
$_SESSION['tilman']++;
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<?php
|
||||
echo 'tilman = '.$_SESSION['tilman'];
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<a href="http://localhost/Metainformationen/session/seite1.php">Seite1</a><br>
|
||||
<a href="http://localhost/Metainformationen/session/ende.php">Ende</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
@session_start();
|
||||
$_POST['running'] = true;
|
||||
?>
|
||||
<html><head><title></title></head><body><p>
|
||||
eingeloggt.<br>
|
||||
<a href="sesstest.php">sesstest.php</a><br>
|
||||
<a href="sesstest2.php">sesstest2.php</a><br>
|
||||
</p></body></html>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
ini_set('session.use_trans_sid', '1');
|
||||
ini_set('session.use_cookies', '0');
|
||||
// session_name('id');
|
||||
ini_set('session.name', 'id');
|
||||
// output_add_rewrite_var('var', 'value');
|
||||
|
||||
if (isset($_GET['id'])) {
|
||||
@session_start();
|
||||
?>
|
||||
<html><head><title></title></head><body><p>
|
||||
Wir machen weiter: <a href="sesstest.php">Weiter</a>
|
||||
</p></body></html>
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
@session_start();
|
||||
?>
|
||||
<html><head><title></title></head><body><p>
|
||||
Kennen wir uns? <a href="sesstest.php">Weiter</a>
|
||||
</p></body></html>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
if ($_POST['running']) {
|
||||
@session_start();
|
||||
echo 'wir machen weiter.';
|
||||
}
|
||||
else {
|
||||
echo 'kennen wir uns?';
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,61 @@
|
||||
Setup: http://wp040.webpack.hosteurope.de/phpMyAdmin/
|
||||
dbu1022769
|
||||
fuB0gar7
|
||||
db1022769-php
|
||||
kRam8l
|
||||
Salt $1$fAr71ooc$
|
||||
$1$fAr71ooc$Zdt20iK7t7yZxPEYooqgL0
|
||||
'siarp','clique','uni','familie','beethoven','pottenstein','musical','israel','service'
|
||||
1 Tilman Walther tilman $1$fAr71ooc$Zdt20iK7t7yZxPEYooqgL0 siarp
|
||||
|
||||
|
||||
CREATE TABLE `users` (
|
||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
|
||||
`name` VARCHAR( 35 ) NOT NULL ,
|
||||
`login` VARCHAR( 35 ) NOT NULL ,
|
||||
`c_passwort` VARCHAR( 35 ) NOT NULL ,
|
||||
`gruppen` SET( 'admin', 'clique', 'uni', 'familie', 'beethoven', 'pottenstein', 'musical', 'israel', 'service' ) NOT NULL ,
|
||||
PRIMARY KEY ( `id` ) ,
|
||||
UNIQUE (
|
||||
`name` ,
|
||||
`login`
|
||||
)
|
||||
) TYPE = MYISAM ;
|
||||
|
||||
CREATE TABLE `securepages` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT ,
|
||||
`pfad` VARCHAR( 255 ) NOT NULL ,
|
||||
`gruppen` SET( 'admin', 'clique', 'uni', 'familie', 'beethoven', 'pottenstein', 'musical', 'israel', 'service' ) NOT NULL ,
|
||||
PRIMARY KEY ( `id` ) ,
|
||||
UNIQUE (
|
||||
`pfad`
|
||||
)
|
||||
) TYPE = MYISAM ;
|
||||
|
||||
---------------------------------
|
||||
|
||||
|
||||
INSERT INTO users (name, login, c_passwort) VALUES ('Tilman Walther', 'tilman', '$1$fAr71ooc$Zdt20iK7t7yZxPEYooqgL0')
|
||||
|
||||
|
||||
|
||||
|
||||
-----------------------------
|
||||
Adressen:
|
||||
CREATE TABLE `adressen` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`Vorname` varchar(40) collate latin1_bin default NULL,
|
||||
`Nachname` varchar(40) collate latin1_bin default NULL,
|
||||
`Anschrift` varchar(40) collate latin1_bin default NULL,
|
||||
`PLZ` int(11) default '0',
|
||||
`Ort` varchar(40) collate latin1_bin default NULL,
|
||||
`Tel. privat` varchar(40) collate latin1_bin default NULL,
|
||||
`Tel. geschäftlich` varchar(40) collate latin1_bin default NULL,
|
||||
`Tel. mobil` varchar(40) collate latin1_bin default NULL,
|
||||
`E-Mail privat` varchar(40) collate latin1_bin default NULL,
|
||||
`E-Mail geschäftlich` varchar(40) collate latin1_bin default NULL,
|
||||
`Geburtstag` date default '0000-00-00',
|
||||
`Gruppe` enum('Familie','Uni','Bettinas Familie','Ärzte','Bettinas Bekannte','Bekannte','Beethoven') collate latin1_bin default NULL,
|
||||
`Bemerkung` varchar(255) collate latin1_bin default NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin AUTO_INCREMENT=1 ;
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/*
|
||||
$author = "Tilman Walther 1 2 3 4 \n @ _ ! § $ % & / ( ) = ? . ; 0";
|
||||
$mailaddress = "sad tilman@tilman.de, stuffmaster@stuffmaster.de";
|
||||
|
||||
|
||||
$author = substr($author,0,50);
|
||||
$author = preg_replace('/[^A-z ,-9]/', '', $author); // $author darf keine Sonderzeichen enthalten (BCC-Gefahr)
|
||||
|
||||
|
||||
preg_match('/[\w.+-]{2,}\@[\w.-]{2,}\.[a-z]{2,6}/', $mailaddress, $mailadresses); // der reg. Ausdruck findet alle zulässigen E-Mail-Adressen
|
||||
|
||||
|
||||
echo "<html><body><p>\n";
|
||||
|
||||
echo $author;
|
||||
echo "\n<br/>";
|
||||
echo $mailaddress;
|
||||
echo "\n<br/>";
|
||||
print_r($firstmailadress);
|
||||
echo "\n</p></body></html>";
|
||||
*/
|
||||
|
||||
phpinfo();
|
||||
|
||||
// echo CRYPT_MD5."<br>";
|
||||
// echo '['.crypt('defekt', 'mx').']<br>';
|
||||
// echo strtolower('Tilman<br>');
|
||||
// echo (!$testvar);
|
||||
//
|
||||
// echo '<br>'.substr('12345',0,1);
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
/* mysql_connect('localhost', 'dbu1022769', 'fuB0gar7') or die ('Database error: Unable to connect to database.');
|
||||
mysql_select_db('db1022769-php') or die ('Database error: Unable to select database.');
|
||||
$login = 'flob';
|
||||
$c_passwort = crypt('alessi', '$1$fAr71ooc$');
|
||||
$result = mysql_query("SELECT * FROM users WHERE login='$login' and c_passwort='$c_passwort'");
|
||||
if (!$result) {
|
||||
die('SQL error: '.mysql_error());
|
||||
}
|
||||
else {
|
||||
if (mysql_num_rows($result) == 1) {
|
||||
// TODO: Zugriffsrechte in Session-Array ablegen
|
||||
$result = mysql_query('SELECT gruppen FROM users WHERE login="flob"');
|
||||
if (!$result) {
|
||||
echo 'Gruppenabfrage fehlgeschlagen<br>';
|
||||
die('SQL error: '.mysql_error());
|
||||
}
|
||||
else {
|
||||
$gruppenliste = explode(',',mysql_result($result,0));
|
||||
}
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
die('falsches passwort');
|
||||
}
|
||||
}*/
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user