本文整理汇总了PHP中settings::modify_settings方法的典型用法代码示例。如果您正苦于以下问题:PHP settings::modify_settings方法的具体用法?PHP settings::modify_settings怎么用?PHP settings::modify_settings使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类settings
的用法示例。
在下文中一共展示了settings::modify_settings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array_merge
}
if (!isset($globalTransaction)) {
$settings = array_merge($settings, array('globalTransaction' => 'TRUE'));
}
// Set some defaults values...
if (!isset($globalAircraftImageSources)) {
$globalAircraftImageSources = array('ivaomtl', 'wikimedia', 'deviantart', 'flickr', 'bing', 'jetphotos', 'planepictures', 'planespotters');
$settings = array_merge($settings, array('globalAircraftImageSources' => $globalAircraftImageSources));
}
if (!isset($globalSchedulesSources)) {
$globalSchedulesSources = array('flightmapper', 'costtotravel', 'flightradar24', 'flightaware');
$settings = array_merge($settings, array('globalSchedulesSources' => $globalSchedulesSources));
}
$settings = array_merge($settings, array('globalInstalled' => 'TRUE'));
if ($error == '') {
settings::modify_settings($settings);
}
if ($error != '') {
print '<div class="info column">' . $error . '</div>';
require '../footer.php';
exit;
} else {
if (isset($_POST['waypoints'])) {
$_SESSION['waypoints'] = 1;
}
$_SESSION['install'] = 'database_import';
//require('../footer.php');
print '<div class="info column"><ul>';
if (isset($_POST['createdb'])) {
$_SESSION['done'] = array('Create database', 'Write configuration');
print '<li>Create database....<strong>SUCCESS</strong></li>';