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 $_user_location = 'admin';
\r
17 define('AT_INCLUDE_PATH', '../../../include/');
\r
18 require(AT_INCLUDE_PATH.'vitals.inc.php');
\r
19 admin_authenticate(AT_ADMIN_PRIV_THEMES);
\r
21 if (isset($_POST['submit_no'])) {
\r
22 $msg->addFeedback('CANCELLED');
\r
23 header('Location: index.php');
\r
25 } else if (isset($_POST['submit_yes'])) {
\r
26 require_once(AT_INCLUDE_PATH.'../mods/_core/themes/lib/themes.inc.php');
\r
27 delete_theme($_POST['tc']);
\r
28 header('Location: index.php');
\r
32 require(AT_INCLUDE_PATH.'header.inc.php');
\r
34 $hidden_vars['tc'] = $_GET['theme_code'];
\r
36 $msg->addConfirm(array('DELETE_THEME', $_GET['theme_code']), $hidden_vars);
\r
37 $msg->printConfirm();
\r
39 require(AT_INCLUDE_PATH.'footer.inc.php');
\r