forked from science-ation/science-ation
23d8765fa6
Make queries for communications easier, all you need is a users.id queried, the system will find everything else for you Add ability to use [PASSWORD], [USERNAME], [EMAIL] (tries accounts.email first, if its not there, it uses accounts.pendingemail), in _ANY_ email. [REGNUM] also added but will obviously only work for participants Add "all" section to the tabs list for user editor, so a user without any roles can still get the basic pages like "account", "roles", and "personal info" Put count on participant invitations for teachers (and superusers) Fix a bug where changing a password for a different user didnt work (it changed YOURS!)
106 lines
2.7 KiB
PHP
106 lines
2.7 KiB
PHP
<?
|
|
$tabs = array(
|
|
'fairinfo' => array(
|
|
'label' => 'Fair Information',
|
|
'types' => array('fair'),
|
|
'file' => 'fair_info.php',
|
|
'enabled' => true,
|
|
),
|
|
'fairstatsgathering' => array(
|
|
'label' => 'Fair Stats Gathering',
|
|
'types' => array('fair'),
|
|
'file' => 'fair_stats_select.php',
|
|
'enabled' => true,
|
|
),
|
|
'personal' => array(
|
|
'label' => 'Personal',
|
|
'name' => 'Personal Information',
|
|
'types' => array('all'),
|
|
'file' => 'user_personal.php',
|
|
'status_func' => 'user_personal_info_status',
|
|
'enabled' => true,
|
|
),
|
|
'organization' => array(
|
|
'label' => 'Organization',
|
|
'name' => 'Organization Information',
|
|
'types' => array('judge','volunteer','sponsor'),
|
|
'file' => 'user_organization.php',
|
|
'status_func' => 'user_organization_status',
|
|
'enabled' => true,
|
|
),
|
|
'judge' => array(
|
|
'label' => 'Judge',
|
|
'types' => array('judge'),
|
|
'file' => 'judge_other.php',
|
|
'status_func' => 'judge_status_other',
|
|
'conference_types' => array('sciencefair'),
|
|
'enabled' => true,
|
|
),
|
|
'activities' => array(
|
|
'label' => 'Activities',
|
|
'types' => array('judge', 'volunteer'),
|
|
'file' => 'activities.php',
|
|
'status_func' => 'activities_status',
|
|
'conference_types' => array('scienceolympics'),
|
|
'enabled' => true,
|
|
),
|
|
'judgeexpertise' => array(
|
|
'label' => 'Expertise',
|
|
'types' => array('judge'),
|
|
'file' => 'judge_expertise.php',
|
|
'enabled' => true,
|
|
),
|
|
'judgeavailability' => array(
|
|
'label' => 'Time Avail.',
|
|
'types' => array('judge'),
|
|
'file' => 'judge_availability.php',
|
|
'disabled' => 'true'
|
|
),
|
|
'judgesa' => array(
|
|
'label' => 'Special Awards',
|
|
'types' => array('judge'),
|
|
'file' => 'judge_special_awards.php',
|
|
'enabled' => true,
|
|
),
|
|
'volunteerpos' => array(
|
|
'label' => 'Volunteer Positions',
|
|
'types' => array('volunteer'),
|
|
'file' => 'volunteer_position.php',
|
|
'status_func' => 'volunteer_status_position',
|
|
'enabled' => true,
|
|
),
|
|
'fairstats' => array(
|
|
'label' => 'Fair Statistics and Information',
|
|
'types' => array('fair'),
|
|
'file' => 'fair_stats.php',
|
|
'disabled' => true,
|
|
),
|
|
'account' => array(
|
|
'label' => 'Account/Login',
|
|
'name' => 'Change Username/Email/Password',
|
|
'types' => array('all'),
|
|
'file' => 'user_account.php',
|
|
'status_func' => false,
|
|
'enabled' => true,
|
|
),
|
|
'roles' => array(
|
|
'label' => 'Roles',
|
|
'name' => 'Add/Remove Roles',
|
|
'types' => array('all'),
|
|
'file' => 'user_roles.php',
|
|
'status_func' => false,
|
|
'enabled' => true,
|
|
),
|
|
'school' => array(
|
|
'label' => 'School',
|
|
'name' => 'Select School Information',
|
|
'types' => array('teacher','participant','principal'),
|
|
'file' => 'user_school.php',
|
|
'status_func' => false,
|
|
'enabled' => true,
|
|
)
|
|
);
|
|
|
|
|
|
?>
|