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

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

[extension] stripped - first release

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['animatedMenu']=isset($_POST['f_animatedMenu']);
20        $post['animatedTabs']=isset($_POST['f_animatedTabs']);
21        $post['replaceActionIcons']=isset($_POST['f_replaceActionIcons']);
22        $post['showTitleOnBrowsePath']=isset($_POST['f_showTitleOnBrowsePath']);
23        $post['showDescriptionInsteadOfTitle']=isset($_POST['f_showDescriptionInsteadOfTitle']);
24        $post['infoTabAdminOnly']=isset($_POST['f_infoTabAdminOnly']);
25        $post['imageAutosize']=isset($_POST['f_imageAutosize']);
26        $post['imageAutosizeTitle']=isset($_POST['f_imageAutosizeTitle']);
27        if (isset($_POST['f_imageAutosizeMargin'])) { $post['imageAutosizeMargin']=intval($_REQUEST['f_imageAutosizeMargin']); }
28        if (isset($_POST['f_imageAutosizeMinHeight'])) { $post['imageAutosizeMinHeight']=intval($_REQUEST['f_imageAutosizeMinHeight']); }
29
30        $config->setConf($post);
31        $config->write();
32        $template->assign('options', $post);
33
34        array_push($page['infos'], l10n('stripped Configuration updated'));
35}
36
37        $template->set_filenames(array(
38    'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
39
40        $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
41 
42?>
Note: See TracBrowser for help on using the repository browser.