Changeset - fd97f1f11524
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 14 years ago 2011-10-18 19:48:39
ohnobinki@ohnopublishing.net
Fix PHP warnings in feedback-submit.php.
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
feedback-submit.php
Show inline comments
 
@@ -48,25 +48,25 @@ if ($use_captcha)
 
$feedback = $_POST['feedback'];
 
$rating = $_POST['rating'];
 
$referrer = $_POST['referrer'];
 

	
 
$saved_schedules = array();
 
if (!empty($_SESSION['saved']))
 
  foreach ($_SESSION['saved'] as $key => $val)
 
    $saved_schedules[] = $key;
 
$saved_schedules = implode(', ', $saved_schedules);
 

	
 
$reject = FALSE;
 

	
 
if (eregi('http:', $feedback)) { 
 
if (preg_match('/https?:/i', $feedback)) { 
 
  echo '<p>Please do not include URLs in your submission! Please click "back" and try again.</p>';
 
  $reject = TRUE;
 
}
 
if (empty($visitormail) || !preg_match('/^[^@]+@[^@]+\.[^@]+$/', $visitormail)) {
 
  echo '<p>Please click "back" and enter valid e-mail address.</p>';
 
  $reject = TRUE;
 
}
 
if(empty($nameis) || empty($feedback) || empty($visitormail)) {
 
  echo '<p>Please click "back" and fill in all fields.</p>';
 
  $reject = TRUE;
 
}
 

	
inc/class.page.php
Show inline comments
 
@@ -39,24 +39,25 @@ set_include_path(get_include_path() . PA
 
 * Not sure if there's a better place for this... it'd be a pita to
 
 * make a new include file like doconfig.inc but maybe that'll make
 
 * sense soon.
 
 */
 
/* defaults */
 
$clean_urls = FALSE;
 
$ga_trackers = array();
 
$feedback_emails = array('ez@ethanzonca.com, ngelderloos7@gmail.com, ohnobinki@ohnopublishing.net');
 
$use_captcha = FALSE;
 
$admin_enable_purge = FALSE;
 
$qtips_always = FALSE;
 
$input_warning_banner = FALSE;
 
$feedback_disk_log = FALSE;
 

	
 
$config_inc = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.inc';
 
if (file_exists($config_inc)) {
 
  require_once($config_inc);
 
}
 

	
 

	
 
/**
 
 * \brief
 
 *   Produces XHTML output for the user and helps with other browser
 
 *   interaction.
 
 *
0 comments (0 inline, 0 general)