Revision 332
Added by stefan over 18 years ago
trunk/wb/install/save.php | ||
---|---|---|
405 | 405 |
. " PRIMARY KEY ( `setting_id` ) )"; |
406 | 406 |
$database->query($settings); |
407 | 407 |
|
408 |
$settings_rows= "INSERT INTO `".TABLE_PREFIX."settings` VALUES " |
|
409 |
." ('', 'wb_version', '".VERSION."')," |
|
410 |
." ('', 'website_title', '$website_title')," |
|
411 |
." ('', 'website_description', '')," |
|
412 |
." ('', 'website_keywords', '')," |
|
413 |
." ('', 'website_header', '')," |
|
414 |
." ('', 'website_footer', '')," |
|
415 |
." ('', 'wysiwyg_style', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;')," |
|
416 |
." ('', 'rename_files_on_upload', 'php,asp,phpx,aspx')," |
|
417 |
." ('', 'er_level', '')," |
|
418 |
." ('', 'default_language', 'EN')," |
|
419 |
." ('', 'app_name', 'wb')," |
|
420 |
." ('', 'default_timezone', '$default_timezone')," |
|
421 |
." ('', 'default_date_format', 'M d Y')," |
|
422 |
." ('', 'default_time_format', 'g:i A')," |
|
423 |
." ('', 'home_folders', 'true')," |
|
424 |
." ('', 'default_template', 'round')," |
|
425 |
." ('', 'default_charset', 'utf-8')," |
|
426 |
." ('', 'multiple_menus', 'false')," |
|
427 |
." ('', 'page_level_limit', '4')," |
|
428 |
." ('', 'intro_page', 'false')," |
|
429 |
." ('', 'page_trash', 'disabled')," |
|
430 |
." ('', 'homepage_redirection', 'false')," |
|
431 |
." ('', 'page_languages', 'false')," |
|
432 |
." ('', 'wysiwyg_editor', 'htmlarea')," |
|
433 |
." ('', 'manage_sections', 'true')," |
|
434 |
." ('', 'section_blocks', 'false')," |
|
435 |
." ('', 'smart_login', 'false')," |
|
436 |
." ('', 'captcha_verification', 'true')," |
|
437 |
." ('', 'frontend_login', 'false')," |
|
438 |
." ('', 'frontend_signup', 'false')," |
|
439 |
." ('', 'server_email', '$admin_email')," |
|
440 |
." ('', 'search', 'public')," |
|
441 |
." ('', 'page_extension', '.php')," |
|
442 |
." ('', 'page_spacer', '-')," |
|
443 |
." ('', 'pages_directory', '/pages')," |
|
444 |
." ('', 'media_directory', '/media')," |
|
445 |
." ('', 'operating_system', '$operating_system')," |
|
446 |
." ('', 'string_file_mode', '$file_mode')," |
|
447 |
." ('', 'string_dir_mode', '$dir_mode')"; |
|
408 |
$settings_rows= "INSERT INTO `".TABLE_PREFIX."settings` " |
|
409 |
." (name, value) VALUES " |
|
410 |
." ('wb_version', '".VERSION."')," |
|
411 |
." ('website_title', '$website_title')," |
|
412 |
." ('website_description', '')," |
|
413 |
." ('website_keywords', '')," |
|
414 |
." ('website_header', '')," |
|
415 |
." ('website_footer', '')," |
|
416 |
." ('wysiwyg_style', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;')," |
|
417 |
." ('rename_files_on_upload', 'php,asp,phpx,aspx')," |
|
418 |
." ('er_level', '')," |
|
419 |
." ('default_language', 'EN')," |
|
420 |
." ('app_name', 'wb')," |
|
421 |
." ('default_timezone', '$default_timezone')," |
|
422 |
." ('default_date_format', 'M d Y')," |
|
423 |
." ('default_time_format', 'g:i A')," |
|
424 |
." ('home_folders', 'true')," |
|
425 |
." ('default_template', 'round')," |
|
426 |
." ('default_charset', 'utf-8')," |
|
427 |
." ('multiple_menus', 'false')," |
|
428 |
." ('page_level_limit', '4')," |
|
429 |
." ('intro_page', 'false')," |
|
430 |
." ('page_trash', 'disabled')," |
|
431 |
." ('homepage_redirection', 'false')," |
|
432 |
." ('page_languages', 'false')," |
|
433 |
." ('wysiwyg_editor', 'htmlarea')," |
|
434 |
." ('manage_sections', 'true')," |
|
435 |
." ('section_blocks', 'false')," |
|
436 |
." ('smart_login', 'false')," |
|
437 |
." ('captcha_verification', 'true')," |
|
438 |
." ('frontend_login', 'false')," |
|
439 |
." ('frontend_signup', 'false')," |
|
440 |
." ('server_email', '$admin_email')," |
|
441 |
." ('search', 'public')," |
|
442 |
." ('page_extension', '.php')," |
|
443 |
." ('page_spacer', '-')," |
|
444 |
." ('pages_directory', '/pages')," |
|
445 |
." ('media_directory', '/media')," |
|
446 |
." ('operating_system', '$operating_system')," |
|
447 |
." ('string_file_mode', '$file_mode')," |
|
448 |
." ('string_dir_mode', '$dir_mode')"; |
|
448 | 449 |
$database->query($settings_rows); |
449 | 450 |
|
450 | 451 |
|
Also available in: Unified diff
Changed INSERT SQL code for settings table in installation.