-
Notifications
You must be signed in to change notification settings - Fork 2
/
tabcontent.admin_optionstab.php
57 lines (49 loc) · 2.06 KB
/
tabcontent.admin_optionstab.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
#-------------------------------------------------------------------------
#
# Author: Ben Malen, <[email protected]>
# Co-Maintainer: Simon Radford, <[email protected]>
# Web: www.conceptfactory.com.au
#
#-------------------------------------------------------------------------
#
# Maintainer since 2011: Jonathan Schmid, <[email protected]>
# Web: www.jonathanschmid.de
#
#-------------------------------------------------------------------------
#
# Some wackos started destroying stuff since 2012:
#
# Tapio Löytty, <[email protected]>
# Web: www.orange-media.fi
#
# Goran Ilic, <[email protected]>
# Web: www.ich-mach-das.at
#
#-------------------------------------------------------------------------
# ListIt2 become EasyList due to the departure of the wackos in summer 2014.
#
# Jean-Christophe ghio <[email protected]>
#
#-------------------------------------------------------------------------
# EasyList is a CMS Made Simple module that enables the web developer to create
# multiple lists throughout a site. It can be duplicated and given friendly
# names for easier client maintenance.
#
#-------------------------------------------------------------------------
if (!is_object(cmsms())) exit;
#---------------------
# Init items
#---------------------
$allow_autoscan = $this->GetPreference('allow_autoscan', 0);
$allow_autoinstall = $this->GetPreference('allow_autoinstall', 0);
#---------------------
# Smarty processing
#---------------------
$smarty->assign('startform', $this->CreateFormStart($id, 'admin_updateoptions', $returnid));
$smarty->assign('endform', $this->CreateFormEnd());
$smarty->assign('submit', $this->CreateInputSubmit($id, 'submit', lang('submit')));
$smarty->assign('input_allow_autoscan', $this->CreateInputCheckbox($id, 'allow_autoscan', 1, $allow_autoscan, ($allow_autoscan ? 'checked="checked"' : '')));
$smarty->assign('input_allow_autoinstall', $this->CreateInputCheckbox($id, 'allow_autoinstall', 1, $allow_autoinstall, ($allow_autoinstall ? 'checked="checked"' : '')));
echo $this->ProcessTemplate('optiontab.tpl');
?>