webERP Forum

Full Version: Creating a new page: security settings blocking me
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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
(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

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.