File manager - Edit - /home/aresglob/public_html/wp/wp-includes/images/smilies/gosmtp-pro.tar
Back
functions.php 0000644 00000025114 15105455770 0007301 0 ustar 00 <?php /* * gosmtp * https://gosmtp.net * (c) Softaculous Team */ // Are we being accessed directly ? if(!defined('GOSMTP_PRO_VERSION')) { exit('Hacking Attempt !'); } function gosmtp_pro_activation(){ update_option('gosmtp_pro_version', GOSMTP_PRO_VERSION); } function gosmtp_pro_is_network_active($plugin_name){ $is_network_wide = false; // Handling network site if(!is_multisite()){ return $is_network_wide; } $_tmp_plugins = get_site_option('active_sitewide_plugins'); if(!empty($_tmp_plugins) && preg_grep('/.*\/'.$plugin_name.'\.php$/', array_keys($_tmp_plugins))){ $is_network_wide = true; } return $is_network_wide; } function gosmtp_pro_update_checker(){ $current_version = get_option('gosmtp_pro_version', '0.0'); $version = (int) str_replace('.', '', $current_version); // No update required if($current_version == GOSMTP_PRO_VERSION){ return true; } $is_network_wide = gosmtp_pro_is_network_active('gosmtp-pro'); if($is_network_wide){ $free_ins = get_site_option('gosmtp_free_installed'); }else{ $free_ins = get_option('gosmtp_free_installed'); } // If plugin runing reached here it means GoSMTP free installed if(empty($free_ins)){ if($is_network_wide){ update_site_option('gosmtp_free_installed', time()); }else{ update_option('gosmtp_free_installed', time()); } } update_option('gosmtp_version_pro_nag', time()); update_option('gosmtp_version_free_nag', time()); update_option('gosmtp_pro_version', GOSMTP_PRO_VERSION); } // Load license data function gosmtp_pro_load_license($parent = 0){ global $gosmtp, $lic_resp; $license_field = 'gosmtp_license'; $license_api_url = GOSMTP_API; // Save license if(!empty($parent) && is_string($parent) && strlen($parent) > 5){ $lic['license'] = $parent; // Load license of Soft Pro }elseif(!empty($parent)){ $license_field = 'softaculous_pro_license'; $lic = get_option('softaculous_pro_license', []); // My license }else{ $lic = get_option($license_field, []); } // Loaded license is a Soft Pro if(!empty($lic['license']) && preg_match('/^softwp/is', $lic['license'])){ $license_field = 'softaculous_pro_license'; $license_api_url = 'https://a.softaculous.com/softwp/'; $prods = apply_filters('softaculous_pro_products', []); }else{ $prods = []; } if(empty($lic['last_update'])){ $lic['last_update'] = time() - 86600; } // Update license details as well if(!empty($lic) && !empty($lic['license']) && (time() - @$lic['last_update']) >= 86400){ $url = $license_api_url.'/license.php?license='.$lic['license'].'&prods='.implode(',', $prods).'&url='.rawurlencode(site_url()); $resp = wp_remote_get($url); $lic_resp = $resp; //Did we get a response ? if(is_array($resp)){ $tosave = json_decode($resp['body'], true); //Is it the license ? if(!empty($tosave['license'])){ $tosave['last_update'] = time(); update_option($license_field, $tosave); $lic = $tosave; } } } // If the license is Free or Expired check for Softaculous Pro license if(empty($lic) || empty($lic['active'])){ if(function_exists('softaculous_pro_load_license')){ $softaculous_license = softaculous_pro_load_license(); if(!empty($softaculous_license['license']) && (!empty($softaculous_license['active']) || empty($lic['license'])) ){ $lic = $softaculous_license; } }elseif(empty($parent)){ $soft_lic = get_option('softaculous_pro
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings