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 admin_authenticate(AT_ADMIN_PRIV_ADMIN);
19 $theme_folder = '../../../themes/';
21 if (isset($_REQUEST['installed']))
22 $installed = $_REQUEST['installed'];
23 else if (isset($_POST['installed']))
24 $installed = $_POST['installed'];
26 if (isset($_REQUEST['error']))
27 $error = $_REQUEST['error'];
28 else if (isset($_POST['error']))
29 $error = $_POST['error'];
31 if (!is_writable($theme_folder) && isset($_POST['submit_yes']))
35 $msg->addError('IMPORT_FAILED');
36 header('Location: '.AT_BASE_HREF.'mods/_core/themes/install_themes.php');
40 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
41 header('Location: '.AT_BASE_HREF.'mods/_core/themes/index.php');
47 require(AT_INCLUDE_PATH.'header.inc.php');
50 $hidden_vars['installed'] = $installed;
51 $hidden_vars['error'] = $error;
53 $msg->addConfirm(array('REMOVE_WRITE_PERMISSION', realpath($theme_folder)), $hidden_vars, _AT("continue"), '', true);
56 require(AT_INCLUDE_PATH.'footer.inc.php');