|
@@ 401-410 (lines=10) @@
|
| 398 |
|
$confobj->setConfValueForInput($config['default'], true); |
| 399 |
|
$confobj->setVar('conf_order', $order); |
| 400 |
|
$confop_msgs = ''; |
| 401 |
|
if (isset($config['options']) && is_array($config['options'])) { |
| 402 |
|
foreach ($config['options'] as $key => $value) { |
| 403 |
|
$confop = $config_handler->createConfigOption(); |
| 404 |
|
$confop->setVar('confop_name', $key, true); |
| 405 |
|
$confop->setVar('confop_value', $value, true); |
| 406 |
|
$confobj->setConfOptions($confop); |
| 407 |
|
$confop_msgs .= '<br> ' . _AM_SYSTEM_MODULES_CONFIG_ADD . _AM_SYSTEM_MODULES_NAME . ' <strong>' . (defined($key) ? constant($key) : $key) . '</strong> ' . _AM_SYSTEM_MODULES_VALUE . ' <strong>' . $value . '</strong> '; |
| 408 |
|
unset($confop); |
| 409 |
|
} |
| 410 |
|
} |
| 411 |
|
++$order; |
| 412 |
|
if ($config_handler->insertConfig($confobj) != false) { |
| 413 |
|
$msgs[] = ' ' . sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD, '<strong>' . $config['name'] . '</strong>') . $confop_msgs; |
|
@@ 1244-1253 (lines=10) @@
|
| 1241 |
|
} |
| 1242 |
|
$confobj->setVar('conf_order', $order); |
| 1243 |
|
$confop_msgs = ''; |
| 1244 |
|
if (isset($config['options']) && is_array($config['options'])) { |
| 1245 |
|
foreach ($config['options'] as $key => $value) { |
| 1246 |
|
$confop = $config_handler->createConfigOption(); |
| 1247 |
|
$confop->setVar('confop_name', $key, true); |
| 1248 |
|
$confop->setVar('confop_value', $value, true); |
| 1249 |
|
$confobj->setConfOptions($confop); |
| 1250 |
|
$confop_msgs .= '<br> ' . _AM_SYSTEM_MODULES_CONFIG_ADD . _AM_SYSTEM_MODULES_NAME . ' <strong>' . (defined($key) ? constant($key) : $key) . '</strong> ' . _AM_SYSTEM_MODULES_VALUE . ' <strong>' . $value . '</strong> '; |
| 1251 |
|
unset($confop); |
| 1252 |
|
} |
| 1253 |
|
} |
| 1254 |
|
$order++; |
| 1255 |
|
if (false !== $config_handler->insertConfig($confobj)) { |
| 1256 |
|
//$msgs[] = ' Config <strong>'.$config['name'].'</strong> added to the database.'.$confop_msgs; |