function scoper_db_setup($last_db_ver)
{
    scoper_update_schema($last_db_ver);
    global $scoper_db_setup_done;
    $scoper_db_setup_done = 1;
    if (!$last_db_ver) {
        scoper_set_conditional_defaults();
    }
}
 function default_options($sitewide = false, $customize_defaults = false)
 {
     check_admin_referer('scoper-update-options');
     $default_prefix = $customize_defaults ? 'default_' : '';
     $reviewed_options = explode(',', $_POST['all_options']);
     foreach ($reviewed_options as $option_name) {
         scoper_delete_option($default_prefix . $option_name, $sitewide);
     }
     $reviewed_otype_options = explode(',', $_POST['all_otype_options']);
     foreach ($reviewed_otype_options as $option_name) {
         scoper_delete_option($default_prefix . $option_name, $sitewide);
     }
     scoper_delete_option($default_prefix . 'disabled_role_caps', $sitewide);
     scoper_delete_option($default_prefix . 'user_role_caps', $sitewide);
     scoper_set_conditional_defaults();
 }