home/monara/public_html/Hotel/wp-content/themes/zante/core/admin/license.php000064400000057010150731747500023221 0ustar00licenseMessage, $this->responseObj, $templateDir."/style.css" )){ $this->status = true; add_action( 'admin_menu', [$this,'ActiveAdminMenu'], 99999); add_action( 'admin_post_deactivate_license', [ $this, 'action_deactivate_license' ] ); if ( get_option('zante_support_notice') != true ) add_action('admin_notices', [ $this, 'support_expired_notice' ] ); add_action( 'wp_ajax_support_notice', [ $this, 'support_notice' ] ); add_action( 'admin_enqueue_scripts', [ $this, 'support_notice_script' ] ); } else { $this->status = false; if(!empty($licenseKey) && !empty($this->licenseMessage)){ $this->showMessage = true; } update_option("zante_license_key","") || add_option("zante_license_key",""); add_action( 'admin_post_Zante_el_activate_license', [ $this, 'action_activate_license' ] ); add_action( 'admin_menu', [$this,'InactiveMenu'], 11); add_action('admin_notices', [ $this, 'license_activation_notice' ] ); } add_filter( 'admin_body_class', array( &$this, 'theme_dashboard_body_class' ) ); } function ActiveAdminMenu(){ add_submenu_page( 'zante_options', __('Dashboard', 'zante'), __('Dashboard', 'zante'), 'activate_plugins', $this->slug, [$this, "ActivePage"], 0 ); } function InactiveMenu() { add_submenu_page( 'zante_options', __('Dashboard', 'zante'), __('Dashboard', 'zante'), 'manage_options', $this->slug, [$this, "InactivePage"], 0 ); } /** * License Active Page Element * * @since 1.2.9.5 */ function ActivePage() { $this->Header(); $this->Activated(); $this->ServerRequirements(); $this->Help(); } /** * License Inactive Page Element * * @since 1.2.9.5 */ function InactivePage() { $this->Header(); $this->LicenseForm(); $this->ServerRequirements(); $this->Help(); } /** * Update options on license activation * * @since 1.2.9.5 */ function action_activate_license(){ check_admin_referer( 'el-license' ); $licenseKey = !empty($_POST['el_license_key'])?$_POST['el_license_key']:""; $licenseEmail = !empty($_POST['el_license_email'])?$_POST['el_license_email']:""; update_option("zante_license_key",$licenseKey) || add_option("zante_license_key", $licenseKey); update_option("zante_license_email",$licenseEmail) || add_option("zante_license_email", $licenseEmail); wp_safe_redirect(admin_url( 'admin.php?page='.$this->slug)); } /** * Update options on license deactivation * * @since 1.2.9.5 * */ function action_deactivate_license() { check_admin_referer( 'el-license' ); $message=""; if( ZanteBase::RemoveLicenseKey(__FILE__,$message )) { update_option('zante_license_key', ''); update_option('zante_license_email', ''); } wp_safe_redirect(admin_url( 'admin.php?page='.$this->slug)); } /** * Add custom class to body tag * * @since 1.2.9.5 */ function theme_dashboard_body_class() { $classes = ''; $currentScreen = get_current_screen(); if( $currentScreen->id === "zante_page_zante_dashboard" ) { $classes = 'eth-theme-dashboard'; } return $classes; } function Header() { ?>
Zante

responseObj->is_valid ) : ?>
responseObj->license_key, 0 ,9 )."XXXXXXXX-XXXXXXXX".substr( $this->responseObj->license_key, -9 ) ); ?>
"> responseObj->support_end ) && $this->responseObj->support_end != 'Unlimited') { $expired_date = new DateTime($this->responseObj->support_end); $expired_date = $expired_date->format('d-m-Y'); echo esc_html( $expired_date ); } ?>

showMessage) && !empty($this->licenseMessage) ){ ?>

licenseMessage; ?>

php_version = PHP_VERSION; $value->max_execution_time = ini_get('max_execution_time'); $value->memory_limit = ini_get('memory_limit'); $value->upload_max_filesize = ini_get('upload_max_filesize'); // classes $value->php_version >= '7.4.0' ? $value->php_version_class = 'yes' : $value->php_version_class = 'no'; $value->max_execution_time >= '600' ? $value->max_execution_time_class = 'yes' : $value->max_execution_time_class = 'no'; str_replace('M', '', $value->memory_limit) >= '128' ? $value->memory_limit_class = 'yes' : $value->memory_limit_class = 'no'; str_replace('M', '', $value->upload_max_filesize) >= '32' ? $value->upload_max_filesize_class = 'yes' : $value->upload_max_filesize_class = 'no'; return $value; } function ServerRequirements() { ?>

7.4.0 ServerRequirementsValues()->php_version ?>
(max_execution_time): 600 ServerRequirementsValues()->max_execution_time ?>
(memory_limit): 128M ServerRequirementsValues()->memory_limit ?>
(upload_max_filesize): 32M ServerRequirementsValues()->upload_max_filesize ?>

status == true ) { return; } ?>

status == true && $this->responseObj->support_end > $today ) { return; } ?>

admin_url( 'admin-ajax.php' ), )); wp_enqueue_script( 'notice-update' ); } /** * Get license status of the theme * * @since 1.5.1 */ // public function status() { // if ( $this->status == true ) { // return $this->status; // } // } } $license = new Zante_License; $status = $license->status; function zante_license_status() { global $status; if ( $status == true ) { return true; } else { return false; } return; } add_action('init ','zante_license_status', 1); function zante_test() { echo "Here we go my man"; } add_action( 'init', 'zante_test' );