Logo
Explore Help
Sign In
arman/science-ation
1
1
Fork 0
You've already forked science-ation
forked from science-ation/science-ation
Code Pull Requests Activity
science-ation/committee.inc.php

18 lines
357 B
PHP
Raw Normal View History

- Fix login check for an expired password - Allow user_personal.php to handle committee members - Add password field if the editer in user_personal has access_super - Allow a committee member to edit anyone in user_personal.php - Convert auth_required to user_auth_required, and check for both a user type and an access level (if committee) - Convert the committee to the new user system (BIG change :) - Remove the ^M from admin/committees.php
2007-11-17 21:59:59 +00:00
<?
Need to require user.inc.php or else required functions dont exist.
2007-11-21 16:45:35 +00:00
require_once ("user.inc.php");
- Fix login check for an expired password - Allow user_personal.php to handle committee members - Add password field if the editer in user_personal has access_super - Allow a committee member to edit anyone in user_personal.php - Convert auth_required to user_auth_required, and check for both a user type and an access level (if committee) - Convert the committee to the new user system (BIG change :) - Remove the ^M from admin/committees.php
2007-11-17 21:59:59 +00:00
function committee_auth_has_access($access="")
{
switch($access) {
case 'config': return ($_SESSION['access_config'] == 'yes') ? true : false;
case 'admin': return ($_SESSION['access_admin'] == 'yes') ? true : false;
case 'super': return ($_SESSION['access_super'] == 'yes') ? true : false;
}
return false;
}
?>
Copy Permalink
Powered by Gitea Page: 40ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API