1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-15 20:16:21 +02:00

Bugtracker #4407 - problems with banner login

This commit is contained in:
e107steved
2008-05-03 19:40:15 +00:00
parent fd69888bdf
commit 28c89a3271
2 changed files with 14 additions and 10 deletions

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/banner.php,v $ | $Source: /cvs_backup/e107_0.8/banner.php,v $
| $Revision: 1.2 $ | $Revision: 1.3 $
| $Date: 2008-04-29 19:48:45 $ | $Date: 2008-05-03 19:39:59 $
| $Author: e107steved $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@ -68,7 +68,8 @@ if (isset($_POST['clientsubmit'])) {
$BANNER_TABLE_STARTDATE = BANNERLAN_37." ".$start_date; $BANNER_TABLE_STARTDATE = BANNERLAN_37." ".$start_date;
$BANNER_TABLE_ENDDATE = BANNERLAN_34." ".$end_date; $BANNER_TABLE_ENDDATE = BANNERLAN_34." ".$end_date;
if ($row['banner_ip']) { if ($row['banner_ip'])
{
$tmp = explode("^", $row['banner_ip']); $tmp = explode("^", $row['banner_ip']);
$BANNER_TABLE_IP_LAN = (count($tmp)-1); $BANNER_TABLE_IP_LAN = (count($tmp)-1);
for($a = 0; $a <= (count($tmp)-2); $a++) { for($a = 0; $a <= (count($tmp)-2); $a++) {
@ -76,22 +77,24 @@ if (isset($_POST['clientsubmit'])) {
} }
} }
if (!$BANNER_TABLE) { if (!$BANNER_TABLE)
{
if (file_exists(THEME."banner_template.php")) { if (file_exists(THEME."banner_template.php")) {
require_once(THEME."banner_template.php"); require(THEME."banner_template.php");
} else { } else {
require_once(e_BASE.$THEMES_DIRECTORY."templates/banner_template.php"); require(e_BASE.$THEMES_DIRECTORY."templates/banner_template.php");
} }
} }
$textstring .= preg_replace("/\{(.*?)\}/e", '$\1', $BANNER_TABLE); $textstring .= preg_replace("/\{(.*?)\}/e", '$\1', $BANNER_TABLE);
} }
} }
if (!$BANNER_TABLE) { if (!$BANNER_TABLE)
{
if (file_exists(THEME."banner_template.php")) { if (file_exists(THEME."banner_template.php")) {
require_once(THEME."banner_template.php"); require(THEME."banner_template.php");
} else { } else {
require_once(e_BASE.$THEMES_DIRECTORY."templates/banner_template.php"); require(e_BASE.$THEMES_DIRECTORY."templates/banner_template.php");
} }
} }
$textstart = preg_replace("/\{(.*?)\}/e", '$\1', $BANNER_TABLE_START); $textstart = preg_replace("/\{(.*?)\}/e", '$\1', $BANNER_TABLE_START);

View File

@ -1,10 +1,11 @@
<?php <?php
// $Id: banner_template.php,v 1.2 2007-12-06 21:35:55 e107steved Exp $ // $Id: banner_template.php,v 1.3 2008-05-03 19:39:59 e107steved Exp $
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:98%"); } if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:98%"); }
// ##### LOGIN TABLE ------------------------------------------------------------------------------- // ##### LOGIN TABLE -------------------------------------------------------------------------------
global $BANNER_LOGIN_TABLE;
if(!isset($BANNER_LOGIN_TABLE)) if(!isset($BANNER_LOGIN_TABLE))
{ {
$BANNER_LOGIN_TABLE = " $BANNER_LOGIN_TABLE = "