diff --git a/includes/funktion_activeUser.php b/includes/funktion_activeUser.php
index e214a1f9..ca6e3aaa 100644
--- a/includes/funktion_activeUser.php
+++ b/includes/funktion_activeUser.php
@@ -1,57 +1,34 @@
Engel online";
-
- $SQL = "SELECT UID, Nick, lastLogIn " .
- "FROM User " .
- "WHERE (`lastLogIn` > '" . gmdate("YmdHis", time() - (60 * 60)) . "' AND NOT (UID=" . $_SESSION['UID'] . ")) " .
- "ORDER BY lastLogIn DESC;";
-
- $Erg = mysql_query($SQL, $con);
-
- $Tist = (gmdate("d", time()) * 60 * 60 * 24) + // Tag
- (gmdate("H", time()) * 60 * 60) + // Stunde
- (gmdate("i", time()) * 60) + // Minute
- (gmdate("s", time()) ); // Sekunde
-
- echo "
";
-
- for($i = 0; $i < mysql_num_rows($Erg); $i++) {
- echo "- ";
-
- if($_SESSION['UID'] > 0)
- echo DisplayAvatar( mysql_result( $Erg, $i, "UID"));
-
- // Show Admin Page
- echo funktion_isLinkAllowed_addLink_OrLinkText("admin/userChangeNormal.php?enterUID=" . mysql_result($Erg, $i, "UID") . "&Type=Normal", mysql_result($Erg, $i, "Nick"));
-
- $Tlog = (substr(mysql_result($Erg, $i, "lastLogIn"), 8, 2) * 60 * 60 * 24) + // Tag
- (substr(mysql_result($Erg, $i, "lastLogIn"), 11, 2) * 60 * 60) + // Stunde
- (substr(mysql_result($Erg, $i, "lastLogIn"), 14, 2) * 60) + // Minute
- (substr(mysql_result($Erg, $i, "lastLogIn"), 17, 2) ); // Sekunde
-
- $Tlog = $Tist - $Tlog;
-
- echo " " . bcdiv($Tlog, 60) . ":";
-
- if(strlen(bcmod($Tlog, 60)) == 1)
- echo "0";
-
- echo bcmod($Tlog, 60);
- echo "
\n";
- }
-
- echo "
";
+
+
+// Funktionen gibt es nicht auf allen Rechnern
+echo "Engel online
";
+
+$SQL = "SELECT UID, Nick, lastLogIn " .
+"FROM User " .
+"WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "' AND NOT (UID=" . $_SESSION['UID'] . ")) " .
+"ORDER BY lastLogIn DESC;";
+
+$Erg = mysql_query($SQL, $con);
+
+echo "";
+
+for ($i = 0; $i < mysql_num_rows($Erg); $i++) {
+ echo "- ";
+
+ if ($_SESSION['UID'] > 0)
+ echo DisplayAvatar(mysql_result($Erg, $i, "UID"));
+
+ // Show Admin Page
+ echo funktion_isLinkAllowed_addLink_OrLinkText("admin/userChangeNormal.php?enterUID=" . mysql_result($Erg, $i, "UID") . "&Type=Normal", mysql_result($Erg, $i, "Nick"));
+
+ $timestamp = mktime($hour, $minute, $second, $month, $day, $year);
+
+ $Tlog = time() - mysql_result($Erg, $i, "lastLogIn");
+
+ echo " " . date("i:s", $Tlog);
+ echo "
\n";
+}
+
+echo "
";
?>
diff --git a/includes/funktion_flag.php b/includes/funktion_flag.php
index b6a02242..b394d18a 100644
--- a/includes/funktion_flag.php
+++ b/includes/funktion_flag.php
@@ -1,9 +1,9 @@
0)
- $URL = $_SERVER["REQUEST_URI"] . "&SetLanguage=";
- else
- $URL = $_SERVER["REQUEST_URI"] . "?SetLanguage=";
+if (strpos($_SERVER["REQUEST_URI"], "?") > 0)
+ $URL = $_SERVER["REQUEST_URI"] . "&SetLanguage=";
+else
+ $URL = $_SERVER["REQUEST_URI"] . "?SetLanguage=";
- echo " ";
- echo " ";
+echo '';
+echo '';
?>
diff --git a/includes/funktion_menu.php b/includes/funktion_menu.php
index 387310aa..3d20420b 100644
--- a/includes/funktion_menu.php
+++ b/includes/funktion_menu.php
@@ -7,7 +7,7 @@ function ShowMenu($MenuName) {
$Gefunden = false;
// Ueberschift
- $Text = "";
+ $Text = "";
// Eintraege
foreach ($_SESSION['CVS'] as $Key => $Entry)
@@ -37,6 +37,6 @@ function ShowMenu($MenuName) {
}
}
if ($Gefunden)
- echo $MenueTableStart . $Text . $MenueTableEnd;
+ echo '';
} //function ShowMenue
?>
diff --git a/includes/header_start.php b/includes/header_start.php
index 70f986cf..4795cee3 100644
--- a/includes/header_start.php
+++ b/includes/header_start.php
@@ -1,40 +1,40 @@
0)) {
- echo "" . $SystemDisableMessage . "";
- echo "" . $SystemDisableMessage . "\n";
- die();
- }
-
- if(!isset($_SESSION))
- session_start();
-
- include "secure.php";
-
- if(!isset($_SESSION['IP']))
- $_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
-
- if(isset($_SESSION['UID']) && ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR'])) {
- session_destroy ();
- header("Location: " . $url . $ENGEL_ROOT);
- }
-
- include "UserCVS.php";
-
- // update LASTlogin
- if(isset($_SESSION['UID'])) {
- $SQLlastLogIn = "UPDATE `User` SET " .
- "`lastLogIn` = '" . gmdate("Y-m-j H:i:s", time()) . "'" .
- " WHERE `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;";
- mysql_query ($SQLlastLogIn, $con);
- }
+ini_set("session.gc_maxlifetime", "65535");
+
+include "config/config.php";
+include "error_handler.php";
+include "config/config_db.php";
+include "funktion_lang.php";
+include "funktion_faq.php"; // fuer noAnswer() im menu
+include "funktion_menu.php";
+include "funktion_user.php";
+
+if (isset ($SystemDisableMessage) && (strlen($SystemDisableMessage) > 0)) {
+ echo "" . $SystemDisableMessage . "";
+ echo "" . $SystemDisableMessage . "\n";
+ die();
+}
+
+if (!isset ($_SESSION))
+ session_start();
+
+include "secure.php";
+
+if (!isset ($_SESSION['IP']))
+ $_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
+
+if (isset ($_SESSION['UID']) && ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR'])) {
+ session_destroy();
+ header("Location: " . $url . $ENGEL_ROOT);
+}
+
+include "UserCVS.php";
+
+// update LASTlogin
+if (isset ($_SESSION['UID'])) {
+ $SQLlastLogIn = "UPDATE `User` SET " .
+ "`lastLogIn` = '" . time() . "'" .
+ " WHERE `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;";
+ mysql_query($SQLlastLogIn, $con);
+}
?>
diff --git a/includes/menu.php b/includes/menu.php
index 955de8b7..61a3ea73 100644
--- a/includes/menu.php
+++ b/includes/menu.php
@@ -2,35 +2,23 @@
- |
-
-
-
-";
-
ShowMenu("");
ShowMenu("nonpublic");
ShowMenu("admin");
-if(!isset($submenus))
- $submenus = 0;
+if (!isset ($submenus))
+ $submenus = 0;
if ($submenus >= 1) {
- $inc_name = $_SERVER['PHP_SELF'];
- $filenamepos = strrpos($inc_name, '/');
- $filenamepos += 1;
- $filename = substr ($inc_name, $filenamepos );
- $filepost = substr ($filename, 0, -4);
- $filepre = substr ($filename, -4 );
- $verzeichnis = substr ($inc_name, 0 , $filenamepos);
-
- for ($index_nummer=1; $index_nummer <= $submenus; $index_nummer++) {
+ $inc_name = $_SERVER['PHP_SELF'];
+ $filenamepos = strrpos($inc_name, '/');
+ $filenamepos += 1;
+ $filename = substr($inc_name, $filenamepos);
+ $filepost = substr($filename, 0, -4);
+ $filepre = substr($filename, -4);
+ $verzeichnis = substr($inc_name, 0, $filenamepos);
+
+ for ($index_nummer = 1; $index_nummer <= $submenus; $index_nummer++) {
?>
@@ -42,26 +30,27 @@ if ($submenus >= 1) {
-
+
+
diff --git a/www-ssl/css/base.css b/www-ssl/css/base.css
index d87fc2f9..b285c40d 100644
--- a/www-ssl/css/base.css
+++ b/www-ssl/css/base.css
@@ -4,6 +4,7 @@
}
body {
+ font-size: 14px;
}
header {
@@ -13,6 +14,7 @@ header {
footer {
display: block;
+ font-size: 12px;
text-align: center;
width: 100%;
}
@@ -41,6 +43,10 @@ dt {
font-weight: bold;
}
+dd {
+ margin-left: 20px;
+}
+
h4 {
padding: 0 4px;
}
@@ -48,3 +54,7 @@ h4 {
ul {
margin: 0 0 0 20px;
}
+
+a.sprache img {
+ margin: 5px;
+}
diff --git a/www-ssl/css/style10.css b/www-ssl/css/style10.css
new file mode 100644
index 00000000..e69de29b
diff --git a/www-ssl/faq.php b/www-ssl/faq.php
index 472915e5..8a7b3ede 100644
--- a/www-ssl/faq.php
+++ b/www-ssl/faq.php
@@ -13,9 +13,16 @@ $Zeilen = mysql_num_rows($Erg);
for ($n = 0; $n < $Zeilen; $n++) {
if (mysql_result($Erg, $n, "Antwort") != "") {
+ list ($frage_de, $frage_en) = split('
', mysql_result($Erg, $n, "Frage"));
+ list ($antwort_de, $antwort_en) = split('
', mysql_result($Erg, $n, "Antwort"));
echo "";
- echo "- " . mysql_result($Erg, $n, "Frage") . "
";
- echo "- " . mysql_result($Erg, $n, "Antwort") . "
";
+ if ($_SESSION['Sprache'] == "DE") {
+ echo "- " . $frage_de . "
";
+ echo "- " . $antwort_de . "
";
+ } else {
+ echo "- " . $frage_en . "
";
+ echo "- " . $antwort_en . "
";
+ }
echo "
";
}
}
diff --git a/www-ssl/nonpublic/index.php b/www-ssl/nonpublic/index.php
index add0fdd3..b53f8088 100644
--- a/www-ssl/nonpublic/index.php
+++ b/www-ssl/nonpublic/index.php
@@ -10,7 +10,7 @@ include ("includes/crypt.php");
session_start(); // alte Session - falls vorhanden - wiederherstellen...
function LoginOK() {
- include ("../../config/config.php");
+ include ("config/config.php");
header("HTTP/1.1 302 Moved Temporarily");
header("Location: " . $url . $ENGEL_ROOT . "nonpublic/news.php");
}
diff --git a/www-ssl/pic/flag/de.gif b/www-ssl/pic/flag/de.gif
deleted file mode 100644
index 15739e2e..00000000
Binary files a/www-ssl/pic/flag/de.gif and /dev/null differ
diff --git a/www-ssl/pic/flag/de.png b/www-ssl/pic/flag/de.png
new file mode 100644
index 00000000..ac4a9773
Binary files /dev/null and b/www-ssl/pic/flag/de.png differ
diff --git a/www-ssl/pic/flag/en.gif b/www-ssl/pic/flag/en.gif
deleted file mode 100644
index 34936ee3..00000000
Binary files a/www-ssl/pic/flag/en.gif and /dev/null differ
diff --git a/www-ssl/pic/flag/en.png b/www-ssl/pic/flag/en.png
new file mode 100644
index 00000000..ff701e19
Binary files /dev/null and b/www-ssl/pic/flag/en.png differ