| Server IP : 89.108.64.180 / Your IP : 216.73.217.92 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/hotelzm.com/wp-content/plugins/popup-builder/public/views/ |
Upload File : |
<?php
/* Exit if accessed directly */
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="sgpb sgpb-wrapper sgpb-padding-30">
<span class="sgpb-header-h1">License</span>
<div class="formItem">
<?php
$licenses = $this->getLicenses();
$licenseCount = 0;
foreach ( $licenses as $currentLicense ) : ?>
<?php
$key = $currentLicense['key'];
$license = get_option( 'sgpb-license-key-' . $key );
$status = get_option( 'sgpb-license-status-' . $key );
?>
<div class="sgpb-license sgpb-license-block sgpb-padding-20 sgpb-margin-bottom-30 sgpb-position-relative">
<div class="sgpb-license-border <?php echo ( $status !== false && $status == 'valid' ) ? 'active' : 'inactive' ?>"></div>
<h2 class="formItem__title sgpb-margin-top-10 sgpb-margin-bottom-30"><?php echo esc_html($currentLicense['boxLabel']) ?></h2>
<div class="sgpb-license__status">
<?php if ( $status !== false && $status == 'valid' ): ?>
<div class="active"></div>
Active
<?php else: ?>
<div class="inactive"></div>
Inactive
<?php endif; ?>
</div>
<div class="licenseKey__form sgpb-margin-top-10 sgpb-margin-bottom-30 sgpb-align-item-center sgpb-display-flex">
<span class="sgpb-width-20"><?php esc_html_e( 'License Key', 'popup-builder' ); ?></span>
<form method="post" action="options.php" class="sgpb-width-80 sgpb-display-inline-flex">
<input id="<?php echo esc_attr('sgpb-license-key-' . $key) ?>" type="text" class="sgpb-width-100"
value="<?php echo esc_attr( $license ); ?>"
name="<?php echo esc_attr('sgpb-license-key-' . $key ) ?>">
<?php if ( $status !== false && $status == 'valid' ): ?>
<?php wp_nonce_field( 'sgpb_nonce', 'sgpb_nonce' ); ?>
<input type="submit" class="sgpb-btn sgpb-btn-blue"
name="<?php echo esc_attr('sgpb-license-deactivate' . $key ); ?>"
value="<?php esc_html_e( 'Deactivate', 'popup-builder' ); ?>">
<?php else: ?>
<?php wp_nonce_field( 'sgpb_nonce', 'sgpb_nonce' ); ?>
<input type="submit" class="sgpb-btn sgpb-btn-blue"
name="<?php echo esc_attr('sgpb-license-activate-' . $key ); ?>"
value="<?php esc_html_e( 'Activate', 'popup-builder' ); ?>">
<?php endif; ?>
</form>
</div>
</div>
<?php endforeach; ?>
</div>
</div>