Bonjour,
Je suis un newbie en PHP après avoir installer mon site sous zencart je reçois l'erreur suivant en voulant ouvrir mon frontend :
Parse error: syntax error, unexpected $end in C:\wamp\www\monsite\includes\templates\boilbox\common\tpl_main_page.php on line 300 (c'est la dernière ligne du code)
et voici le détail de la page en question ( je vous remerçies par avance de votre aide).
<?php
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
?>
<body id="<?php echo $body_id . 'Body'; ?>" <?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?> >
<div id="wrapper"><!-- wrapper S-->
<div id="pop_window" style="display:none"></div>
<?php
if (isset($_GET['c']) and $_GET['c'] == 'only'){
echo '<div class="comm1">';
}else{
switch ($current_page){
case 'faqs_submit':
echo '<div class="new1">';
break;
case 'shipping_estimator':
echo '<div>';
break;
case 'print_page':
echo '<div class="lightinthebox" style="width: 760px;">';
break;
case 'checkout_shipping':
case 'checkout_payment':
case 'checkout_login':
case 'checkout_shipping_address':
case 'address_book_process':
echo '<div class="lightinthebox">';
break;
default:
echo '<div class="lightinthebox">';
}
}
?>
<!-- content S-->
<?php
/**
* prepares and displays header output
*
*/
if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
$flag_disable_header = true;
}
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
<?php
//addPage
if(!$this_is_home_page and ($current_page != 'login') and ($current_page != 'print_page') and ($current_page != 'advanced_search') and ($current_page != 'shopping_cart') and ($current_page != 'checkout_shipping_address') and ($current_page != 'address_book_process') and ($current_page != 'checkout_payment_address') and ($current_page != 'checkout_shipping') and ($current_page != 'checkout_login') and ($current_page != 'checkout_payment') and ($current_page != 'checkout_confirmation') and ($current_page != 'checkout_success')and $current_page != 'faqs_submit' and $current_page != 'shipping_estimator' and (!isset($_GET['c']) and $_GET['c'] == '')){
?>
<div id="navblock" class="fl">
<?php
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/dropdown_categories_css.php');
?>
<div class="maxframe">
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
<div>
<ul class="fr" id="nav_chat">
<span id="nav_chat_sales">
<?php if(LIVE_HELP_ADMIN_1_NAME != ''){?>
<p style="margin-top: 0px;"> <a aim="" yahoo="<?php echo LIVE_HELP_ADMIN_1_YAHOO; ?>" email="<?php echo LIVE_HELP_ADMIN_1_EMAIL; ?>" skype="<?php echo LIVE_HELP_ADMIN_1_SKYPE; ?>" msn="<?php echo LIVE_HELP_ADMIN_1_MSN; ?>" onClick="show_chat_div(this);" title="<?php echo LIVE_HELP_ADMIN_1_NAME; ?>" class="red" href="javascript:void(0);"><strong><?php echo LIVE_HELP_ADMIN_1_NAME; ?></strong> </a> <em> is Online to help you.</em> </p>
<?php }?>
<?php if(LIVE_HELP_ADMIN_2_NAME != ''){?>
<p style="margin-top: 0px;"> <a aim="" yahoo="<?php echo LIVE_HELP_ADMIN_2_YAHOO; ?>" email="<?php echo LIVE_HELP_ADMIN_2_EMAIL; ?>" skype="<?php echo LIVE_HELP_ADMIN_2_SKYPE; ?>" msn="<?php echo LIVE_HELP_ADMIN_2_MSN; ?>" onClick="show_chat_div(this);" title="<?php echo LIVE_HELP_ADMIN_2_NAME; ?>" class="red" href="javascript:void(0);"><strong><?php echo LIVE_HELP_ADMIN_2_NAME; ?></strong> </a> <em> is Online to help you.</em> </p>
<?php }?>
<?php if(LIVE_HELP_ADMIN_3_NAME != ''){?>
<p style="margin-top: 0px;"> <a aim="" yahoo="<?php echo LIVE_HELP_ADMIN_3_YAHOO; ?>" email="<?php echo LIVE_HELP_ADMIN_3_EMAIL; ?>" skype="<?php echo LIVE_HELP_ADMIN_3_SKYPE; ?>" msn="<?php echo LIVE_HELP_ADMIN_3_MSN; ?>" onClick="show_chat_div(this);" title="<?php echo LIVE_HELP_ADMIN_3_NAME; ?>" class="red" href="javascript:void(0);"><strong><?php echo LIVE_HELP_ADMIN_3_NAME; ?></strong> </a> <em> is Online to help you.</em> </p>
<?php }?>
<?php if(LIVE_HELP_ADMIN_4_NAME != ''){?>
<p style="margin-top: 0px;"> <a aim="" yahoo="<?php echo LIVE_HELP_ADMIN_4_YAHOO; ?>" email="<?php echo LIVE_HELP_ADMIN_4_EMAIL; ?>" skype="<?php echo LIVE_HELP_ADMIN_4_SKYPE; ?>" msn="<?php echo LIVE_HELP_ADMIN_4_MSN; ?>" onClick="show_chat_div(this);" title="<?php echo LIVE_HELP_ADMIN_4_NAME; ?>" class="red" href="javascript:void(0);"><strong><?php echo LIVE_HELP_ADMIN_2_NAME; ?></strong> </a> <em> is Online to help you.</em> </p>
<?php }?>
</span>
</ul>
<script>marquee(3000, 15 ,0 ,'nav_chat_sales');</script>
</div>
<!--bof-navigation display-->
<?php require(DIR_WS_MODULES . 'sideboxes/search_header.php');?>
<!--eof-navigation display-->
</div>
<?php
if (isset($current_category_id) and $current_category_id != ''){
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
}
?>
<!-- bof breadcrumb -->
<?php
if ($current_page == 'super_savings'){
//Do anything
}else{
if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
<div class="fl product_title margin_t pad_1em"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php }
}
?>
<!-- eof breadcrumb -->
</div>
<?php
}
?>
<div id="bodyblock">
<?php
//addPage
if($this_is_home_page || $current_page == 'login' || $current_page == 'shopping_cart' || $current_page == 'advanced_search' || $current_page == 'shopping_cart' || $current_page == 'checkout_payment_address' || $current_page == 'checkout_confirmation'|| $current_page == 'checkout_success'){
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_left
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<div class="minframe fl">
<?php
/**
* prepares and displays left column sideboxes
*
*/
switch($current_page){
case 'login':
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories_css.php');
break;
case 'shopping_cart':
case 'checkout_payment_address':
case 'checkout_confirmation':
case 'checkout_success':
case 'time_out':
case 'faqs_all':
case 'advanced_search':
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories_css.php');
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/subscribe.php');
break;
default:
require(DIR_WS_MODULES . zen_get_module_directory('column_left.php'));
}
?>
</div>
<?php
}
}
?>
<?php
//addPage
if($this_is_home_page || $current_page == 'login' || $current_page == 'shopping_cart' || $current_page == 'advanced_search' || $current_page == 'time_out' || $current_page == 'checkout_payment_address' || $current_page == 'checkout_confirmation'|| $current_page == 'checkout_success'){ ?>
<div class="maxframe">
<?php }elseif ($current_page =='faqs_all' || $current_page =='faqs_submit' ){ ?>
<div class="fl">
<?php }else { ?>
<div>
<? }?>
<?php
//addPage
if($this_is_home_page || $current_page == 'login' || $current_page == 'shopping_cart' || $current_page == 'advanced_search' || $current_page == 'checkout_payment_address' || $current_page == 'checkout_confirmation'|| $current_page == 'checkout_success' ){?>
<div id="header_nav">
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
<ul class="fr" id="nav_chat">
<span id="nav_chat_sales">
<?php if(LIVE_HELP_ADMIN_1_NAME != ''){?>
<p style="margin-top: 0px;"> <a aim="" yahoo="<?php echo LIVE_HELP_ADMIN_1_YAHOO; ?>" email="<?php echo LIVE_HELP_ADMIN_1_EMAIL; ?>" skype="<?php echo LIVE_HELP_ADMIN_1_SKYPE; ?>" msn="<?php echo LIVE_HELP_ADMIN_1_MSN; ?>" onClick="show_chat_div(this);" title="<?php echo LIVE_HELP_ADMIN_1_NAME; ?>" class="red" href="javascript:void(0);"><strong><?php echo LIVE_HELP_ADMIN_1_NAME; ?></strong> </a> <em> is Online to help you.</em> </p>
<?php }?>
<?php if(LIVE_HELP_ADMIN_2_NAME != ''){?>
<p style="margin-top: 0px;"> <a aim="" yahoo="<?php echo LIVE_HELP_ADMIN_2_YAHOO; ?>" email="<?php echo LIVE_HELP_ADMIN_2_EMAIL; ?>" skype="<?php echo LIVE_HELP_ADMIN_2_SKYPE; ?>" msn="<?php echo LIVE_HELP_ADMIN_2_MSN; ?>" onClick="show_chat_div(this);" title="<?php echo LIVE_HELP_ADMIN_2_NAME; ?>" class="red" href="javascript:void(0);"><strong><?php echo LIVE_HELP_ADMIN_2_NAME; ?></strong> </a> <em> is Online to help you.</em> </p>
<?php }?>
<?php if(LIVE_HELP_ADMIN_3_NAME != ''){?>
<p style="margin-top: 0px;"> <a aim="" yahoo="<?php echo LIVE_HELP_ADMIN_3_YAHOO; ?>" email="<?php echo LIVE_HELP_ADMIN_3_EMAIL; ?>" skype="<?php echo LIVE_HELP_ADMIN_3_SKYPE; ?>" msn="<?php echo LIVE_HELP_ADMIN_3_MSN; ?>" onClick="show_chat_div(this);" title="<?php echo LIVE_HELP_ADMIN_3_NAME; ?>" class="red" href="javascript:void(0);"><strong><?php echo LIVE_HELP_ADMIN_3_NAME; ?></strong> </a> <em> is Online to help you.</em> </p>
<?php }?>
<?php if(LIVE_HELP_ADMIN_4_NAME != ''){?>
<p style="margin-top: 0px;"> <a aim="" yahoo="<?php echo LIVE_HELP_ADMIN_4_YAHOO; ?>" email="<?php echo LIVE_HELP_ADMIN_4_EMAIL; ?>" skype="<?php echo LIVE_HELP_ADMIN_4_SKYPE; ?>" msn="<?php echo LIVE_HELP_ADMIN_4_MSN; ?>" onClick="show_chat_div(this);" title="<?php echo LIVE_HELP_ADMIN_4_NAME; ?>" class="red" href="javascript:void(0);"><strong><?php echo LIVE_HELP_ADMIN_2_NAME; ?></strong> </a> <em> is Online to help you.</em> </p>
<?php }?>
</span>
</ul>
</div>
<script>marquee(3000, 15 ,0 ,'nav_chat_sales');</script>
<!--bof-navigation display-->
<?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
<!--eof-navigation display-->
<?php } ?>
<?php
if ($this_is_home_page){
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
}
?>
<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->
<?php
/**
* prepares and displays center column
*
*/
require($body_code);
?>
</div>
<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2 and $this_is_home_page) { ?>
<div class="blue_con fl maxwidth margin_t">
<h3 class="in_1em">Why buy wholesale goods from us?</h3>
<?php require($define_page); ?>
</div>
<?php } ?>
<?php if($this_is_home_page){
require($template->get_template_dir('tpl_modules_bottom_featured.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_bottom_featured.php');
}?>
<?php
if ($this_is_home_page){
echo '<br class="clear"/>';
require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/'.$template_dir.'/links_box.php'));
}
?>
<?php
/**
* prepares and displays footer output
*
*/
if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
$flag_disable_footer = true;
}
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>
<br class="clear"/>
</div><!-- content E-->
<script type="text/javascript">
<!--
var jq=jQuery;
var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);
var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf('msie') + 5, 3);
(function(){
var r = jq('#themes-selector');
var btns = r.find('> a');
var lnk = document.createElement('link');
lnk.rel="stylesheet";
lnk.type="text/css";
document.getElementsByTagName('head')[0].appendChild(lnk);
var themesAddress = "includes/templates/<?php echo $template_dir; ?>/css/theme-";
var themeId = getCookie('theme_id');
if(themeId){
lnk.href = themesAddress + themeId + '.css';
btns.each(function(idx, btn){
if(btn.innerHTML == themeId){
btn.className = 'on';
}else{
btn.className = '';
}
});
}else{
btns.each(function(idx, btn){
if(btn.className == 'on'){
themeId = btn.innerHTML;
lnk.href = themesAddress + themeId + '.css';
return false;
}
});
}
btns.click(function(){
this.blur();
var t = this.innerHTML;
setcookie('theme_id', t, 60*60*24*30);
lnk.href = themesAddress + t + '.css';
var theBtn = this;
btns.each(function(idx, btn){
if(btn == theBtn){
this.className = 'on';
}else{
this.className = '';
}
});
return false;
});
})();
//--></script>
</body>
Afficher la suite