Posted by Allyn
2014-01-15

Tom, I give you all the same compliments already given. I generated an address book and it works great. I want my visitors to be able to login as a guest and only see the records with no editing available to them. so 2 things: 1. how do guests log in? 2. I want them to only see and search for records.
Posted by Tom
2014-01-16

To disable the editing feature, open web/staff/app/cls_ps_(--table-name--).inc.php and find the line:
case 'edit_inp':
and add exit; to it. The result should look like:
case 'edit_inp': exit;
Do the same for the following lines, too.
"case 'edit_done':"
"case 'reg_inp':"
"case 'reg_done':"
"case 'del_multi':
Posted by Tom
2014-01-16

Hi Allyn,

First, open web/staff/app/cls_sys_base.inc.php, and find $spec_sys_base array. It looks like this:
$spec_sys_base = array(
XA_CLASS=>'cls_sys_base',
XA_AUTH=>true,
XA_DEFAULT_PAGESET=>'frame',
XA_FRAME_FIELDSET=>'staff',
XA_FRAME_FIELDSET_ID=>'staff_id',
XA_START_PAGE=>'(--your-table-name--)/_def'
);
( Note (--your-table-name--) varies from a script to another. )
Next, replace $spec_sys_base with the following code:
$spec_sys_base = array(
XA_CLASS=>'cls_sys_base',
XA_DEFAULT_PAGESET=>'(--your-table-name--)',
);
Note (--your-table-name--) should be the same as (--your-table-name--) in the first snippet.
Now, visitors can see data without logging in.