From: Roland Häder Date: Sun, 6 Jan 2013 21:30:36 +0000 (+0000) Subject: Introduced ext-cron X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=6401e072bebcbf06f028ebd090979e83826d494a Introduced ext-cron --- diff --git a/.gitattributes b/.gitattributes index 4497996466..50cd70f0e6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -180,6 +180,7 @@ inc/extensions/ext-clickbanner.php svneol=native#text/plain inc/extensions/ext-country.php svneol=native#text/plain inc/extensions/ext-coupon.php svneol=native#text/plain inc/extensions/ext-cprping.php svneol=native#text/plain +inc/extensions/ext-cron.php svneol=native#text/plain inc/extensions/ext-currency.php svneol=native#text/plain inc/extensions/ext-debug.php svneol=native#text/plain inc/extensions/ext-demo.php svneol=native#text/plain @@ -288,6 +289,7 @@ inc/hourly/hourly_ svneol=native#text/plain inc/http-functions.php svneol=native#text/plain inc/img/.htaccess svneol=native#text/plain inc/img/img- svneol=native#text/plain +inc/img/img_ svneol=native#text/plain inc/inc-functions.php svneol=native#text/plain inc/install-functions.php svneol=native#text/plain inc/install-inc.php svneol=native#text/plain @@ -1739,6 +1741,7 @@ templates/de/html/ext/ext_clickbanner.tpl svneol=native#text/plain templates/de/html/ext/ext_country.tpl svneol=native#text/plain templates/de/html/ext/ext_coupon.tpl svneol=native#text/plain templates/de/html/ext/ext_cprping.tpl svneol=native#text/plain +templates/de/html/ext/ext_cron.tpl svneol=native#text/plain templates/de/html/ext/ext_currency.tpl svneol=native#text/plain templates/de/html/ext/ext_debug.tpl svneol=native#text/plain templates/de/html/ext/ext_demo.tpl svneol=native#text/plain diff --git a/DOCS/TODOs.txt b/DOCS/TODOs.txt index 91ca493d06..222f22f2f1 100644 --- a/DOCS/TODOs.txt +++ b/DOCS/TODOs.txt @@ -52,7 +52,8 @@ ./inc/filter/bonus_filter.php:56: // @TODO This query isn't right, it will only update if the user was for a longer time away! ./inc/filter/cache_filter.php:94: // @TODO This should be rewritten not to load the cache file for just checking if it is there for save removal. ./inc/filter/forced_filter.php:73: // @TODO This part is unfinished -./inc/filters.php:1319: // @TODO No banner found, output some default banner +./inc/filter-functions.php:117: // @TODO Remove this forced removal after a year or so +./inc/filters.php:1320: // @TODO No banner found, output some default banner ./inc/functions.php:1126: // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ? ./inc/functions.php:1212: // @TODO Are these convertions still required? ./inc/functions.php:1233:// @TODO Rewrite this function to use readFromFile() and writeToFile() diff --git a/img.php b/img.php index 0325c3f12a..f3075ddb32 100644 --- a/img.php +++ b/img.php @@ -57,7 +57,7 @@ if (isGetRequestElementSet('code')) { generateImageOrCode(bigintval(getRequestElement('code'))); } elseif (isGetRequestElementSet('img')) { // 'img' set so create the IFN (Include-FileName) - $inc = sprintf("inc/img/tag-%s.php", + $inc = sprintf("inc/img/img_%s.php", getRequestElement('img') ); diff --git a/inc/extensions/ext-cron.php b/inc/extensions/ext-cron.php new file mode 100644 index 0000000000..9d66b561b0 --- /dev/null +++ b/inc/extensions/ext-cron.php @@ -0,0 +1,100 @@ + diff --git a/inc/filter-functions.php b/inc/filter-functions.php index 0f50b2e027..19d95e504b 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -114,6 +114,7 @@ ORDER BY registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_HOURLY_RESET'); registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_DAILY_RESET'); registerFilter(__FUNCTION__, __LINE__, 'init', 'TRIGGER_SENDING_POOL'); + // @TODO Remove this forced removal after a year or so unregisterFilter(__FUNCTION__, __LINE__, 'init', 'DETERMINE_USERNAME', TRUE); registerFilter(__FUNCTION__, __LINE__, 'init', 'DETERMINE_WHAT_ACTION'); registerFilter(__FUNCTION__, __LINE__, 'init', 'COUNT_MODULE'); diff --git a/inc/filters.php b/inc/filters.php index 9a4870c3c5..987d89326a 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -772,6 +772,7 @@ function FILTER_TRIGGER_SENDING_POOL () { // Are we in normal output mode? if (!isHtmlOutputMode()) { // Only in normal output mode to prevent race-conditons! + return; } // END - if // Init counter diff --git a/inc/img/img- b/inc/img/img- index 0334fe9ebb..f551ef47b7 100644 --- a/inc/img/img- +++ b/inc/img/img- @@ -1,46 +1,3 @@ diff --git a/inc/img/img_ b/inc/img/img_ new file mode 100644 index 0000000000..0334fe9ebb --- /dev/null +++ b/inc/img/img_ @@ -0,0 +1,46 @@ + diff --git a/templates/de/html/ext/ext_cron.tpl b/templates/de/html/ext/ext_cron.tpl new file mode 100644 index 0000000000..5ea35377f7 --- /dev/null +++ b/templates/de/html/ext/ext_cron.tpl @@ -0,0 +1,16 @@ +
+ Führt chronologisch Jobs aus (z.B. "Selbstverwaltung" und + vieles mehr. Dies entlastet den normalen Scriptdurchlauf (z.B. über + modules.php enorm und beschleunigt so den Seiteaufbau. +
+ +
+ Alternativ kann dieses Script auch externe Scripte chronologisch aufrufen, + so dass Sie z.B. ein tägliches Wartungsscript einer externen + Banner-Rotation über dieses Script ansprechen können. +
+ +
+ In der ersten Ausbaustufe der Erweiterung sind erstmal nur stündliche, + tägliche, wöchendliche und monatliche Aufrufe möglich. +