Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

header.php File Type: PHP script text


Guest

Recommended Posts

I'm getting a strange message at the top of my index page;

 

"header.php File Type: PHP script text"

 

It appears at the top left, but doesnt seem to be causing any issues with my site as everything is functioning correctly.

 

I cant see any problems with header.php, but I'm pasting it below just in case anyone else can;

 

--------

header.php

File Type: PHP script text

 

<?php

/*

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

} elseif (!is_writeable(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

}

}

}

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

<table border="0" cellspacing="0" cellpadding="0" width="759" align="center">

<tr><td valign="top">

<table border="0" cellspacing="0" cellpadding="0">

<tr><td><a href="<?=tep_href_link('index.php')?>"><?=tep_image(DIR_WS_IMAGES.'tractormadlogo.gif')?></a></td></tr>

<tr><td><a href="<?=tep_href_link('index.php')?>"><?=Tep_Image_Button('m02.gif')?></a><a href="<?=tep_href_link('products_new.php')?>"><?=Tep_Image_Button('m03.gif')?></a><a href="<?=tep_href_link('specials.php')?>"><?=Tep_Image_Button('m04.gif')?></a><a href="<?=tep_href_link('account.php')?>"><?=Tep_Image_Button('m05.gif')?></a><a href="<?=tep_href_link('contact_us.php')?>"><?=Tep_Image_Button('m06.gif')?></a></td></tr>

</table>

 

<table border="0" cellspacing="0" cellpadding="0">

<tr><td><?=tep_image(DIR_WS_IMAGES.'m07.gif')?></td>

<td width="745" bgcolor="#AD81FF">

<table border="0" cellspacing="0" cellpadding="0">

<tr><td width="95" align="center" nowrap="nowrap"><span class="tx"><?=BOX_HEADING_MANUFACTURERS?>:</span></td><td width="4"></td><td align="left" width="140" class="se"><?

echo tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT), 'get');

include(DIR_WS_BOXES . 'manufacturers.php');

echo '</form>';

?>

</td>

 

<td width="257" align="center">

<span class="tx"><?=BOX_HEADING_CURRENCIES?>:</span>  <?

echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');

reset($currencies->currencies);

$currencies_array = array();

while (list($key, $value) = each($currencies->currencies)) {

$currencies_array[] = array('id' => $key, 'text' => $value['title']);

}

$hidden_get_variables = '';

reset($HTTP_GET_VARS);

while (list($key, $value) = each($HTTP_GET_VARS)) {

if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {

$hidden_get_variables .= tep_draw_hidden_field($key, $value);

}

}

echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" class="se1"') . $hidden_get_variables . tep_hide_session_id();

echo '</form>';

?>

</td>

 

<td width="285" align="right">

<span class="tx">Search:</span>   <?php require(DIR_WS_BOXES . 'search.php'); ?>

 

 

 

 

 

 

 

 

 

 

<?php

if (tep_session_is_registered('customer_id'))

{ ?>

 

<a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>

<?

} else {

?>

<a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a>

<?php

}

?>

</td>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

</td>

 

 

<td width="142" style=" padding-top:4px;"></td>

</tr>

</table>

</td>

<td><?=tep_image(DIR_WS_IMAGES.'m08.gif')?></td></tr>

<tr><td height="5" colspan="3"></td></tr>

</table>

</td></tr>

 

 

 

 

 

 

--------

Link to comment
Share on other sites

header.php <-------------------------------- Is this part of header.php code if yes this is not required, you may 
File Type: PHP script text   <--------------- safely delete these 2 lines.

<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions

 

Thx

Best Regards,
Gaurav

Link to comment
Share on other sites

header.php <-------------------------------- Is this part of header.php code if yes this is not required, you may 
File Type: PHP script text   <--------------- safely delete these 2 lines.

<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions

 

Thx

 

 

All sorted, worked a treat.

 

Curious as to how those lines got there though.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...