[svn r14573] Renamed REL_CLARO_PATH constant to REL_CODE_PATH

skala
Yannick Warnier 17 years ago
parent 77bb192aed
commit c28cc8c55f
  1. 4
      main/admin/course_list.php
  2. 2
      main/inc/lib/debug.lib.inc.php
  3. 8
      main/inc/lib/main_api.lib.php
  4. 2
      main/inc/lib/tracking.lib.php
  5. 6
      main/inc/tool_navigation_menu.inc.php
  6. 6
      main/newscorm/learnpath.class.php
  7. 4
      main/newscorm/lp_comm.server.php
  8. 2
      main/tracking/courseLog.php

@ -1,5 +1,5 @@
<?php
// $Id: course_list.php 13982 2007-12-10 18:04:25Z yannoo $
// $Id: course_list.php 14573 2008-03-11 22:54:59Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -131,7 +131,7 @@ function modify_filter($code)
*/
function get_course_visibility_icon($v)
{
$path = api_get_path(REL_CLARO_PATH);
$path = api_get_path(REL_CODE_PATH);
$style = 'style="margin-bottom:-5px;margin-right:5px;"';
switch($v)
{

@ -83,7 +83,7 @@ function debug_paths()
echo 'WEB_COURSE_PATH :'.api_get_path(WEB_COURSE_PATH).'<br />';
echo 'SYS_COURSE_PATH :'.api_get_path(SYS_COURSE_PATH).'<br />';
echo 'REL_COURSE_PATH :'.api_get_path(REL_COURSE_PATH).'<br />';
echo 'REL_CLARO_PATH :'.api_get_path(REL_CLARO_PATH).'<br />';
echo 'REL_CLARO_PATH :'.api_get_path(REL_CODE_PATH).'<br />';
echo 'WEB_CODE_PATH :'.api_get_path(WEB_CODE_PATH).'<br />';
echo 'SYS_CODE_PATH :'.api_get_path(SYS_CODE_PATH).'<br />';
echo 'SYS_LANG_PATH :'.api_get_path(SYS_LANG_PATH).'<br />';

@ -71,7 +71,7 @@ define('REL_PATH', 'REL_PATH');
define('WEB_COURSE_PATH', 'WEB_COURSE_PATH');
define('SYS_COURSE_PATH', 'SYS_COURSE_PATH');
define('REL_COURSE_PATH', 'REL_COURSE_PATH');
define('REL_CLARO_PATH', 'REL_CLARO_PATH');
define('REL_CODE_PATH', 'REL_CODE_PATH');
define('WEB_CODE_PATH', 'WEB_CODE_PATH');
define('SYS_CODE_PATH', 'SYS_CODE_PATH');
define('SYS_LANG_PATH', 'SYS_LANG_PATH');
@ -254,7 +254,7 @@ function api_is_self_registration_allowed()
*
* @param one of the following constants:
* WEB_PATH, SYS_PATH, REL_PATH, WEB_COURSE_PATH, SYS_COURSE_PATH,
* REL_COURSE_PATH, REL_CLARO_PATH, WEB_CODE_PATH, SYS_CODE_PATH,
* REL_COURSE_PATH, REL_CODE_PATH, WEB_CODE_PATH, SYS_CODE_PATH,
* SYS_LANG_PATH, WEB_IMG_PATH, GARBAGE_PATH, PLUGIN_PATH, SYS_ARCHIVE_PATH,
* INCLUDE_PATH, LIBRARY_PATH, CONFIGURATION_PATH
*
@ -267,7 +267,7 @@ function api_is_self_registration_allowed()
* WEB_COURSE_PATH http://www.mydokeos.com/courses/
* SYS_COURSE_PATH /var/www/dokeos/courses/
* REL_COURSE_PATH
* REL_CLARO_PATH
* REL_CODE_PATH
* WEB_CODE_PATH
* SYS_CODE_PATH
* SYS_LANG_PATH
@ -336,7 +336,7 @@ function api_get_path($path_type)
// example: courses/ or dokeos/courses/
return api_get_path(REL_PATH).$_configuration['course_folder'];
break;
case REL_CLARO_PATH :
case REL_CODE_PATH :
// example: main/ or dokeos/main/
return api_get_path(REL_PATH).$_configuration['code_append'];
break;

@ -170,7 +170,7 @@ class Tracking {
//If the last connection is > than 7 days, the text is red
//345600 = 7 days in seconds
if ($currentTimestamp - $timestamp > 604800) {
return '<span style="color: #F00;">' . format_locale_date(get_lang('DateFormatLongWithoutDay'), strtotime($last_login_date)) . ' <a href="'.api_get_path(REL_CLARO_PATH).'announcements/announcements.php?action=add&remind_inactive='.$student_id.'" title="'.get_lang('RemindInactiveUser').'"><img align="middle" src="'.api_get_path(WEB_IMG_PATH).'messagebox_warning.gif" /></a></span>';
return '<span style="color: #F00;">' . format_locale_date(get_lang('DateFormatLongWithoutDay'), strtotime($last_login_date)) . ' <a href="'.api_get_path(REL_CODE_PATH).'announcements/announcements.php?action=add&remind_inactive='.$student_id.'" title="'.get_lang('RemindInactiveUser').'"><img align="middle" src="'.api_get_path(WEB_IMG_PATH).'messagebox_warning.gif" /></a></span>';
} else {
return format_locale_date(get_lang('DateFormatLongWithoutDay'), strtotime($last_login_date));
}

@ -1,5 +1,5 @@
<?php
// $Id: tool_navigation_menu.inc.php 13630 2007-11-06 19:23:41Z yannoo $
// $Id: tool_navigation_menu.inc.php 14573 2008-03-11 22:54:59Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -73,7 +73,7 @@ function get_navigation_items($include_admin_tools = false)
$navigation_items[$row['id']] = $row;
if (!stristr($row['link'], 'http://'))
{
$navigation_items[$row['id']]['link'] = api_get_path(REL_CLARO_PATH).$row['link'];
$navigation_items[$row['id']]['link'] = api_get_path(REL_CODE_PATH).$row['link'];
$navigation_items[$row['id']]['name'] = $row['image'] == 'scormbuilder.gif' ? $navigation_items[$row['id']]['name'] : get_lang(ucfirst($navigation_items[$row['id']]['name']));
}
}
@ -96,7 +96,7 @@ function get_navigation_items($include_admin_tools = false)
// course settings item
$navigation_items['course_settings']['image'] = $course_setting_info['image'];
$navigation_items['course_settings']['link'] = api_get_path(REL_CLARO_PATH).'course_info/infocours.php';
$navigation_items['course_settings']['link'] = api_get_path(REL_CODE_PATH).'course_info/infocours.php';
$navigation_items['course_settings']['name'] = $course_setting_visual_name;
}

@ -7215,7 +7215,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
$return .= '<div class="lp_resource_element">';
$return .= '<img alt="" src="../img/new_test_small.gif" style="margin-right:5px;" title="" />';
$return .= '<a href="'.api_get_path(REL_CLARO_PATH).'exercice/exercise_admin.php">' . get_lang('NewExercise') . '</a>';
$return .= '<a href="'.api_get_path(REL_CODE_PATH).'exercice/exercise_admin.php">' . get_lang('NewExercise') . '</a>';
$return .= '</div>';
$return .= '</div>';
@ -7254,7 +7254,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
}
$return .= '<div class="lp_resource_element">';
$return .= '<img align="left" alt="" src="../img/file_html_new_small.gif" style="margin-right:5px;" title="" />';
$return .= '<a href="'.api_get_path(REL_CLARO_PATH).'link/link.php?'.api_get_cidreq().'&action=addlink" title="' . get_lang('LinkAdd') . '">' . get_lang('LinkAdd') . '</a>';
$return .= '<a href="'.api_get_path(REL_CODE_PATH).'link/link.php?'.api_get_cidreq().'&action=addlink" title="' . get_lang('LinkAdd') . '">' . get_lang('LinkAdd') . '</a>';
$return .= '</div>';
if(Database::num_rows($res_link) == 0)
@ -7337,7 +7337,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
$return .= '<div class="lp_resource_element">';
$return .= '<img align="left" alt="" src="../img/forum_new_small.gif" style="margin-right:5px;" title="" />';
$return .= '<a href="'.api_get_path(REL_CLARO_PATH).'forum/index.php?'.api_get_cidreq().'&action=add&amp;content=forum" title="'.get_lang('CreateANewForum').'">'.get_lang('CreateANewForum').'</a>';
$return .= '<a href="'.api_get_path(REL_CODE_PATH).'forum/index.php?'.api_get_cidreq().'&action=add&amp;content=forum" title="'.get_lang('CreateANewForum').'">'.get_lang('CreateANewForum').'</a>';
$return .= '</div>';
return $return;

