Source for file postpone.php
Documentation is available at postpone.php
<?php // $Id: postpone.php 10204 2006-11-26 20:46:53Z pcool $
==============================================================================
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)
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 address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
==============================================================================
==============================================================================
* Modify course settings like: |
* 3. Course description URL in the university web |
* Course code cannot be modified, because it gives the name for the |
* course database and course web directory. Professor cannot be |
* changed either as it determines who is allowed to modify the course. |
* @author Thomas Depraetere
* @author Christophe Gesche
* @package dokeos.course_info
==============================================================================
==============================================================================
==============================================================================
// name of the language file that needs to be included
$language_file = "postpone";
//$interbreadcrumb[]= array ("url"=>"index.php", "name"=> get_lang('Admin'));
<style type=\"text/css\">
.month {font-weight : bold;color : #FFFFFF;background-color : #4171B5;padding-left : 15px;padding-right : 15px;}
.content {position: relative; left: 25px;}
<STYLE media=\"print\" type=\"text/css\">
TD {border-bottom: thin dashed Gray;}
include('../inc/global.inc.php');
include(api_get_path(LIBRARY_PATH). 'debug.lib.inc.php');
//include(api_get_path(CONFIGURATION_PATH)."postpone.conf.php");
$is_allowedToEdit = $is_courseAdmin;
$currentCourseID = $_course['sysCode'];
$currentCourseRepository = $_course["path"];
$sqlCourseExtention = "SELECT last_visit, last_edit, creation_date, expiration_date FROM ". $TABLECOURSE. " WHERE code = '". $_cid. "'";
$resultCourseExtention = api_sql_query($sqlCourseExtention,__FILE__ ,__LINE__ );
$currentCourseLastVisit = $currentCourseExtentionData["last_visit"];
$currentCourseLastEdit = $currentCourseExtentionData["last_edit"];
$currentCourseCreationDate = $currentCourseExtentionData["creation_date"];
$currentCourseExpirationDate = $currentCourseExtentionData["expiration_date"];
// HERE YOU CAN EDIT YOUR RULES TO EXTEND THE LIFE OF COURSE
// $newCourseExpirationDate = now() + $extendDelay
this script would be called by
to give more time to a course before expiration
|