source: extensions/stripped/admin/admin.inc.php @ 9134

Last change on this file since 9134 was 9134, checked in by Zaphod, 13 years ago

[extension] stripped - version 1.2.0

File size: 1.6 KB
Line 
1<?php
2
3load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/');
4
5include_once('conf.class.inc.php');
6
7$config = new Conf();
8$config->setFileName(PHPWG_ROOT_PATH."themes/stripped/conf/default.conf");
9$config->read();
10$config->setFileName(PHPWG_ROOT_PATH."local/themes/stripped/conf/local.conf");
11$config->read(false);
12 
13$template->assign('options', $config->getConf());
14
15$post=array();
16
17if(isset($_POST['submit_stripped']))
18{
19        $post['hideMenu']=isset($_POST['f_hideMenu']);
20        $post['animatedMenu']=isset($_POST['f_animatedMenu']);
21        $post['animatedTabs']=isset($_POST['f_animatedTabs']);
22        $post['replaceActionIcons']=isset($_POST['f_replaceActionIcons']);
23        $post['showTitleOnBrowsePath']=isset($_POST['f_showTitleOnBrowsePath']);
24        $post['showDescriptionInsteadOfTitle']=isset($_POST['f_showDescriptionInsteadOfTitle']);
25        $post['infoTabAdminOnly']=isset($_POST['f_infoTabAdminOnly']);
26        $post['imageAutosize']=isset($_POST['f_imageAutosize']);
27        $post['imageAutosizeTitle']=isset($_POST['f_imageAutosizeTitle']);
28        if (isset($_POST['f_imageAutosizeMargin'])) { $post['imageAutosizeMargin']=intval($_REQUEST['f_imageAutosizeMargin']); }
29        if (isset($_POST['f_imageAutosizeMinHeight'])) { $post['imageAutosizeMinHeight']=intval($_REQUEST['f_imageAutosizeMinHeight']); }
30
31        $config->setConf($post);
32        $config->write();
33        $template->assign('options', $post);
34
35        array_push($page['infos'], l10n('stripped Configuration updated'));
36}
37
38        $template->set_filenames(array(
39    'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
40
41        $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
42 
43?>
Note: See TracBrowser for help on using the repository browser.