Ads problems

Status
Not open for further replies.

DaveMurray-3-

New Member
Messages
52
Reaction score
0
Points
0
Code:
<?php
/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed                  COPYRIGHT */ 
/*                                                                      */ 
/* Copyright (c) 2004 - 2006 by http://www.techgfx.com                  */ 
/*     Techgfx - Graeme Allan                       (goose@techgfx.com) */
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.conrads-berlin.de            */
/*     MrFluffy - Axel Conrads                 (axel@conrads-berlin.de) */ 
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.nukeplanet.com               */
/*     Loki / Teknerd - Scott Partee           (loki@nukeplanet.com)    */
/*                                                                      */
/* Refer to Nukeplanet.com for detailed information on PHP-Nuke Platinum*/
/*                                                                      */
/* TechGFX: Your dreams, our imagination                                */ 
/************************************************************************/

if (stristr(htmlentities($_SERVER['PHP_SELF']), "header.php")) {
    Header("Location: index.php");
    die();
}

require_once("mainfile.php");
/*****************************************************/
/* Security - Protector System v.1.15b3        START */
/*****************************************************/
global $admin_file;
if(!eregi("".$admin_file.".php",$_SERVER['SCRIPT_NAME'])) {
require_once("includes/blocker.php"); }  
/*****************************************************/
/* Security - Protector System v.1.15b3          END */
/*****************************************************/
##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;
define('NUKE_HEADER', true);

function head() {
/*****************************************************/
/* Security - Sentinel v.2.4.2                 START */
/*****************************************************/
    global $ab_config, $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
/*****************************************************/
/* Security - Sentinel v.2.4.2                   END */
/*****************************************************/
    include("includes/ipban.php");
    $ThemeSel = get_theme();
    include_once("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";

    include("includes/meta.php");
    include("includes/javascript.php");

    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
    echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
    if (file_exists("modules/User_Guide/sentinel.css.php")) {
    include_once("modules/User_Guide/sentinel.css.php");
}
    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    if (file_exists("includes/custom_files/custom_head.php")) {
      include_once("includes/custom_files/custom_head.php");
    }
    echo "\n\n\n</head>\n\n";
    if (file_exists("includes/custom_files/custom_header.php")) {
      include_once("includes/custom_files/custom_header.php");
    }
/*****************************************************/
/* Security - Sentinel v.2.4.2                 START */
/*****************************************************/
    if($ab_config['site_switch'] == 1) {
      echo "<center><img src='images/nukesentinel/disabled.png' border='0' width='120' height='34'></center><br />\n";
    }
/*****************************************************/
/* Security - Sentinel v.2.4.2                   END */
/*****************************************************/
    themeheader();
}

online();
head();
include("includes/counter.php");

/*****************************************************/
/* Addon - Center Blocks v.2.1.1               START */
/* Addon - Conditional Blocks v.1.1.1          START */
/*****************************************************/
global $home;
if(defined('HOME_FILE') || $home == 1) {
    message_box();
        include("includes/cblocks1.php");
    blocks(Center);
}
/*****************************************************/
/* Addon - Conditional Blocks v.1.1.1            END */
/* Addon - Center Blocks v.2.1.1                 END */
/*****************************************************/

?>
<div align="center"><script type="text/javascript" src="http://x10hosting.com/adserve.js?dave"></script></div>
 src=<div align="center"><script type="text/javascript""http://x10hosting.com/adserve.js?corporate"
-----------------------------------------------------------------------------------
Here is my header.php. I follow the instructions in the tuttorial. And Nothing hapens. You can show me another way for i can add some ads of x1-hosting? i dont want to have a suspend, and i want to follow 100& the TOS and the lwas of x1-hosting... I tried in the top, before <?php and in bottom, after the ?>. Candanyone show me alternatives solutions, or solution in this? i use php-Nuke Platinum 7.6.b.4v2
Edit:
Anyone? :(
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
Try adding it and posting a link to your page here, it will be easier for us to spot what is wrong.
 

DaveMurray-3-

New Member
Messages
52
Reaction score
0
Points
0
nice my page is http://linux64packages.linuxmaniac.net .... i have just the development process of my site, until this problem fixed :( (with the high load is very difficult to do anything anyway)


PS: my forum accout is DaveMurray-3-, and my cpanel username is dave, the primary domain is linux64packages.gr.eu.org (im waiting the registar, is not working yet) if that help the situation, nice :)
 
Last edited:

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
I'm not sure, but try

PHP:
<?php
/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed                  COPYRIGHT */ 
/*                                                                      */ 
/* Copyright (c) 2004 - 2006 by http://www.techgfx.com                  */ 
/*     Techgfx - Graeme Allan                       (goose@techgfx.com) */
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.conrads-berlin.de            */
/*     MrFluffy - Axel Conrads                 (axel@conrads-berlin.de) */ 
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.nukeplanet.com               */
/*     Loki / Teknerd - Scott Partee           (loki@nukeplanet.com)    */
/*                                                                      */
/* Refer to Nukeplanet.com for detailed information on PHP-Nuke Platinum*/
/*                                                                      */
/* TechGFX: Your dreams, our imagination                                */ 
/************************************************************************/

if (stristr(htmlentities($_SERVER['PHP_SELF']), "header.php")) {
    Header("Location: index.php");
    die();
}

require_once("mainfile.php");
/*****************************************************/
/* Security - Protector System v.1.15b3        START */
/*****************************************************/
global $admin_file;
if(!eregi("".$admin_file.".php",$_SERVER['SCRIPT_NAME'])) {
require_once("includes/blocker.php"); }  
/*****************************************************/
/* Security - Protector System v.1.15b3          END */
/*****************************************************/
##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;
define('NUKE_HEADER', true);

function head() {
/*****************************************************/
/* Security - Sentinel v.2.4.2                 START */
/*****************************************************/
    global $ab_config, $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
/*****************************************************/
/* Security - Sentinel v.2.4.2                   END */
/*****************************************************/
    include("includes/ipban.php");
    $ThemeSel = get_theme();
    include_once("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";

    include("includes/meta.php");
    include("includes/javascript.php");

    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
    echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
    if (file_exists("modules/User_Guide/sentinel.css.php")) {
    include_once("modules/User_Guide/sentinel.css.php");
}
    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    if (file_exists("includes/custom_files/custom_head.php")) {
      include_once("includes/custom_files/custom_head.php");
    }
    echo "\n\n\n</head>\n\n";
    if (file_exists("includes/custom_files/custom_header.php")) {
      include_once("includes/custom_files/custom_header.php");
    }
/*****************************************************/
/* Security - Sentinel v.2.4.2                 START */
/*****************************************************/
    if($ab_config['site_switch'] == 1) {
      echo "<center><img src='images/nukesentinel/disabled.png' border='0' width='120' height='34'></center><br />\n";
    }
/*****************************************************/
/* Security - Sentinel v.2.4.2                   END */
/*****************************************************/
    themeheader();
}

online();
head();
include("includes/counter.php");

/*****************************************************/
/* Addon - Center Blocks v.2.1.1               START */
/* Addon - Conditional Blocks v.1.1.1          START */
/*****************************************************/
global $home;
if(defined('HOME_FILE') || $home == 1) {
    message_box();
        include("includes/cblocks1.php");
    blocks(Center);
}
/*****************************************************/
/* Addon - Conditional Blocks v.1.1.1            END */
/* Addon - Center Blocks v.2.1.1                 END */
/*****************************************************/

?>
<div align="center"><script type="text/javascript" src="http://x10hosting.com/adserve.js?dave"></script></div>

You seemed to have 1 and a half bits of ad code.

Also could you tell us what the html source is when you view the page in the browser?
 

DaveMurray-3-

New Member
Messages
52
Reaction score
0
Points
0
thats ok you can close the issue. I delete the php-nuke platinum. Ha many features for blocking many pieces of code so i iwll install some more simply :)

Thanks x10hosting :)
 
Status
Not open for further replies.
Top