$sfseo['seo_og_attachment'] = false;
    $sfseo['seo_og_type'] = 'website';
    sp_update_option('sfseo', $sfseo);
    sp_response($section);
}
sp_bump_build($build, 13315);
# Start of Upgrade Routines - 5.5.10 ============================================================
sp_bump_build($build, 13316);
$section = 13317;
if ($build < $section) {
    $sfmail = sp_get_option('sfnewusermail', $sfmail);
    $sfmail['sfnewusertext'] = str_replace('%NEWLINE%Password: %PASSWORD% ', '', $sfmail['sfnewusertext']);
    $sfmail['sfnewusertext'] = str_replace('%PASSWORD%', '', $sfmail['sfnewusertext']);
    $sfmail['sfnewusertext'] .= ' %NEWLINE%Password Retrieval URL: %PWURL%';
    sp_update_option('sfnewusermail', $sfmail);
    sp_response($section);
}
# Start of Upgrade Routines - 5.5.11 ============================================================
sp_bump_build($build, 13318);
# Start of Upgrade Routines - 5.6 ============================================================
$section = 13495;
if ($build < $section) {
    spdb_query('ALTER TABLE ' . SFMEMBERSHIPS . ' ADD KEY user_id_idx (user_id);');
    sp_bump_build($build, 13495);
}
sp_bump_build($build, 13657);
# Start of Upgrade Routines - 5.6.1 ============================================================
sp_bump_build($build, 13700);
# ****** IMPORTANT: THE FINAL $section valuse MUST be the same as the SPBUILD constant
# ******			for the Upgrade to complete correctly
die;
Exemplo n.º 2
0
$section = 12758;
if ($build < $section) {
    # update autoupdate meta to not have full url, just the ahah loader info
    $spMeta = spdb_table(SFMETA, 'meta_type="autoupdate"');
    if (!empty($spMeta)) {
        foreach ($spMeta as $meta) {
            if (!empty($meta)) {
                $value = unserialize($meta->meta_value);
                $value[1] = str_replace(site_url('', 'http') . '/index.php?', '', $value[1]);
                $value[1] = str_replace(site_url('', 'https') . '/index.php?', '', $value[1]);
                sp_update_sfmeta('autoupdate', $meta->meta_key, $value, $meta->meta_id, $meta->autoload);
            }
        }
    }
    sp_response($section);
}
$section = 12760;
if ($build < $section) {
    # convert table collation
    $tables = sp_get_option('installed_tables');
    foreach ($tables as $table) {
        sp_convert_table_to_utf8mb4($table);
    }
    sp_response($section);
}
sp_bump_build($build, 12968);
# Start of Upgrade Routines - 5.5.8 ============================================================
sp_bump_build($build, 13000);
# ****** IMPORTANT: THE FINAL $section valuse MUST be the same as the SPBUILD constant
# ******			for the Upgrade to complete correctly
die;
Exemplo n.º 3
0
sp_bump_build($build, 13001);
$section = 13042;
if ($build < $section) {
    # create forum festure images folder
    sp_create_forum_image_location();
    # add new column to forum table
    spdb_query('ALTER TABLE ' . SFFORUMS . ' ADD (feature_image varchar(50) default NULL)');
    # add new options to seo
    $sfseo = sp_get_option('sfseo');
    $sfseo['sfseo_og'] = false;
    $sfseo['seo_og_attachment'] = false;
    $sfseo['seo_og_type'] = 'website';
    sp_update_option('sfseo', $sfseo);
    sp_response($section);
}
# Start of Upgrade Routines - 5.5.10 ============================================================
sp_bump_build($build, 13316);
$section = 13317;
if ($build < $section) {
    $sfmail = sp_get_option('sfnewusermail', $sfmail);
    $sfmail['sfnewusertext'] = str_replace('%NEWLINE%Password: %PASSWORD% ', '', $sfmail['sfnewusertext']);
    $sfmail['sfnewusertext'] = str_replace('%PASSWORD%', '', $sfmail['sfnewusertext']);
    $sfmail['sfnewusertext'] .= ' %NEWLINE%Password Retrieval URL: %PWURL%';
    sp_update_option('sfnewusermail', $sfmail);
    sp_response($section);
}
# Start of Upgrade Routines - 5.5.11 ============================================================
sp_bump_build($build, 13318);
# ****** IMPORTANT: THE FINAL $section valuse MUST be the same as the SPBUILD constant
# ******			for the Upgrade to complete correctly
die;