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

rating

SA not Working

Thread began 7/14/2011 5:58 pm by Mike Perry | Last modified 7/16/2011 12:59 pm by Mike Perry | 834 views | 4 replies |

Mike Perry

SA not Working

I think I'm not getting my Access Rules Manager properly set.

I have a Users db set with username, password, and also a level field. The Login page and code works; I cannot get the various admin pages restricted. One of the pages is newsArticles.php -- when I run the Access Pages Manager and the access code is added I get the DW CS5 error message:

"Dynamically-related files could not be resolved because the site definition is not correct for this server."

If I comment out this:

php:
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>



the site definition error goes away. Of course I get another error because the code following the include_once depends on the commented out file.

I'm using CS5, Windows 7 64 bit, and Apache 2.2. . .

??

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

this points to a problem with your site definition


Most likely a problem with the servers settings, how are the server s setup in the site definition?

do you have a testing server specified?

Sign in to reply to this post

Mike Perry

Hi Jason:

Testing Server

Connect using: Local Network
Server Folder: D:\WebDev\htdocs\ptnew\
Web URL: ptnew/

Testing Server Server Model: PHP MySQL

All other PHP/MySQL functions are operational. .

Sign in to reply to this post

Mike Perry

Jason -- my server error is gone this morning.

That said, I still not getting Access Control. Do I need to add a users table recordset to the pages I want to control? OR does the 'SESSION_id' provide that info?

I have added the username from the users table I want to have access to the Rules Manager group. The value box has "<?php echo $_SESSION['id']; ?>" in it, and the Criteria is "in Group". Compare to is admin, with the username included in that group.

Thanks,

Mike

ETA: Checked for PHP errors -- none reported. . .

Sign in to reply to this post

Mike Perry

Okay -- I'm a little dense this week.

It works using the default "Logged into Users" rule. I wanted to add a restriction based on user level, and was not using the default rule.

Will play with Restricting access based on a Level value in the db. . .

Apologize for tying up the bandwidth :)

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