| Server IP : 31.214.179.12 / Your IP : 216.73.216.141 Web Server : Apache System : Linux hostingsrv123.dondominio.com 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 User : ( 801593) PHP Version : 8.5.13 Disable Function : system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,exec,ini_alter,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,mail,eval MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /hosting/www/tarifatuna.com/public/wp-content/plugins/really-simple-ssl-git/modal/ |
Upload File : |
<?php
if ( ! defined('ABSPATH')) {
exit;
}
if ( ! function_exists('rsssl_plugin_plugin_page_scripts')) {
function rsssl_plugin_plugin_page_scripts($hook)
{
if ( $hook !== 'plugins.php' && $hook !== 'plugins-network.php' ) {
return;
}
$js_data = rsssl_get_chunk_translations( 'modal/build' );
if (empty($js_data)) {
return;
}
wp_enqueue_style('wp-components');
$handle = 'rsssl-modal';
wp_enqueue_script(
$handle,
plugins_url('build/' . $js_data['js_file'], __FILE__),
$js_data['dependencies'],
$js_data['version'],
true
);
wp_set_script_translations($handle, 'really-simple-ssl');
$token = wp_create_nonce('rsssl_deactivate_plugin');
$deactivate_keep_ssl_link = rsssl_admin_url([ 'action' => 'uninstall_keep_ssl', 'token' => $token ]);
$deactivate_revert_ssl_link = rsssl_admin_url([ 'action' => 'uninstall_revert_ssl', 'token' => $token ]);
wp_localize_script(
$handle,
'rsssl_modal',
apply_filters('rsssl_localize_script', [
'json_translations' => $js_data['json_translations'],
'plugin_url' => rsssl_url,
'deactivate_keep_https' => $deactivate_keep_ssl_link,
'deactivate_revert_https' => $deactivate_revert_ssl_link,
'pro_plugin_active' => defined('rsssl_pro'),
])
);
function rsssl_add_modal_root_div()
{
// Check if we're on the plugins page (single site or network admin)
$screen = get_current_screen();
if ($screen && ($screen->id === 'plugins' || $screen->id === 'plugins-network')) {
echo '<div id="rsssl-modal-root"></div>';
}
}
add_action('admin_footer', 'rsssl_add_modal_root_div');
}
}
add_action('admin_enqueue_scripts', 'rsssl_plugin_plugin_page_scripts');