Changeset 621068
- Timestamp:
- 11/05/2012 12:52:03 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
simple-newsletter-signup/trunk/simple-newsletter-signup.php
r621067 r621068 17 17 function snsf_prep_admin(){ 18 18 19 if( $_POST['snsf-checkbox-value']){19 if(isset($_POST['snsf-checkbox-value'])){ 20 20 21 21 if($_POST['snsf-the-do-action'] == 'delete'){ … … 32 32 } 33 33 34 if( $_POST['snsf-the-do-action'] == 'edit'){34 if(isset($_POST['snsf-the-do-action']) && $_POST['snsf-the-do-action'] == 'edit'){ 35 35 //edit em 36 36 echo "edit em!"; … … 120 120 wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); 121 121 } 122 if( $_POST['snsf-style']){122 if(isset($_POST['snsf-style'])){ 123 123 $change_style = "REPLACE INTO snsf_subscribe_options(option_name,option_value) VALUES('snsf-style','".mysql_real_escape_string($_POST['snsf-style'])."')"; 124 124 mysql_query($change_style); … … 363 363 #Secure input 364 364 365 if( $_POST['snsf-subscriber-name']){365 if(isset($_POST['snsf-subscriber-name'])){ 366 366 $snsf_query_name = htmlspecialchars(mysql_real_escape_string($_POST['snsf-subscriber-name'])); 367 367 } … … 413 413 414 414 $list .= '<tr><td align="right"><label for="snsf-subscriber-email">Email:</label></td><td><input type="text" name="snsf-subscriber-email" /></td></tr>'; 415 if( $terms_url){415 if(isset($terms_url)){ 416 416 $list .= '<tr><td class="checkid"><input type="checkbox" name="snsf-subscriber-terms" id="snsf-checkbox" /></td><td class="termstd"><label for="snsf-subscriber-terms"><small><a href="'.$terms_url.'" target="_blank">'.$terms_text.'</a></small></label></td></tr>'; 417 417 } … … 452 452 453 453 $snsf_shortcode = '[simple_newsletter'; 454 if( $args["name"]){454 if(isset($args["name"])){ 455 455 $snsf_shortcode .= ' name="'.$args["name"].'"'; 456 456 } 457 if( $args["title"]){457 if(isset($args["title"])){ 458 458 $snsf_shortcode .= ' title="'.$args["title"].'"'; 459 459 } 460 460 461 if( $args["button"]){461 if(isset($args["button"])){ 462 462 $snsf_shortcode .= ' button="'.$args["button"].'"'; 463 463 } 464 if( $args["terms"]){464 if(isset($args["terms"])){ 465 465 $snsf_shortcode .= ' terms="'.$args["terms"].'"'; 466 466 } 467 if( $args["terms_text"]){467 if(isset($args["terms_text"])){ 468 468 $snsf_shortcode .= ' terms_text="'.$args["terms_text"].'"'; 469 469 } 470 if( $args["thanks"]){470 if(isset($args["thanks"])){ 471 471 $snsf_shortcode .= ' thanks="'.$args["thanks"].'"'; 472 472 }
Note: See TracChangeset
for help on using the changeset viewer.