]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blob - phpBB2_old/admin/xs_index.php
f8d9fc01262dbf86b829f93caa830b19b6315aab
[www.vanrenterghem.biz.git] / phpBB2_old / admin / xs_index.php
1 <?php
3 /***************************************************************************
4  *                               xs_index.php
5  *                               ------------
6  *   copyright            : (C) 2003, 2004 CyberAlien
7  *   support              : http://www.phpbbstyles.com
8  *
9  *   version              : 2.0.1
10  *
11  *   file revision        : 46
12  *   project revision     : 51
13  *   last modified        : 25 Aug 2004  11:51:48
14  *
15  ***************************************************************************/
17 /***************************************************************************
18  *
19  *   This program is free software; you can redistribute it and/or modify
20  *   it under the terms of the GNU General Public License as published by
21  *   the Free Software Foundation; either version 2 of the License, or
22  *   (at your option) any later version.
23  *
24  ***************************************************************************/
26 define('IN_PHPBB', 1);
27 $phpbb_root_path = "./../";
28 $no_page_header = true;
29 require($phpbb_root_path . 'extension.inc');
30 require('./pagestart.' . $phpEx);
32 // check if mod is installed
33 if(empty($template->xs_version) || $template->xs_version !== 5)
34 {
35         message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php');
36 }
38 define('IN_XS', true);
39 include_once('xs_include.' . $phpEx);
41 if(isset($HTTP_GET_VARS['showwarning']))
42 {
43         $msg = str_replace('{URL}', append_sid('xs_index.'.$phpEx), $lang['xs_main_comment3']);
44         xs_message($lang['Information'], $msg);
45 }
47 $template->assign_vars(array(
48         'U_CONFIG'                              => append_sid('xs_config.'.$phpEx),
49         'U_DEFAULT_STYLE'               => append_sid('xs_styles.'.$phpEx),
50         'U_MANAGE_CACHE'                => append_sid('xs_cache.'.$phpEx),
51         'U_IMPORT_STYLES'               => append_sid('xs_import.'.$phpEx),
52         'U_EXPORT_STYLES'               => append_sid('xs_export.'.$phpEx),
53         'U_CLONE_STYLE'                 => append_sid('xs_clone.'.$phpEx),
54         'U_DOWNLOAD_STYLES'             => append_sid('xs_download.'.$phpEx),
55         'U_INSTALL_STYLES'              => append_sid('xs_install.'.$phpEx),
56         'U_UNINSTALL_STYLES'    => append_sid('xs_uninstall.'.$phpEx),
57         'U_EDIT_STYLES'                 => append_sid('xs_edit.'.$phpEx),
58         'U_EDIT_STYLES_DATA'    => append_sid('xs_edit_data.'.$phpEx),
59         'U_EXPORT_DATA'                 => append_sid('xs_export_data.'.$phpEx),
60         'U_UPDATES'                             => append_sid('xs_update.'.$phpEx),
61         ));
63 $template->set_filenames(array('body' => XS_TPL_PATH . 'index.tpl'));
64 $template->pparse('body');
65 xs_exit();
67 ?>