@ -86,7 +86,7 @@ function save_item($lp_id,$user_id,$view_id,$item_id,$score=-1,$max=-1,$min=-1,$
$mylp = & $oLP;
}
}
//$objResponse->addAlert(api_get_path(REL_CLARO_PATH).'newscorm/learnpathItem.class.php');
//$objResponse->addAlert(api_get_path(REL_CODE_PATH).'newscorm/learnpathItem.class.php');
$prereq_check = $mylp->prerequisites_match($item_id);
@ -312,7 +312,7 @@ function switch_item_details($lp_id,$user_id,$view_id,$current_item,$next_item)
if($mylp->force_commit){
$mylp->save_current();
}
//$objResponse->addAlert(api_get_path(REL_CLARO_PATH).'newscorm/learnpathItem.class.php');
//$objResponse->addAlert(api_get_path(REL_CODE_PATH).'newscorm/learnpathItem.class.php');
if(is_object($mylp->items[$new_item_id])){
$mylpi = & $mylp->items[$new_item_id];
}else{

@ -472,7 +472,7 @@ if($_GET['studentlist'] == 'false')
else {
// BEGIN : form to remind inactives susers
$form = new FormValidator('reminder_form','get',api_get_path(REL_CLARO_PATH).'announcements/announcements.php');
$form = new FormValidator('reminder_form','get',api_get_path(REL_CODE_PATH).'announcements/announcements.php');
$renderer = $form->defaultRenderer();
$renderer->setElementTemplate('<span>{label} {element}</span>&nbsp;<input type="submit" value="'.get_lang('Ok').'"','since');

Loading…
Cancel
Save