-<?php
-defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
+<?php
+defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
/**
* danixland-contact-form standard Template
* Template Name = danixland
// this is data gathered via various php variables and WordPress functions
$data = array(
- 'ownname' = '', // name of the person receiving the message aka US!
- 'site' = get_bloginfo('name'), // the site name
- 'time' = '', // string generated by current_time()
- 'host' = '', // string generated by getenv("REMOTE_ADDR")
- 'ua' = '' // string corresponding to $_SERVER['HTTP_USER_AGENT']
+ 'ownname' = '', // name of the person receiving the message aka US!
+ 'site' = get_bloginfo('name'), // the site name
+ 'time' = '', // string generated by current_time()
+ 'host' = '', // string generated by getenv("REMOTE_ADDR")
+ 'ua' = '' // string corresponding to $_SERVER['HTTP_USER_AGENT']
);
// this is data sent via $_POST by the form itself
$posted = array(
- 'dnxcf_name' = '', // the name of the user sending the message
- 'dnxcf_email' = '', // the user's email
- 'dnxcf_website' = '', // the user's website
- 'dnxcf_subject' = '', // the subject of the message
- 'dnxcf_message' = '' // the message body
+ 'dnxcf_name' = '', // the name of the user sending the message
+ 'dnxcf_email' = '', // the user's email
+ 'dnxcf_website' = '', // the user's website
+ 'dnxcf_subject' = '', // the subject of the message
+ 'dnxcf_message' = '' // the message body
);
*/
// always the same name or the main plugin won't be able to send emails
// NOTE TO SELF: "I need to fix this ASAP"
function dnxcf_email_content( $data = array(), $posted = array() ) {
- extract($data);
- extract($posted);
+ extract( $data );
+ extract( $posted );
- $ownurl = get_bloginfo('url');
-// heredoc to return the email content
- $output = <<<DNX44665312EOT
+ $ownurl = get_bloginfo( 'url' );
+ // heredoc to return the email content
+ $output = <<<DNX44665312EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
DNX44665312EOT;
- return $output;
+ return $output;
}
-?>