';
// includes for any files to be displayed below anonymous right menu
if(!file_exists('home/home_notice_'.$user_selected_language.'.html'))
{
include ('home/home_notice.html');
}
else
{
include('home/home_notice_'.$user_selected_language.'.html');
}
echo '
';
**** end of hide various right menu items on anonymous right menu ****/
}
/**
* Reacts on a failed login:
* displays an explanation with
* a link to the registration form.
*
* @version 1.0.1
*/
function handle_login_failed()
{
switch ($_GET['error'])
{
case '':
$message = get_lang("InvalidId");
if (api_is_self_registration_allowed())
{
$message = get_lang("InvalidForSelfRegistration");
}
break;
case 'account_expired':
$message=get_lang('AccountExpired');
break;
case 'account_inactive':
$message=get_lang('AccountInactive');
break;
case 'user_password_incorrect':
$message=get_lang('InvalidId');
break;
}
echo "';
/*
-----------------------------------------------------------------------------
Plugins for loginpage_main AND campushomepage_main
-----------------------------------------------------------------------------
*/
if (!$_uid)
{
api_plugin('loginpage_main');
}
else
{
api_plugin('campushomepage_main');
}
if (!empty ($_GET['include']) && !strstr($_GET['include'], '/') && strstr($_GET['include'], '.html'))
{
include ('./home/'.$_GET['include']);
$pageIncluded = true;
}
else
{
if(!file_exists('home/home_news_'.$user_selected_language.'.html'))
{
include ('home/home_top.html');
}
else
{
include('home/home_top_'.$user_selected_language.'.html');
}
}
// Display System announcements
$announcement = $_GET['announcement'] ? $_GET['announcement'] : -1;
SystemAnnouncementManager :: display_announcements(VISIBLE_GUEST, $announcement);
// Display courses and category list
if (!$pageIncluded)
{
// echo '
';
echo '
';
if (DISPLAY_COURSES_TO_ANONYMOUS_USERS)
{
display_anonymous_course_list();
}
echo '
';
/*
echo '
';
if(!file_exists('home/home_news_'.$user_selected_language.'.html'))
{
include ('home/home_news.html');
}
else
{
include('home/home_news_'.$user_selected_language.'.html');
}
echo '
';
*/
}
echo '
';
// Right Menu
// language form, login section + useful weblinks
echo '';
/*
==============================================================================
FOOTER
==============================================================================
*/
Display :: display_footer();
?>