mailer.git
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'

11 years agoMore fixes, lesser "caching" and more wrapper functions introduced:
Roland Häder [Sat, 24 Nov 2012 11:57:50 +0000 (11:57 +0000)]
More fixes, lesser "caching" and more wrapper functions introduced:
- Wrapper function addExtensionAddTableIndexSql() introduced
- Wrapper function addExtensionAddTableUniqueSql() introduced
- Wrapper function addExtensionAddTableFulltextSql() introduced
- Wrapper function addExtensionDropTableIndexSql() introduced
- Function ifSqlTableExists() renamed to ifSqlTableColumnExists() and it does
  no longer "cache" its results
- Other fixes which prevents extensions being installed/uninstalled

11 years agoWrong method (POST), should be GET
Roland Häder [Fri, 23 Nov 2012 23:38:34 +0000 (23:38 +0000)]
Wrong method (POST), should be GET

11 years agoFix for missing 4th parameter
Roland Häder [Fri, 23 Nov 2012 23:36:17 +0000 (23:36 +0000)]
Fix for missing 4th parameter

11 years agoUpdated jquery(+ui) to latest stable versions
Roland Häder [Fri, 23 Nov 2012 23:15:57 +0000 (23:15 +0000)]
Updated jquery(+ui) to latest stable versions

11 years agoContinued:
Roland Häder [Mon, 19 Nov 2012 01:09:30 +0000 (01:09 +0000)]
Continued:
- Renamed setOutputMode() to setScriptOutputMode() to be more conform with
  getScriptOutput()
- Added template for AJAX scripts
- Added check for isAjaxOutput() and isInstallationPhase() to proper scripts

11 years agoContinued:
Roland Häder [Sun, 18 Nov 2012 23:54:33 +0000 (23:54 +0000)]
Continued:
- Tried to prevent 'mt_word2' being inserted in default main title in
  installation phase
- TODOs.txt updated

11 years agoInstallation NG continued (still not fully working)
Roland Häder [Sun, 18 Nov 2012 23:45:33 +0000 (23:45 +0000)]
Installation NG continued (still not fully working)

11 years agojQuery updated:
Roland Häder [Fri, 16 Nov 2012 22:40:06 +0000 (22:40 +0000)]
jQuery updated:
- Allowed also jquery-ui being loaded uncompressed (very large)
- Added some more features to it which will be used later on
- TODOs.txt updated

11 years agoSome more rewrites to better functions
Roland Häder [Mon, 12 Nov 2012 19:18:03 +0000 (19:18 +0000)]
Some more rewrites to better functions

11 years agoCheck if table exists, before checking column/key
Roland Häder [Mon, 12 Nov 2012 19:09:23 +0000 (19:09 +0000)]
Check if table exists, before checking column/key

11 years agoext-autopurge does now (not fully) maintain it
Roland Häder [Mon, 12 Nov 2012 19:05:44 +0000 (19:05 +0000)]
ext-autopurge does now (not fully) maintain it

11 years agoMore fixes, debug lines commented out
Roland Häder [Mon, 12 Nov 2012 19:03:33 +0000 (19:03 +0000)]
More fixes, debug lines commented out

11 years agoFixes for installation phase
Roland Häder [Mon, 12 Nov 2012 18:39:00 +0000 (18:39 +0000)]
Fixes for installation phase

11 years agoRemoved double version number
Roland Häder [Mon, 12 Nov 2012 18:26:55 +0000 (18:26 +0000)]
Removed double version number

11 years agoAttempt to fix installation
Roland Häder [Mon, 12 Nov 2012 18:16:24 +0000 (18:16 +0000)]
Attempt to fix installation

11 years agoRestoring the error handler is no longer required as mailer's own handler does now...
Roland Häder [Mon, 12 Nov 2012 18:05:23 +0000 (18:05 +0000)]
Restoring the error handler is no longer required as mailer's own handler does now care about installation phase

11 years agoAlways initialize '_abc'
Roland Häder [Mon, 12 Nov 2012 17:55:42 +0000 (17:55 +0000)]
Always initialize '_abc'

11 years agoRewrote else blocks (avoided them)
Roland Häder [Mon, 12 Nov 2012 17:51:19 +0000 (17:51 +0000)]
Rewrote else blocks (avoided them)

11 years agoTest is not JSON
Roland Häder [Mon, 12 Nov 2012 17:41:37 +0000 (17:41 +0000)]
Test is not JSON

11 years agoExtension ext-surfbar continued:
Roland Häder [Sun, 11 Nov 2012 21:08:57 +0000 (21:08 +0000)]
Extension ext-surfbar continued:
- Added booking packages for ext-surfbar (unfinished admin area + member)
- Renamed most 'Surfbar' to 'Besuchertausch' which is more correct
- Swapped out some messages to language file
- Other improvements
- TODOs.txt updated

11 years agoAdded purging of subid and server_name logs
Roland Häder [Sat, 10 Nov 2012 20:29:55 +0000 (20:29 +0000)]
Added purging of subid and server_name logs

11 years agoEven more fixes/improvements:
Roland Häder [Sat, 10 Nov 2012 19:11:01 +0000 (19:11 +0000)]
Even more fixes/improvements:
- Added missing XML node
- Added missing 'class' to all label tags
- Swapped out text from surfbar templates to language file
- Other minor improvements/fixes

11 years agoMostly ext-forced continued:
Roland Häder [Sat, 10 Nov 2012 17:06:21 +0000 (17:06 +0000)]
Mostly ext-forced continued:
- Missing email templates for forced ads and campaigns added
- More fixes for XML callback-handlers
- Added new (temporary) configuration variable DEBUG_BUILD_MAILS to allow easy
  debugging of "build mails"