Program is still not independent

Bug #268040 reported by Sense Egbert Hofstede
4
Affects Status Importance Assigned to Milestone
Eduntius
Confirmed
Undecided
Dirk Dokter

Bug Description

The program is not suitable for different systems yet. Things like 'include "D:\\functions.php";' make it impossible to use the software at other servers than the server of the school it was originally developed for.

Someone should look for these things and fix them.

Revision history for this message
Dirk Dokter (dirkdokter) wrote :

This is fixed in the development release. Functions like "is_logged_in()" and session variables like "$_SESSION['rank']" are replaced by functions in custom_functions.php. That way, users (sysops) can edit custom_functions.php to match their current environment.

Current custom_functions:
HasPermission($type)
Returns boolean.
$type can be e.g. 'admin' or 'manage_departments'

OnNoPermission()
Returns true
Executed when user has no permission to do something. Can e.g. contain a redirect to a login page.

GetUserDisplayName($userid)
Returns 'SYSTEM' if userid==0. Has to be modified return the full name (or initials).

GetUserID()
Returns the userid of the current logged in user.

Changed in eduntius:
assignee: nobody → dirkdokter
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.