XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
page_theme.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') {
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 
34  $member_handler =& xoops_gethandler('member');
35  $member_handler->updateUsersByField('theme', $new_value );
36 
37  $wizard->redirectToPage( '+1' );
38 }
39 
40 $pageHasForm = true;
41 $pageHasHelp = false;
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 
49 $criteria->add(new Criteria('conf_modid', 0));
50 $criteria->add(new Criteria('conf_name', 'theme_set'));
51 
52 $config = array_pop( $config_handler->getConfigs($criteria) );
53 include './include/createconfigform.php';
55 $content = $wizard->CreateForm();
56 
57 include './include/install_tpl.php';
58 ?>