diff --git a/main/admin/add_courses_to_session.php b/main/admin/add_courses_to_session.php index 082f0d52df..5981d2dd3d 100644 --- a/main/admin/add_courses_to_session.php +++ b/main/admin/add_courses_to_session.php @@ -176,7 +176,7 @@ foreach($Courses as $course) unset($Courses); ?> -
+ - + - + @@ -534,7 +534,7 @@ elseif($action == 'insert_link' || $action == 'edit_link') ?> - + @@ -674,7 +674,7 @@ elseif($action == 'edit_top' || $action == 'edit_news') ?> - + @@ -780,7 +780,7 @@ else @@ -880,7 +880,7 @@ else
-    +   
diff --git a/main/admin/course_category.php b/main/admin/course_category.php index 0c91a2c38f..6eaad29f88 100644 --- a/main/admin/course_category.php +++ b/main/admin/course_category.php @@ -1,4 +1,4 @@ - -<< +<< -<< +<<

- +
- + - +

- +
@@ -199,10 +199,10 @@ else ?>
  • - " alt="" align="absbottom" /> - " alt ="" /> - " alt="" /> - " alt="" /> + " alt="" align="absbottom" /> + " alt ="" /> + " alt="" /> + " alt="" /> ( - )
  • @@ -220,7 +220,7 @@ else - + - + diff --git a/main/admin/session_add.php b/main/admin/session_add.php index 620048730a..707abb38fa 100644 --- a/main/admin/session_add.php +++ b/main/admin/session_add.php @@ -79,7 +79,7 @@ Display::display_header($tool_name); api_display_tool_title($tool_name); ?> - +
    diff --git a/main/admin/session_course_edit.php b/main/admin/session_course_edit.php index 1d4bdd15e9..65c7737eeb 100644 --- a/main/admin/session_course_edit.php +++ b/main/admin/session_course_edit.php @@ -75,7 +75,7 @@ Display::display_header($tool_name); api_display_tool_title($tool_name); ?> - +
    diff --git a/main/admin/session_edit.php b/main/admin/session_edit.php index 33655d53ce..ac9a942e52 100644 --- a/main/admin/session_edit.php +++ b/main/admin/session_edit.php @@ -102,7 +102,7 @@ Display::display_header($tool_name); api_display_tool_title($tool_name); ?> - +
    diff --git a/main/admin/session_export.php b/main/admin/session_export.php index 1b79c7bb4b..277cc729e7 100644 --- a/main/admin/session_export.php +++ b/main/admin/session_export.php @@ -254,7 +254,7 @@ if(!empty($errorMsg)) } ?> - +
    diff --git a/main/admin/session_import.php b/main/admin/session_import.php index 821e12b3a4..1e096ca44e 100644 --- a/main/admin/session_import.php +++ b/main/admin/session_import.php @@ -559,7 +559,7 @@ api_display_tool_title($tool_name); ?> - +
    diff --git a/main/admin/subscribe_class2course.php b/main/admin/subscribe_class2course.php index 3b1b223dd3..ae3c97a736 100644 --- a/main/admin/subscribe_class2course.php +++ b/main/admin/subscribe_class2course.php @@ -1,6 +1,6 @@ - +
    diff --git a/main/admin/subscribe_user2class.php b/main/admin/subscribe_user2class.php index 1559dbca54..61be4eda75 100644 --- a/main/admin/subscribe_user2class.php +++ b/main/admin/subscribe_user2class.php @@ -1,5 +1,5 @@ - +
    diff --git a/main/admin/subscribe_user2course.php b/main/admin/subscribe_user2course.php index e3a3c2eec0..8727f05a18 100644 --- a/main/admin/subscribe_user2course.php +++ b/main/admin/subscribe_user2course.php @@ -1,5 +1,5 @@ - +
    diff --git a/main/auth/my_progress.php b/main/auth/my_progress.php index 5a151eeaab..135ee36b2a 100644 --- a/main/auth/my_progress.php +++ b/main/auth/my_progress.php @@ -89,7 +89,7 @@ echo get_lang('ProgressIntroduction'); ?>

    - +
    : diff --git a/main/chat/chat_message.php b/main/chat/chat_message.php index 0eb17eed4a..3053389607 100755 --- a/main/chat/chat_message.php +++ b/main/chat/chat_message.php @@ -138,7 +138,7 @@ if($sent) include('header_frame.inc.php'); ?> -
    +
    diff --git a/main/chat/chat_whoisonline.php b/main/chat/chat_whoisonline.php index eacb122c44..ebef60b3e9 100755 --- a/main/chat/chat_whoisonline.php +++ b/main/chat/chat_whoisonline.php @@ -87,7 +87,7 @@ else{ - + diff --git a/main/chat/phpfreechat/admin/index.php b/main/chat/phpfreechat/admin/index.php index 4bb288ea2c..9bbcd7c639 100755 --- a/main/chat/phpfreechat/admin/index.php +++ b/main/chat/phpfreechat/admin/index.php @@ -19,7 +19,7 @@ include("index_html_top.php");

    '; else echo '';?> name="user_" href="?showPic=#user_"> name="user_" href="?showPic=#user_">
    - + diff --git a/main/exercice/exercice.php b/main/exercice/exercice.php index 1d06ae373c..04c356d652 100644 --- a/main/exercice/exercice.php +++ b/main/exercice/exercice.php @@ -24,7 +24,7 @@ * @author Olivier Brouckaert, original author * @author Denes Nagy, HotPotatoes integration * @author Wolfgang Schneider, code/html cleanup -* @version $Id: exercice.php 12263 2007-05-03 13:34:40Z elixir_julian $ +* @version $Id: exercice.php 12269 2007-05-03 14:17:37Z elixir_julian $ */ @@ -75,7 +75,7 @@ $audioPath=$documentPath.'/audio'; // hotpotatoes $uploadPath = "/HotPotatoes_files"; -$exercicePath = $_SERVER['PHP_SELF']; +$exercicePath = api_get_self(); $exfile = explode('/',$exercicePath); $exfile = strtolower($exfile[sizeof($exfile)-1]); $exercicePath = substr($exercicePath,0,strpos($exercicePath,$exfile)); diff --git a/main/exercice/hotspot_admin.inc.php b/main/exercice/hotspot_admin.inc.php index 06509a0e77..d5479d0927 100644 --- a/main/exercice/hotspot_admin.inc.php +++ b/main/exercice/hotspot_admin.inc.php @@ -322,7 +322,7 @@ if($modifyAnswers)
    - + diff --git a/main/exercice/question_list_admin.inc.php b/main/exercice/question_list_admin.inc.php index a10bc05660..0695459f1b 100644 --- a/main/exercice/question_list_admin.inc.php +++ b/main/exercice/question_list_admin.inc.php @@ -22,7 +22,7 @@ * Code library for HotPotatoes integration. * @package dokeos.exercise * @author -* @version $Id: question_list_admin.inc.php 11057 2007-02-05 08:56:17Z elixir_julian $ +* @version $Id: question_list_admin.inc.php 12269 2007-05-03 14:17:37Z elixir_julian $ */ @@ -105,14 +105,14 @@ if($nbrQuestions) > -
    selectTitle(); ?> <?php echo get_lang('Modify'); ?> <?php echo get_lang('Delete'); ?> + <?php echo get_lang('Modify'); ?> <?php echo get_lang('Delete'); ?> - <?php echo get_lang('MoveUp'); ?> + <?php echo get_lang('MoveUp'); ?> - <?php echo get_lang('MoveDown'); ?> + <?php echo get_lang('MoveDown'); ?> - + @@ -209,7 +209,7 @@ if($is_allowedToEdit) { ?> - << | + << | - >> + >>

    - <?php echo get_lang('Delete'); ?> + <?php echo get_lang('Delete'); ?>
    - +init(); ?> - +
    File Attachment
    diff --git a/main/inc/lib/system_announcements.lib.php b/main/inc/lib/system_announcements.lib.php index 5da3a243cc..d0003d7891 100644 --- a/main/inc/lib/system_announcements.lib.php +++ b/main/inc/lib/system_announcements.lib.php @@ -62,7 +62,7 @@ class SystemAnnouncementManager { $query_string = ereg_replace('announcement=[1-9]+', '', $_SERVER['QUERY_STRING']); $query_string = ereg_replace('&$', '', $query_string); - $url = $_SERVER['PHP_SELF']; + $url = api_get_self(); echo '
    '; echo '

    '.get_lang('SystemAnnouncements').'

    '; echo '
    '; @@ -150,7 +150,7 @@ class SystemAnnouncementManager { $query_string = ereg_replace('announcement=[1-9]+', '', $_SERVER['QUERY_STRING']); $query_string = ereg_replace('&$', '', $query_string); - $url = $_SERVER['PHP_SELF']; + $url = api_get_self(); echo '
    '; echo '

    '.get_lang('SystemAnnouncements').'

    '; echo '
    '; diff --git a/main/install/index.php b/main/install/index.php index 602ed27c0f..15d767da9c 100644 --- a/main/install/index.php +++ b/main/install/index.php @@ -300,7 +300,7 @@ elseif (!empty($_POST['step5'])) - +
    Dokeos logo diff --git a/main/install/install_functions.inc.php b/main/install/install_functions.inc.php index 8fafea2547..8ea469c256 100644 --- a/main/install/install_functions.inc.php +++ b/main/install/install_functions.inc.php @@ -321,7 +321,7 @@ function display_language_selection()

    :

    - + diff --git a/main/install/update_courses.php b/main/install/update_courses.php index 67ae9641fb..e76571b9a5 100644 --- a/main/install/update_courses.php +++ b/main/install/update_courses.php @@ -126,7 +126,7 @@ elseif($_POST['step1']) -
    +
    diff --git a/main/metadata/md_document.php b/main/metadata/md_document.php index 5960d563b2..d05548e5f7 100644 --- a/main/metadata/md_document.php +++ b/main/metadata/md_document.php @@ -117,7 +117,7 @@ function mdo_add_breadcrump_nav() global $interbreadcrumb, $langFormats; $regs = array(); // for use with ereg() - $docurl = $_SERVER['PHP_SELF']; // should be .../main/xxx/yyy.php + $docurl = api_get_self(); // should be .../main/xxx/yyy.php if (ereg('^(.+[^/\.]+)/[^/\.]+/[^/\.]+.[^/\.]+$', $docurl, $regs)) $docurl = $regs[1] . '/document/document.php'; diff --git a/main/metadata/md_link.php b/main/metadata/md_link.php index c712cdf9c3..b6f31821f3 100644 --- a/main/metadata/md_link.php +++ b/main/metadata/md_link.php @@ -179,7 +179,7 @@ function mdo_add_breadcrump_nav() $regs = array(); // for use with ereg() - $docurl = $_SERVER['PHP_SELF']; // should be .../main/xxx/yyy.php + $docurl = api_get_self(); // should be .../main/xxx/yyy.php if (ereg('^(.+[^/\.]+)/[^/\.]+/[^/\.]+.[^/\.]+$', $docurl, $regs)) $docurl = $regs[1] . '/link/link.php'; diff --git a/main/metadata/md_scorm.php b/main/metadata/md_scorm.php index b4160a5773..b36c411fe5 100644 --- a/main/metadata/md_scorm.php +++ b/main/metadata/md_scorm.php @@ -67,7 +67,7 @@ function mdo_add_breadcrump_nav() global $interbreadcrumb; $regs = array(); // for use with ereg() - $docurl = $_SERVER['PHP_SELF']; // should be .../main/xxx/yyy.php + $docurl = api_get_self(); // should be .../main/xxx/yyy.php if (ereg('^(.+[^/\.]+)/[^/\.]+/[^/\.]+.[^/\.]+$', $docurl, $regs)) $docurl = $regs[1] . '/newscorm/index.php'; diff --git a/main/online/online_chat.php b/main/online/online_chat.php index 7a1cb343e1..f18cecf66c 100644 --- a/main/online/online_chat.php +++ b/main/online/online_chat.php @@ -108,8 +108,8 @@ if($isMaster) - - + +
      
    diff --git a/main/online/online_hidden1.php b/main/online/online_hidden1.php index 93449312d4..a27453fb89 100644 --- a/main/online/online_hidden1.php +++ b/main/online/online_hidden1.php @@ -107,7 +107,7 @@ else include('header_frame.inc.php'); ?> - + diff --git a/main/online/online_links.php b/main/online/online_links.php index 50ebc9022b..180d9420d4 100644 --- a/main/online/online_links.php +++ b/main/online/online_links.php @@ -1,4 +1,4 @@ - - + @@ -221,8 +221,8 @@ else - - + + - +
    diff --git a/main/online/online_streaming.php b/main/online/online_streaming.php index 25ddebe509..f2fea9398f 100644 --- a/main/online/online_streaming.php +++ b/main/online/online_streaming.php @@ -1,4 +1,4 @@ - - +
    diff --git a/main/online/online_whoisonline.php b/main/online/online_whoisonline.php index 6d297d5e6f..dfd73d4b8f 100644 --- a/main/online/online_whoisonline.php +++ b/main/online/online_whoisonline.php @@ -1,4 +1,4 @@ - - + diff --git a/main/upload/upload.document.php b/main/upload/upload.document.php index 06af8d6508..e1559a8be6 100644 --- a/main/upload/upload.document.php +++ b/main/upload/upload.document.php @@ -161,7 +161,7 @@ if(isset($_GET['createdir'])) } else { //give them a link to create a directory ?> -

    +

    @@ -175,7 +175,7 @@ else { //give them a link to create a directory - +
    name="user_" href="?showPic=#user_"> name="user_" href="?showPic=#user_">
    diff --git a/main/user/user_add.php b/main/user/user_add.php index 1952e5b3f5..3abf386462 100644 --- a/main/user/user_add.php +++ b/main/user/user_add.php @@ -260,7 +260,7 @@ Display::display_header($nameTools,"User"); . - +