Replacing dokeos to chamilo, cleaning code

skala
Julio Montoya 16 years ago
parent 9f7714ee96
commit 57f57504a5
  1. 2
      main/admin/access_url_add_sessions_to_url.php
  2. 2
      main/admin/access_url_add_users_to_url.php
  3. 1
      main/admin/access_url_edit.php
  4. 2
      main/admin/access_url_edit_courses_to_url.php
  5. 4
      main/admin/access_url_edit_sessions_to_url.php
  6. 5
      main/admin/access_url_edit_users_to_url.php
  7. 1
      main/admin/add_courses_to_session.php
  8. 4
      main/admin/add_users_to_group.php
  9. 2
      main/admin/add_users_to_session.php
  10. 6
      main/admin/calendar.lib.php
  11. 8
      main/admin/calendar.php
  12. 8
      main/admin/calendar_ical_export.php
  13. 4
      main/admin/calendar_view.php
  14. 26
      main/admin/calendar_view_print.php
  15. 2
      main/admin/configure_homepage.php
  16. 10
      main/admin/course_add.php

@ -14,7 +14,7 @@ $cidReset = true;
require_once '../inc/global.inc.php';
$this_section=SECTION_PLATFORM_ADMIN;
require_once (api_get_path(LIBRARY_PATH).'urlmanager.lib.php');
require_once api_get_path(LIBRARY_PATH).'urlmanager.lib.php';
api_protect_admin_script();
if (!$_configuration['multiple_access_urls']) {
header('Location: index.php');

@ -14,7 +14,7 @@ $cidReset = true;
require_once '../inc/global.inc.php';
$this_section=SECTION_PLATFORM_ADMIN;
require_once (api_get_path(LIBRARY_PATH).'urlmanager.lib.php');
require_once api_get_path(LIBRARY_PATH).'urlmanager.lib.php';
api_protect_admin_script();
if (!$_configuration['multiple_access_urls']) {
header('Location: index.php');

@ -13,6 +13,7 @@ $this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
if (!$_configuration['multiple_access_urls']) {
header('Location: index.php');
exit;
}
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';

@ -12,9 +12,7 @@ $language_file='admin';
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
require_once '../inc/global.inc.php';
require_once (api_get_path(LIBRARY_PATH).'urlmanager.lib.php');
require_once (api_get_path(LIBRARY_PATH).'access_url_edit_courses_to_url_functions.lib.php');

@ -14,8 +14,8 @@ $cidReset=true;
// including some necessary dokeos files
require_once '../inc/global.inc.php';
require_once (api_get_path(LIBRARY_PATH).'urlmanager.lib.php');
require_once (api_get_path(LIBRARY_PATH).'access_url_edit_sessions_to_url_functions.lib.php');
require_once api_get_path(LIBRARY_PATH).'urlmanager.lib.php';
require_once api_get_path(LIBRARY_PATH).'access_url_edit_sessions_to_url_functions.lib.php';
$xajax = new xajax();
//$xajax->debugOn();

@ -12,11 +12,10 @@ $language_file='admin';
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
require_once '../inc/global.inc.php';
require_once (api_get_path(LIBRARY_PATH).'urlmanager.lib.php');
require_once api_get_path(LIBRARY_PATH).'urlmanager.lib.php';
require_once api_get_path(LIBRARY_PATH).'access_url_edit_users_to_url_functions.lib.php';
require_once ('../inc/lib/xajax/xajax.inc.php');
require_once '../inc/lib/xajax/xajax.inc.php';
$xajax = new xajax();
//$xajax->debugOn();
$xajax -> registerFunction (array('search_users', 'Accessurledituserstourl', 'search_users'));

@ -11,7 +11,6 @@ $language_file='admin';
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
require_once('../inc/global.inc.php');
// including additonal libraries

@ -1,7 +1,7 @@
<?php //$id: $
/* For licensing terms, see /license.txt */
/**
* @package dokeos.admin
* @package chamilo.admin
*/
// name of the language file that needs to be included
@ -10,7 +10,7 @@ $language_file=array('admin','registration');
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
// including some necessary files
require_once '../inc/global.inc.php';
require_once '../inc/lib/xajax/xajax.inc.php';
require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php';

@ -10,7 +10,7 @@ $language_file=array('admin','registration');
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
// including some necessary files
require_once '../inc/global.inc.php';
require_once '../inc/lib/xajax/xajax.inc.php';
$xajax = new xajax();

@ -1,17 +1,13 @@
<?php // $id: $
/* For licensing terms, see /license.txt */
/**
==============================================================================
* @package chamilo.admin
* @author Carlos Vargas
* This file is the calendar/agenda.inc.php
==============================================================================
*/
/*
-----------------------------------------------------------
Constants and variables
-----------------------------------------------------------
*/
// the variables for the days and the months
// Defining the shorts for the days
@ -22,9 +18,7 @@ $DaysLong = api_get_week_days_long();
$MonthsLong = api_get_months_long();
/*
==============================================================================
FUNCTIONS
==============================================================================
*/
/**

@ -1,11 +1,9 @@
<?php // $id: $
/* For licensing terms, see /license.txt */
/**
==============================================================================
* @package dokeos.admin
* @package chamilo.admin
* @author Carlos Vargas
* This file is the calendar/agenda.php
==============================================================================
*/
// name of the language file that needs to be included
@ -14,8 +12,8 @@ $language_file[] = 'agenda';
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
require('../inc/global.inc.php');
// including some necessary files
require_once '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
$_SESSION['this_section']=$this_section;

@ -1,11 +1,9 @@
<?php // $id: $
/* For licensing terms, see /dokeos_license.txt */
/* For licensing terms, see /license.txt */
/**
==============================================================================
* @package dokeos.admin
* @package chamilo.admin
* @author Carlos Vargas
* This file is the calendar/ical_export.php
==============================================================================
*/
/**
* Initialisation
@ -15,7 +13,7 @@ $language_file = 'agenda';
// we are not inside a course, so we reset the course id
$cidReset = true;
// setting the global file that gets the general configuration, the databases, the languages, ...
require_once ('../inc/global.inc.php');
require_once '../inc/global.inc.php';
$this_section = SECTION_MYAGENDA;
api_block_anonymous_users();
require_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php');

@ -1,11 +1,9 @@
<?php // $id: $
/* For licensing terms, see /license.txt */
/**
==============================================================================
* @package dokeos.admin
* @package chamilo.admin
* @author Carlos Vargas
* This file is the calendar/calendar.php
==============================================================================
*/
// name of the language file that needs to be included
$language_file = 'agenda';

@ -1,29 +1,9 @@
<?php // $id: $
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2008 Dokeos S.A.
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
==============================================================================
*/
<?php
/* For licensing terms, see /license.txt */
/**
==============================================================================
* @package dokeos.admin
* @package chamilo.admin
* @author Carlos Vargas
* This file is the calendar/print.php
==============================================================================
*/
// name of the language file that needs to be included
$language_file = 'agenda';

@ -764,7 +764,7 @@ switch ($action) {
<tr>
<?php
$access_url_id = 1;
// we only show the category options for the main Dokeos installation
// we only show the category options for the main chamilo installation
if ($_configuration['multiple_access_urls']) {
$access_url_id = api_get_current_access_url_id();
}

@ -1,15 +1,11 @@
<?php
// $Id: course_add.php 20441 2009-05-10 07:39:15Z ivantcholakov $
/* For licensing terms, see /dokeos_license.txt */
/* For licensing terms, see /license.txt */
/**
==============================================================================
* @package dokeos.admin
==============================================================================
* @package chamilo.admin
*/
/*
==============================================================================
INIT SECTION
==============================================================================
*/
// name of the language file that needs to be included
@ -29,9 +25,7 @@ $tool_name = get_lang('AddCourse');
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
/*
==============================================================================
MAIN CODE
==============================================================================
*/
global $_configuration;

Loading…
Cancel
Save