Revision 1818
Added by Dietmar about 12 years ago
save.php | ||
---|---|---|
427 | 427 |
$database->query($settings); |
428 | 428 |
|
429 | 429 |
$settings_rows= "INSERT INTO `".TABLE_PREFIX."settings` " |
430 |
." (name, value) VALUES " |
|
431 |
." ('wb_version', '".VERSION."')," |
|
432 |
." ('wb_revision', '".REVISION."')," |
|
433 |
." ('wb_sp', '".SP."')," |
|
434 |
." ('website_title', '$website_title')," |
|
435 |
." ('website_description', '')," |
|
436 |
." ('website_keywords', '')," |
|
437 |
." ('website_header', '')," |
|
438 |
." ('website_footer', '')," |
|
439 |
." ('wysiwyg_style', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;')," |
|
440 |
." ('er_level', '')," |
|
441 |
." ('default_language', '$default_language')," |
|
442 |
." ('app_name', 'wb_$session_rand')," |
|
443 |
." ('sec_anchor', 'section_')," |
|
444 |
." ('default_timezone', '$default_timezone')," |
|
445 |
." ('default_date_format', 'M d Y')," |
|
446 |
." ('default_time_format', 'g:i A')," |
|
447 |
." ('redirect_timer', '1500')," |
|
448 |
." ('home_folders', 'true')," |
|
449 |
." ('warn_page_leave', '1')," |
|
450 |
." ('default_template', 'round')," |
|
451 |
." ('default_theme', 'wb_theme')," |
|
452 |
." ('default_charset', 'utf-8')," |
|
453 |
." ('multiple_menus', 'true')," |
|
454 |
." ('page_level_limit', '4')," |
|
455 |
." ('intro_page', 'false')," |
|
456 |
." ('page_trash', 'inline')," |
|
457 |
." ('homepage_redirection', 'false')," |
|
458 |
." ('page_languages', 'true')," |
|
459 |
." ('wysiwyg_editor', 'fckeditor')," |
|
460 |
." ('manage_sections', 'true')," |
|
461 |
." ('section_blocks', 'true')," |
|
462 |
." ('smart_login', 'false')," |
|
463 |
." ('frontend_login', 'false')," |
|
464 |
." ('frontend_signup', 'false')," |
|
465 |
." ('search', 'public')," |
|
466 |
." ('page_extension', '.php')," |
|
467 |
." ('page_spacer', '-')," |
|
468 |
." ('dev_infos', 'false')," |
|
469 |
." ('pages_directory', '/pages')," |
|
470 |
." ('page_icon_dir', '/templates/*/title_images')," |
|
471 |
." ('rename_files_on_upload', 'ph.*?,cgi,pl,pm,exe,com,bat,pif,cmd,src,asp,aspx')," |
|
472 |
." ('media_directory', '/media')," |
|
473 |
." ('operating_system', '$operating_system')," |
|
474 |
." ('string_file_mode', '$file_mode')," |
|
475 |
." ('string_dir_mode', '$dir_mode')," |
|
476 |
." ('wbmailer_routine', 'phpmail')," |
|
477 |
." ('server_email', '$admin_email')," // avoid that mail provider (e.g. mail.com) reject mails like yourname@mail.com |
|
478 |
." ('wbmailer_default_sendername', 'WB Mailer')," |
|
479 |
." ('wbmailer_smtp_host', '')," |
|
480 |
." ('wbmailer_smtp_auth', '')," |
|
481 |
." ('wbmailer_smtp_username', '')," |
|
482 |
." ('wbmailer_smtp_password', '')," |
|
483 |
." ('fingerprint_with_ip_octets', '2')," |
|
484 |
." ('secure_form_module', '')," |
|
485 |
." ('groups_updated', '".time()."' )," |
|
486 |
." ('page_extended', 'true')," |
|
487 |
." ('mediasettings', '')"; |
|
430 |
." (setting_id, name, value) VALUES " |
|
431 |
." ( 1, 'wb_version', '".VERSION."')," |
|
432 |
." ( 2, 'website_title', '$website_title')," |
|
433 |
." ( 3, 'website_description', '')," |
|
434 |
." ( 4, 'website_keywords', '')," |
|
435 |
." ( 5, 'website_header', '')," |
|
436 |
." ( 6, 'website_footer', '')," |
|
437 |
." ( 7, 'wysiwyg_style', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;')," |
|
438 |
." ( 8, 'rename_files_on_upload', 'ph.*?,cgi,pl,pm,exe,com,bat,pif,cmd,src,asp,aspx,js,txt')," |
|
439 |
." ( 9, 'er_level', '0')," |
|
440 |
." (10, 'default_language', '$default_language')," |
|
441 |
." (11, 'app_name', 'wb_$session_rand')," |
|
442 |
." (12, 'sec_anchor', 'section_')," |
|
443 |
." (13, 'default_timezone', '$default_timezone')," |
|
444 |
." (14, 'default_date_format', 'M d Y')," |
|
445 |
." (15, 'default_time_format', 'h:i A')," |
|
446 |
." (16, 'redirect_timer', '1500')," |
|
447 |
." (17, 'home_folders', 'true')," |
|
448 |
." (18, 'warn_page_leave', '1')," |
|
449 |
." (19, 'default_template', 'round')," |
|
450 |
." (20, 'default_theme', 'wb_theme')," |
|
451 |
." (21, 'default_charset', 'utf-8')," |
|
452 |
." (22, 'multiple_menus', 'true')," |
|
453 |
." (23, 'page_level_limit', '6')," |
|
454 |
." (24, 'intro_page', 'false')," |
|
455 |
." (25, 'page_trash', 'inline')," |
|
456 |
." (26, 'homepage_redirection', 'false')," |
|
457 |
." (27, 'page_languages', 'true')," |
|
458 |
." (28, 'wysiwyg_editor', 'fckeditor')," |
|
459 |
." (29, 'manage_sections', 'true')," |
|
460 |
." (30, 'section_blocks', 'false')," |
|
461 |
." (31, 'smart_login', 'false')," |
|
462 |
." (32, 'frontend_login', 'false')," |
|
463 |
." (33, 'frontend_signup', 'false')," |
|
464 |
." (34, 'search', 'public')," |
|
465 |
." (35, 'page_extension', '.php')," |
|
466 |
." (36, 'page_spacer', '-')," |
|
467 |
." (37, 'pages_directory', '/pages')," |
|
468 |
." (38, 'rename_files_on_upload', 'ph.*?,cgi,pl,pm,exe,com,bat,pif,cmd,src,asp,aspx,js,txt')," |
|
469 |
." (39, 'media_directory', '/media')," |
|
470 |
." (40, 'operating_system', '$operating_system')," |
|
471 |
." (41, 'string_file_mode', '$file_mode')," |
|
472 |
." (42, 'string_dir_mode', '$dir_mode')," |
|
473 |
." (43, 'wbmailer_routine', 'phpmail')," |
|
474 |
." (44, 'server_email', '$admin_email')," |
|
475 |
." (45, 'wbmailer_default_sendername', 'WebsiteBaker Mailer')," |
|
476 |
." (46, 'wbmailer_smtp_host', '')," |
|
477 |
." (47, 'wbmailer_smtp_auth', '')," |
|
478 |
." (48, 'wbmailer_smtp_username', '')," |
|
479 |
." (49, 'wbmailer_smtp_password', '')," |
|
480 |
." (50, 'fingerprint_with_ip_octets', '2')," |
|
481 |
." (51, 'secure_form_module', '')," |
|
482 |
." (52, 'mediasettings', '')," |
|
483 |
." (53, 'wb_revision', '".REVISION."')," |
|
484 |
." (54, 'wb_sp', '".SP."')," |
|
485 |
." (55, 'page_icon_dir', '/templates/*/title_images')," |
|
486 |
." (56, 'dev_infos', 'false')," |
|
487 |
." (57, 'groups_updated', '".time()."')," |
|
488 |
." (58, 'website_signature', '')," |
|
489 |
." (59, 'confirmed_registration', '1')," |
|
490 |
." (60, 'page_extended', 'true')," |
|
491 |
." (61, 'modules_upgrade_list', 'news,wysiwyg,form')," |
|
492 |
." (62, 'system_locked', '0')"; |
|
488 | 493 |
$database->query($settings_rows); |
489 | 494 |
|
490 | 495 |
// Users table |
... | ... | |
626 | 631 |
$insert_search_module_order = "INSERT INTO `".TABLE_PREFIX."search` VALUES ('', 'module_order', '$search_module_order', '')"; |
627 | 632 |
$database->query($insert_search_module_order); |
628 | 633 |
// Search max lines of excerpt |
629 |
$search_max_excerpt = addslashes('15');
|
|
634 |
$search_max_excerpt = addslashes('5'); |
|
630 | 635 |
$insert_search_max_excerpt = "INSERT INTO `".TABLE_PREFIX."search` VALUES ('', 'max_excerpt', '$search_max_excerpt', '')"; |
631 | 636 |
$database->query($insert_search_max_excerpt); |
632 | 637 |
// max time to search per module |
... | ... | |
690 | 695 |
set_error($database->get_error()); |
691 | 696 |
} |
692 | 697 |
|
698 |
if ( sizeof(createFolderProtectFile( WB_PATH.MEDIA_DIRECTORY )) ) { } |
|
699 |
if ( sizeof(createFolderProtectFile( WB_PATH.MEDIA_DIRECTORY.'/home' )) ) { } |
|
700 |
if ( sizeof(createFolderProtectFile( WB_PATH.PAGES_DIRECTORY )) ) { } |
|
701 |
|
|
693 | 702 |
// end of if install_tables |
694 | 703 |
|
695 | 704 |
$ThemeUrl = WB_URL.$admin->correct_theme_source('warning.html'); |
Also available in: Unified diff
! update users, create username homefolder in media/homefolders