Exemplo n.º 1
0
}
if (isset($_POST['class_group'])) {
    if ($adept_access_token_value == '') {
        $error = "Please enter authentication detail";
    } else {
        $url = $adept_api_url_value . 'groups?access_token=' . $adept_access_token_value . '&account_id=' . $adept_account_id_value;
        $result = $adept->import_groups($url);
        $success = $result;
    }
}
if (isset($_POST['update_group'])) {
    if ($adept_access_token_value == '') {
        $error = "Please enter authentication detail";
    } else {
        $url = $adept_api_url_value . 'recent_group_updates?access_token=' . $adept_access_token_value . '&account_id=' . $adept_account_id_value;
        $result = $adept->update_groups($url);
        $success = $result;
    }
}
//Import course instructors
if (isset($_POST['import_instructors'])) {
    if ($adept_access_token_value == '') {
        $error = "Please enter authentication detail";
    } else {
        $url = $adept_api_url_value . 'instructors?access_token=' . $adept_access_token_value . '&account_id=' . $adept_account_id_value;
        $result = $adept->import_instructors($url);
        $success = $result;
    }
}
//Map WPML language
if (isset($_POST['map_language'])) {