function cfgp_operations_form()
{
    global $wpdb, $userdata;
    $current_site = get_current_site();
    $blog_ids = array();
    $shadow_blog = cfgp_get_shadow_blog_id();
    $sql = 'SELECT * FROM ' . $wpdb->blogs . ' WHERE site_id=' . $current_site->id . ' ORDER BY site_id, blog_id';
    $results = $wpdb->get_results($sql);
    $show_reset_button = in_array($userdata->user_login, apply_filters('cfgp_big_admins', array('crowdfavorite')));
    cfgp_load_view('operations-page', compact('shadow_blog', 'blog_ids', 'results', 'show_reset_button'));
}
<div class="wrap">
	<?php 
screen_icon();
?>
	<h2><?php 
echo __('CF Global Posts Operations', 'cf-global-posts');
?>
</h2>
	<?php 
if (!cfgp_is_installed()) {
    cfgp_load_view('install');
} else {
    cfgp_load_view('import-table-ajax-receipt');
    cfgp_load_view('import-table', compact('results', 'blog_ids', 'shadow_blog'));
    // Conditional as only *very few* users should have access to this
    if ($show_reset_button) {
        cfgp_load_view('reset-all-button');
    }
}
?>
</div><!--/wrap-->