mailer.git
11 years agoBetter report this instead of silent logging
Roland Häder [Thu, 10 Jan 2013 00:23:32 +0000 (00:23 +0000)]
Better report this instead of silent logging

11 years agoAdded separate debugging of 'hourly' reset
Roland Häder [Thu, 10 Jan 2013 00:15:49 +0000 (00:15 +0000)]
Added separate debugging of 'hourly' reset

11 years agoUse countSumTotalData() instead of SQL query
Roland Häder [Wed, 9 Jan 2013 22:20:07 +0000 (22:20 +0000)]
Use countSumTotalData() instead of SQL query

11 years agoAlso ignored *.rss from over-worked RDF/RSS parser
Roland Häder [Wed, 9 Jan 2013 21:17:10 +0000 (21:17 +0000)]
Also ignored *.rss from over-worked RDF/RSS parser

11 years agoRDF/RSS parser fixed:
Roland Häder [Wed, 9 Jan 2013 21:09:18 +0000 (21:09 +0000)]
RDF/RSS parser fixed:
- Added possiblity of a call-back function for finish() method
- Fixed many other things (sorry)
- TODOs.txt updated

11 years agoSave cache 'compacted'
Roland Häder [Wed, 9 Jan 2013 20:15:17 +0000 (20:15 +0000)]
Save cache 'compacted'

11 years agoFixes to HTTP functions to return proper HTTP body and headers:
Roland Häder [Wed, 9 Jan 2013 20:09:30 +0000 (20:09 +0000)]
Fixes to HTTP functions to return proper HTTP body and headers:
- Emptied to .htaccess files to allow accessing doxygen documentation (html)
- The first "$response = array('', '', '')" line caused to much trouble
- Use "strlen($line) == 0" instead of "empty($line)" or else \r\n will be
  detected as empty
- Removed superfluious empty line removal block
- Fixed broken HTTP headers
- Added \r\n to them to mimic header->body
- TODOs.txt updated

