|
@@ -1,49 +1,20 @@
|
|
|
-<?php
|
|
|
-// $Id: copy_course.php 22204 2009-07-17 20:31:35Z iflorespaz $
|
|
|
-/*
|
|
|
-==============================================================================
|
|
|
- Dokeos - elearning and course management software
|
|
|
-
|
|
|
- Copyright (c) 2004 Dokeos S.A.
|
|
|
- Copyright (c) 2003 Ghent University (UGent)
|
|
|
- Copyright (c) 2001 Universite catholique de Louvain (UCL)
|
|
|
- Copyright (c) Bart Mollet (bart.mollet@hogent.be)
|
|
|
-
|
|
|
- For a full list of contributors, see "credits.txt".
|
|
|
- The full license can be read in "license.txt".
|
|
|
+<?php // $Id: copy_course.php 22204 2009-07-17 20:31:35Z iflorespaz $
|
|
|
|
|
|
- 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.
|
|
|
+/* For licensing terms, see /dokeos_license.txt */
|
|
|
|
|
|
- See the GNU General Public License for more details.
|
|
|
-
|
|
|
- Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
|
|
|
- Mail: info@dokeos.com
|
|
|
-==============================================================================
|
|
|
-*/
|
|
|
-/**
|
|
|
- * ==============================================================================
|
|
|
- * Copy resources from one course to another one.
|
|
|
- *
|
|
|
- * @author Bart Mollet <bart.mollet@hogent.be>
|
|
|
- * @package dokeos.backup
|
|
|
- * ==============================================================================
|
|
|
- */
|
|
|
-/*
|
|
|
-==============================================================================
|
|
|
- INIT SECTION
|
|
|
-==============================================================================
|
|
|
-*/
|
|
|
// name of the language file that needs to be included
|
|
|
$language_file = array('exercice', 'coursebackup', 'admin');
|
|
|
+
|
|
|
+// setting the global file that gets the general configuration, the databases, the languages, ...
|
|
|
require_once '../inc/global.inc.php';
|
|
|
+
|
|
|
+// including additional libraries
|
|
|
include_once api_get_path(LIBRARY_PATH) . 'fileManage.lib.php';
|
|
|
require_once 'classes/CourseBuilder.class.php';
|
|
|
require_once 'classes/CourseRestorer.class.php';
|
|
|
require_once 'classes/CourseSelectForm.class.php';
|
|
|
|
|
|
+// notice for unauthorized people.
|
|
|
if (!api_is_allowed_to_edit())
|
|
|
{
|
|
|
api_not_allowed(true);
|
|
@@ -56,10 +27,14 @@ if(function_exists('ini_set'))
|
|
|
ini_set('max_execution_time',1800);
|
|
|
}
|
|
|
|
|
|
-$nameTools = get_lang('CopyCourse');
|
|
|
+// breadcrumbs
|
|
|
$interbreadcrumb[] = array ("url" => "../course_info/maintenance.php", "name" => get_lang('Maintenance'));
|
|
|
|
|
|
-Display::display_header($nameTools);
|
|
|
+// the section (for the tabs)
|
|
|
+$this_section=SECTION_COURSES;
|
|
|
+
|
|
|
+// Display the header
|
|
|
+Display::display_header(get_lang('CopyCourse'));
|
|
|
//api_display_tool_title($nameTools);
|
|
|
/*
|
|
|
==============================================================================
|