Changeset 3047156
- Timestamp:
- 03/07/2024 01:51:05 PM (2 years ago)
- Location:
- leadinfo/trunk
- Files:
-
- 2 edited
-
leadinfo.class.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
leadinfo/trunk/leadinfo.class.php
r1871250 r3047156 3 3 exit; 4 4 } 5 6 5 if (!class_exists('Leadinfo')) { 7 6 class Leadinfo … … 32 31 $option = 'leadinfo_id'; 33 32 $error = false; 34 $save = isset($_GET['save']);35 33 $name = get_option($option); 36 34 37 if( $save && isset($_GET['leadinfo_id'])) {35 if(isset($_GET['save']) && isset($_GET['leadinfo_id']) && current_user_can('manage_options') && check_admin_referer('leadinfo_tracking_form')) { 38 36 $matched = preg_match('/^(LI\-)([0-9A-Z]+)$/', $_GET['leadinfo_id']); 39 37 40 38 if($matched === 0) { 41 $save = false;42 39 $error = true; 43 40 } else { 44 41 $name = $_GET['leadinfo_id']; 42 update_option($option, $name); 45 43 } 46 }47 48 if ($save) {49 update_option($option, $name);50 44 } 51 45 … … 64 58 </ol> 65 59 <form action=""> 60 ' . wp_nonce_field('leadinfo_tracking_form') . ' 66 61 <input type="hidden" name="page" value="leadinfo"> 67 62 <div class="fieldwrap"> -
leadinfo/trunk/readme.txt
r2925822 r3047156 3 3 Tags: leadinfo, lead, leads, b2b 4 4 Requires at least: 3.0.1 5 Tested up to: 6. 2.25 Tested up to: 6.4.3 6 6 Stable tag: 1.0 7 7 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.