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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Errors creating Security Assist access codes

Thread began 2/10/2015 3:46 pm by john70964 | Last modified 2/12/2015 3:17 pm by Jason Byrnes | 435 views | 3 replies |

john70964

Errors creating Security Assist access codes

I am using Security Assist to create some restrict access rules in my localhost page userupdate.php and I am getting an error

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\wamodels\webassist\security_assist\helpergroupsrulesphp.php on line 26

Can you please advise me how I can overcome the error.

I am also getting this error message that pops up occasionally

Image attached

Many thanks
John

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the security_assist\helpergroupsrulesphp.php page please so i can see the code.


when do you get the error in the screen shot?

Sign in to reply to this post

john70964

Thanks Jason,

I get the error when I open
Manage Site access > access pages manager and then click access rules
==========
Code:
<?php

function WA_Auth_GetComparisonsForRule($ruleName){
$comparisons = array();

switch ($ruleName){
case "Email address not found":
$comparisons[0] = array(TRUE, "".((isset($_GET['notFound']))?$_GET['notFound']:"") ."", 2, "");
break;
case "Email server failure":
$comparisons[0] = array(TRUE, "".((isset($_GET['EmailFail']))?$_GET['EmailFail']:"") ."", 2, "");
break;
case "Emailed password":
$comparisons[0] = array(TRUE, "".((isset($_GET['emailedPassword']))?$_GET['emailedPassword']:"") ."", 2, "");
break;
case "Failed log in":
$comparisons[0] = array(TRUE, "".((isset($_GET['failedLogin']))?$_GET['failedLogin']:"") ."", 2, "");
break;
case "Log in success":
$comparisons[0] = array(TRUE, "".((isset($_GET['loggedIn']))?$_GET['loggedIn']:"") ."", 2, "");
break;
case "Logged in to pcms2_users":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['SecurityAssist_UserID']))?$_SESSION['SecurityAssist_UserID']:"") ."", 2, "");
break;
case "Logged in to users":
$comparisons[0] = array(TRUE, "\". ((isset($_SESSION['SecurityAssist_id']))?$_SESSION['SecurityAssist_id']:\"\").\"", 2, "");
break;
case "Successful update":
$comparisons[0] = array(TRUE, "".((isset($_GET['success']))?$_GET['success']:"") ."", 2, "");
break;
case "Validated form":
$comparisons[0] = array(TRUE, "".((isset($_GET['invalid']))?$_GET['invalid']:"") ."", 2, "");
break;
}
return $comparisons;
}


function WA_Auth_GetGroup($groupName){
$group = Array();

switch($groupName){

}

return $group;
}

?>

Sign in to reply to this post

Jason ByrnesWebAssist

the logged into users code looks wrong:

case "Logged in to users":
$comparisons[0] = array(TRUE, "\". ((isset($_SESSION['SecurityAssist_id']))?$_SESSION['SecurityAssist_id']:\"\").\"", 2, "");




should be:

case "Logged in to users":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['SecurityAssist_id']))?$_SESSION['SecurityAssist_id']:"") ."", 2, "");
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

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