merging 6.8.4 changes
This commit is contained in:
parent
9a17a77b43
commit
8d8c6d8065
3 changed files with 0 additions and 73 deletions
|
|
@ -9,11 +9,6 @@ save you many hours of grief.
|
|||
|
||||
6.9.0
|
||||
--------------------------------------------------------------------
|
||||
* The If macro has been removed because it's far too dangerous and
|
||||
error prone. If you use the If macro you may continue to use
|
||||
it at your own risk, maintenance, and support cost, but it
|
||||
is no longer supported by Plain Black.
|
||||
|
||||
* The session system has been replaced by a new object-oriented one,
|
||||
which has caused massive API changes. Please consult
|
||||
migration.txt to bring your custom code up to date with the
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
package WebGUI::Help::Macro_If;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'if' => {
|
||||
title => 'if title',
|
||||
body => 'if body',
|
||||
fields => [
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'macros using',
|
||||
namespace => 'Macros'
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
package WebGUI::i18n::English::Macro_If;
|
||||
|
||||
our $I18N = {
|
||||
|
||||
'macroName' => {
|
||||
message => q|If|,
|
||||
lastUpdated => 1128838656,
|
||||
},
|
||||
|
||||
'eval error' => {
|
||||
message => q|<p><b>If Macro failed:</b> %s <p>Expression: %s
|
||||
<br />Display if true: %s<br />Display if false: %s|,
|
||||
lastUpdated => 1134967651,
|
||||
},
|
||||
|
||||
'if title' => {
|
||||
message => q|If Macro|,
|
||||
lastUpdated => 1112466408,
|
||||
},
|
||||
|
||||
'if body' => {
|
||||
message => q|
|
||||
<b>^If();</b><br>
|
||||
A simple conditional statement (IF/THEN/ELSE) to control layout and messages.
|
||||
<p>
|
||||
<i>Examples:</i><br>
|
||||
Display Happy New Year on 1st January:
|
||||
^If('^D("%m%d");' eq '0101' , Happy New Year);
|
||||
<p>
|
||||
Display a message to people on your subnet (192.168.1.*):<br>
|
||||
^If('^Env("REMOTE_ADDR");' =~ /^192.168.1/,"Hi co-worker","Hi Stranger");
|
||||
<p>
|
||||
Display a message to Windows users:<br>
|
||||
^If('^URLEncode("^Env("HTTP_USER_AGENT");");' =~ /windows/i,"Hey... Linux is free !");
|
||||
<p>
|
||||
Display a message if a user is behind a proxy:<br>
|
||||
^If('^Env("HTTP_VIA");' ne "", You're behind a proxy !, Proxy-free is the best...);
|
||||
<p>
|
||||
Display Good Morning/Afternoon/Evening:<br>
|
||||
^If(^D("%J");<=12,Good Morning,^If(^D("%J");<=18,Good Afternoon,Good evening););
|
||||
<p>
|
||||
|
||||
|,
|
||||
lastUpdated => 1112466919,
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue