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
 
@@ -54,13 +54,13 @@ 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;
inc/class.page.php
Show inline comments
 
@@ -45,12 +45,13 @@ set_include_path(get_include_path() . PA
 
$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);
 
}
 

	
0 comments (0 inline, 0 general)