rebase, new flags
parent
bf64254625
commit
d163b9921b
@ -1,57 +1,34 @@
|
|||||||
<?php
|
<?php
|
||||||
// Funktionen gibt es nicht auf allen Rechnern
|
|
||||||
if(!function_exists("bcdiv")) {
|
|
||||||
function bcdiv( $param1, $param2) {
|
|
||||||
return floor( $param1 / $param2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!function_exists("bcmod")) {
|
|
||||||
function bcmod( $param1, $param2) {
|
|
||||||
return $param1 - ( $param2 * bcdiv( $param1, $param2));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "<h4 class=\"menu\">Engel online</h4>";
|
// Funktionen gibt es nicht auf allen Rechnern
|
||||||
|
echo "<h4>Engel online</h4>";
|
||||||
|
|
||||||
$SQL = "SELECT UID, Nick, lastLogIn " .
|
$SQL = "SELECT UID, Nick, lastLogIn " .
|
||||||
"FROM User " .
|
"FROM User " .
|
||||||
"WHERE (`lastLogIn` > '" . gmdate("YmdHis", time() - (60 * 60)) . "' AND NOT (UID=" . $_SESSION['UID'] . ")) " .
|
"WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "' AND NOT (UID=" . $_SESSION['UID'] . ")) " .
|
||||||
"ORDER BY lastLogIn DESC;";
|
"ORDER BY lastLogIn DESC;";
|
||||||
|
|
||||||
$Erg = mysql_query($SQL, $con);
|
$Erg = mysql_query($SQL, $con);
|
||||||
|
|
||||||
$Tist = (gmdate("d", time()) * 60 * 60 * 24) + // Tag
|
echo "<ul>";
|
||||||
(gmdate("H", time()) * 60 * 60) + // Stunde
|
|
||||||
(gmdate("i", time()) * 60) + // Minute
|
|
||||||
(gmdate("s", time()) ); // Sekunde
|
|
||||||
|
|
||||||
echo "<ul>";
|
for ($i = 0; $i < mysql_num_rows($Erg); $i++) {
|
||||||
|
echo "<li>";
|
||||||
|
|
||||||
for($i = 0; $i < mysql_num_rows($Erg); $i++) {
|
if ($_SESSION['UID'] > 0)
|
||||||
echo "<li>";
|
echo DisplayAvatar(mysql_result($Erg, $i, "UID"));
|
||||||
|
|
||||||
if($_SESSION['UID'] > 0)
|
// Show Admin Page
|
||||||
echo DisplayAvatar( mysql_result( $Erg, $i, "UID"));
|
echo funktion_isLinkAllowed_addLink_OrLinkText("admin/userChangeNormal.php?enterUID=" . mysql_result($Erg, $i, "UID") . "&Type=Normal", mysql_result($Erg, $i, "Nick"));
|
||||||
|
|
||||||
// Show Admin Page
|
$timestamp = mktime($hour, $minute, $second, $month, $day, $year);
|
||||||
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
|
$Tlog = time() - mysql_result($Erg, $i, "lastLogIn");
|
||||||
(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 " " . date("i:s", $Tlog);
|
||||||
|
echo "</li>\n";
|
||||||
|
}
|
||||||
|
|
||||||
echo " " . bcdiv($Tlog, 60) . ":";
|
echo "</ul>";
|
||||||
|
|
||||||
if(strlen(bcmod($Tlog, 60)) == 1)
|
|
||||||
echo "0";
|
|
||||||
|
|
||||||
echo bcmod($Tlog, 60);
|
|
||||||
echo "</li>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "</ul>";
|
|
||||||
?>
|
?>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
if(strpos($_SERVER["REQUEST_URI"], "?") > 0)
|
if (strpos($_SERVER["REQUEST_URI"], "?") > 0)
|
||||||
$URL = $_SERVER["REQUEST_URI"] . "&SetLanguage=";
|
$URL = $_SERVER["REQUEST_URI"] . "&SetLanguage=";
|
||||||
else
|
else
|
||||||
$URL = $_SERVER["REQUEST_URI"] . "?SetLanguage=";
|
$URL = $_SERVER["REQUEST_URI"] . "?SetLanguage=";
|
||||||
|
|
||||||
echo "<a href=\"" . $URL . "DE\"><img src=\"" . $url . $ENGEL_ROOT . "pic/flag/de.gif\" alt=\"DE\" /></a> ";
|
echo '<a class="sprache" href="' . $URL . 'DE"><img src="' . $ENGEL_ROOT . 'pic/flag/de.png" alt="DE" title="Deutsch"></a>';
|
||||||
echo "<a href=\"" . $URL . "EN\"><img src=\"" . $url . $ENGEL_ROOT . "pic/flag/en.gif\" alt=\"EN\" /></a> ";
|
echo '<a class="sprache" href="' . $URL . 'EN"><img src="' . $ENGEL_ROOT . 'pic/flag/en.png" alt="EN" title="English"></a>';
|
||||||
?>
|
?>
|
||||||
|
@ -1,40 +1,40 @@
|
|||||||
<?php
|
<?php
|
||||||
ini_set("session.gc_maxlifetime", "65535");
|
ini_set("session.gc_maxlifetime", "65535");
|
||||||
|
|
||||||
include "config/config.php";
|
include "config/config.php";
|
||||||
include "error_handler.php";
|
include "error_handler.php";
|
||||||
include "config/config_db.php";
|
include "config/config_db.php";
|
||||||
include "funktion_lang.php";
|
include "funktion_lang.php";
|
||||||
include "funktion_faq.php"; // fuer noAnswer() im menu
|
include "funktion_faq.php"; // fuer noAnswer() im menu
|
||||||
include "funktion_menu.php";
|
include "funktion_menu.php";
|
||||||
include "funktion_user.php";
|
include "funktion_user.php";
|
||||||
|
|
||||||
if(isset($SystemDisableMessage) && (strlen($SystemDisableMessage) > 0)) {
|
if (isset ($SystemDisableMessage) && (strlen($SystemDisableMessage) > 0)) {
|
||||||
echo "<html><head><title>" . $SystemDisableMessage . "</title></head>";
|
echo "<html><head><title>" . $SystemDisableMessage . "</title></head>";
|
||||||
echo "<body>" . $SystemDisableMessage . "</body></html>\n";
|
echo "<body>" . $SystemDisableMessage . "</body></html>\n";
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($_SESSION))
|
if (!isset ($_SESSION))
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
include "secure.php";
|
include "secure.php";
|
||||||
|
|
||||||
if(!isset($_SESSION['IP']))
|
if (!isset ($_SESSION['IP']))
|
||||||
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
|
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
|
||||||
|
|
||||||
if(isset($_SESSION['UID']) && ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR'])) {
|
if (isset ($_SESSION['UID']) && ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR'])) {
|
||||||
session_destroy ();
|
session_destroy();
|
||||||
header("Location: " . $url . $ENGEL_ROOT);
|
header("Location: " . $url . $ENGEL_ROOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
include "UserCVS.php";
|
include "UserCVS.php";
|
||||||
|
|
||||||
// update LASTlogin
|
// update LASTlogin
|
||||||
if(isset($_SESSION['UID'])) {
|
if (isset ($_SESSION['UID'])) {
|
||||||
$SQLlastLogIn = "UPDATE `User` SET " .
|
$SQLlastLogIn = "UPDATE `User` SET " .
|
||||||
"`lastLogIn` = '" . gmdate("Y-m-j H:i:s", time()) . "'" .
|
"`lastLogIn` = '" . time() . "'" .
|
||||||
" WHERE `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;";
|
" WHERE `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;";
|
||||||
mysql_query ($SQLlastLogIn, $con);
|
mysql_query($SQLlastLogIn, $con);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 321 B |
Binary file not shown.
After Width: | Height: | Size: 545 B |
Binary file not shown.
Before Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 599 B |
Loading…
Reference in New Issue