Beispiel #1
0
function process_form_submissions()
{
    switch ($_GET['m']) {
        case 'logout':
            process_logout();
            break;
        case 'agreements':
            process_agreements();
            break;
        case 'logs':
            process_logs();
            break;
        case 'universities':
            process_universities();
            break;
        case 'travels':
            process_travels();
            break;
        case 'foreigncredits':
            process_foreign_credits();
            break;
        case 'fmficredits':
            process_fmfi_credits();
            break;
        case 'students':
            process_students();
            break;
        case 'studyprogs':
            process_study_programs();
            break;
        case 'fmficourses':
            process_fmfi_courses();
            break;
        case 'subjectareas':
            process_subject_areas();
            break;
        case 'export':
            process_export();
            break;
        case 'app_list':
            get_applications();
            break;
        case 'application_edit':
            application_edit();
            break;
        case 'application_preview':
            application_preview();
            break;
        case 'application_delete':
            application_delete();
            break;
        case 'edit_form':
            edit_application();
            break;
        default:
        case 'welcome':
            show_welcome();
            break;
    }
}
Beispiel #2
0
$flag = handle_switch($alias, $dest, $nick, $trailing, "<<EXEC_WELCOME_CHANNELS>>", "~welcome", "~welcome-internal", $msg);
switch ($flag) {
    case 1:
        privmsg("welcome enabled for " . chr(3) . "10{$dest}");
        return;
    case 2:
        privmsg("welcome already enabled for " . chr(3) . "10{$dest}");
        return;
    case 3:
        privmsg("welcome disabled for " . chr(3) . "10{$dest}");
        return;
    case 4:
        privmsg("welcome already disabled for " . chr(3) . "10{$dest}");
        return;
    case 9:
        show_welcome($nick);
        return;
}
#####################################################################################################
function show_welcome($nick)
{
    $location = get_location($nick);
    if ($location === False) {
        return;
    }
    $time = get_time($location);
    if ($time == "") {
        return;
    }
    $arr = convert_google_location_time($time);
    $data = process_weather($location, $nick, True);