dokeos-admin
[ class tree: dokeos-admin ] [ index: dokeos-admin ] [ all elements ]

Source for file course_create_content.php

Documentation is available at course_create_content.php

  1. <?php
  2. // $Id: course_create_content.php 10811 2007-01-22 08:26:40Z elixir_julian $
  3. /*
  4. ============================================================================== 
  5.     Dokeos - elearning and course management software
  6.     
  7.     Copyright (c) 2004 Dokeos S.A.
  8.     Copyright (c) 2003 Ghent University (UGent)
  9.     Copyright (c) 2001 Universite catholique de Louvain (UCL)
  10.     Copyright (c) Bart Mollet (bart.mollet@hogent.be)
  11.     
  12.     For a full list of contributors, see "credits.txt".
  13.     The full license can be read in "license.txt".
  14.     
  15.     This program is free software; you can redistribute it and/or
  16.     modify it under the terms of the GNU General Public License
  17.     as published by the Free Software Foundation; either version 2
  18.     of the License, or (at your option) any later version.
  19.     
  20.     See the GNU General Public License for more details.
  21.     
  22.     Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  23.     Mail: info@dokeos.com
  24. ============================================================================== 
  25. */
  26. /**
  27.  * ==============================================================================
  28.  * This script allows a platform admin to add dummy content to a course.
  29.  * 
  30.  * @author Bart Mollet <bart.mollet@hogent.be>
  31.  * @package dokeos.admin
  32.  *  ==============================================================================
  33.  */
  34. /*
  35. ==============================================================================
  36.         INIT SECTION
  37. ==============================================================================
  38. */ 
  39.  
  40. // name of the language file that needs to be included 
  41. $language_file 'admin';
  42. include ('../inc/global.inc.php');
  43. $this_section=SECTION_PLATFORM_ADMIN;
  44.  
  45. $tool_name get_lang('DummyCourseCreator');
  46. $interbreadcrumb[array ("url" => 'index.php'"name" => get_lang('PlatformAdmin'));
  47. Display::display_header($tool_name);
  48. //api_display_tool_title($tool_name);
  49. ifget_setting('server_type'!= 'test')
  50. {
  51.     echo get_lang('DummyCourseOnlyOnTestServer');    
  52. }
  53. elseifisset($_POST['action']))
  54. {
  55.     require_once('../coursecopy/classes/DummyCourseCreator.class.php');
  56.     $dcc new DummyCourseCreator();
  57.     $dcc->create_dummy_course($_POST['course_code']);
  58.     echo get_lang('Done');
  59. }
  60. else
  61. {
  62.     echo get_lang('DummyCourseDescription');
  63.     echo '<form method="post"><input type="hidden" name="course_code" value="'.$_GET['course_code'].'"/><input type="submit" name="action" value="'.get_lang('Ok').'"/></form>';
  64. }
  65. /*
  66. ==============================================================================
  67.         FOOTER 
  68. ==============================================================================
  69. */
  70. ?>

Documentation generated on Thu, 12 Jun 2008 13:14:36 -0500 by phpDocumentor 1.4.1