PluginProbe ʕ •ᴥ•ʔ
Check & Log Email – Easy Email Testing & Mail logging / 2.0.3
Check & Log Email – Easy Email Testing & Mail logging v2.0.3
1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 2.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.13.1 2.0.13.2 2.0.14 2.0.2 2.0.3 2.0.4 2.0.5 2.0.5.1 2.0.6 2.0.7 2.0.8 2.0.9 trunk 0.5.7 0.6.0 0.6.1 0.6.2 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.12.1 1.0.13 1.0.13.1 1.0.2 1.0.3
check-email / include / Core / Check_Email_Multisite.php
check-email / include / Core Last commit date
DB 1 year ago Request 1 year ago UI 1 year ago Auth.php 1 year ago Check_Email_Admin_Capability_Giver.php 1 year ago Check_Email_Export_Log.php 1 year ago Check_Email_From_Handler.php 1 year ago Check_Email_Log.php 1 year ago Check_Email_Logger.php 1 year ago Check_Email_Multisite.php 1 year ago Check_Email_Review.php 1 year ago Loadie.php 1 year ago
Check_Email_Multisite.php
431 lines
1 <?php
2
3 namespace CheckEmail\Core;
4 use CheckEmail\Core\Auth;
5
6 defined('ABSPATH') || exit; // Exit if accessed directly.
7
8 class Check_Email_Multisite {
9
10 public function __construct() {
11 add_action('init', [$this, 'check_mail_handle_outlook_callback']);
12 add_action('init', [$this, 'init']);
13 }
14
15 public function init() {
16 if (! is_multisite()) {
17 return;
18 }
19
20 add_action('network_admin_menu', [$this, 'ck_mail_network_settings_menu']);
21 add_action('admin_enqueue_scripts', [$this, 'ck_mail_network_enqueue_scripts']);
22 }
23 public function check_mail_handle_outlook_callback() {
24 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form
25 if ( isset( $_GET['code'] ) && !empty( $_GET['code'] ) && isset( $_GET['state'] ) && !empty( $_GET['state'] ) && strpos($_GET['state'], 'check-email-nonce_') !== false ) {
26
27
28 $state = preg_replace('/check-email-nonce_[^\s]+/', '', $_GET['state']);
29 $nonce = $state;
30 $smtp_options = get_site_option('check-email-log-global-smtp');
31 if (isset($smtp_options['enable_global']) && ! empty($smtp_options['enable_global']) && is_multisite()) {
32 $redirect_url = network_admin_url('admin.php?page=check-mail-global-settings&tab=smtp' );
33 }else{
34 $redirect_url = admin_url('admin.php?page=check-email-settings&tab=smtp' );
35 }
36
37 if ( ! wp_verify_nonce( $nonce, 'ck_mail_outlook_check_nonce' ) ) {
38 $url = add_query_arg( 'error', 'Microsoft invalid nonce', $redirect_url );
39 wp_safe_redirect( $url );
40 exit;
41 }
42 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form
43 $auth = new Auth( 'outlook' );
44 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form
45 $auth->update_auth_code( sanitize_text_field( wp_unslash( $_GET['code'] ) ) );
46 wp_safe_redirect( $redirect_url );
47 exit;
48 }
49 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form
50 if ( isset( $_GET['error_description'] ) ) {
51 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form
52 $error_message = sanitize_text_field( wp_unslash( $_GET['error_description'] ) );
53 if (isset($smtp_options['enable_global']) && ! empty($smtp_options['enable_global']) && is_multisite()) {
54 $redirect_url = network_admin_url('admin.php?page=check-mail-global-settings&tab=smtp' );
55 }else{
56 $redirect_url = admin_url('admin.php?page=check-email-settings&tab=smtp' );
57 }
58 $url = add_query_arg( 'error', $error_message, $redirect_url );
59 wp_safe_redirect( $url );
60 exit;
61 }
62 }
63
64 public function ck_mail_network_settings_menu() {
65 add_menu_page(
66 esc_html__('Check & Log Email', 'check-email'),
67 esc_html__('Check & Log Email', 'check-email'),
68 'manage_check_email',
69 'check-mail-global-settings',
70 [$this, 'render_page'],
71 'dashicons-email-alt',
72 26
73 );
74 }
75
76 function render_page() {
77 $check_email = wpchill_check_email();
78 $plugin_dir_url = plugin_dir_url( $check_email->get_plugin_file() );
79 $smtp_options = [];
80 $outlook_smtp = [];
81 $enable_smtp = "";
82 $enable_global = "";
83 $mailer = "smtp";
84 $auth = new Auth( 'outlook' );
85 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form
86 $tab = isset( $_GET['tab']) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'general';
87 if (! empty(get_site_option( 'check-email-log-global-smtp') ) ) {
88 $smtp_options = get_site_option( 'check-email-log-global-smtp');
89 $enable_smtp = isset($smtp_options['enable_smtp'])? $smtp_options['enable_smtp'] : '';
90 $enable_global = isset($smtp_options['enable_global'])? $smtp_options['enable_global'] : '';
91 $mailer = isset($smtp_options['mailer'])?$smtp_options['mailer']:'smtp';
92 if ( $mailer == 'outlook' ) {
93 $outlook_smtp = $auth->get_mailer_option();
94 }
95 }?>
96
97 <div class="wrap">
98 <nav class="nav-tab-wrapper">
99 <a href="?page=check-mail-global-settings" class="nav-tab <?php if( 'general' == $tab ):?>nav-tab-active<?php endif; ?>"><?php esc_html_e( 'General', 'check-email' ); ?></a>
100 <a href="?page=check-mail-global-settings&tab=smtp" class="nav-tab <?php if( 'smtp' == $tab ):?>nav-tab-active<?php endif; ?>"><?php esc_html_e( 'SMTP', 'check-email' ); ?></a>
101 </nav>
102 <div class="tab-content">
103 <?php
104 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form
105 if (isset( $_GET['error_description'] ) ) {
106 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form
107 $error_message = sanitize_text_field( wp_unslash( $_GET['error_description'] ) );
108 ?> <div class="notice notice-error is-dismissible">
109 <h3><?php esc_html_e( 'Its an error to linking with microsoft 365 / outlook' ); ?></h3>
110 <p><?php echo esc_html( $error_message ); ?></p>
111 </div>
112 <?php
113 }
114 ?>
115 <form method="post" id="my-network-settings-form">
116 <?php wp_nonce_field('update_network_settings', 'ck_mail_ajax_check_nonce'); ?>
117 <table class="form-table">
118 <thead>
119 <tr valign="top">
120 <th scope="row"><label for="check-email-log-global-enable_global" class="check-email-opt-labels"><?php esc_html_e('Setting Control', 'check-email'); ?></label></th>
121 <td><input type="checkbox" id="check-email-log-global-enable_global" name="check-email-log-global[enable_global]" <?php echo $enable_global == 'on' ? "checked" : ''; ?> class="regular-text" /><label for="check-email-log-global-enable_global" class="check-email-opt-labels"><?php esc_html_e('Make the plugin settings global network-wide', 'check-email'); ?></label></td>
122 </tr>
123 </thead>
124 <?php if( 'general' == $tab ) : ?>
125
126 <tbody id="check-email-global-smtp-form" style="<?php echo $enable_global != 'on' ? "display: none" : ''; ?>">
127
128 <tr>
129
130 <th scope="row"><label for="check-email-global-override_emails_from" class="check-email-opt-labels" ><?php esc_html_e('Override Emails From', 'check-email'); ?></label></th>
131
132 <td>
133
134 <input id="check-email-global-override_emails_from" type="checkbox" name="check-email-log-global[override_emails_from]" value="true" <?php echo (isset($smtp_options['override_emails_from'])) && $smtp_options['override_emails_from'] == true ? "checked" : ''; ?> />
135
136 <label for="check-email-global-override_emails_from" class="check-email-opt-labels" ><?php esc_html_e( 'Check this box if you would like override wordpress default from email and name.', 'check-email' ) ?> </label>
137
138 </td>
139
140 </tr>
141
142 <tr class="cm_global_override">
143
144 <th scope="row"> <label for="check-email-log-global-email_from_name" style="padding-left:10px;" class="check-email-opt-labels"><?php esc_html_e('Change the "from" name', 'check-email'); ?> </label></th>
145
146 <td>
147
148 <input id="check-email-log-global-email_from_name" placeholder="<?php esc_html_e('Change the "from" name', 'check-email'); ?>" type="text" name="check-email-log-global[email_from_name]" value="<?php echo (isset($smtp_options['email_from_name'])) ? esc_html( $smtp_options['email_from_name'] ) : ''; ?>" class="regular-text">
149
150 </td>
151
152 </tr>
153
154 <tr class="cm_global_override">
155
156 <th scope="row"> <label for="check-email-log-global-email_from_email" class="check-email-opt-labels" style="padding-left:10px;"><?php esc_html_e('Change the "from" email', 'check-email'); ?></th>
157
158 <td>
159
160 <input id="check-email-log-global-email_from_email" placeholder="<?php esc_html_e('Change the "from" email', 'check-email'); ?>" type="text" name="check-email-log-global[email_from_email]" value="<?php echo (isset($smtp_options['email_from_email'])) ? esc_html( $smtp_options['email_from_email'] ) : ''; ?>" class="regular-text">
161
162 </td>
163
164 </tr>
165
166 <tr>
167
168 <th scope="row"><label for="check-email-global-forward_email" class="check-email-opt-labels"><?php esc_html_e('Forward Email', 'check-email'); ?></label></th>
169
170 <td>
171
172 <input id="check-email-global-forward_email" type="checkbox" name="check-email-log-global[forward_email]" value="true" <?php echo (isset($smtp_options['forward_email'])) && $smtp_options['forward_email'] == true ? "checked" : ''; ?> /> <label for="check-email-global-forward_email" class="check-email-opt-labels"><?php esc_html_e( 'Automatically forward a copy of all emails sent by WordPress to other email addresses ', 'check-email' ) ?> </label><a href=" https://check-email.tech/docs/knowledge-base/forward-email-option-in-the-check-log-email-plugin/"><?php esc_html_e( 'Learn More', 'check-email' ) ?></a>
173
174 </td>
175
176 </tr>
177
178 <tr class="cm_global_forward">
179
180 <th scope="row"> <label for="check-email-log-global-forward_to" class="check-email-opt-labels" style="padding-left:10px;"><?php esc_html_e('Forward To', 'check-email'); ?> </label></th>
181
182 <td>
183
184 <input id="check-email-log-global-forward_to" placeholder="<?php esc_html_e('Forward To Email', 'check-email'); ?>" type="text" name="check-email-log-global[forward_to]" value="<?php echo (isset($smtp_options['forward_to'])) ? esc_html( $smtp_options['forward_to'] ) : ''; ?>" class="regular-text">
185
186 </td>
187
188 </tr>
189
190 <tr class="cm_global_forward">
191
192 <th scope="row"> <label for="check-email-log-global-forward_cc" class="check-email-opt-labels" style="padding-left:10px;"><?php esc_html_e('Forward Cc', 'check-email'); ?></th>
193
194 <td>
195
196 <input id="check-email-log-global-forward_cc" placeholder="<?php esc_html_e('Forward Cc Email', 'check-email'); ?>" type="text" name="check-email-log-global[forward_cc]" value="<?php echo (isset($smtp_options['forward_cc'])) ? esc_html( $smtp_options['forward_cc'] ) : ''; ?>" class="regular-text">
197
198 </td>
199
200 </tr>
201
202 <tr class="cm_global_forward">
203
204 <th scope="row"> <label for="check-email-log-global-forward_bcc" class="check-email-opt-labels" style="padding-left:10px;"><?php esc_html_e('Forward Bcc', 'check-email'); ?></th>
205
206 <td>
207
208 <input id="check-email-log-global-forward_bcc" placeholder="<?php esc_html_e('Forward Bcc Email', 'check-email'); ?>" type="text" name="check-email-log-global[forward_bcc]" value="<?php echo (isset($smtp_options['forward_bcc'])) ? esc_html( $smtp_options['forward_bcc'] ) : ''; ?>" class="regular-text">
209
210 </td>
211
212 </tr>
213
214 </tbody>
215
216 <?php endif; ?>
217
218 <?php if( 'smtp' == $tab ) : ?>
219 <tbody id="check-email-global-smtp-form" style="<?php echo $enable_global != 'on' ? "display: none" : ''; ?>">
220 <tr class="check_email_mailer">
221 <th scope="row" style="padding-left: 10px;"><label for="check-email-mailer" class="check-email-opt-labels"><?php esc_html_e( 'Mailer', 'check-email' ); ?></label></th>
222 <td>
223 <div class="ce_radio-container">
224 <label class="ce_radio-label <?php echo $mailer == 'smtp' ? "ck_radio_selected" : ''; ?>">
225 <input class="check_email_mailer_type_multi" type="radio" name="check-email-log-global[mailer]" value="smtp" <?php echo $mailer == 'smtp' ? "checked" : ''; ?> id="check-email-mailer-general-smtp">
226 <img src="<?php echo esc_attr($plugin_dir_url . 'assets/images/smtp.svg') ?>" alt="SMTP Icon">
227 <div class="ce_radio-title"><?php esc_html_e('General SMTP','check-email'); ?></div>
228 </label>
229
230 <label class="ce_radio-label <?php echo $mailer == 'outlook' ? "ck_radio_selected" : ''; ?>" >
231 <input class="check_email_mailer_type_multi" type="radio" name="check-email-log-global[mailer]" value="outlook" <?php echo $mailer == 'outlook' ? "checked" : ''; ?> id="check-email-mailer-outlook">
232 <img src="<?php echo esc_attr($plugin_dir_url . 'assets/images/microsoft.svg') ?>" alt="Outlook Icon">
233 <div class="ce_radio-title"><?php esc_html_e('365 / Outlook','check-email'); ?></div>
234 </label>
235
236 <label class="ce_radio-label <?php echo $mailer == 'gmail' ? "ck_radio_selected" : ''; ?>" >
237 <input class="check_email_mailer_type_multi" type="radio" name="check-email-smtp-options[mailer]" value="gmail" <?php echo $mailer == 'gmail' ? "checked" : ''; ?>>
238 <img src="<?php echo esc_attr($plugin_dir_url . 'assets/images/gmail.png') ?>" alt="Gmail Icon">
239 <div class="ce_radio-title"><?php esc_html_e('Gmail','check-email'); ?></div>
240 </label>
241 </div>
242 </td>
243 </tr>
244 <tr class="check_email_smtp_class" style="padding-left: 10px;">
245 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('From', 'check-email'); ?></th>
246 <td>
247 <input id="check-email-smtp-from" type="text" name="check-email-log-global[smtp_from]" value="<?php echo isset($smtp_options['smtp_from']) ? esc_attr($smtp_options['smtp_from']) : "" ?>" size="35">
248 </td>
249 </tr>
250 <tr class="check_email_smtp_class">
251 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('From Name', 'check-email'); ?></th>
252 <td>
253 <input id="check-email-smtp-from-name" type="text" name="check-email-log-global[smtp_from_name]" size="35" value="<?php echo isset($smtp_options['smtp_from_name']) ? esc_attr($smtp_options['smtp_from_name']) : "" ?>">
254 </td>
255 </tr>
256 <tr class="check_email_smtp_class">
257 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('SMTP Host', 'check-email'); ?></th>
258 <td>
259 <input id="check-email-smtp-host" type="text" name="check-email-log-global[smtp_host]" value="<?php echo isset($smtp_options['smtp_host']) ? esc_attr($smtp_options['smtp_host']) : "" ?>" size="35">
260 </td>
261 </tr>
262 <tr class="check_email_smtp_class">
263 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('SMTP Secure', 'check-email'); ?></th>
264 <td>
265 <?php
266 $secure_array = array('None' => '', 'SSL' => 'ssl', 'TLS' => 'tls');
267 $field_value = isset($smtp_options['smtp_secure']) ? $smtp_options['smtp_secure'] : "";
268 foreach ($secure_array as $sa_key => $sa_value) {
269 $checked = '';
270 $id = 'check-email-smtp-secure';
271 if ($sa_value == 'ssl') {
272 $id = 'check-email-smtp-secure-ssl';
273 } else if ($sa_value == 'tls') {
274 $id = 'check-email-smtp-secure-tls';
275 }
276 if ($field_value == $sa_value) {
277 $checked = 'checked';
278 }
279
280 ?>
281 <label for="<?php echo esc_attr($id); ?>" class="check-mail-smtp-secure-label">
282 <input id="<?php echo esc_attr($id); ?>" type="radio" name="check-email-log-global[smtp_secure]" value="<?php echo esc_attr($sa_value); ?>" <?php echo esc_attr($checked); ?>> <?php echo esc_html($sa_key); ?> </label>
283 <?php
284 }
285 ?>
286 </td>
287 </tr>
288 <tr class="check_email_smtp_class">
289 <?php $smtp_port = isset($smtp_options['smtp_port']) ? $smtp_options['smtp_port'] : ""; ?>
290 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('SMTP Port', 'check-email'); ?></th>
291 <td>
292 <input id="check-email-smtp-port" type="text" name="check-email-log-global[smtp_port]" value="<?php echo esc_attr($smtp_port) ?>" size="35">
293 </td>
294 </tr>
295 <tr class="check_email_smtp_class">
296 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('SMTP Authentication', 'check-email'); ?></th>
297 <td>
298 <?php
299 $secure_array = array('No' => 'no', 'Yes' => 'yes');
300 $field_value = isset($smtp_options['smtp_auth']) ? $smtp_options['smtp_auth'] : "yes";
301
302 foreach ($secure_array as $sa_key => $sa_value) {
303 $checked = '';
304 $id = 'check-email-smtp-secure-yes';
305 if ($sa_value == 'no') {
306 $id = 'check-email-smtp-secure-no';
307 }
308 if ($field_value == $sa_value) {
309 $checked = 'checked';
310 }
311 ?>
312 <label for="<?php echo esc_attr($id); ?>" class="check-mail-smtp-secure-label">
313 <input id="<?php echo esc_attr($id); ?>" type="radio" name="check-email-log-global[smtp_auth]" value="<?php echo esc_attr($sa_value); ?>" <?php echo esc_attr($checked); ?>> <?php echo esc_html($sa_key); ?> </label>
314 <?php
315 }
316 ?>
317 </td>
318 </tr>
319 <tr class="check_email_smtp_class">
320 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('Username', 'check-email'); ?></th>
321 <?php $smtp_username = isset($smtp_options['smtp_username']) ? base64_decode($smtp_options['smtp_username']) : ''; ?>
322 <td>
323 <input id="check-email-smtp-username" type="text" name="check-email-log-global[smtp_username]" value="<?php echo esc_attr($smtp_username); ?>" size="35">
324 </td>
325 </tr>
326 <tr class="check_email_smtp_class">
327 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('Password', 'check-email'); ?></th>
328 <?php $smtp_password = isset($smtp_options['smtp_password']) ? base64_decode($smtp_options['smtp_password']) : ''; ?>
329 <td>
330 <input id="check-email-smtp-password" type="password" name="check-email-log-global[smtp_password]" value="<?php echo esc_attr($smtp_password); ?>" size="35">
331 </td>
332 </tr>
333 </tbody>
334
335 <tbody id="check-email-outllook" style="<?php echo $enable_global != 'on' || $mailer != 'outlook' ? "display: none" : ''; ?>">
336 <tr class="check_email_smtp_from">
337 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('Application ID', 'check-email'); ?></th>
338 <td>
339 <input class="regular-text" type="text" name="check-email-outlook-options[client_id]" value="<?php echo isset($outlook_smtp['client_id'])?esc_attr(base64_decode($outlook_smtp['client_id'])):"" ?>" >
340 </td>
341 </tr>
342 <tr class="">
343 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('Client Secret', 'check-email'); ?></th>
344 <td>
345 <input class="regular-text" type="password" name="check-email-outlook-options[client_secret]" value="<?php echo isset($outlook_smtp['client_secret'])?esc_attr(base64_decode($outlook_smtp['client_secret'])):"" ?>">
346 </td>
347 </tr>
348 <tr class="">
349 <th scope="row" style="padding-left: 10px;"><?php esc_html_e('Redirect URI', 'check-email'); ?></th>
350 <td>
351
352 <input class="regular-text" type="text" readonly id="check_mail_request_uri" value="<?php echo (is_network_admin()) ? esc_url(network_admin_url()):esc_url(admin_url()) ?>" ><small id="check_mail_copy_text"></small>
353 <p><?php esc_html_e('This is the page on your site that you will be redirected to after you have authenticated with Microsoft.
354 You need to copy this URL into "Authentication > Redirect URIs" web field for your application on Microsoft Azure site for your project there.','check-email'); ?></p>
355 </td>
356 </tr>
357 <tr class="">
358 <td colspan="2">
359 <?php
360
361 if ( $auth->is_clients_saved() ) :
362 if ( $auth->is_auth_required() ) : ?>
363 <a href="<?php echo esc_url( $auth->get_auth_url() ); ?>" class="button button-secondary">
364 <?php esc_html_e( 'Allow plugin to send emails using your Microsoft account', 'check-email' ); ?>
365 </a>
366
367 <?php else : ?>
368
369 <button class="button" id="check_email_remove_outlook">
370 <?php esc_html_e( 'Remove OAuth Connection', 'check-email' ); ?>
371 </button>
372 <span class="">
373 <?php
374 $user = (isset( $outlook_smtp['user_details'] )) ? $outlook_smtp['user_details'] : [];
375
376 if ( isset( $user['email'] ) && isset( $user['display_name'] ) && ! empty( $user['email'] ) && ! empty( $user['display_name'] ) ) {
377 printf(
378 /* translators: %s - Display name and email, as received from oAuth provider. */
379 esc_html__( 'Connected as %s', 'check-email' ),
380 '<code>' . esc_html( $user['display_name'] . ' <' . $user['email'] . '>' ) . '</code>'
381 );
382 }
383 ?>
384 </span>
385 <p class="desc">
386 <?php esc_html_e( 'Removing the OAuth connection will give you an ability to redo the OAuth connection or link to another Microsoft account.', 'check-email' ); ?>
387 </p>
388
389 <?php endif; ?>
390 <?php
391 endif;
392 ?>
393 </td>
394 </tr>
395 </tbody>
396
397
398 <?php endif; ?>
399 </table>
400 <?php submit_button(); ?>
401 </form>
402 </div>
403 </div>
404 <?php
405 }
406
407
408
409
410
411 public function ck_mail_network_enqueue_scripts() {
412 $check_email = wpchill_check_email();
413 $plugin_dir_url = plugin_dir_url($check_email->get_plugin_file());
414 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
415 wp_register_script(
416 'ck-network-admin-js',
417 $plugin_dir_url . 'assets/js/network-admin'. $suffix .'.js',
418 array(),
419 $check_email->get_version(),
420 true
421 );
422
423 wp_localize_script('ck-network-admin-js', 'network_admin_setting', array(
424 // 'ajaxUrl' => network_admin_url( 'admin-ajax.php' ),
425 'ajaxUrl' => admin_url('admin-ajax.php'),
426 'nonce' => wp_create_nonce('ck_mail_ajax_check_nonce'),
427 ));
428 wp_enqueue_script( 'ck-network-admin-js' );
429 }
430 }
431