Plugin Directory

Changeset 621068


Ignore:
Timestamp:
11/05/2012 12:52:03 AM (13 years ago)
Author:
yourlocalwebmaster
Message:
  • Changes Made
File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-newsletter-signup/trunk/simple-newsletter-signup.php

    r621067 r621068  
    1717function snsf_prep_admin(){
    1818
    19 if($_POST['snsf-checkbox-value']){
     19if(isset($_POST['snsf-checkbox-value'])){
    2020   
    2121    if($_POST['snsf-the-do-action'] == 'delete'){
     
    3232    }
    3333
    34     if($_POST['snsf-the-do-action'] == 'edit'){
     34    if(isset($_POST['snsf-the-do-action']) && $_POST['snsf-the-do-action'] == 'edit'){
    3535    //edit em
    3636    echo "edit em!";   
     
    120120        wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
    121121    }
    122 if($_POST['snsf-style']){   
     122if(isset($_POST['snsf-style'])){   
    123123    $change_style = "REPLACE INTO snsf_subscribe_options(option_name,option_value) VALUES('snsf-style','".mysql_real_escape_string($_POST['snsf-style'])."')";
    124124    mysql_query($change_style);
     
    363363                #Secure input
    364364               
    365                 if($_POST['snsf-subscriber-name']){
     365                if(isset($_POST['snsf-subscriber-name'])){
    366366                    $snsf_query_name = htmlspecialchars(mysql_real_escape_string($_POST['snsf-subscriber-name'])); 
    367367                }
     
    413413           
    414414           $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)){
    416416$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>';             
    417417           }
     
    452452   
    453453    $snsf_shortcode = '[simple_newsletter';
    454     if($args["name"]){
     454    if(isset($args["name"])){
    455455        $snsf_shortcode .= ' name="'.$args["name"].'"';
    456456    }
    457     if($args["title"]){
     457    if(isset($args["title"])){
    458458    $snsf_shortcode .= ' title="'.$args["title"].'"';   
    459459    }
    460460
    461     if($args["button"]){
     461    if(isset($args["button"])){
    462462    $snsf_shortcode .= ' button="'.$args["button"].'"';
    463463    }
    464     if($args["terms"]){
     464    if(isset($args["terms"])){
    465465    $snsf_shortcode .= ' terms="'.$args["terms"].'"';   
    466466    }
    467     if($args["terms_text"]){
     467    if(isset($args["terms_text"])){
    468468    $snsf_shortcode .= ' terms_text="'.$args["terms_text"].'"';
    469469    }
    470     if($args["thanks"]){
     470    if(isset($args["thanks"])){
    471471    $snsf_shortcode .= ' thanks="'.$args["thanks"].'"';
    472472    }
Note: See TracChangeset for help on using the changeset viewer.