1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 12:51:52 +02:00

PHP Notice removal.

This commit is contained in:
Cameron
2016-03-13 00:16:08 -08:00
parent af1bbb1c8a
commit 3f6fe6cd85
8 changed files with 15 additions and 9 deletions

View File

@@ -37,7 +37,8 @@ if(e_QUERY)
$ip = e107::getIPHandler()->getIP(FALSE);
$newip = (strpos($row['banner_ip'], "{$ip}^") !== FALSE) ? $row['banner_ip'] : "{$row['banner_ip']}{$ip}^"; // what does this do?
$sql->update("banner", "banner_clicks = banner_clicks + 1, `banner_ip` = '{$newip}' WHERE `banner_id` = '{$query_string}'");
header("Location: {$row['banner_clickurl']}");
// header("Location: {$row['banner_clickurl']}");
e107::redirect($row['banner_clickurl']);
exit;
}

View File

@@ -103,7 +103,7 @@ if(!empty($menu_pref['banner_campaign']) && !empty($menu_pref['banner_amount']))
$query = " (banner_startdate=0 OR banner_startdate <= {$time}) AND (banner_enddate=0 OR banner_enddate > {$time}) AND (banner_impurchased=0 OR banner_impressions<=banner_impurchased)";
$query .= (count($filter)) ? " AND (".implode(" OR ",$filter)." ) " : "";
$query .= ($parm ? " AND banner_campaign='".$tp->toDB($parm)."'" : '');
// $query .= ($parm ? " AND banner_campaign='".$tp->toDB($parm)."'" : '');
if($tags = e107::getRegistry('core/form/related'))

View File

@@ -106,7 +106,9 @@ class banner_shortcodes extends e_shortcode
break;
}
$start = "<a class='e-tip' href='".e_HTTP.'banner.php?'.$row['banner_id']."' rel='external' title=\"".$tp->toAttribute($row['banner_tooltip'])."\">";
$tooltip = varset($row['banner_tooltip'],'');
$start = "<a class='e-tip' href='".e_HTTP.'banner.php?'.$row['banner_id']."' rel='external' title=\"".$tp->toAttribute($tooltip)."\">";
$item = $ban_ret;
$end = '</a>';

View File

@@ -8,7 +8,6 @@
*
*/
define("PAGE_NAME", "Banner");
define("BANNERLAN_16", "Username: ");
define("BANNERLAN_17", "Password: ");