ICEFIRE Webmaster Board  

Go Back   ICEFIRE Webmaster Board > CjOverkill Support Forum > CjOverkill General Discussion and Support

CjOverkill General Discussion and Support CjOverkill general discussion and support.

Reply
 
Thread Tools Display Modes
  #1  
Old 27th March 2009, 05:05 PM
bigdon bigdon is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default Problem with in.php

Hello
Did the script ugcms when I go in the index.php <? Php include file = "in.php"?> Insert I just get a white page I have also tried the <? Php include file = "in.php"? > ind the index.html inserted into but will not be counted
what can I do to ensure that the counting
index.php I have added

PHP Code:

<?php

// ----------------------------------------------------------------------------------------------------
// - INI
// ----------------------------------------------------------------------------------------------------
$_INI = @parse_ini_file('admin/config/config.ini'TRUE);

// ----------------------------------------------------------------------------------------------------
// - Include
// ----------------------------------------------------------------------------------------------------
include('php/index.inc.php');

// ----------------------------------------------------------------------------------------------------
// - Log
// ----------------------------------------------------------------------------------------------------
if(PAGE_LOG_ENABLED == TRUE)
{
    
WriteLog();
};

// ----------------------------------------------------------------------------------------------------
// - MicroTime
// ----------------------------------------------------------------------------------------------------
$microtime GetMicroTime();

// ----------------------------------------------------------------------------------------------------
// - Session
// ----------------------------------------------------------------------------------------------------
if(isset($_COOKIE[@session_name()]) == TRUE)
{
    @
ini_set('url_rewriter.tags''');
    @
ini_set('session.use_cookies'1);
    @
ini_set('session.use_only_cookies'1);

    @
session_set_cookie_params(0PAGE_ROOT_FOLDER '/');

    @
session_start();
};

// ----------------------------------------------------------------------------------------------------
// - USER NOBODY
// ----------------------------------------------------------------------------------------------------
if(@is_array($_SESSION) == FALSE)
{
    
$_SESSION = Array();
};

if(@
is_array($_SESSION['user']) == FALSE)
{
    
$_SESSION['user'] = Array(
        
'id'            => PAGE_USER_ID_NOBODY,
        
'group_id'        => PAGE_USERGROUP_ID_NOBODY,
        
'permissions'    => PAGE_USER_AREA_NOBODY_PERMISSIONS
        
);
};

// ----------------------------------------------------------------------------------------------------
// - SQL Connect
// ----------------------------------------------------------------------------------------------------
$conn NULL;
if(
PAGE_COLLECT_KEYWORDS == TRUE)
{
@include(
PAGE_DOCUMENT_ROOT '/php/modules/seo/main.collect.inc.php');
};

