function testMultipleValues() { savePHPSettings(12, array('key1' => 'val1', 'key2' => 'off')); $this->assertEqual(2, count(readPHPSettings(12))); }
standard_error('extensionerror'); } // Normal PHP value/flag } else { $php_setting = $php_options_data[$key]['label']; if (!in_array($php_value, $php_options_data[$key]['select_var'])) { // Default setting $php_settings[$php_setting] = $php_options_data[$key]['default']; } else { // Setting is clean, we can save it. $php_settings[$php_setting] = $php_value; } } } } savePHPSettings((int) $id, (int) $userinfo['customerid'], $php_settings); //edit redirectTo($filename, array('page' => $page, 's' => $s)); } } else { $result['domain'] = $idna_convert->decode($result['domain']); $domains = makeoption($lng['domains']['noaliasdomain'], 0, $result['aliasdomain'], true); // also check ip/port combination to be the same, #176 $result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id`<>'" . (int) $result['id'] . "' AND `c`.`standardsubdomain`<>`d`.`id` AND `d`.`customerid`='" . (int) $userinfo['customerid'] . "' AND `c`.`customerid`=`d`.`customerid` AND `d`.`ipandport` = '" . (int) $result['ipandport'] . "' ORDER BY `d`.`domain` ASC"); $php_version = currentPHPVersion((int) $userinfo['customerid'], (int) $result['id']); $phpVersionOptions = phpVersionOptions((int) $userinfo['customerid'], (int) $result['id']); while ($row_domain = $db->fetch_array($result_domains)) { $domains .= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id'], $result['aliasdomain']); } if (preg_match('/^https?\\:\\/\\//', $result['documentroot']) && validateUrl($idna_convert->encode($result['documentroot']))) { if ($settings['panel']['pathedit'] == 'Dropdown') {