close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Login Access

Thread began 3/22/2012 1:26 pm by Magega49 | Last modified 4/23/2012 12:43 pm by Magega49 | 1789 views | 19 replies

Jason ByrnesWebAssist

1) you started another thread for this issue where i told you how to add this. looking at your code, instead of following the directions i gave to edit the existing Security Assist Authenticate user behavior, you added 2 new ones.

delete the following code from line 88 - 130 to remove the new ones that you have addded, these wont work:

php:
<?php

if (WA_Auth_RulePasses("Logged in to pcms2_users")){
    
WA_Auth_RestrictAccess("ecart_checkout.php");
}

if(
WA_Auth_RulePasses("Logged in to pcms2_users")){
    
$WA_Auth_Parameter = array(
    
"connection" => $sercure_pages,
    
"database" => $database_sercure_pages,
    
"tableName" => "pcms2_users",
    
"columns" => explode($WA_Auth_Separator,"UserFirstName"),
    
"columnValues" => explode($WA_Auth_Separator,"".strtoupper($_SESSION['UserFirstName'])  .""),
    
"columnTypes" => explode($WA_Auth_Separator,"text"),
    
"sessionColumns" => explode($WA_Auth_Separator,"UserFirstName"),
    
"sessionNames" => explode($WA_Auth_Separator,"UserFirstName"),
    
"successRedirect" => "ecart_checkout.php",
    
"failRedirect" => "ecart_checkout.php",
    
"gotoPreviousURL" => TRUE,
    
"keepQueryString" => TRUE
    
);
    
    
WA_AuthenticateUser($WA_Auth_Parameter);
}

if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
$WA_Auth_Parameter = array(
    
"connection" => $sercure_pages,
    
"database" => $database_sercure_pages,
    
"tableName" => "pcms2_users",
    
"columns" => explode($WA_Auth_Separator,"UserFirstName"),
    
"columnValues" => explode($WA_Auth_Separator,"".$_SESSION['UserFirstName']  .""),
    
"columnTypes" => explode($WA_Auth_Separator,"text"),
    
"sessionColumns" => explode($WA_Auth_Separator,"UserID"),
    
"sessionNames" => explode($WA_Auth_Separator,"UserFirstName"),
    
"successRedirect" => "",
    
"failRedirect" => "",
    
"gotoPreviousURL" => TRUE,
    
"keepQueryString" => TRUE
    
);
    
    
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>




then edit the existing ones on the page by following these steps:
1) Open the server behaviors panel (Window -> Server Behaviors).

2) in the list of server behaviors, double click the Security Assist Authenticate User server behavior.

3) On the session tab, click the plus button and select the Username column.


2) edit the form tag code:

php:
<form class="Basic_Default" id="LogIn_Basic_Default" name="LogIn_Basic_Default" method="post"  action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">




to:

php:
<form class="Basic_Default" id="LogIn_Basic_Default" name="LogIn_Basic_Default" method="post"  action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlentities($_SERVER["QUERY_STRING"], ENT_QUOTES):""?>">

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

Content

rating

Layout

rating

Ease of use

rating

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...