public static function render() { if (!mainwp_current_user_can('dashboard', 'access_wpadmin_on_child_sites')) { mainwp_do_not_have_permissions(__('WP-Admin on child sites', 'mainwp')); return; } if (!isset($_GET['websiteid'])) { exit; } $id = $_GET['websiteid']; $website = MainWP_DB::Instance()->getWebsiteById($id); if (!MainWP_Utility::can_edit_website($website)) { exit; } $location = ''; if (isset($_GET['location'])) { $location = base64_decode($_GET['location']); } MainWP_Site_Open::openSite($website, $location, isset($_GET['newWindow']) ? $_GET['newWindow'] : null); }