11 years agoBug fixed :(
Roland Häder [Wed, 9 Jan 2013 05:19:31 +0000 (05:19 +0000)]
Bug fixed :(

11 years agoMore usage of padLeftZero() instead of prependZeros() but use prependZeros() as a...
Roland Häder [Wed, 9 Jan 2013 05:17:43 +0000 (05:17 +0000)]
More usage of padLeftZero() instead of prependZeros() but use prependZeros() as a fall-back if str_pad() is not available

11 years agoIntroduced padLeftZero()
Roland Häder [Wed, 9 Jan 2013 05:14:09 +0000 (05:14 +0000)]
Introduced padLeftZero()

11 years agoExtension ext-network continued:
Roland Häder [Wed, 9 Jan 2013 01:49:24 +0000 (01:49 +0000)]
Extension ext-network continued:
- Fixed a lot array indexes (27->41)
- Added advertising network 'Crystall' (only Klammlose)
- Internal TODO closed: All api_2.php scripts with parameter "&vc=" are sending
  8 array elements, but 7th is empty if not used
- TODOs.txt updated

11 years agoMINOR: Mark closing braces that closes a simple if() block
Roland Häder [Tue, 8 Jan 2013 23:57:08 +0000 (23:57 +0000)]
MINOR: Mark closing braces that closes a simple if() block

11 years agoPrevious attempt fixed
Roland Häder [Tue, 8 Jan 2013 23:47:25 +0000 (23:47 +0000)]
Previous attempt fixed

11 years agoFixes for 'click URL' and weltpromotion rename
Roland Häder [Tue, 8 Jan 2013 18:45:09 +0000 (18:45 +0000)]
Fixes for 'click URL' and weltpromotion rename

11 years agoLess logging if this is not needed
Roland Häder [Tue, 8 Jan 2013 17:36:29 +0000 (17:36 +0000)]
Less logging if this is not needed

11 years agoAdded more logging of half-failed AJAX requests
Roland Häder [Tue, 8 Jan 2013 17:27:52 +0000 (17:27 +0000)]
Added more logging of half-failed AJAX requests

11 years agoReplace double-quotes with single
Roland Häder [Sun, 6 Jan 2013 21:56:33 +0000 (21:56 +0000)]
Replace double-quotes with single

11 years agoAdded cron.php:
Roland Häder [Sun, 6 Jan 2013 21:35:28 +0000 (21:35 +0000)]
Added cron.php:
- This script can be called from outside cron job script or being called from
  command-line (e.g. php /full/path/to/script/cron.php)
- The local script mode does not support parameters
- TODOs.txt updated

11 years agoIntroduced ext-cron
Roland Häder [Sun, 6 Jan 2013 21:30:36 +0000 (21:30 +0000)]
Introduced ext-cron

11 years agoThese scripts don't need to be included in seaech engine results
Roland Häder [Sun, 6 Jan 2013 21:16:56 +0000 (21:16 +0000)]
These scripts don't need to be included in seaech engine results

11 years agoTemplate script for image 'tags' (e.g. hidden 1x1 pixel for self-maintenance) added
Roland Häder [Sun, 6 Jan 2013 21:13:54 +0000 (21:13 +0000)]
Template script for image 'tags' (e.g. hidden 1x1 pixel for self-maintenance) added

11 years agoFixed also CSS eol-style, updated prop-set.sh
Roland Häder [Sun, 6 Jan 2013 20:28:32 +0000 (20:28 +0000)]
Fixed also CSS eol-style, updated prop-set.sh

11 years agoCorrect MIME type for CSS files set
Roland Häder [Sun, 6 Jan 2013 20:27:02 +0000 (20:27 +0000)]
Correct MIME type for CSS files set

11 years agoMailer project rwritten:
Roland Häder [Sun, 6 Jan 2013 20:25:35 +0000 (20:25 +0000)]
Mailer project rwritten:
- Extension ext-network continued:
  + More missing type handlers added
  + Also array element translations added
  + Made API query generally working
  + Added missing what-config_network.php to allow configuration
  + Many other improvements
- Used correct MIME type for JavaScripts (text/javascript)
- Many other rewrites
- TODOs.txt updated

11 years agoMore cleanups
Roland Häder [Thu, 3 Jan 2013 04:34:06 +0000 (04:34 +0000)]
More cleanups

11 years agoCleanups + optional binding to mailer functions
Roland Häder [Thu, 3 Jan 2013 04:23:02 +0000 (04:23 +0000)]
Cleanups + optional binding to mailer functions

11 years agoRemoved wrong margin-top
Roland Häder [Sun, 30 Dec 2012 21:37:36 +0000 (21:37 +0000)]
Removed wrong margin-top

11 years agoUse recently added wrapper translateFullComma()
Roland Häder [Sun, 30 Dec 2012 00:58:24 +0000 (00:58 +0000)]
Use recently added wrapper translateFullComma()

11 years agoSome improvements:
Roland Häder [Sun, 30 Dec 2012 00:57:13 +0000 (00:57 +0000)]
Some improvements:
- Used wrapper convertCommaToDotInPostData() instead of that wrapped code
- Init database charset to UTF-8 by default
- Use a mask for float instead (float) casting

11 years agoconvertSelectionsToEpocheTimeInPostData() is a wrapper and only needs the POST field...
Roland Häder [Sun, 30 Dec 2012 00:21:11 +0000 (00:21 +0000)]
convertSelectionsToEpocheTimeInPostData() is a wrapper and only needs the POST field's name

11 years agoUsed isPostRequestElementSet() instead of comparing postRequestElement() with empty...
Roland Häder [Sun, 30 Dec 2012 00:18:34 +0000 (00:18 +0000)]
Used isPostRequestElementSet() instead of comparing postRequestElement() with empty string

11 years agoSome reverts/fixes
Roland Häder [Sun, 30 Dec 2012 00:00:48 +0000 (00:00 +0000)]
Some reverts/fixes

11 years agoThe usual changes: forms fixed
Roland Häder [Sat, 29 Dec 2012 23:56:28 +0000 (23:56 +0000)]
The usual changes: forms fixed

11 years agoCheck if at least one parameter (mostly still to less) is given
Roland Häder [Sat, 29 Dec 2012 00:26:29 +0000 (00:26 +0000)]
Check if at least one parameter (mostly still to less) is given

11 years agoIntroduced ext-alert
Roland Häder [Sat, 29 Dec 2012 00:09:25 +0000 (00:09 +0000)]
Introduced ext-alert

11 years agoAgain usual change ... (you know what)
Roland Häder [Fri, 28 Dec 2012 23:39:18 +0000 (23:39 +0000)]
Again usual change ... (you know what)

11 years agoUsual change: ok->other_than_ok ;)
Roland Häder [Fri, 28 Dec 2012 23:19:49 +0000 (23:19 +0000)]
Usual change: ok->other_than_ok ;)

