summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-06-07 19:40:51 +0200
committerPhilip Häusler <msquare@notrademark.de>2015-06-07 19:40:51 +0200
commit45c8a68beba728d0e735bfc7e0426d3a532b2fa7 (patch)
tree0ca0bedec80b49366cc1c0f4b302bda052e3adc2
parentc88b1adcfe6a3affd17158db3d26789cc3103864 (diff)
deleted counter function - never needed in the last 4 years
-rw-r--r--db/install.sql13
-rw-r--r--includes/engelsystem_provider.php1
-rw-r--r--includes/sys_counter.php11
-rw-r--r--public/index.php2
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();
-
?>