diff --git a/index.php b/index.php
index 3e2dac9143..4e19efa2cd 100644
--- a/index.php
+++ b/index.php
@@ -1,4 +1,4 @@
-, Ghent University, Refactoring
-* @version $Id: index.php 18379 2009-02-09 20:42:34Z juliomontoya $
+* @version $Id: index.php 18470 2009-02-12 15:33:51Z juliomontoya $
* @todo check the different @todos in this page and really do them
* @todo check if the news management works as expected
*/
@@ -238,7 +238,6 @@ if (isset($_user['user_id'])) {
// Display courses and category list
if (!$page_included) {
-
if (api_get_setting('display_categories_on_homepage') == 'true') {
echo '
';
display_anonymous_course_list();
@@ -264,7 +263,8 @@ Display :: display_footer();
*
* @author Patrick Cool
, Ghent University
*/
-function logout() {
+function logout()
+{
global $_configuration, $extAuthSource;
// variable initialisation
$query_string='';
@@ -446,7 +446,8 @@ function display_anonymous_right_menu() {
//display_create_course_link();
$show_menu=true;
$show_create_link=true;
- }
+ }
+
if (api_is_platform_admin() || api_is_course_admin() || api_is_allowed_to_create_course()) {
$show_menu=true;
$show_course_link=true;
@@ -469,24 +470,21 @@ function display_anonymous_right_menu() {
echo " ";
}
}
-
-
-
+
// includes for any files to be displayed below anonymous right menu
- if (!file_exists($home.'home_notice_'.$user_selected_language.'.html') && file_exists($home.'home_notice.html')) {
+ if (!file_exists($home.'home_notice_'.$user_selected_language.'.html') && file_get_contents($home.'home_notice.html')!='') {
echo '';
if (file_exists($home.'home_notice.html'))
include ($home.'home_notice.html');
else {
include ($home_old.'home_notice.html');
- }
+ }
echo '
';
- } elseif(file_exists($home.'home_notice_'.$user_selected_language.'.html') && file_exists($home.'home_notice_'.$user_selected_language.'.html')) {
+ } elseif(file_exists($home.'home_notice_'.$user_selected_language.'.html') && file_get_contents($home.'home_notice_'.$user_selected_language.'.html')!='') {
echo '';
- include($home.'home_notice_'.$user_selected_language.'.html');
+ include($home.'home_notice_'.$user_selected_language.'.html');
echo '
';
- }
-
+ }
}
/**