diff options
author | Philip Häusler <msquare@notrademark.de> | 2015-06-07 19:40:51 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2015-06-07 19:40:51 +0200 |
commit | 45c8a68beba728d0e735bfc7e0426d3a532b2fa7 (patch) | |
tree | 0ca0bedec80b49366cc1c0f4b302bda052e3adc2 /includes | |
parent | c88b1adcfe6a3affd17158db3d26789cc3103864 (diff) |
deleted counter function - never needed in the last 4 years
Diffstat (limited to 'includes')
-rw-r--r-- | includes/engelsystem_provider.php | 1 | ||||
-rw-r--r-- | includes/sys_counter.php | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php index 1fe06e77..2add641a 100644 --- a/includes/engelsystem_provider.php +++ b/includes/engelsystem_provider.php @@ -5,7 +5,6 @@ require_once realpath(__DIR__ . '/../includes/mysqli_provider.php'); require_once realpath(__DIR__ . '/../includes/sys_auth.php'); -require_once realpath(__DIR__ . '/../includes/sys_counter.php'); require_once realpath(__DIR__ . '/../includes/sys_log.php'); require_once realpath(__DIR__ . '/../includes/sys_menu.php'); require_once realpath(__DIR__ . '/../includes/sys_page.php'); diff --git a/includes/sys_counter.php b/includes/sys_counter.php deleted file mode 100644 index 40110165..00000000 --- a/includes/sys_counter.php +++ /dev/null @@ -1,11 +0,0 @@ -<?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 ;"); -} -?> |