| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
if (!current_user_can('edit_others_pages')) { |
| 7 |
wp_die(__('You do not have sufficient permissions to access this page.')); |
| 8 |
} |
| 9 |
?> |
| 10 |
<div class="imh-6310"> |
| 11 |
<h1>Product License Activation</h1> |
| 12 |
<p>Activate your copy to get direct plugin updates and official support.</p> |
| 13 |
<?php |
| 14 |
if (!empty($_POST['save'])) { |
| 15 |
$nonce = $_REQUEST['_wpnonce']; |
| 16 |
if (!wp_verify_nonce($nonce, 'imh-6310-nonce-field-license')) { |
| 17 |
die('You do not have sufficient permissions to access this page.'); |
| 18 |
} else { |
| 19 |
imh_6310_check_license(sanitize_text_field($_POST['license'])); |
| 20 |
} |
| 21 |
} |
| 22 |
?> |
| 23 |
<form action="" method="post" style="width: 600px"> |
| 24 |
<?php |
| 25 |
echo wp_nonce_field("imh-6310-nonce-field-license"); |
| 26 |
?> |
| 27 |
<table> |
| 28 |
<tr> |
| 29 |
<td>License Key:</td> |
| 30 |
<td> |
| 31 |
<input type="text" name="license" class="imh-6310-form-input"> |
| 32 |
</td> |
| 33 |
</tr> |
| 34 |
<tr> |
| 35 |
<td></td> |
| 36 |
<td> |
| 37 |
<br /> |
| 38 |
<input type="submit" name="save" class="imh-6310-btn-primary"> |
| 39 |
</td> |
| 40 |
</tr> |
| 41 |
</table> |
| 42 |
</form> |
| 43 |
</div> |