Posto il file CATALOG/INCLUDES/header.php perchè non riesco a trovare il problema
Grazie
<?php
/*
$Id: header.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 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 width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="images/template/header.jpg" width="814" height="160" alt=""></td>
</tr>
</table>
<table width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<div id="menu">
<div class="spacer"><img src="images/template/menu_left.gif" width="8" height="37" alt=""></div>
<div class="box">
<a href="<?php echo tep_href_link('index.php') . '" title="Home Page"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_1.gif" width="8" height="37" alt=""></div>
<div class="box2">
<a href="<?php echo tep_href_link('products_new.php') . '" title="New Products"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_2.gif" width="8" height="37" alt=""></div>
<div class="box3">
<a href="<?php echo tep_href_link('specials.php') . '" title="' . BOX_HEADING_SPECIALS . '"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_3.gif" width="8" height="37" alt=""></div>
<div class="box4">
<a href="<?php echo tep_href_link('account.php') . '" title="' . HEADER_TITLE_MY_ACCOUNT . '"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_4.gif" width="8" height="37" alt=""></div>
<div class="box5">
<a href="<?php echo tep_href_link('contact_us.php') . '" title="Contact"></a>'; ?>
</div>
<div class="spacer-right"><img src="images/template/right_menu.gif" width="7" height="37" alt=""></div>
</div>
</tr>
</table>
<table width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="images/template/bar_left.gif" width="8" height="58" alt=""></td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%;height:58px;">
<span style="padding-left:15px;font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;">Select your currency:
<?php
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="jamp"') . $hidden_get_variables . tep_hide_session_id();
echo '</form>';
?>
</span>
<span style="padding-left:25px;font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;">Choose your language:
<?php
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
include(DIR_WS_CLASSES . 'language.php');
$lng = new language;
}
$languages_string = '';
reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
$languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
}
echo $languages_string;
?>
</span>
</td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%;height:58px;font-size:12px;font-family:Verdana, Arial, Helvetica, sans-serif;" align="right">
<p style="text-align:center;">
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo $cart->count_contents()?> <?php echo BOX_SHOPPING_CART_EMPTY ?></a></p>
</td>
<td align="left" valign="middle">
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo tep_image(DIR_WS_IMAGES . 'cart.gif', BOX_HEADING_SHOPPING_CART); ?></a>
</td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%height:58px;" width="50">
<?php echo tep_draw_separator('pixel_trans.gif', '20', '10'); ?>
</td>
<td>
<img src="images/template/bar_right.gif" width="7" height="58" alt=""></td>
</tr>
</table>
<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
</tr>
</table>
<?php
}
if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
</tr>
</table>
<?php
}
?>