11 years agoFix for missing & symbol in URI
Roland Häder [Fri, 28 Dec 2012 23:16:11 +0000 (23:16 +0000)]
Fix for missing & symbol in URI

11 years agoFix: Use {%server,foo_bar%} not {%server=foo_bar%}
Roland Häder [Fri, 28 Dec 2012 23:14:25 +0000 (23:14 +0000)]
Fix: Use {%server,foo_bar%} not {%server=foo_bar%}

11 years agoRemove array element in cached mode
Roland Häder [Fri, 28 Dec 2012 22:35:28 +0000 (22:35 +0000)]
Remove array element in cached mode

11 years agoMajor rewrite of template system:
Roland Häder [Fri, 28 Dec 2012 22:21:08 +0000 (22:21 +0000)]
Major rewrite of template system:
- Major rewrite on template system:
  + Added code in flushTemplateCache() which will reduce compilation loops
    in doFinalCompilation() which gives a speed boost about 10-20% (not sure)
  + All template caches are now included, not read which gives another speed
    boost
  + DO ALWAYS PURGE YOUR TEMPLATE CACHES!!!
- Other minor rewrites
- Internal TODO closed by removing deprecated parameters
- TODOs.txt updated

11 years agoMoved to this position, so both are closer to each other
Roland Häder [Thu, 27 Dec 2012 04:23:04 +0000 (04:23 +0000)]
Moved to this position, so both are closer to each other

11 years agoext-admins must be checked here, first admin had never 'allow'
Roland Häder [Thu, 27 Dec 2012 04:21:25 +0000 (04:21 +0000)]
ext-admins must be checked here, first admin had never 'allow'

