close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Conditional Regions

Thread began 10/20/2009 8:25 pm by dlovas275157 | Last modified 10/21/2009 3:54 pm by Eric Mittman | 1315 views | 1 replies |


Conditional Regions

I am fairly new to WA. I have been working hard to recode old sites that were originally build using ADDT. Does WA offer any tools/server behaviors for creating Conditional Regions similar to the ones ADDT offered? I cannot seem to find any conditional tools in the SuperSuite I have subscribed to.

Particularly, I would like to add a conditional statement to my login.php page that would only show the message "account has been activated" if the referring url is my activate.php page.

Can this conditional be accomplished within WA, or will I need to handcode it? If I need to handcode, can anyone help point me in the right direction as my handcoding is not the sharpest.


Sign in to reply to this post

Eric Mittman

There are conditional regions that can be applied with Security Assist but you would need a rule that checks the referring page. To add a new rule go to Modify > Security Assist > Access Rules Manager. Add a new rule and give it a name set it to allow and for the value use this:

<?php echo((isset($_SERVER["HTTP_REFERER"]))?strpos(urldecode($_SERVER["HTTP_REFERER"]), "activate.php"):""?>

This is checking to see if the referer variable is set and if it is it does a strpos check on this value looking for "active.php".

Once you have this entered for the value choose ">" and enter 0 for the value. This should check the referer to ensure it contains active.php. If it does then the rule will allow access.

Once you have the rule crafted you just need to highlight the message on the page and go to Server Behaviors > Security Assist > Show Region and select this new rule.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...