Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a new page: security settings blocking me
01-18-2018, 06:47 AM
Post: #1
Creating a new page: security settings blocking me
I uploaded a new php script in the weber directory and followed the manual instruction on how to create a new page but I get the following message:

The security settings on your account do not permit you to access this function

I have full admin privileges in webERP

my code:

Code:
<?php

include('includes/session.php');
$Title = _('Beta Page');

$ViewTopic= 'Inventory';
$BookMark = 'beta feature';
include('includes/header.php');
include('includes/SQL_CommonFunctions.inc');
$ViewTopic = 'SimpleScript';
$BookMark = 'GeneralTopics';
include('includes/header.php');
echo 'hello world';
include('includes/footer.php');
?>


Could someone guide my through the process of making my new page accessible.

Thanks!
Find all posts by this user
Quote this message in a reply
01-18-2018, 06:56 AM
Post: #2
RE: Creating a new page: security settings blocking me
You need to create an entry in the scripts table for your new script.
Alternatively you can hard code the $PageSecurity variable in your script (not a long term solution but helps when you are developing )

Tim
Visit this user's website Find all posts by this user
Quote this message in a reply
01-18-2018, 07:06 AM
Post: #3
RE: Creating a new page: security settings blocking me
(01-18-2018 06:56 AM)falkoner Wrote:  You need to create an entry in the scripts table for your new script.
Alternatively you can hard code the $PageSecurity variable in your script (not a long term solution but helps when you are developing )

Tim

thanks! I was done, but the problem was I needed to log out and log back in Big Grin
Find all posts by this user
Quote this message in a reply
01-18-2018, 07:09 AM
Post: #4
RE: Creating a new page: security settings blocking me
Ah yes I wrote it so that the scripts table is only read on login to avoid the delay if reading it on every page refresh.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)