Commit graph

454 commits

Author SHA1 Message Date
pdontthink
ee0444272e Remove $version, use SM_VERSION constant instead 2007-03-22 20:01:33 +00:00
Thijs Kinkhorst
754716c77f fixes for r12283: mistakenly passed already-split date to date_unparsed,
and correct a mistaken comment at that header
2007-02-27 19:42:21 +00:00
Thijs Kinkhorst
03a31465c8 also store the unparsed date, and display it when we
failed to parse a Date. This allows RFC-incompatible
dates to still be seen in e.g. read_body in their
original form, better than nothing. For safety split
any "<",">" out, something might rely on the date being
completely safe to print.
2007-02-27 18:57:18 +00:00
Thijs Kinkhorst
c91591f9ea misspelled reply_to and in_reply_to attributes 2007-01-24 14:50:31 +00:00
Thijs Kinkhorst
5679469a5a do not add spaces to references header (#1634294),
thanks SOCS
2007-01-18 16:11:28 +00:00
Thijs Kinkhorst
11b10ba5d1 increment year in copyright notices 2007-01-13 20:15:44 +00:00
pdontthink
16ddf3151b Allow template sets to filter or completely change header delivery 2007-01-09 08:03:54 +00:00
pdontthink
5c8bf54951 Fix for unknown index notices caused in templates when looking for plugin output in what was an empty string instead of an empty array 2007-01-03 20:33:11 +00:00
pdontthink
176eafce61 New hook. See added comments if you care. 2007-01-03 10:08:00 +00:00
stekkel
c1a22636b6 At this moment concat_hook_function can return string and arrays.
In php 4.3.x a notice will be raised (i.e. in login.tpl) when a string is passed
as $aPluginOutput.
TODO, only return an arrays by concat_hook_function.
2007-01-02 19:31:45 +00:00
pdontthink
9972bd918f Update for new location of global template utilities. Note that templates/util_global.php is already included by the Template class so is ALWAYS available for ALL template files. 2006-12-30 21:24:00 +00:00
pdontthink
c047501dc9 Allow template sets to override plugin configuration. See config file in template directories. 2006-12-12 10:43:00 +00:00
pdontthink
717be5c30c Massive update to plugin system architecture. Please test! Not all core plugins are tested yet, please point out issues that need to be fixed. Please see http://marc.theaimsgroup.com/?t=116282394000001&r=1&w=2 2006-12-10 05:07:54 +00:00
stekkel
eb9248997e Bodystructure parsing fix 2006-11-26 21:29:46 +00:00
pdontthink
c4d5b290c4 Added comment 2006-11-16 01:44:35 +00:00
pdontthink
0d1813d698 Adding contact info to author name 2006-11-10 23:35:09 +00:00
Randall Smith
b99f103616 Add support for SpamAssassin's X-Spam-Status header (#1589520). 2006-11-10 17:07:17 +00:00
pdontthink
bdaaca8540 Alternate stylesheets function now returns listing of DIRECTORIES in templates/<template name>/css/alternates instead of just .css files therein, so we are consistent with themes provided in the core 2006-10-13 04:24:03 +00:00
stekkel
e8bdd2a04b The error handler catched a delayed error => check if dnt is set. 2006-10-09 20:03:41 +00:00
pdontthink
b42b0a4e5e Strict type check prevents old config files from breaking everything (per new changes to templateset_default and _fallback) 2006-10-09 11:52:17 +00:00
pdontthink
a7eb6ab52c templateset_default and templateset_fallback are IDs now, not unpredictable index numbers 2006-10-09 11:35:21 +00:00
pdontthink
c9a09ee14b Missed a spot. Please use less accusatory language when telling ppl they broke plugins or other things, cuz you make goofs too! ;-) 2006-10-08 16:39:33 +00:00
tokul
f9583348c5 fixed phpdoc formating. require() call loaded before first phpdoc block.
improved template cache. Don't store SM_PATH information in cache. SM_PATH
is ../ in main scripts, but it is ../../ in plugins. Plugin option pages
break if cache stores SM_PATH.
2006-10-07 15:32:40 +00:00
stevetruckstuff
e499b62301 New function to return only the email address. For use with templates. 2006-10-06 21:53:04 +00:00
pdontthink
5ee2685bda Better stylesheet ordering 2006-10-02 12:37:46 +00:00
pdontthink
88c0e28be1 Changes that follow per the inheritance and associated changes to Template.class.php 2006-10-02 09:38:49 +00:00
pdontthink
bd32ccbdf9 Massive rewrite of Template class to implement template inheritance, along with a fallback template (different than concept of a default which just helps catch void in user prefs). As suggested by Alexandros, a caching mechanism replaces the heaps of file_exists() calls in previous implementation, although this introduces more complexity, so watch for bugs! Inheritance implies changes in stylesheet and javascript file loading, in that now all such files inherited from all ancestors are loaded in case a template falls back to one of those ancestors (or the fallback set). Template config file caching and an easy API to get those settings also implemented. Finally, when a template set falls back to another set with a different template engine for a given page, the engine is swapped out dynamically (although this is less than ideal and should be discouraged when authors are creating template sets). 2006-10-02 09:38:05 +00:00
stevetruckstuff
05dc4ac0a8 Add tempalte config var for alternate stylesheets 2006-09-29 22:14:26 +00:00
stevetruckstuff
f7f0248729 Add tempalte config for alternate stylesheets 2006-09-29 22:13:17 +00:00
pdontthink
c2f00d5729 File name change 2006-09-28 14:09:18 +00:00
pdontthink
277876ec43 New Template class implementation 2006-09-28 14:02:11 +00:00
pdontthink
135bc9cf14 renamed with proper class file naming conventions 2006-09-28 14:01:19 +00:00
pdontthink
1cee629ce7 Solved recursion problem and increased efficiency of template_construct hook by adding file name to the end of the hook name, such as template_construct_login.tpl. Changed hook type to use the newly reworked concat_hook_function which can support merged arrays retued from the plugins. 2006-09-22 03:43:26 +00:00
pdontthink
1cd83a21d0 Adding template_construct and template_output hooks. Yikes. 2006-09-21 15:24:41 +00:00
pdontthink
6305990e9f Fixed error check 2006-09-21 13:29:22 +00:00
pdontthink
2268abdccf Forgot to check default template set before falling back to plugin default template for plugin t12n 2006-09-21 13:25:09 +00:00
pdontthink
d61bf277e5 Abstract template file location logic and enable plugin templating. This class still needs abstraction which is the next task here. Only possibly contentious change people should look at here is the use of file_exists() to find template files instead of reling on a hard-coded list of files in template.php. 2006-09-21 12:51:27 +00:00
pdontthink
70bb37e238 Clarifications, questions, proposals 2006-09-19 13:26:08 +00:00
stevetruckstuff
f41a7c9454 Fix unreachable code 2006-09-18 14:38:46 +00:00
stevetruckstuff
706860df49 Delivery notifications and Read notifications are currently treated as identical, which they are not. This patch creates a separate var for these two types of notifications. compose.php will be patched to handle this correctly when templatization (t12n) is completed. 2006-09-15 19:31:32 +00:00
stevetruckstuff
464a61b52b Add explicit saveDelayedErrors() member function 2006-09-15 14:36:34 +00:00
stevetruckstuff
4df9981f2d Prevent the same error from being displayed twice 2006-08-31 18:05:41 +00:00
stevetruckstuff
bac4cf6314 Correct typo in previous commit. 2006-08-31 14:44:51 +00:00
stevetruckstuff
69f9454fbb Fix error with trying to resend the header on a fatal error.
We *really* need to figure out why changes to member variables aren't being remembered outside of the member function in which they are changed.  This is afflicting the Template class and the Error class.
2006-08-31 14:14:28 +00:00
stevetruckstuff
dd7175b447 Move always included vars to init.php because it is confusing when not logged in. 2006-08-18 21:27:51 +00:00
stevetruckstuff
143ca2440c Some variables are needed by all templates to make creation easier. Make sure they are passed as variables to the template. 2006-08-18 20:17:43 +00:00
stevetruckstuff
3f002629a4 Implement delayed error handling. Defaults to FALSE. Enable this feature by calling $oErrorHandler->setDealyedErrors(true). This allows errors to be held on certain pages, e.g. webmail.php and displayed at a more appropriate time, e.g. at the bottom of left_main.php. 2006-08-10 22:31:56 +00:00
tokul
59ae6f3ac2 removing trailing ?> from function scripts 2006-07-15 12:01:32 +00:00
tokul
dbd9f69d03 resubmitting last Monday updates and adding php 5.1.0 timezone support 2006-05-13 19:11:08 +00:00
Thijs Kinkhorst
f46dd4944d - Improve recovery when EHLO not supported on legacy SMTP servers
(#1031455).
2006-05-12 14:39:55 +00:00