source: extensions/stripped-slide/admin/admin.inc.php @ 20091

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

version 1.1.0

File size: 842 bytes
RevLine 
[12974]1<?php
2
3// Need upgrade?
4
5global $conf;
6
7if (!isset($conf['stripped-slide']))
8  include(PHPWG_THEMES_PATH.'stripped-slide/admin/upgrade.inc.php');
9
10load_language('theme.lang', PHPWG_THEMES_PATH.'stripped-slide/');
11
12$config= array ();
13
14if(isset($_POST['submit_stripped-slide']))
15{
16        if (isset($_POST['f_maxHeight'])) { $config['maxHeight']=intval($_REQUEST['f_maxHeight']); }
17
18        conf_update_param('stripped-slide', pwg_db_real_escape_string(serialize($config)));
19
20        array_push($page['infos'], l10n('Information data registered in database'));
21
22        load_conf_from_db();
23}
24
25$template->set_filenames(array(
26    'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
27
28$template->assign('options', unserialize($conf['stripped-slide']));
29
30$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
31 
32?>
Note: See TracBrowser for help on using the repository browser.