Roland Häder [Thu, 27 Jan 2011 20:11:45 +0000 (20:11 +0000)]
Template engine fixed:
- Template engine does now not compile the code, this is required for loading
extension's description templates and maintaining the embeded EL code. This
will make sure that configuration entries and other "dynamic data" can be
inserted on execution time and not on compilation time.
- Some extension's description templates still had {?foo_bar?} EL code instead
of {OPEN_CONFIG}foo_bar{CLOSE_CONFIG}. The first one would insert
configuration data on compilation time, the second on execution time.
- TODOs.txt updated
Roland Häder [Thu, 27 Jan 2011 03:40:54 +0000 (03:40 +0000)]
Swapped out a large number of parameters to an XML construct. The previous commit should not contain this because it is non-functional, so don't use ext-surfbar: work in progress
Roland Häder [Thu, 27 Jan 2011 00:50:40 +0000 (00:50 +0000)]
New wrapper functions introduced, some one-line parameter monsters killed:
- New function addDropTableSql introduced which wraps a DROP TABLE statement
- New (cached) function isSqlTableCreated introduced which checks if the given
table is created
- New (cached) function isSqlTableIndexAdded introduced which checks on a 'mode'
condition (see source code) if the table index is created
- In two admin what-modules there was a one/multi-line parameter monster which
is now dead and resurrected as a human-readable multi-line creature ... ;-)
- TODOs.txt updated
Roland Häder [Wed, 19 Jan 2011 19:20:43 +0000 (19:20 +0000)]
Several code-cleanups:
- Some if() blocks improved by using curly braces (better human-readable)
- The sender of bonus mails is not zero (0) anymore, we use NULL now (maybe
needs some fixing)
- Thanks to SixCooler for reading text of ext-yacy
Roland Häder [Wed, 19 Jan 2011 17:43:35 +0000 (17:43 +0000)]
Extensions bitcoins/yacy added, new API functions for handling proxy/non-proxy added:
- New extension ext-bitcoins ( http://www.bitcoin.org) added as an alternative payment method to direct
cash (Euro, US Dollar, ...)
- New extension ext-yacy ( http://yacy.net ) added to ease setup of a 'site
search'. You still need a running YaCy instance somewhere (should be localhost
for performance reasons).
- The API can now provide the real IP address (even from bethind a proxy) and
'REMOTE_ADDR'. The real IP address can be "detected" with detectRealIpAddress()
and 'REMOTE_ADDR' (which could be a proxy IP) with detectRemoteAddr().
- Wrapper function detectDomainName() introduced
- TODOs.txt updated
Roland Häder [Sat, 8 Jan 2011 20:41:08 +0000 (20:41 +0000)]
Some code cleanups/fixes:
- Function translateUserStatus() does now have a default value, only because it
is better coding practice to init your variables before a switch() command
- Language string ACCOUNT_STATUS_UNKNOWN_STATUS renamed and moved a little
- TODOs.txt updated
Roland Häder [Thu, 30 Dec 2010 18:45:43 +0000 (18:45 +0000)]
Extension ext-forced enhanced, some code cleanup:
- ext-forced enhanced: Table mxchange_forced_campaigns_ads is a n-n table which
connects the ads with the campaigns
- In same extension file more UNSIGNED added and other improvements
- Removed old-lost value init in getConfig()
- TODOs.txt updated
Roland Häder [Tue, 21 Dec 2010 23:32:04 +0000 (23:32 +0000)]
New functions introduced:
- sql_patches must now be 0.7.4 in what-email_details.php
- New (?) template function 'generateExtensionOutdatedMessage() introduced
- Wrapper getMailsPage() introduced
- TODOs.txt updated
Roland Häder [Tue, 21 Dec 2010 22:48:08 +0000 (22:48 +0000)]
The usual asset of bugfixes/improvements:
- Variable $bonus renamed in function to make clear it is boolean type
- Counting of sent mails (column mails_sent) added
- No longer needed header comments removed (it is heavily rewritten anyway)
- A lot missing/wrong array elements fixed in templates and PHP scripts
- New wrapper added (used several times in pool-user.php)
- CSS classes fixed in several 'order' templates
- Several other minor improvements/fixes
- TODOs.txt updated
Roland Häder [Tue, 14 Dec 2010 06:10:00 +0000 (06:10 +0000)]
Performance hacks, encapsulation and more EL code usage:
- Performance hack in SQL_QUERY() to save some expensive str_replace() and other
function calls
- Encapsulation of admin session data
- Some more usage of EL code in admin welcome templates
- TODOs.txt updated
Roland Häder [Sat, 11 Dec 2010 01:03:21 +0000 (01:03 +0000)]
Code cosmetics applied, performance hacks (saved two loops):
- Performance increased by giving str_replace() the full array and not all
array elements one-by-one
- Some code cosmetics applied
- TODOs.txt updated
Roland Häder [Tue, 9 Nov 2010 23:04:18 +0000 (23:04 +0000)]
More wrapper functions introduced, duplicate language strings merged:
- Some duplicate language strings merged
- More wrapper functions for configuration entries introduced
- TODOs.txt updated
Roland Häder [Wed, 3 Nov 2010 17:12:48 +0000 (17:12 +0000)]
Fixed renaming of column names, added/rewritten some debug lines:
- Fixed renaming of column names, the wrong index was checked
- Added debug line for skipped DROP queries
- Rewritten all debugOutput() lines to logDebugMessage() in database layer which
caused a 'Headers already sent' error
- TODOs.txt updated
Roland Häder [Tue, 26 Oct 2010 16:18:23 +0000 (16:18 +0000)]
Documentation updated, fixes for bug #195/196 (previous commit comment was wrong):
- Fixes for missing function SQL_ESCAPE() while in installation phase and setting
language (e.g. call install.php?mx_lang=de), see ticket #196
- Added code to check for double-initialization of cache instance, see ticket #195
- Updated documentation, may be missleading, see ticket #198
- TODOs.txt updated
Roland Häder [Thu, 7 Oct 2010 00:46:26 +0000 (00:46 +0000)]
Variable renamed, function refactured/moved:
- Variable $check renamed to $moduleState which is more clear what the variable
is for
- Function isMember() refactured
- Function translatePoolType() moved to template-functions.php and added
strtoupper() call for the $type variable
- TODOs.txt updated
Roland Häder [Wed, 6 Oct 2010 04:07:48 +0000 (04:07 +0000)]
Korn/csh support improved, if() block rewritten:
- Support for non-bash (e.g. korn/csh) shells in todo-builder.sh
- if() block rewritten to curley braces
- Better TODO lines (fixed)
- TODOs.txt updated
Roland Häder [Sun, 3 Oct 2010 23:04:22 +0000 (23:04 +0000)]
- Beg link does now (not yet implemented but prepared) log all referal URLs. It
is also planed to not pay beg link calls without a referer (admin can setup
it).
- The database layer is now aware of queries like
"ALTER TABLE `foo` CHANGE `bar` `bazz` ...."
- Several minor fixes/improvements
- TODOs.txt updated