本文整理匯總了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>';