I have DBMan set up to allow default users or to log in and set up an account.
When a user logs in they get permissions.
# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 0;
# The amount of time in seconds that user files are kept in the
# auth directory before the program removes them. 2-6 hours is
# probably a good value.
$auth_time = 21600; # 6 hours (in seconds)
# Enable (1) or disable (0) logging.
$auth_logging = 1;
# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 1;
# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,0,0,0,0);
# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
# (1 = "yes", 0 = "no")
$auth_signup = 1;
# Registered users: can modify/delete _only_ own records. For this to make
# sense you should set default off or to 1,0,0,0.
$auth_modify_own = 1;
# Registered users: can view _only_ own records. For this to make sense
# you should turn off default permissions.
# (1 = "yes", 0 = "no")
$auth_view_own = 0;
# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
# (1 = "yes", 0 = "no")
$auth_user_field = 45; < Should this be the field or "1" or "0"
The last few fields of the data base are here.
Date => [42, 'date', 12, 15, 1, &get_date, ''],
Validated => [43, 'alpha', 0, 3, 1, 'Yes', 'Yes|No'],
Popular => [44, 'alpha', 0, 3, 0, '', ''],
Userid => [45, 'alpha', 0, 15, 0, '', '']
I want to allow a default user to be able to see all of the records, or if they wish to add one that they must log in with a user ID and password that they create via the log in screen and that these users can add/modify/delete their on records but can still view all of them.
------------------
Thanks in Advance
SirDaniel
http://www.blackrose.net
When a user logs in they get permissions.
# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 0;
# The amount of time in seconds that user files are kept in the
# auth directory before the program removes them. 2-6 hours is
# probably a good value.
$auth_time = 21600; # 6 hours (in seconds)
# Enable (1) or disable (0) logging.
$auth_logging = 1;
# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 1;
# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,0,0,0,0);
# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
# (1 = "yes", 0 = "no")
$auth_signup = 1;
# Registered users: can modify/delete _only_ own records. For this to make
# sense you should set default off or to 1,0,0,0.
$auth_modify_own = 1;
# Registered users: can view _only_ own records. For this to make sense
# you should turn off default permissions.
# (1 = "yes", 0 = "no")
$auth_view_own = 0;
# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
# (1 = "yes", 0 = "no")
$auth_user_field = 45; < Should this be the field or "1" or "0"
The last few fields of the data base are here.
Date => [42, 'date', 12, 15, 1, &get_date, ''],
Validated => [43, 'alpha', 0, 3, 1, 'Yes', 'Yes|No'],
Popular => [44, 'alpha', 0, 3, 0, '', ''],
Userid => [45, 'alpha', 0, 15, 0, '', '']
I want to allow a default user to be able to see all of the records, or if they wish to add one that they must log in with a user ID and password that they create via the log in screen and that these users can add/modify/delete their on records but can still view all of them.
------------------
Thanks in Advance
SirDaniel
http://www.blackrose.net