Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/plugin/add_cas_login_button/index.php

29 lines
993 B

<?php
// Show the CAS button to login using CAS
12 years ago
require_once api_get_path(SYS_PATH).'main/auth/cas/authcas.php';
12 years ago
$_template['show_message'] = false;
if (api_is_anonymous()) {
$_template['cas_activated'] = api_is_cas_activated();
$_template['cas_configured'] = cas_configured();
12 years ago
$_template['show_message'] = true;
// the default title
$button_label = "Connexion via CAS";
if (!empty($plugin_info['settings']['add_cas_login_button_cas_button_label'])) {
12 years ago
$button_label = api_htmlentities(
$plugin_info['settings']['add_cas_login_button_cas_button_label']
);
}
// the comm
12 years ago
$comm_label = api_htmlentities(
$plugin_info['settings']['add_cas_login_button_cas_button_comment']
);;
// URL of the image
$url_label = $plugin_info['settings']['add_cas_login_button_cas_image_url'];
12 years ago
$_template['button_label'] = $button_label;
$_template['comm_label'] = $comm_label;
$_template['url_label'] = $url_label;
}