* -------------------------------------------------------------------- *
* Kurzbeschreibung : Auto-Loeschung von veralteten Mail-Links *
* -------------------------------------------------------------------- *
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Auto-Loeschung von veralteten Mail-Links *
* -------------------------------------------------------------------- *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
return (isset($GLOBALS['stats'][$entry]));
}
// Increments a statistics entry
function incrementStatsEntry ($entry, $amount=1) {
return (isset($GLOBALS['stats'][$entry]));
}
// Increments a statistics entry
function incrementStatsEntry ($entry, $amount=1) {
- $result = SQL_QUERY_ESC("SELECT `stats_entry`, `stats_value` FROM `{?_MYSQL_PREFIX?}_stats_%s` ORDER BY `stats_entry` ASC",
+ $result = sqlQueryEscaped("SELECT `stats_entry`, `stats_value` FROM `{?_MYSQL_PREFIX?}_stats_%s` ORDER BY `stats_entry` ASC",
array(
generateDateTime(time(), '6')
), __FUNCTION__, __LINE__);
// Read all rows
array(
generateDateTime(time(), '6')
), __FUNCTION__, __LINE__);
// Read all rows
}
// Checks if the the statistics table is created
function isStatsTableCreated () {
// Check if the link is up
}
// Checks if the the statistics table is created
function isStatsTableCreated () {
// Check if the link is up
array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__);
array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__);
}
// Create the dummy table
function createStatsTable () {
// Check if the link is up
}
// Create the dummy table
function createStatsTable () {
// Check if the link is up
`stats_entry` VARCHAR(100) NOT NULL DEFAULT '',
`stats_value` BIGINT(20) NOT NULL DEFAULT 0,
PRIMARY KEY (`stats_entry`)
`stats_entry` VARCHAR(100) NOT NULL DEFAULT '',
`stats_value` BIGINT(20) NOT NULL DEFAULT 0,
PRIMARY KEY (`stats_entry`)
// Write all entries to the table
function writeStatsTable () {
// Check if the link is up
// Write all entries to the table
function writeStatsTable () {
// Check if the link is up
array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__);
// Begin the SQL command
array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__);
// Begin the SQL command
- $sql = sprintf("REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ",
+ $sql = sprintf('REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ',
generateDateTime(time(), '6'));
// Add all entries to the final query
generateDateTime(time(), '6'));
// Add all entries to the final query
- SQL_QUERY(substr($sql, 0, -1), __FUNCTION__, __LINE__);
+ sqlQuery(substr($sql, 0, -1), __FUNCTION__, __LINE__);