close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

including security on custom PS pages

Thread began 11/07/2012 4:01 am by barbara224891 | Last modified 11/08/2012 7:07 am by Jason Byrnes | 857 views | 3 replies |

barbara224891

including security on custom PS pages

I've done a lot of customization of a Power Store installation. Now I've made some pages in the admin folder so that the clients can easily make changes to some of the options. I put these pages in the admin folder and want to make sure that they're secure. I tried adding this code to the top of each page:

<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); if (!session_id()) session_start();?>
<?php
if (!WA_Auth_RulePasses("Administrator")){
WA_Auth_RestrictAccess("index.php");
}
?>

I thought that would make it use the same security rules as the rest of the admin part of the store. However, when I try to follow a link to one of these pages, I get an error message from my browser (Chrome):

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

What am I missing about how to apply security to these pages? I also tried doing it by clicking WebAssist>SecurityAssist>Secure page

It didn't recognize that there were security rules already defined that could be used. This is probably because Power Store is not installed in the root directory.

Suggestions?

Sign in to reply to this post

Jason ByrnesWebAssist

did you add that same code to the admin/index.php page? The access restriction code should not be on the admin/index.php page.


are the secured pages in the admin folder? or a subfolder of the admin folder? if they are in a subfolder of the admin folder, the redirect to the index page would need to be modified to account for that:
WA_Auth_RestrictAccess("../index.php");

Sign in to reply to this post

barbara224891

I didn't touch the index page of the admin section. The pages are in the admin folder, not a subfolder.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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