HEX
Server: Apache
System: Linux webd011.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: ezpgggd (105871)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/e/z/p/ezpgggd/www-old/wp-content/plugins/modula/includes/admin/tabs/license.php
<?php

$license = get_option( 'modula_pro_license_key' );
$status  = get_option( 'modula_pro_license_status', false );
$status->license === 'valid';


$messages = array(
	'no-license' => esc_html__( 'Enter your license key', 'modula-pro' ),
	'activate-license' => esc_html__( 'Activate your license key', 'modula-pro' ),
	'all-good' => __( 'Your license is active until <strong>%s</strong>', 'modula-pro' ),
	'lifetime' => __( 'Your license is active <strong>forever</strong>', 'modula-pro' ),
);

?>
<div class="row">
	<?php do_action( 'modula_license_errors' ) ?>
	<form method="post" action="options.php">

		<?php settings_fields('modula_pro_license_key'); ?>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row" valign="top">
						<?php esc_html_e('License Key', 'modula-pro'); ?>
					</th>
					<td>
						<input id="modula_pro_license_key" name="modula_pro_license_key" type="password" class="regular-text" value="<?php echo esc_attr( $license ); ?>" />
						<label class="description modula-license-label" for="modula_pro_license_key">
							<?php
						$date_format = get_option( 'date_format' );
						echo $messages['lifetime'];
			
							?>	
						</label>
					</td>
				</tr>
					<tr valign="top">
						<th scope="row" valign="top">
							<?php esc_html_e('Activate License', 'modula-pro'); ?>
						</th>
						<td>
							<?php wp_nonce_field( 'modula_pro_license_nonce', 'modula_pro_license_nonce' ); ?>
							<input type="submit" class="button-secondary" name="modula_pro_license_deactivate" value="<?php esc_html_e('Deactivate License', 'modula-pro'); ?>"/>
						</td>
					</tr>
			</tbody>
		</table>
		<?php submit_button(); ?>
	</form>
</div>