Esempio n. 1
0
     $content = user_meetings();
 } elseif ($p == "user_myshifts") {
     $title = myshifts_title();
     $content = user_myshifts();
 } elseif ($p == "user_shifts") {
     $title = shifts_title();
     $content = user_shifts();
 } elseif ($p == "user_messages") {
     $title = messages_title();
     $content = user_messages();
 } elseif ($p == "user_questions") {
     $title = questions_title();
     $content = user_questions();
 } elseif ($p == "user_settings") {
     $title = settings_title();
     $content = user_settings();
 } elseif ($p == "login") {
     $title = login_title();
     $content = guest_login();
 } elseif ($p == "register") {
     $title = register_title();
     $content = guest_register();
 } elseif ($p == "logout") {
     $title = logout_title();
     $content = guest_logout();
 } elseif ($p == "admin_questions") {
     $title = admin_questions_title();
     $content = admin_questions();
 } elseif ($p == "admin_user") {
     $title = admin_user_title();
     $content = admin_user();
Esempio n. 2
0
 case 'add_course_form':
     admin_page_head("Add course");
     add_course_form();
     admin_page_tail();
     break;
 case 'add_course':
     $short_name = BoltDb::escape_string(get_str('short_name'));
     $name = BoltDb::escape_string(get_str('course_name'));
     $description = BoltDb::escape_string(get_str('description'));
     $now = time();
     BoltCourse::insert("(create_time, short_name, name, description) values ({$now}, '{$short_name}', '{$name}', '{$description}')");
     Header('Location: bolt_admin.php');
     break;
 case 'update_user_form':
     admin_page_head("Bolt user settings");
     user_settings();
     admin_page_tail();
     break;
 case 'update_user':
     $flags = 0;
     if (get_str('show_all', true)) {
         $flags |= BOLT_FLAGS_SHOW_ALL;
     }
     if (get_str('debug', true)) {
         $flags |= BOLT_FLAGS_DEBUG;
     }
     $user->bolt->update("flags={$flags}");
     $user->bolt->flags = $flags;
     Header('Location: bolt_admin.php');
     break;
 case 'hide':
Esempio n. 3
0
function show_all()
{
    admin_page_head("Bossa administration");
    show_bossa_apps();
    echo "<p>";
    add_app_form();
    echo "<p>";
    user_settings();
    admin_page_tail();
}