diff options
-rw-r--r-- | db/install.sql | 13 | ||||
-rw-r--r-- | includes/engelsystem_provider.php | 1 | ||||
-rw-r--r-- | includes/sys_counter.php | 11 | ||||
-rw-r--r-- | public/index.php | 2 |
4 files changed, 0 insertions, 27 deletions
diff --git a/db/install.sql b/db/install.sql index e6773b50..c4da77a2 100644 --- a/db/install.sql +++ b/db/install.sql @@ -43,19 +43,6 @@ INSERT INTO `AngelTypes` (`id`, `name`, `restricted`, `description`) VALUES -- -------------------------------------------------------- -- --- Tabellenstruktur für Tabelle `Counter` --- - -DROP TABLE IF EXISTS `Counter`; -CREATE TABLE IF NOT EXISTS `Counter` ( - `URL` varchar(255) NOT NULL DEFAULT '', - `Anz` bigint(20) NOT NULL DEFAULT '0', - PRIMARY KEY (`URL`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Counter der Seiten'; - --- -------------------------------------------------------- - --- -- Tabellenstruktur für Tabelle `GroupPrivileges` -- 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 ;"); -} -?> diff --git a/public/index.php b/public/index.php index 418b7eea..c625c386 100644 --- a/public/index.php +++ b/public/index.php @@ -163,6 +163,4 @@ echo template_render('../templates/layout.html', array( 'locale' => $_SESSION['locale'] )); -counter(); - ?> |