Source for file delete_course.php
Documentation is available at delete_course.php
// $Id: delete_course.php 12263 2007-05-03 13:34:40Z elixir_julian $
==============================================================================
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) Olivier brouckaert
Copyright (c) Roan Embrechts
Copyright (c) Bart Mollet, Hogeschool Gent
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
==============================================================================
==============================================================================
* This script is about deleting a course.
* It displays a message box ('are you sure you wish to delete this course')
* and deletes the course if the user answers affirmatively
* @package dokeos.course_info
==============================================================================
// name of the language file that needs to be included
$language_file = array ('admin','course_info');
include ('../inc/global.inc.php');
include (api_get_path(LIBRARY_PATH). 'course.lib.php');
$currentCourseCode = $_course['official_code'];
$currentCourseName = $_course['name'];
if (isset ($_GET['delete']) && $_GET['delete'] == 'yes')
// DELETE CONFIRMATION MESSAGE
$message = get_lang('Course'). " "". $currentCourseName. "" ". "(". $currentCourseCode. ") ". get_lang('HasDel');
$message .= "<br /><br /><a href=\"../../index.php\">". get_lang('BackHome'). " ". get_setting('siteName'). "</a>";
$message = """. $currentCourseName. "" ". "(". $currentCourseCode. ") ". "<p>". get_lang("ByDel"). "</p>". "<p>". "<a href=\"maintenance.php\">". get_lang("N"). "</a>". " | ". "<a href=\"". api_get_self(). "?delete=yes\">". get_lang("Y"). "</a>". "</p>";
$interbreadcrumb[] = array ("url" => "maintenance.php", "name" => get_lang('Maintenance'));
==============================================================================
==============================================================================
|