示例#1
0
	</script>
	<?php 
    print_form_header('options', 'doimport', 1, 1, 'uploadform', '90%', '', true, 'post" onsubmit="return js_confirm_upload(this, this.settingsfile);');
    construct_hidden_code('restore', 1);
    print_table_header($vbphrase['restore_settings_xml_file']);
    print_yes_no_row($vbphrase['ignore_blacklisted_settings'], 'blacklist', 1);
    print_upload_row($vbphrase['upload_xml_file'], 'settingsfile', 999999999);
    print_input_row($vbphrase['restore_xml_file'], 'serverfile', './install/vbulletin-settings.xml');
    print_submit_row($vbphrase['restore'], 0);
}
// #################### Start Change Search Type #####################
if ($_REQUEST['do'] == 'searchtype') {
    require_once DIR . '/includes/class_dbalter.php';
    $db_alter = new vB_Database_Alter_MySQL($db);
    $db_alter->fetch_table_info('post');
    $convertpost = iif($db_alter->fetch_table_type() != 'MYISAM', true, false);
    $db_alter->fetch_table_info('thread');
    $convertthread = iif($db_alter->fetch_table_type() != 'MYISAM', true, false);
    $warning2 = iif($convertpost or $convertthread, $vbphrase['your_post_and_thread_table_will_be_converted']);
    print_form_header('options', 'dosearchtype');
    print_table_header("{$vbphrase['search_type']}");
    if ($vbulletin->options['fulltextsearch']) {
        print_description_row($vbphrase['your_forum_is_currently_using_fulltext_search']);
        print_yes_no_row($vbphrase['remove_fulltext_indices'], 'deleteindex', true);
    } else {
        print_description_row(construct_phrase($vbphrase['your_forum_is_currently_using_default_search'], TABLE_PREFIX, $warning1, $warning2));
        print_yes_no_row($vbphrase['empty_postindex_and_word'], 'deletepostindex', false);
    }
    print_submit_row($vbphrase['go'], 0);
}
// #################### Start Change Search Type #####################