// ----------------------------------------------------------------------------------------------------
// - Referer Plugin
// ----------------------------------------------------------------------------------------------------
if(isset($_SERVER['HTTP_REFERER']) == TRUE// ((isset($_GET['in']) == FALSE) && (isset($_SERVER['HTTP_REFERER']) == TRUE))
{
    if(
PAGE_PARTNER_REFERER_PLUGIN_PATH)
    {
        if(@
file_exists(PAGE_DOCUMENT_ROOT PAGE_PARTNER_REFERER_PLUGIN_PATH))
        {
            @include(
PAGE_DOCUMENT_ROOT PAGE_PARTNER_REFERER_PLUGIN_PATH);
        };
    };
};

// ----------------------------------------------------------------------------------------------------
// - IN / OUT Plugin
// ----------------------------------------------------------------------------------------------------
if(isset($_GET['in']) == TRUE)
{
    if(
PAGE_PARTNER_IN_PLUGIN_PATH)
    {
        if(@
file_exists(PAGE_DOCUMENT_ROOT PAGE_PARTNER_IN_PLUGIN_PATH))
        {
            @include(
PAGE_DOCUMENT_ROOT PAGE_PARTNER_IN_PLUGIN_PATH);
        };
    };
}
else if(isset(
$_GET['out']) == TRUE)
{
    if(
PAGE_PARTNER_OUT_PLUGIN_PATH)
    {
        if(@
file_exists(PAGE_DOCUMENT_ROOT PAGE_PARTNER_OUT_PLUGIN_PATH))
        {
            @include(
PAGE_DOCUMENT_ROOT PAGE_PARTNER_OUT_PLUGIN_PATH);
        };
    };
};

// ----------------------------------------------------------------------------------------------------
// - Cache
// ----------------------------------------------------------------------------------------------------
/* if(($_SERVER['REQUEST_METHOD'] == 'GET') && (isset($_GET['in']) == FALSE) && (isset($_GET['out']) == FALSE))
{
    if(PAGE_CACHE_TIMEOUT_BROWSER > 0)
    {
        $time = @time();
        $last_modified = (@floor($time / PAGE_CACHE_TIMEOUT_BROWSER) * PAGE_CACHE_TIMEOUT_BROWSER);
        $expires = (@ceil($time / PAGE_CACHE_TIMEOUT_BROWSER) * PAGE_CACHE_TIMEOUT_BROWSER);

        @header('Date: ' . @gmdate('D, d M Y H:i:s \G\M\T', $time));
        @header('Last-Modified: ' . @gmdate('D, d M Y H:i:s \G\M\T', $last_modified));
        @header('Expires: ' . @gmdate('D, d M Y H:i:s \G\M\T', $expires));
    };

    if(($_SERVER['HTTP_ACCEPT_ENCODING'] != '') && (PAGE_COMPRESSION_LEVEL >= 0) && (PAGE_COMPRESSION_LEVEL <= 9))
    {
        if(@preg_match('/gzip/', $_SERVER['HTTP_ACCEPT_ENCODING']))
        {
            if($output = Cache_Output_OpenFile(@md5($_SERVER['REQUEST_URI']), 'gzip'))
            {
                @header('Content-Encoding: gzip');
                @header('Content-Length: ' . @strlen($output));

                echo $output;

                exit;
            };
        }
        else if(@preg_match('/deflate/', $_SERVER['HTTP_ACCEPT_ENCODING']))
        {
            if($output = Cache_Output_OpenFile(@md5($_SERVER['REQUEST_URI']), 'deflate'))
            {
                @header('Content-Encoding: deflate');
                @header('Content-Length: ' . @strlen($output));

                echo $output;

                exit;
            };
        }
        else
        {
            if($output = Cache_Output_OpenFile(@md5($_SERVER['REQUEST_URI']), 'html'))
            {
                @header('Content-Length: ' . @strlen($output));

                echo $output;

                exit;
            };
        };
    }
    else
    {
        if($output = Cache_Output_OpenFile(@md5($_SERVER['REQUEST_URI']), 'html'))
        {
            @header('Content-Length: ' . @strlen($output));

            echo $output;

            exit;
        };
    };
}; */

// ----------------------------------------------------------------------------------------------------
// - Main
// ----------------------------------------------------------------------------------------------------
$_GET['start'] = @max(@intval($_GET['start']), 1);


if(isset(
$_GET['q']) == TRUE)
{
    include(
PAGE_DOCUMENT_ROOT '/php/modules/entries/search.main.inc.php');
}
else if(isset(
$_GET['err']) == TRUE)
{
    include(
PAGE_DOCUMENT_ROOT '/php/modules/error/error.main.inc.php');
}
else if(isset(
$_GET['enter']) == TRUE)
{
    include(
PAGE_DOCUMENT_ROOT '/php/modules/enter/enter.main.inc.php');
}
else if(isset(
$_GET['p']) == TRUE)
{
    include(
PAGE_DOCUMENT_ROOT '/php/modules/sites/sites.main.inc.php');
}
else if(isset(
$_GET['cat']) == TRUE)
{
    include(
PAGE_DOCUMENT_ROOT '/php/modules/entries/categories.main.inc.php');
}
else if(isset(
$_GET['id']) == TRUE)
{
    include(
PAGE_DOCUMENT_ROOT '/php/modules/entries/item.main.inc.php');
}
else
{
    if(
PAGE_USE_TOPFRAME == TRUE)
    {
        include(
PAGE_DOCUMENT_ROOT '/php/modules/frame/frame.main.inc.php');
    }
    else
    {
        if(
PAGE_USE_ENTERPAGE == TRUE)
        {
            include(
PAGE_DOCUMENT_ROOT '/php/modules/enter/enter.main.inc.php');
        }
        else
        {
            @
header('Location: ' PAGE_ROOT_FOLDER PAGE_START_URL);
        };
    };
};

?>
Reply With Quote
  #2  
Old 27th March 2009, 05:28 PM
ICEFIRE ICEFIRE is offline
Administrator
 
Join Date: Sep 2008
Location: Galaxy Media
Posts: 337
Send a message via ICQ to ICEFIRE
Default

Try this:

Note the the in.php include was put on the first line. also if you have the in.php file into some subdirectory then you should put the correct path to it... include ("subdirectory/in,php"); for example


PHP Code:
<?php
include ("in.php");

// ---------------------------------------------------------------------------------------------------- 
// - INI 
// ---------------------------------------------------------------------------------------------------- 
$_INI = @parse_ini_file('admin/config/config.ini'TRUE); 

// ---------------------------------------------------------------------------------------------------- 
// - Include 
// ---------------------------------------------------------------------------------------------------- 
include('php/index.inc.php'); 

// ---------------------------------------------------------------------------------------------------- 
// - Log 
// ---------------------------------------------------------------------------------------------------- 
if(PAGE_LOG_ENABLED == TRUE

    
WriteLog(); 
}; 

// ---------------------------------------------------------------------------------------------------- 
// - MicroTime 
// ---------------------------------------------------------------------------------------------------- 
$microtime GetMicroTime(); 

// ---------------------------------------------------------------------------------------------------- 
// - Session 
// ---------------------------------------------------------------------------------------------------- 
if(isset($_COOKIE[@session_name()]) == TRUE

    @
ini_set('url_rewriter.tags'''); 
    @
ini_set('session.use_cookies'1); 
    @
ini_set('session.use_only_cookies'1); 

    @
session_set_cookie_params(0PAGE_ROOT_FOLDER '/'); 

    @
session_start(); 
}; 

// ---------------------------------------------------------------------------------------------------- 
// - USER NOBODY 
// ---------------------------------------------------------------------------------------------------- 
if(@is_array($_SESSION) == FALSE

    
$_SESSION = Array(); 
}; 

if(@
is_array($_SESSION['user']) == FALSE

    
$_SESSION['user'] = Array( 
        
'id'            => PAGE_USER_ID_NOBODY
        
'group_id'        => PAGE_USERGROUP_ID_NOBODY
        
'permissions'    => PAGE_USER_AREA_NOBODY_PERMISSIONS 
        
); 
}; 

// ---------------------------------------------------------------------------------------------------- 
// - SQL Connect 
// ---------------------------------------------------------------------------------------------------- 
$conn NULL
if(
PAGE_COLLECT_KEYWORDS == TRUE

@include(
PAGE_DOCUMENT_ROOT '/php/modules/seo/main.collect.inc.php'); 
}; 

// ---------------------------------------------------------------------------------------------------- 
// - Referer Plugin 
// ---------------------------------------------------------------------------------------------------- 
if(isset($_SERVER['HTTP_REFERER']) == TRUE// ((isset($_GET['in']) == FALSE) && (isset($_SERVER['HTTP_REFERER']) == TRUE)) 

    if(
PAGE_PARTNER_REFERER_PLUGIN_PATH
    { 
        if(@
file_exists(PAGE_DOCUMENT_ROOT PAGE_PARTNER_REFERER_PLUGIN_PATH)) 
        { 
            @include(
PAGE_DOCUMENT_ROOT PAGE_PARTNER_REFERER_PLUGIN_PATH); 
        }; 
    }; 
}; 

// ---------------------------------------------------------------------------------------------------- 
// - IN / OUT Plugin 
// ---------------------------------------------------------------------------------------------------- 
if(isset($_GET['in']) == TRUE

    if(
PAGE_PARTNER_IN_PLUGIN_PATH
    { 
        if(@
file_exists(PAGE_DOCUMENT_ROOT PAGE_PARTNER_IN_PLUGIN_PATH)) 
        { 
            @include(
PAGE_DOCUMENT_ROOT PAGE_PARTNER_IN_PLUGIN_PATH); 
        }; 
    }; 

else if(isset(
$_GET['out']) == TRUE

    if(
PAGE_PARTNER_OUT_PLUGIN_PATH
    { 
        if(@
file_exists(PAGE_DOCUMENT_ROOT PAGE_PARTNER_OUT_PLUGIN_PATH)) 
        { 
            @include(
PAGE_DOCUMENT_ROOT PAGE_PARTNER_OUT_PLUGIN_PATH); 
        }; 
    }; 
}; 

// ---------------------------------------------------------------------------------------------------- 
// - Cache 
// ---------------------------------------------------------------------------------------------------- 
/* if(($_SERVER['REQUEST_METHOD'] == 'GET') && (isset($_GET['in']) == FALSE) && (isset($_GET['out']) == FALSE)) 

    if(PAGE_CACHE_TIMEOUT_BROWSER > 0) 
    { 
        $time = @time(); 
        $last_modified = (@floor($time / PAGE_CACHE_TIMEOUT_BROWSER) * PAGE_CACHE_TIMEOUT_BROWSER); 
        $expires = (@ceil($time / PAGE_CACHE_TIMEOUT_BROWSER) * PAGE_CACHE_TIMEOUT_BROWSER); 

        @header('Date: ' . @gmdate('D, d M Y H:i:s \G\M\T', $time)); 
        @header('Last-Modified: ' . @gmdate('D, d M Y H:i:s \G\M\T', $last_modified)); 
        @header('Expires: ' . @gmdate('D, d M Y H:i:s \G\M\T', $expires)); 
    }; 

    if(($_SERVER['HTTP_ACCEPT_ENCODING'] != '') && (PAGE_COMPRESSION_LEVEL >= 0) && (PAGE_COMPRESSION_LEVEL <= 9)) 
    { 
        if(@preg_match('/gzip/', $_SERVER['HTTP_ACCEPT_ENCODING'])) 
        { 
            if($output = Cache_Output_OpenFile(@md5($_SERVER['REQUEST_URI']), 'gzip')) 
            { 
                @header('Content-Encoding: gzip'); 
                @header('Content-Length: ' . @strlen($output)); 

                echo $output; 

                exit; 
            }; 
        } 
        else if(@preg_match('/deflate/', $_SERVER['HTTP_ACCEPT_ENCODING'])) 
        { 
            if($output = Cache_Output_OpenFile(@md5($_SERVER['REQUEST_URI']), 'deflate')) 
            { 
                @header('Content-Encoding: deflate'); 
                @header('Content-Length: ' . @strlen($output)); 

                echo $output; 

                exit; 
            }; 
        } 
        else 
        { 
            if($output = Cache_Output_OpenFile(@md5($_SERVER['REQUEST_URI']), 'html')) 
            { 
                @header('Content-Length: ' . @strlen($output)); 

                echo $output; 

                exit; 
            }; 
        }; 
    } 
    else 
    { 
        if($output = Cache_Output_OpenFile(@md5($_SERVER['REQUEST_URI']), 'html')) 
        { 
            @header('Content-Length: ' . @strlen($output)); 

            echo $output; 

            exit; 
        }; 
    }; 
}; */ 

// ---------------------------------------------------------------------------------------------------- 
// - Main 
// ---------------------------------------------------------------------------------------------------- 
$_GET['start'] = @max(@intval($_GET['start']), 1); 


if(isset(
$_GET['q']) == TRUE

    include(
PAGE_DOCUMENT_ROOT '/php/modules/entries/search.main.inc.php'); 

else if(isset(
$_GET['err']) == TRUE

    include(
PAGE_DOCUMENT_ROOT '/php/modules/error/error.main.inc.php'); 

else if(isset(
$_GET['enter']) == TRUE

    include(
PAGE_DOCUMENT_ROOT '/php/modules/enter/enter.main.inc.php'); 

else if(isset(
$_GET['p']) == TRUE

    include(
PAGE_DOCUMENT_ROOT '/php/modules/sites/sites.main.inc.php'); 

else if(isset(
$_GET['cat']) == TRUE

    include(
PAGE_DOCUMENT_ROOT '/php/modules/entries/categories.main.inc.php'); 

else if(isset(
$_GET['id']) == TRUE

    include(
PAGE_DOCUMENT_ROOT '/php/modules/entries/item.main.inc.php'); 

else 

    if(
PAGE_USE_TOPFRAME == TRUE
    { 
        include(
PAGE_DOCUMENT_ROOT '/php/modules/frame/frame.main.inc.php'); 
    } 
    else 
    { 
        if(
PAGE_USE_ENTERPAGE == TRUE
        { 
            include(
PAGE_DOCUMENT_ROOT '/php/modules/enter/enter.main.inc.php'); 
        } 
        else 
        { 
            @
header('Location: ' PAGE_ROOT_FOLDER PAGE_START_URL); 
        }; 
    }; 
}; 

?>
Reply With Quote
  #3  
Old 27th March 2009, 06:13 PM
bigdon bigdon is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default

Works great now comes the closest toplist the problem does not appear when I insert in the index.html

PHP Code:
<?php include file="in.php" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset={$_TPL['charset']}">
<META NAME="Robots" CONTENT="index,follow">{$_TPL['meta_data']}
<TITLE>{$_TPL['title']}</TITLE>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="{$_TPL['url']['js']}"></SCRIPT>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
if(self != top) {
    // top.location.href = '{$_TPL['url']['page_url']}';
};
//-->
</SCRIPT>
<LINK REL="stylesheet" TYPE="text/css" HREF="{$_TPL['url']['css']}">
<!--[if gte IE 5]>
<link rel="stylesheet" href="/css/ie.css">
<![endif]-->
</head>
<body style="background-color: black;">
<table style="width:100%" cellpadding="0" cellspacing="1" align="center" border="0">
 <tr>
  <td align="center" width="100%">
   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td><img src="{$images}/gfx/headertop_left.gif" border="0" /></td>
     <td class="logobackground" align="center" style="width:100%"><a href="{$_TPL['url']['home']}"><img src="/gfx/header.jpg" border="0" alt="{$_TPL['description']}" title="{$_TPL['description']}" /></a></td>
     <td><img src="{$images}/gfx/headertop_right.gif" border="0" /></td>
    </tr>
    <tr>
     <td style="background:url({$images}/gfx/leftborder.jpg) repeat-y top left; "></td>
     <td width="100%" align="center">
      <table class="mainpage" border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td width="100%" align="center">

         <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="100%">
          <TR>
           <TD ALIGN="CENTER" VALIGN="TOP" WIDTH="17%">{$_TPL['content']['left']}</TD>
           <TD ALIGN="CENTER" VALIGN="TOP" WIDTH="66%">{$_TPL['content']['main']}</TD>
           <TD ALIGN="CENTER" VALIGN="TOP" WIDTH="17%">{$_TPL['content']['right']}</TD>
          </TR>
         </TABLE>
        </td>
       </tr>
      </table>
     </td>
     <td style="background:url({$images}/gfx/rightborder.jpg) repeat-y top left; "></td>
    </tr>
   </table>
   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
     <td><img src="{$images}/gfx/footer_left.jpg" border="0" /></td>
     <td style="background:url({$images}/gfx/footerbg.jpg) repeat-x; width:100%;" align="center" valign="middle">
      <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:500px;">
       <tr>
        <td><img src="{$images}/gfx/schild_left.jpg" border="0" /></td>
        <td  align="center" valing="top" style="width:100%; background:url({$images}/gfx/schild_bg.jpg) repeat-x;">
         <P><B>
         <A HREF="{$_TPL['url']['home']}"><B>Startseite</B></A>
          | 
         <A HREF="/?p=faq"><B>FAQ</B></A>
          | 
         <A HREF="/?p=contact"><B>Kontakt</B></A>
          | 
         <A HREF="/?p=upload"><B>User-Uploads</B></A>
          | 
         <A HREF="/?p=rss"><B>RSS Feeds</B></A>
         </B></P>
        </td>
        <td><img src="{$images}/gfx/schild_right.jpg" border="0" /></td>
       </tr>
      </table>
     </td>
     <td><img src="{$images}/gfx/footer_right.jpg" border="0" /></td>
    </tr>
   </table>
   <p>{$_TPL['copyright']}</p>
<!--#include virtual="toplist/template9.html" -->
   <script type="text/javascript" src="http://www.ipcounter.de/count_js.php?u=58875167&amp;color=red"></script>
   <noscript><a href="http://www.ipcounter.de/stats.php?u=58875167" target="_blank"><img src="http://www.ipcounter.de/count.php?u=58875167&amp;color=red" alt="IPCOUNTER.DE - Kostenloser Live Counter!" border="0" /></a></noscript>
<!--start speedtracker -->
<script language="JavaScript" type="text/javascript" src="http://www.speedtracker.de/count.php?a=1237605021&layout=./buttons/b2.jpg"></script>;
<noscript><a href="http://www.speedtracker.de"; target="_BLANK">Counter</a></noscript>
<!--end speedtracker -->


  </td>
 </tr>
</table>
</body>
</html>
Reply With Quote
  #4  
Old 27th March 2009, 10:40 PM
ICEFIRE ICEFIRE is offline
Administrator
 
Join Date: Sep 2008
Location: Galaxy Media
Posts: 337
Send a message via ICQ to ICEFIRE
Default

Use the php include <?php include ("toplist/template9.html"); ?>
Reply With Quote
  #5  
Old 28th March 2009, 08:49 AM
bigdon bigdon is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default

Is there a html code for the toplist to show you because I could use the php code again in the first row must be inserted and then I would have the header at the top of the toplist've already tried using iframe would go but not so nice out
Reply With Quote
  #6  
Old 28th March 2009, 10:58 AM
ICEFIRE ICEFIRE is offline
Administrator
 
Join Date: Sep 2008
Location: Galaxy Media
Posts: 337
Send a message via ICQ to ICEFIRE
Default

You can make a toplist template without a header, only the toplist part.
You can use several toplists. Each template will generate one html file, so you can make a toplist template with only the things you need.

The other solution is using iframes.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.