function json_deactivate_plugin()
 {
     $status = Wdeb_PluginsHandler::deactivate_plugin($_POST['plugin']);
     echo json_encode(array('status' => $status ? 1 : 0));
     exit;
 }
            // No textdomain is loaded because we can't determine the plugin location.
            // No point in trying to add textdomain to string and/or localizing it.
            wp_die(__('There was an issue determining where Easy Blogging plugin is installed. Please reinstall.'));
        }
    }
}
$textdomain_handler('wdeb', false, WDEB_PLUGIN_SELF_DIRNAME . '/languages/');
define('WDEB_LOGO_URL', WDEB_PLUGIN_URL . '/img/logo.png', true);
define('WDEB_LANDING_PAGE', 'index.php', true);
require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_installer.php';
Wdeb_Installer::check();
require_once WDEB_PLUGIN_BASE_DIR . '/lib/wdeb_callbacks.php';
require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_options.php';
//Wdeb_Options::populate(); // Deprecated
require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_plugins_handler.php';
Wdeb_PluginsHandler::init();
add_action('wp_logout', 'wdeb_reset_autostart');
if (is_admin()) {
    require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_admin_form_renderer.php';
    require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_admin_pages.php';
    require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_tooltips.php';
    require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_wizard.php';
    Wdeb_AdminPages::serve();
    Wdeb_Tooltips::serve();
    Wdeb_Wizard::serve();
    // Setup dashboard notices
    if (file_exists(WDEB_PLUGIN_BASE_DIR . '/lib/wpmudev-dash-notification.php')) {
        global $wpmudev_notices;
        if (!is_array($wpmudev_notices)) {
            $wpmudev_notices = array();
        }
<?php 
$all = Wdeb_PluginsHandler::get_all_plugins();
$active = Wdeb_PluginsHandler::get_active_plugins();
$sections = array('thead', 'tfoot');
echo "<table class='widefat'>";
foreach ($sections as $section) {
    echo "<{$section}>";
    echo '<tr>';
    echo '<th width="30%">' . __('Add-on name', 'wdeb') . '</th>';
    echo '<th>' . __('Add-on description', 'wdeb') . '</th>';
    echo '</tr>';
    echo "</{$section}>";
}
echo "<tbody>";
foreach ($all as $plugin) {
    $plugin_data = Wdeb_PluginsHandler::get_plugin_info($plugin);
    if (!@$plugin_data['Name']) {
        continue;
    }
    // Require the name
    $is_active = in_array($plugin, $active);
    echo "<tr>";
    echo "<td width='30%'>";
    echo '<b>' . $plugin_data['Name'] . '</b>';
    echo "<br />";
    echo $is_active ? '<a href="#deactivate" class="wdeb_deactivate_plugin" wdeb:plugin_id="' . esc_attr($plugin) . '">' . __('Deactivate', 'wdeb') . '</a>' : '<a href="#activate" class="wdeb_activate_plugin" wdeb:plugin_id="' . esc_attr($plugin) . '">' . __('Activate', 'wdeb') . '</a>';
    echo "</td>";
    echo '<td>' . $plugin_data['Description'] . '<br />' . sprintf(__('Version %s', 'wdeb'), $plugin_data['Version']) . '&nbsp;|&nbsp;' . sprintf(__('by %s', 'wdeb'), '<a href="' . $plugin_data['Plugin URI'] . '">' . $plugin_data['Author'] . '</a>') . '</td>';
    echo "</tr>";
}
echo "</tbody>";