HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/bt667/www/wp-content/plugins/wp_mvplayer/includes/CPT/admin_license_form.php
<?php
    $mvp_player_license_option = MVP_Importer_Helper::mvp_player_license_status_option();
	$license = (isset($mvp_player_license_option['license_key']))?$mvp_player_license_option['license_key']:'';
    $status  =  (isset($mvp_player_license_option['status']))?$mvp_player_license_option['status']:'';
	
	if(isset($license) && !empty($status)){
		$mvp_player_license_expiry = MVP_Importer_Helper::mvp_license_status($license);

		if(isset($mvp_player_license_expiry)){
        	$date_expiry=date('d-m-Y',strtotime($mvp_player_license_expiry->date_expiry));
		}else{
			$date_expiry = "";
		}
	}else{
		$date_expiry = "";
	}
?>

<div class="wrap">
    <h2><?php _e('Plugin License Options','mvp'); ?></h2>
	<form method="post" id="formId" action="options.php" enctype="multipart/form-data">
		<?php settings_fields('mvp_player_license'); ?>
		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row" valign="top">
						<?php _e('License Key','mvp'); ?>
					</th>
					<td>
						<input id="mvp_player_license_key" name="mvp_player_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $license ); ?>" />
					</td>
				</tr>						
				<tr valign="top">
					<th>
						<?php if($status == 'Active') { ?>
							<input type="submit" class="button-secondary btn-success" id="mvp_player_license_activate" data-expiry="<?php echo $date_expiry;?>" data-l-status="activated" name="mvp_player_license_activate" value="<?php _e('Activate License','mvp'); ?>"/>
						<?php }else{?>
							<input type="submit" class="button-secondary" id="mvp_player_license_activate" data-expiry="" data-l-status="deactivated" name="mvp_player_license_activate" value="<?php _e('Activate License','mvp'); ?>"/>
						<?php } ?>
					</th>
				</tr>
			</tbody>
		</table>
	</form>
</div>
<?php