Author phaseol on 07-14-2003 at 16:25 (EST)
|We have ours set to NOT allow reservations at this time to the general public. |
We don't want people clicking on the name and changing the info that is put in by the administrator without us having to enter a password for every reservation. I would like to turn off the "enter password field on the submit form that pops up when someone clicks on the name in a time slot.
|Table Of Contents|
| RE: Password Bill Weiner, 2003-07-29 07:22:50 (1)|
|Messages In This Discussion|
| 1. RE: Password|
Author Bill Weiner on 07-29-2003 at 07:22 (EST)
|At this time, even when configuration Question #13 is set to "NO:|
# 13. Would you like to allow regular website visitors to make reservations?
$visitor_permission = "NO";
The administrator still needs to specify a password for the reservation when making the reservation. If the administrator does not specify a password for the reservation, the password will be blank....and thus, when you press submit on the View Details screen.... you are submitting a blank password.... which IS the correct password.
If you don't want that to occur, then the administrator still needs to specify a non-blank password when making the reservation.
Or, if you want to NOT allow ANY visitors to view the details of a reservation/edit a reservation, then you can try making this modification:
STEP 1: Make a backup of the ugolf.pl script... just in case.
STEP 2: Open the ugolf.pl script with any text editor such as WordPad.
STEP 3: Do a search on the following line:
STEP 4: Four lines down from that "sub validate_edit_login" line and directly AFTER the line:
Try adding these lines:
if (($password ne $login_password) && ($visitor_permission =~ /N/i))
&display_message("Permission Denied","Only the administor can view/edit reservations.");
STEP 5: Save the script and try it out!