My server change some info to install Magento in for a different site, and whatever they did totally screwed my site up. First I had a globals issue, but I fixed that in the php.ini
Now I have this error.
Parse error: syntax error, unexpected ';' in /home3/shopluvn/public_html/includes/header.php on line 92
Here is the code for my header.php (its weird because it worked before and I know they didn't change the header).
<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
[url]http://www.oscommerce.com[/url]
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 border="0" cellspacing="0" cellpadding="0" width="742" align="center">
<tr><td valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><a href="<?=tep_href_link('home.php')?>"><?=tep_image(DIR_WS_IMAGES.'m01c.gif')?></a></td>
<td width="522">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td height="30"></td></tr>
<tr><td align="right"><a class="ml" href="<?=tep_href_link('specials.php')?>">Store Specials</a> <?=tep_image(DIR_WS_IMAGES.'m02.gif','','','','class="ab"')?> <a class="ml" href="<?=tep_href_link('menu.php')?>">Salon Menu</a> <?=tep_image(DIR_WS_IMAGES.'m02.gif','','','','class="ab"')?> <a class="ml" href="<?=tep_href_link('contact_us.php')?>"><?=BOX_INFORMATION_CONTACT?></a> <?=tep_image(DIR_WS_IMAGES.'m02.gif','','','','class="ab"')?> <a class="ml" href="<?=tep_href_link('create_account.php')?>"><?=HEADER_TITLE_CREATE_ACCOUNT?></a> <?=tep_image(DIR_WS_IMAGES.'m02.gif','','','','class="ab"')?>
<? if (tep_session_is_registered('customer_id')) {
?><a class="ml" href="<?=tep_href_link('logoff.php')?>"><?=HEADER_TITLE_LOGOFF?></a><? } else
{ ?><a class="ml" href="<?=tep_href_link('login.php')?>"><?=HEADER_TITLE_LOGIN?></a><? } ?>
</td></tr>
<tr><td height="17"></td></tr>
<tr><td>
<a href="<?=tep_href_link('home.php')?>"><img
src="/images/m03b.gif" border="0" /></a>
<a href="<?=tep_href_link('specials.php')?>"><img
src="/images/m042.gif" border="0" /></a>
<a href="<?=tep_href_link('account.php')?>"><img
src="/images/m05.gif" border="0" /></a>
<a href="<?=tep_href_link('shopping_cart.php')?>"><img
src="/images/m06.gif" border="0" /></a>
<a href="<?=tep_href_link('checkout_shipping.php')?>"><img
src="/images/m07.gif" border="0" /></a>
<!--<a href="<?=tep_href_link('education.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('shopping_cart.php')?>"><?=tep_image_button('m06.gif')?></a>
<a href="<?=tep_href_link('checkout_shipping.php')?>"><?=tep_image_button('m07.gif')?></a></td></tr>-->
</table>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><?=tep_image(DIR_WS_IMAGES.'m08.gif')?></td>
<td class="bg">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td width="217" height="34" class="tx" align="left"><?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_product','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+10) . 'px"') . ' ' . tep_hide_session_id() .'<input type="submit" name="Submit" value="Search">' . '</form>'; ?>
<?=//BOX_HEADING_CURRENCIES?>
<?
// 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="se"') . $hidden_get_variables . tep_hide_session_id();
// echo '</form>';
?>
</td>
<td><?=//tep_image(DIR_WS_IMAGES.'m11.gif')?></td>
<td width="164" align="center" class="tx"><?=//BOX_HEADING_LANGUAGES?></td>
<td width="104">
<?
//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;
?>
</td>
<td><?=tep_image(DIR_WS_IMAGES.'m11.gif')?></td>
<td width="258" align="center" class="tx"><?=tep_image(DIR_WS_IMAGES.'m15.gif')?> <?=BOX_HEADING_SHOPPING_CART?>: <font color="#2C2C2C">now in your cart</font> <a class="ml1" href="<?=tep_href_link('shopping_cart.php')?>"><?=$cart->count_contents()?> <?=BOX_SHOPPING_CART_EMPTY?></a></td></tr>
</table>
</td>
<td><?=tep_image(DIR_WS_IMAGES.'m10.gif')?></td></tr>
</table>
</td></tr>