PluginProbe
Image Hotspot – Map Image Annotation / trunk
Image Hotspot – Map Image Annotation vtrunk
3.8 3.7 3.6 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 All 30 releases
image-map-hotspots / license.php

license.php in Image Hotspot – Map Image Annotation trunk, at license.php

43 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>