diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/crypt.php | 12 | ||||
-rw-r--r-- | includes/funktion_counter.php | 14 | ||||
-rw-r--r-- | includes/sys_counter.php | 10 | ||||
-rw-r--r-- | includes/sys_menu.php | 4 |
4 files changed, 12 insertions, 28 deletions
diff --git a/includes/crypt.php b/includes/crypt.php deleted file mode 100644 index 8de22030..00000000 --- a/includes/crypt.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php - function PassCrypt($passwort) { - include "../../config/config.php"; - - switch ($crypt_system) { - case "crypt": - return "{crypt}" . crypt($passwort, "77"); - case "md5": - return md5($passwort); - } - } -?> diff --git a/includes/funktion_counter.php b/includes/funktion_counter.php deleted file mode 100644 index 39d65a1f..00000000 --- a/includes/funktion_counter.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - $SQL = "SELECT `Anz` FROM `Counter` WHERE `URL`=\"" . $Page["Name"] . "\""; - $Erg = mysql_query($SQL, $con); - - echo mysql_error($con); - - if(mysql_num_rows($Erg) == 0) { - $SQL = "INSERT INTO `Counter` ( `URL` , `Anz` ) VALUES ('" . $Page["Name"] . "', '1');"; - $Erg = mysql_query($SQL, $con); - } elseif(mysql_num_rows($Erg) == 1) { - $SQL = "UPDATE `Counter` SET `Anz` = '" . (mysql_result($Erg, 0, 0) +1) . "' WHERE `URL` = '" . $Page["Name"] . "' LIMIT 1 ;"; - $Erg = mysql_query($SQL, $con); - } -?> diff --git a/includes/sys_counter.php b/includes/sys_counter.php new file mode 100644 index 00000000..abcb652b --- /dev/null +++ b/includes/sys_counter.php @@ -0,0 +1,10 @@ +<?php +function counter() { + global $p; + + if (sql_num_query("SELECT `Anz` FROM `Counter` WHERE `URL`='" . sql_escape($p) . "'") == 0) + sql_query("INSERT INTO `Counter` ( `URL` , `Anz` ) VALUES ('" . sql_escape($p) . "', '1');"); + else + sql_query("UPDATE `Counter` SET `Anz` = `Anz` + 1 WHERE `URL` = '" . sql_escape($p) . "' LIMIT 1 ;"); +} +?> diff --git a/includes/sys_menu.php b/includes/sys_menu.php index 8c993d1b..6a24deaf 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -36,8 +36,8 @@ function make_onlineusers() { $html .= "<li>"; - if (isset ($user)) - $html .= DisplayAvatar($online_user['UID']); + //if (isset ($user)) + //$html .= DisplayAvatar($online_user['UID']); // Show Admin Page if (in_array("admin_user_edit", $privileges)) { |