deleted counter function - never needed in the last 4 years
This commit is contained in:
parent
c88b1adcfe
commit
45c8a68beb
|
@ -42,19 +42,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`
|
-- Tabellenstruktur für Tabelle `GroupPrivileges`
|
||||||
--
|
--
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
require_once realpath(__DIR__ . '/../includes/mysqli_provider.php');
|
require_once realpath(__DIR__ . '/../includes/mysqli_provider.php');
|
||||||
|
|
||||||
require_once realpath(__DIR__ . '/../includes/sys_auth.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_log.php');
|
||||||
require_once realpath(__DIR__ . '/../includes/sys_menu.php');
|
require_once realpath(__DIR__ . '/../includes/sys_menu.php');
|
||||||
require_once realpath(__DIR__ . '/../includes/sys_page.php');
|
require_once realpath(__DIR__ . '/../includes/sys_page.php');
|
||||||
|
|
|
@ -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 ;");
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -163,6 +163,4 @@ echo template_render('../templates/layout.html', array(
|
||||||
'locale' => $_SESSION['locale']
|
'locale' => $_SESSION['locale']
|
||||||
));
|
));
|
||||||
|
|
||||||
counter();
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue