bootstrapping
parent
550467697f
commit
6ebee2c46b
@ -0,0 +1,4 @@
|
||||
config_db.php
|
||||
config_jabber.php
|
||||
config_modem.php
|
||||
config.php
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
// ist ein modem angeschlossen
|
||||
$ModemEnable = false;
|
||||
|
||||
// COM port
|
||||
$ModemDev = "/dev/ttyS0";
|
||||
|
||||
// vorwahl, bei tnovis telefonanlage fuer das programmieren von weckrufen
|
||||
$WakeupNumber = "**3";
|
||||
?>
|
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
|
||||
// path and include settings
|
||||
$rootpath = str_replace(DIRECTORY_SEPARATOR . 'bootstrap.php', '', __FILE__);
|
||||
define('ROOTPATH', $rootpath);
|
||||
|
||||
$includePath = ini_get('include_path');
|
||||
$includePath .= PATH_SEPARATOR . ROOTPATH . DIRECTORY_SEPARATOR . '..';
|
||||
|
||||
ini_set('include_path', $includePath);
|
||||
?>
|
@ -1,22 +1,24 @@
|
||||
<?php
|
||||
$title = "Index";
|
||||
$header = "FAQ";
|
||||
include "../../camp2011/includes/header.php";
|
||||
require_once ('bootstrap.php');
|
||||
|
||||
$SQL = "SELECT * FROM `FAQ`";
|
||||
$Erg = mysql_query($SQL, $con);
|
||||
$title = "FAQ";
|
||||
$header = "FAQ";
|
||||
include "includes/header.php";
|
||||
|
||||
// anzahl Zeilen
|
||||
$Zeilen = mysql_num_rows($Erg);
|
||||
$SQL = "SELECT * FROM `FAQ`";
|
||||
$Erg = mysql_query($SQL, $con);
|
||||
|
||||
for ($n = 0; $n < $Zeilen; $n++) {
|
||||
if (mysql_result($Erg, $n, "Antwort") != "") {
|
||||
echo "<dl>";
|
||||
echo "<dt>" . mysql_result($Erg, $n, "Frage") . "</dt>";
|
||||
echo "<dd>" . mysql_result($Erg, $n, "Antwort") . "</dd>";
|
||||
echo "</dl>";
|
||||
}
|
||||
}
|
||||
// anzahl Zeilen
|
||||
$Zeilen = mysql_num_rows($Erg);
|
||||
|
||||
include "../../camp2011/includes/footer.php";
|
||||
for ($n = 0; $n < $Zeilen; $n++) {
|
||||
if (mysql_result($Erg, $n, "Antwort") != "") {
|
||||
echo "<dl>";
|
||||
echo "<dt>" . mysql_result($Erg, $n, "Frage") . "</dt>";
|
||||
echo "<dd>" . mysql_result($Erg, $n, "Antwort") . "</dd>";
|
||||
echo "</dl>";
|
||||
}
|
||||
}
|
||||
|
||||
include "includes/footer.php";
|
||||
?>
|
||||
|
@ -1,15 +1,17 @@
|
||||
<?php
|
||||
$title = "Start";
|
||||
$header = "Start";
|
||||
include "../includes/header.php";
|
||||
require_once ('bootstrap.php');
|
||||
|
||||
echo "<p>" . Get_Text("index_text1") . "</p>\n";
|
||||
echo "<p>" . Get_Text("index_text2") . "</p>\n";
|
||||
echo "<p>" . Get_Text("index_text3") . "</p>\n";
|
||||
$title = "Start";
|
||||
$header = "Start";
|
||||
include "includes/header.php";
|
||||
|
||||
include "../includes/login_eingabefeld.php";
|
||||
echo "<p>" . Get_Text("index_text1") . "</p>\n";
|
||||
echo "<p>" . Get_Text("index_text2") . "</p>\n";
|
||||
echo "<p>" . Get_Text("index_text3") . "</p>\n";
|
||||
|
||||
echo "<h6>" . Get_Text("index_text4") . "</h6>";
|
||||
include "includes/login_eingabefeld.php";
|
||||
|
||||
include "../includes/footer.php";
|
||||
echo "<h6>" . Get_Text("index_text4") . "</h6>";
|
||||
|
||||
include "includes/footer.php";
|
||||
?>
|
||||
|
@ -1,12 +1,15 @@
|
||||
<?php
|
||||
include "../../camp2011/includes/config.php";
|
||||
|
||||
// Die Session zerstoeren...
|
||||
session_start();
|
||||
session_destroy ();
|
||||
// und eine neue erstellen, damit kein Erzengelmenue angezeigt wird (falls sich ein Erzengel abmeldet...)
|
||||
session_start();
|
||||
|
||||
header("HTTP/1.1 302 Moved Temporarily");
|
||||
header("Location: " . $url . $ENGEL_ROOT);
|
||||
// Die Session zerstoeren usw
|
||||
require_once ('bootstrap.php');
|
||||
include "config/config.php";
|
||||
|
||||
session_start();
|
||||
session_destroy();
|
||||
// und eine neue erstellen, damit kein Erzengelmenue angezeigt wird (falls sich ein Erzengel abmeldet...)
|
||||
session_start();
|
||||
|
||||
header("HTTP/1.1 302 Moved Temporarily");
|
||||
header("Location: " . $url . $ENGEL_ROOT);
|
||||
?>
|
||||
|
@ -1,84 +1,77 @@
|
||||
<?PHP
|
||||
include ('../bootstrap.php');
|
||||
|
||||
$title = "Index";
|
||||
$header = "Index";
|
||||
|
||||
include ("../../../camp2011/includes/config_db.php");
|
||||
include ("../../../camp2011/includes/crypt.php");
|
||||
include ("config/config_db.php");
|
||||
include ("includes/crypt.php");
|
||||
|
||||
session_start(); // alte Session - falls vorhanden - wiederherstellen...
|
||||
|
||||
function LoginOK()
|
||||
{
|
||||
include ("../../../camp2011/includes/config.php");
|
||||
header("HTTP/1.1 302 Moved Temporarily");
|
||||
header("Location: ". $url. $ENGEL_ROOT. "nonpublic/news.php");
|
||||
function LoginOK() {
|
||||
include ("../../config/config.php");
|
||||
header("HTTP/1.1 302 Moved Temporarily");
|
||||
header("Location: " . $url . $ENGEL_ROOT . "nonpublic/news.php");
|
||||
}
|
||||
|
||||
if ( !IsSet($_POST["user"]))
|
||||
{ // User ist bereits angemeldet... normaler Inhalt...
|
||||
LoginOK();
|
||||
}
|
||||
else
|
||||
{ // User ist noch nicht angemeldet
|
||||
$sql = "SELECT * FROM `User` WHERE `Nick`='". $_POST["user"]. "'";
|
||||
$userstring = mysql_query($sql, $con);
|
||||
if (!IsSet ($_POST["user"])) { // User ist bereits angemeldet... normaler Inhalt...
|
||||
LoginOK();
|
||||
} else { // User ist noch nicht angemeldet
|
||||
$sql = "SELECT * FROM `User` WHERE `Nick`='" . $_POST["user"] . "'";
|
||||
$userstring = mysql_query($sql, $con);
|
||||
|
||||
// anzahl zeilen
|
||||
$user_anz = mysql_num_rows($userstring);
|
||||
// anzahl zeilen
|
||||
$user_anz = mysql_num_rows($userstring);
|
||||
|
||||
if ($user_anz == 1) { // Check, ob User angemeldet wird...
|
||||
if (mysql_result($userstring, 0, "Passwort") == PassCrypt($_POST["password"])) { // Passwort ok...
|
||||
// Session wird eingeleitet und Session-Variablen gesetzt..
|
||||
// session_start();
|
||||
session_name("Himmel");
|
||||
$_SESSION['UID'] = mysql_result($userstring, 0, "UID");
|
||||
$_SESSION['Nick'] = mysql_result($userstring, 0, "Nick");
|
||||
$_SESSION['Name'] = mysql_result($userstring, 0, "Name");
|
||||
$_SESSION['Vorname'] = mysql_result($userstring, 0, "Vorname");
|
||||
$_SESSION['Alter'] = mysql_result($userstring, 0, "Alter");
|
||||
$_SESSION['Telefon'] = mysql_result($userstring, 0, "Telefon");
|
||||
$_SESSION['Handy'] = mysql_result($userstring, 0, "Handy");
|
||||
$_SESSION['DECT'] = mysql_result($userstring, 0, "DECT");
|
||||
$_SESSION['email'] = mysql_result($userstring, 0, "email");
|
||||
$_SESSION['ICQ'] = mysql_result($userstring, 0, "ICQ");
|
||||
$_SESSION['jabber'] = mysql_result($userstring, 0, "jabber");
|
||||
$_SESSION['Size'] = mysql_result($userstring, 0, "Size");
|
||||
$_SESSION['Gekommen'] = mysql_result($userstring, 0, "Gekommen");
|
||||
$_SESSION['Aktiv'] = mysql_result($userstring, 0, "Aktiv");
|
||||
$_SESSION['Tshirt'] = mysql_result($userstring, 0, "Tshirt");
|
||||
$_SESSION['Menu'] = mysql_result($userstring, 0, "Menu");
|
||||
$_SESSION['color'] = mysql_result($userstring, 0, "color");
|
||||
$_SESSION['Avatar'] = mysql_result($userstring, 0, "Avatar");
|
||||
$_SESSION['Sprache'] = mysql_result($userstring, 0, "Sprache");
|
||||
$_SESSION['Hometown'] = mysql_result($userstring, 0, "Hometown");
|
||||
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
|
||||
if ($user_anz == 1) { // Check, ob User angemeldet wird...
|
||||
if (mysql_result($userstring, 0, "Passwort") == PassCrypt($_POST["password"])) { // Passwort ok...
|
||||
// Session wird eingeleitet und Session-Variablen gesetzt..
|
||||
// session_start();
|
||||
session_name("Himmel");
|
||||
$_SESSION['UID'] = mysql_result($userstring, 0, "UID");
|
||||
$_SESSION['Nick'] = mysql_result($userstring, 0, "Nick");
|
||||
$_SESSION['Name'] = mysql_result($userstring, 0, "Name");
|
||||
$_SESSION['Vorname'] = mysql_result($userstring, 0, "Vorname");
|
||||
$_SESSION['Alter'] = mysql_result($userstring, 0, "Alter");
|
||||
$_SESSION['Telefon'] = mysql_result($userstring, 0, "Telefon");
|
||||
$_SESSION['Handy'] = mysql_result($userstring, 0, "Handy");
|
||||
$_SESSION['DECT'] = mysql_result($userstring, 0, "DECT");
|
||||
$_SESSION['email'] = mysql_result($userstring, 0, "email");
|
||||
$_SESSION['ICQ'] = mysql_result($userstring, 0, "ICQ");
|
||||
$_SESSION['jabber'] = mysql_result($userstring, 0, "jabber");
|
||||
$_SESSION['Size'] = mysql_result($userstring, 0, "Size");
|
||||
$_SESSION['Gekommen'] = mysql_result($userstring, 0, "Gekommen");
|
||||
$_SESSION['Aktiv'] = mysql_result($userstring, 0, "Aktiv");
|
||||
$_SESSION['Tshirt'] = mysql_result($userstring, 0, "Tshirt");
|
||||
$_SESSION['Menu'] = mysql_result($userstring, 0, "Menu");
|
||||
$_SESSION['color'] = mysql_result($userstring, 0, "color");
|
||||
$_SESSION['Avatar'] = mysql_result($userstring, 0, "Avatar");
|
||||
$_SESSION['Sprache'] = mysql_result($userstring, 0, "Sprache");
|
||||
$_SESSION['Hometown'] = mysql_result($userstring, 0, "Hometown");
|
||||
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
// CVS import Data
|
||||
$SQL = "SELECT * FROM `UserCVS` WHERE `UID`='".$_SESSION['UID']."'";
|
||||
$Erg_CVS = mysql_query($SQL, $con);
|
||||
$_SESSION['CVS'] = mysql_fetch_array($Erg_CVS);
|
||||
// CVS import Data
|
||||
$SQL = "SELECT * FROM `UserCVS` WHERE `UID`='" . $_SESSION['UID'] . "'";
|
||||
$Erg_CVS = mysql_query($SQL, $con);
|
||||
$_SESSION['CVS'] = mysql_fetch_array($Erg_CVS);
|
||||
|
||||
LoginOK();
|
||||
}
|
||||
else
|
||||
{ // Passwort nicht ok...
|
||||
$ErrorText = "pub_index_pass_no_ok";
|
||||
} // Ende Passwort-Check
|
||||
}
|
||||
else
|
||||
{ // Anzahl der User in User-Tabelle <> 1 --> keine Anmeldung
|
||||
if ($user_anz == 0)
|
||||
$ErrorText = "pub_index_User_unset";
|
||||
else
|
||||
$ErrorText = "pub_index_User_more_as_one";
|
||||
} // Ende Check, ob User angemeldet wurde
|
||||
LoginOK();
|
||||
} else { // Passwort nicht ok...
|
||||
$ErrorText = "pub_index_pass_no_ok";
|
||||
} // Ende Passwort-Check
|
||||
} else { // Anzahl der User in User-Tabelle <> 1 --> keine Anmeldung
|
||||
if ($user_anz == 0)
|
||||
$ErrorText = "pub_index_User_unset";
|
||||
else
|
||||
$ErrorText = "pub_index_User_more_as_one";
|
||||
} // Ende Check, ob User angemeldet wurde
|
||||
}
|
||||
include ("../../../camp2011/includes/header.php");
|
||||
if( isset($ErrorText))
|
||||
echo "<h2>". Get_Text($ErrorText). "</h2><br />\n";
|
||||
include ("../../../camp2011/includes/login_eingabefeld.php");
|
||||
include ("../../../camp2011/includes/footer.php");
|
||||
|
||||
include ("includes/header.php");
|
||||
if (isset ($ErrorText))
|
||||
echo "<h2>" . Get_Text($ErrorText) . "</h2><br />\n";
|
||||
include ("includes/login_eingabefeld.php");
|
||||
include ("includes/footer.php");
|
||||
?>
|
||||
|
||||
|
||||
|
@ -1,10 +1,12 @@
|
||||
<?php
|
||||
$title = "Himmel";
|
||||
$header = "News";
|
||||
include "../../../camp2011/includes/header.php";
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
echo "<a href=\"#Neu\">" . Get_Text(3) . "</a>";
|
||||
include "news_output.php";
|
||||
$title = "News";
|
||||
$header = "News";
|
||||
include "includes/header.php";
|
||||
|
||||
include "../../../camp2011/includes/footer.php";
|
||||
echo "<a href=\"#Neu\">" . Get_Text(3) . "</a>";
|
||||
include "news_output.php";
|
||||
|
||||
include "includes/footer.php";
|
||||
?>
|
||||
|
Loading…
Reference in New Issue