2 /****************************************************************************/
4 /****************************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /****************************************************************************/
15 define('AT_INCLUDE_PATH', '../../../include/');
16 require(AT_INCLUDE_PATH.'vitals.inc.php');
17 authenticate(AT_PRIV_ADMIN);
19 $course = $_SESSION['course_id'];
20 require(AT_INCLUDE_PATH.'../mods/_core/backups/classes/Backup.class.php');
21 $Backup = new Backup($db, $_SESSION['course_id']);
23 if (isset($_POST['cancel'])) {
24 $msg->addFeedback('CANCELLED');
25 header('Location: index.php');
27 } else if (isset($_POST['submit'])) {
28 //make backup of current course
29 $Backup->create($_POST['description']);
30 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
31 header('Location: index.php');
35 require(AT_INCLUDE_PATH.'header.inc.php');
36 $savant->assign('Backup', $Backup);
37 $savant->display('instructor/backups/create.tmpl.php');
38 require (AT_INCLUDE_PATH.'footer.inc.php'); ?>