source: extensions/stripped-galleria/admin/admin.inc.php @ 21366

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

version 1.2.0

File size: 1.0 KB
Line 
1<?php
2
3// Need upgrade?
4
5global $conf;
6
7if (!isset($conf['stripped-galleria']))
8  include(PHPWG_THEMES_PATH.'stripped-galleria/admin/upgrade.inc.php');
9
10load_language('theme.lang', PHPWG_THEMES_PATH.'stripped-galleria/');
11
12$config= array ();
13
14if(isset($_POST['submit_stripped-galleria']))
15{
16        $config['clicknext']=($_POST['f_clickAction'] == 'next');
17        $config['lightbox']='none';
18        if ($_POST['f_clickAction'] == 'lightbox') {$config['lightbox']='normal';}
19        if ($_POST['f_clickAction'] == 'lightboxHD') {$config['lightbox']='hd';}
20        $config['transition']=$_POST['f_transition'];
21
22        conf_update_param('stripped-galleria', pwg_db_real_escape_string(serialize($config)));
23
24        array_push($page['infos'], l10n('Information data registered in database'));
25
26        load_conf_from_db();
27}
28
29$template->set_filenames(array(
30    'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
31
32$template->assign('options', unserialize($conf['stripped-galleria']));
33
34$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
35 
36?>
Note: See TracBrowser for help on using the repository browser.