2 /****************************************************************************/
\r
4 /****************************************************************************/
\r
5 /* Copyright (c) 2002-2010 */
\r
6 /* Inclusive Design Institute */
\r
7 /* http://atutor.ca */
\r
9 /* This program is free software. You can redistribute it and/or */
\r
10 /* modify it under the terms of the GNU General Public License */
\r
11 /* as published by the Free Software Foundation. */
\r
12 /****************************************************************************/
\r
15 define('AT_INCLUDE_PATH', '../../../../include/');
\r
16 require(AT_INCLUDE_PATH.'vitals.inc.php');
\r
17 admin_authenticate(AT_ADMIN_PRIV_BACKUPS);
\r
20 $_user_location = 'admin';
\r
22 if (isset($_POST['submit_yes'])) {
\r
23 require_once(AT_INCLUDE_PATH.'../mods/_core/backups/classes/Backup.class.php');
\r
25 $Backup = new Backup($db, $_POST['course']);
\r
26 $Backup->delete($_POST['backup_id']);
\r
28 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
\r
29 header('Location: index.php');
\r
31 } else if (isset($_POST['submit_no'])) {
\r
32 $msg->addFeedback('CANCELLED');
\r
33 header('Location: index.php');
\r
37 require(AT_INCLUDE_PATH.'header.inc.php');
\r
39 $hidden_vars['backup_id'] = $_GET['backup_id'];
\r
40 $hidden_vars['course'] = $_GET['course'];
\r
41 $msg->addConfirm('DELETE', $hidden_vars);
\r
42 $msg->printConfirm();
\r
44 require (AT_INCLUDE_PATH.'footer.inc.php');
\r