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