XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
page_configsite.php
Go to the documentation of this file.
1
<?php
18
$xoopsOption
[
'checkadmin'
] =
true
;
19
$xoopsOption
[
'hascommon'
] =
true
;
20
require_once
'./include/common.inc.php'
;
21
defined(
'XOOPS_INSTALL'
) or die('XOOPS Installation wizard die');
22
23
if
(
$_SERVER
['REQUEST_METHOD'] == 'POST') {
24
$config_handler
=&
xoops_gethandler
(
'config'
);
25
if
(array_key_exists(
'conf_ids'
,
$_REQUEST
)) {
26
foreach
(
$_REQUEST
[
'conf_ids'
] as $key => $conf_id) {
27
$config
=&
$config_handler
->getConfig($conf_id);
28
$new_value =
$_REQUEST
[
$config
->getVar(
'conf_name'
)] ;
29
$config
->setConfValueForInput($new_value);
30
$config_handler
->insertConfig(
$config
);
31
}
32
}
33
$wizard
->redirectToPage(
'+1'
);
34
}
35
36
$pageHasForm
=
true
;
37
$pageHasHelp
=
true
;
38
39
if
(!@include_once
"../modules/system/language/{$wizard->language}/admin.php"
) {
40
include_once
"../modules/system/language/english/admin.php"
;
41
}
42
43
if
(!@include_once
"../modules/system/language/{$wizard->language}/admin/preferences.php"
) {
44
include_once
"../modules/system/language/english/admin/preferences.php"
;
45
}
46
47
$config_handler
=
xoops_gethandler
(
'config'
);
48
$criteria
=
new
CriteriaCompo
();
49
$criteria
->add(
new
Criteria
(
'conf_modid'
, 0));
50
51
$criteria2
=
new
CriteriaCompo
();
52
foreach
(
$wizard
->configs[
'conf_names'
] as $conf_name) {
53
$criteria2
->add(
new
Criteria
(
'conf_name'
, $conf_name),
'OR'
);
54
}
55
$criteria
->add(
$criteria2
);
56
$criteria
->setSort(
'conf_catid ASC, conf_order ASC'
);
57
$configs
=
$config_handler
->getConfigs(
$criteria
);
58
59
include
'./include/createconfigform.php'
;
60
$wizard
->form =
createConfigform
(
$configs
);
61
$content
=
$wizard
->CreateForm();
62
include
'./include/install_tpl.php'
;
63
?>
L:
0xoops
xoops-2.5.6
htdocs
install
page_configsite.php
Generated on Fri May 10 2013 01:04:27 for XOOPS 2.5.6 by
1.8.3.1