close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding Page access to New DataAssist Page Set in PowerStore 4.5.1 Admin.

Thread began 3/10/2012 7:07 pm by neilo | Last modified 3/11/2012 9:25 am by neilo | 1546 views | 5 replies |

neilo

Adding Page access to New DataAssist Page Set in PowerStore 4.5.1 Admin.

Adding Page access to New DataAssist Page Set in PowerStore 4.5.1 Admin.

Is there an easy way to do this? I have spent two days with Security Assist trying to complete this presumably simple task.

The PowerStore 'admin' folder is as standard, but I have used DataAssist to add new Insert, Results, detail etc. pages for a 'books' section to add Amazon code to sell related books via the Amazon partners program. All works well.

All I want to do is add page access so that once the site Administrator has logged in via admin/index.php, he will also be granted to those pages. The Access Groups and Access Rules already exist, so I run the Page Access Manager, and it adds the code:

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

to each of the six new pages, which is the same access that is in the existing PowerStore admin pages. But every time I try to access one of the six new pages after logging into admin, I get the following error:

  The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to accept cookies.  

Is there a simple way of doing this? - i.e. step-by-step walk-through?

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

I think you just need to also include the globals file:

/webassist/globals/globals.php

That file is needed to define the admin username and password that is used in that rule.

Sign in to reply to this post
Did this help? Tips are appreciated...

neilo

Thanks Ray,

I added that to my pages, - now I get:

  "Fatal error: Call to undefined function rel2abs() in /home/users/uks77340/html/worldbasket.co.uk/webassist/globals/globals.php on line 47"  

which is:

$absLink = rel2abs("../../",dirname(__FILE__));
Sign in to reply to this post

neilo

I attach the results page - one of the 6 new DataAssist pages that sit in the admin directory in powerstore. Essentially, I need this and the others to be available to the logged in administrator of the PowerStore 4.5.1

Sorry to be so thick about this - probably something very obvious.

Thanks

Attached Files
wb_books_Results.zip
Sign in to reply to this post

Ray BorduinWebAssist

It looks like you also need to include:

/webassist/framework/library.php

before globals.php can load.

Sign in to reply to this post
Did this help? Tips are appreciated...

neilo

Excellent, Ray.

Many, many thanks for all your time,

Best regards.

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