Simple Text File Login script

This is a simple authentication script written in PHP to be used in small websites without SQL database, using a simple text file to store the users and passwords.
Tasklist

FS#64 - Failure if fopen disabled.

Attached to Project: Simple Text File Login script
Opened by Mario A. Valdez-Ramirez (mvaldez) - Friday, 30 July 2004, 10:22 GMT-6
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Monday, 13 September 2004, 12:11 GMT-6
Task Type Bug Report
Category Backend / Core
Status Closed
Assigned To Mario A. Valdez-Ramirez (mvaldez)
Operating System All
Severity Low
Priority Immediate
Reported Version any
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

An user reported his hosting provider disabled fopen and other PHP directory/file-related functions.

The sitefilo scrips depend on fopen to read the users file.

We need to provide alternative solution.
This task depends upon

Closed by  Mario A. Valdez-Ramirez (mvaldez)
Monday, 13 September 2004, 12:11 GMT-6
Reason for closing:  
Comment by Mario A. Valdez-Ramirez (mvaldez) - Friday, 30 July 2004, 10:27 GMT-6
Added alternative users file (slog_users.php) to use when fopen is disabled. It contains two arrays with usernames and password. This file is included (so we avoid fopen).

Added verifications to slogin_lib.inc.php to check if fopen was succesful or not (when reading the user file or writing to the logs). If fopen fails we don't try to fread and fclose. Also, it shows a critical warning to the user.

Fixed the documentation about this.
Comment by Mario A. Valdez-Ramirez (mvaldez) - Friday, 30 July 2004, 10:28 GMT-6
Also, added checks to adminlog.php if we can use fopen or not. If we are not using fopen we can't show the logs, as there are not logs to show anyway.

Loading...