|
|
|
@ -1,25 +1,23 @@
|
|
|
|
|
<?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");
|
|
|
|
|
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...
|
|
|
|
|
if (!IsSet ($_POST["user"])) { // User ist bereits angemeldet... normaler Inhalt...
|
|
|
|
|
LoginOK();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{ // User ist noch nicht angemeldet
|
|
|
|
|
} else { // User ist noch nicht angemeldet
|
|
|
|
|
$sql = "SELECT * FROM `User` WHERE `Nick`='" . $_POST["user"] . "'";
|
|
|
|
|
$userstring = mysql_query($sql, $con);
|
|
|
|
|
|
|
|
|
@ -59,26 +57,21 @@ else
|
|
|
|
|
$_SESSION['CVS'] = mysql_fetch_array($Erg_CVS);
|
|
|
|
|
|
|
|
|
|
LoginOK();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{ // Passwort nicht ok...
|
|
|
|
|
} else { // Passwort nicht ok...
|
|
|
|
|
$ErrorText = "pub_index_pass_no_ok";
|
|
|
|
|
} // Ende Passwort-Check
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{ // Anzahl der User in User-Tabelle <> 1 --> keine Anmeldung
|
|
|
|
|
} 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");
|
|
|
|
|
include ("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/login_eingabefeld.php");
|
|
|
|
|
include ("includes/footer.php");
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|