11 years agoMore fixes for new installer and script in general :(
Roland Häder [Thu, 27 Dec 2012 04:11:37 +0000 (04:11 +0000)]
More fixes for new installer and script in general :(

11 years agoIgnore all cache files
Roland Häder [Thu, 27 Dec 2012 01:46:06 +0000 (01:46 +0000)]
Ignore all cache files

11 years agoAJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
Roland Häder [Thu, 27 Dec 2012 01:40:28 +0000 (01:40 +0000)]
AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present (hint: see installer)

11 years agoFixed :(
Roland Häder [Wed, 26 Dec 2012 18:45:00 +0000 (18:45 +0000)]
Fixed :(

11 years agoContinued on AJAX installer to start first step (more are easily to add)
Roland Häder [Wed, 26 Dec 2012 18:11:19 +0000 (18:11 +0000)]
Continued on AJAX installer to start first step (more are easily to add)

11 years agoAdded note for entering alternative prefix
Roland Häder [Mon, 24 Dec 2012 12:17:30 +0000 (12:17 +0000)]
Added note for entering alternative prefix

11 years agoMinor improvements, wrote all upper-case
Roland Häder [Sat, 22 Dec 2012 22:38:26 +0000 (22:38 +0000)]
Minor improvements, wrote all upper-case

11 years agoAlso this old column name is back ...
Roland Häder [Wed, 19 Dec 2012 21:08:59 +0000 (21:08 +0000)]
Also this old column name is back ...

11 years agoThe old column name 'id' must be back :(
Roland Häder [Wed, 19 Dec 2012 21:07:16 +0000 (21:07 +0000)]
The old column name 'id' must be back :(

11 years agoThis is correct (sorry)
Roland Häder [Wed, 19 Dec 2012 21:06:15 +0000 (21:06 +0000)]
This is correct (sorry)

11 years agoFix id->ext_id, moved SQL in right place
Roland Häder [Fri, 14 Dec 2012 14:13:28 +0000 (14:13 +0000)]
Fix id->ext_id, moved SQL in right place

11 years agoMinor fix
Roland Häder [Fri, 14 Dec 2012 12:35:26 +0000 (12:35 +0000)]
Minor fix

11 years agoProtection for all DOCS directories
Roland Häder [Sun, 2 Dec 2012 10:25:23 +0000 (10:25 +0000)]
Protection for all DOCS directories

11 years agoOpps :(
Roland Häder [Sat, 1 Dec 2012 15:40:40 +0000 (15:40 +0000)]
Opps :(

11 years agoMore improvements:
Roland Häder [Sat, 1 Dec 2012 15:39:50 +0000 (15:39 +0000)]
More improvements:
- More configuration wrapper functions added
- Renamed templates to naming convention
- Updated TODOs.txt

11 years agoBetter explanations
Roland Häder [Sat, 1 Dec 2012 15:08:24 +0000 (15:08 +0000)]
Better explanations

11 years agoIntroduced 'per-what-word-wrapping
Roland Häder [Sat, 1 Dec 2012 15:05:07 +0000 (15:05 +0000)]
Introduced 'per-what-word-wrapping

11 years agoAdded more missing wrappers
Roland Häder [Sat, 1 Dec 2012 12:28:05 +0000 (12:28 +0000)]
Added more missing wrappers

11 years agoForgot it to comment out ... :(
Roland Häder [Wed, 28 Nov 2012 17:50:17 +0000 (17:50 +0000)]
Forgot it to comment out ... :(

11 years agoSwapped out more HTML to templates (see ticket #68)
Roland Häder [Wed, 28 Nov 2012 17:40:12 +0000 (17:40 +0000)]
Swapped out more HTML to templates (see ticket #68)

11 years agoFixed registration of ext-bonus, used [userid] instead of
Roland Häder [Wed, 28 Nov 2012 16:57:24 +0000 (16:57 +0000)]
Fixed registration of ext-bonus, used [userid] instead of

11 years agoNew function introduced, fixes for extension installation:
Roland Häder [Wed, 28 Nov 2012 16:32:34 +0000 (16:32 +0000)]
New function introduced, fixes for extension installation:
- Function isTaskIdValid() introduced which checks whether the given task id is
  valid
- Fixed installation of extensions
- Wrapper functions for config table updates now don't check again (as the
  "inner" functions are already doing it)

11 years agoCode moved to other include file:
Roland Häder [Wed, 28 Nov 2012 15:46:32 +0000 (15:46 +0000)]
Code moved to other include file:
- Moved a lot SQL functions which doesn't encapsulate a corresponding
  mysql_foo() function to sql-functions.php
- rewrote loader part
- TODOs.txt updated

11 years agoMinor: With dot again (better grammar)
Roland Häder [Tue, 27 Nov 2012 23:50:52 +0000 (23:50 +0000)]
Minor: With dot again (better grammar)

11 years agoRewrote handling of 'menu adverts' to a filter. This allows e.g. ext-clickbanner...
Roland Häder [Tue, 27 Nov 2012 23:48:03 +0000 (23:48 +0000)]
Rewrote handling of 'menu adverts' to a filter. This allows e.g. ext-clickbanner to register own filters on it

11 years agoIntroduced registerFirstAdmin() and fixed some checks on 'ok' to 'add_first_admin'
Roland Häder [Tue, 27 Nov 2012 23:23:54 +0000 (23:23 +0000)]
Introduced registerFirstAdmin() and fixed some checks on 'ok' to 'add_first_admin'

11 years agoWrong functions :(
Roland Häder [Tue, 27 Nov 2012 23:13:16 +0000 (23:13 +0000)]
Wrong functions :(

11 years agoInstallation of extensions fixes
Roland Häder [Tue, 27 Nov 2012 23:01:45 +0000 (23:01 +0000)]
Installation of extensions fixes
- Again some extensions has not been fully rewritten to newly introduced
  wrapper functions which caused them to not install
- An extra back-tick (`) was found in column name :(
- Added optional $forceFound variable which can be used to (if the table is
  missing) that the column/key is marked as "found"
- Expanded debug messages with column/key name and $forceFound variable
- TODOs.txt updated

11 years agoSome improvements:
Roland Häder [Tue, 27 Nov 2012 22:01:58 +0000 (22:01 +0000)]
Some improvements:
- "noindex_metadata.tpl is now the default (noindex, etc.) template for robot control
- added filter for 'module=confirm'"
- TODOs.txt updated

11 years agorefid can accept NULL now
Roland Häder [Tue, 27 Nov 2012 21:49:42 +0000 (21:49 +0000)]
refid can accept NULL now

11 years agoFixes for missing renaming (double renaming is not yet supported)
Roland Häder [Tue, 27 Nov 2012 21:46:25 +0000 (21:46 +0000)]
Fixes for missing renaming (double renaming is not yet supported)

11 years agoAdded check for installation phase, this fixes the message of a missing template...
Roland Häder [Tue, 27 Nov 2012 21:35:12 +0000 (21:35 +0000)]
Added check for installation phase, this fixes the message of a missing template and doesn't allow robots to index any installation page

11 years agoThis else block caused an abort in index.php on installation phase
Roland Häder [Tue, 27 Nov 2012 21:31:42 +0000 (21:31 +0000)]
This else block caused an abort in index.php on installation phase

11 years agoMoved extra JavaScripts to external template
Roland Häder [Tue, 27 Nov 2012 21:22:10 +0000 (21:22 +0000)]
Moved extra JavaScripts to external template

11 years agoAdded missing template
Roland Häder [Tue, 27 Nov 2012 21:12:03 +0000 (21:12 +0000)]
Added missing template

11 years agoAdded more config wrappers
Roland Häder [Tue, 27 Nov 2012 21:05:08 +0000 (21:05 +0000)]
Added more config wrappers

11 years agoNew function getMenuModeFromModule() introduced:
Roland Häder [Sun, 25 Nov 2012 20:18:24 +0000 (20:18 +0000)]
New function getMenuModeFromModule() introduced:
- Introduced getMenuModeFromModule() which determines the "menu mode" from
  given module. This value can also be used for template names
- Old template removed (listed.tp)
- TODOs.txt updated

11 years agoIntroduced more wrappers
Roland Häder [Sun, 25 Nov 2012 13:34:45 +0000 (13:34 +0000)]
Introduced more wrappers

11 years agoAdded doTemplateGuestFooterExtras() call-back and guest_footer_extras filter chain
Roland Häder [Sun, 25 Nov 2012 13:03:52 +0000 (13:03 +0000)]
Added doTemplateGuestFooterExtras() call-back and guest_footer_extras filter chain

11 years agoTypo ...
Roland Häder [Sun, 25 Nov 2012 12:44:04 +0000 (12:44 +0000)]
Typo ...

11 years agoSome improvements:
Roland Häder [Sun, 25 Nov 2012 12:39:58 +0000 (12:39 +0000)]
Some improvements:
- Used empty() instead of checking strlen() is zero or larger zero
- Used str_pad() instead of other code

11 years agoNative :(
Roland Häder [Sun, 25 Nov 2012 00:43:40 +0000 (00:43 +0000)]
Native :(

11 years agoUpdated propset.sh, fixed all SVN properties
Roland Häder [Sun, 25 Nov 2012 00:37:58 +0000 (00:37 +0000)]
Updated propset.sh, fixed all SVN properties

11 years agoMoved template helpers out of regular functions
Roland Häder [Sun, 25 Nov 2012 00:10:09 +0000 (00:10 +0000)]
Moved template helpers out of regular functions

11 years agoOpps :(
Roland Häder [Sun, 25 Nov 2012 00:06:56 +0000 (00:06 +0000)]
Opps :(

11 years agoMore HTML/EL code fixes, removed assertition as it was to strict (didn't work in...
Roland Häder [Sun, 25 Nov 2012 00:06:20 +0000 (00:06 +0000)]
More HTML/EL code fixes, removed assertition as it was to strict (didn't work in points accounts)

11 years agoMore renaming of name='ok' to something else (better to separate them out)
Roland Häder [Sat, 24 Nov 2012 23:52:34 +0000 (23:52 +0000)]
More renaming of name='ok' to something else (better to separate them out)

11 years agoWas missing :(
Roland Häder [Sat, 24 Nov 2012 23:50:03 +0000 (23:50 +0000)]
Was missing :(

11 years agoSome no more needed variable rewritten
Roland Häder [Sat, 24 Nov 2012 23:44:18 +0000 (23:44 +0000)]
Some no more needed variable rewritten

11 years agoSome minor (text) improvements
Roland Häder [Sat, 24 Nov 2012 23:22:19 +0000 (23:22 +0000)]
Some minor (text) improvements

11 years agoSome menu points renamed to not conflict with configuration menus:
Roland Häder [Sat, 24 Nov 2012 23:14:38 +0000 (23:14 +0000)]
Some menu points renamed to not conflict with configuration menus:
- Renamed config_cats to list_cats, config_mods to list_mods and
  config_rallye_prices to list_rallye_prices as "config" is only
  for configuration table "config"
- In all configuration files "save_config" is now the submit button's name
- TODOs.txt updated

11 years agoSome HTML fixes, ext-sql_patches downgraded (!):
Roland Häder [Sat, 24 Nov 2012 22:52:22 +0000 (22:52 +0000)]
Some HTML fixes, ext-sql_patches downgraded (!):
- Extension ext-sql_patches is now downgraded to 0.9.4 as update 0.9.5 has
  been moved into 0.9.4
- Fixed some HTML errors
- Added missing legend tag (MEMBER_SURFBAR_EDIT_URL_LEGEND)
- TODOs.txt updated

11 years agoAdmin area 'Referral levels' refactured:
Roland Häder [Sat, 24 Nov 2012 22:40:38 +0000 (22:40 +0000)]
Admin area 'Referral levels' refactured:
- Listing/adding,editing/deleting of referral levels is now fully rewritten
  to use XML templates, also "build mails" are being sent
- Almost all admin templates with an id number are now expanded with
  'width="30"' to make it look the same (not all pages)
- TODOs.txt updated

11 years agoAdded missing parameter which allows to add the SQL statements not just to 'install...
Roland Häder [Sat, 24 Nov 2012 20:21:48 +0000 (20:21 +0000)]
Added missing parameter  which allows to add the SQL statements not just to 'install' SQL pool

11 years agoDo not add columns to CREATE statements if you already add them with ALTER TABLE
Roland Häder [Sat, 24 Nov 2012 14:43:55 +0000 (14:43 +0000)]
Do not add columns to CREATE statements if you already add them with ALTER TABLE

11 years agoMore fixes for wrong table name :(
Roland Häder [Sat, 24 Nov 2012 12:38:53 +0000 (12:38 +0000)]
More fixes for wrong table name :(

11 years agoNow the last extension update is being applied, added missing wrapper function for...
Roland Häder [Sat, 24 Nov 2012 12:00:03 +0000 (12:00 +0000)]
Now the last extension update is being applied, added missing wrapper function for config 'bonus_userid'