'index.php', 'name' => get_lang('Admin')); $htmlHeadXtra[] = " "; require '../inc/global.inc.php'; $this_section = SECTION_COURSES; Display::display_header($nameTools, 'Settings'); //include api_get_path(CONFIGURATION_PATH).'postpone.conf.php'; $nameTools = get_lang('Postpone'); $TABLECOURSE = Database::get_main_table(TABLE_MAIN_COURSE); $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 = Database::query($sqlCourseExtention); $currentCourseExtentionData = Database::fetch_array($resultCourseExtention); $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 ?>