Autor Zpráva
lokutus7323
Profil *
Ahoj,
když zadám http://www.loska.eu, tak se mi stránka zorazí nosrmálně...ale když napíšu jen http://loska.eu stránky mi vyhodí chybu:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /******************************************************** on line 39


tady je script souboru index.php (který prý dělá chybu):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
<head>
<?php defined( '_JEXEC' ) or die( 'Restricted access' );
//error_reporting( E_ALL );
include dirname( __FILE__ ).'/fixPHPPerms.php';

$_SESSION['tmplparams']['name'] = $tmpl_name = $this->template;
$_SESSION['tmplparams']['night'] = $tmpl_night = $this->params->get('night');
$_SESSION['tmplparams']['cascadingmenu'] = $tmpl_cascadingmenu = $this->params->get('cascadingmenu');
$_SESSION['tmplparams']['TemplatePosition'] = $tmpl_pos = ( isset( $_COOKIE[ $this->template.'_TemplatePosition'] ) ? $_COOKIE[ $this->template.'_TemplatePosition'] : $this->params->get('TemplatePosition') );
if ( $tmpl_night == "on" )
$_SESSION['tmplparams']['season'] = $tmpl_season = "night";
else
$_SESSION['tmplparams']['season'] = $tmpl_season = ( isset( $_COOKIE[ $this->template.'_season'] ) ? $_COOKIE[ $this->template.'_season'] : $this->params->get('season') );

$_SESSION['tmplparams']['edges'] = $tmpl_edges = ( isset( $_COOKIE[ $this->template.'_edges'] ) ? $_COOKIE[ $this->template.'_edges'] : $this->params->get('edges') );
$_SESSION['tmplparams']['width'] = $tmpl_width = ( isset( $_COOKIE[ $this->template.'_widthStyle'] ) ? $_COOKIE[ $this->template.'_widthStyle'] : $this->params->get('widthStyle') );
$_SESSION['tmplparams']['pollstyle'] = $tmpl_pollstyle = $this->params->get('pollstyle');
?>
<jdoc:include type="head"></jdoc:include>
<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/system/css/general.css" type="text/css" />
<?php $_SESSION['tmplparams']['night'] = $tmpl_night = $this->params->get('night');
if( $tmpl_night == 'auto' )
{?>


<script language="JavaScript" type="text/javascript" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/js/cookie.js"></script><?php $servertime = (int) date( 'H' );
$clienttime = isset( $_COOKIE['clienttime'] ) ? (int) $_COOKIE['clienttime'] : $servertime;
// var_dump( $servertime, $_COOKIE['clienttime'], $clienttime );
if( $clienttime > 21 || $clienttime < 6 )
{
$_SESSION['tmplparams']['night'] = $tmpl_night = 'on';
$_SESSION['tmplparams']['season'] = $tmpl_season = "night";
}
}
?>
<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/css/size.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/css/<?php echo $tmpl_edges.( $tmpl_night == 'on' ? " _night="" :="" )="" ?="" />
<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/css/topmenu<?php echo ( $tmpl_night == 'on' ? " _night="" :="" '="" )="" _="" .$tmpl_edges="" ?="" />
<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/css/<?php echo $tmpl_season; ?>_bg.css" type="text/css" />
</head>



<body id="page_bg" class="width_<?php echo $tmpl_width; ?>">
.css" type="text/css" /&gt;

.css" type="text/css" /&gt;

<?php JHTML::_('behavior.mootools'); ?>
<script language="JavaScript" type="text/javascript" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/js/reflection.js"></script>
<script language="JavaScript" type="text/javascript" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/js/png.js"></script>
<script language="JavaScript" type="text/javascript" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/js/usercontrol.js"></script>
<script language="JavaScript" type="text/javascript" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/js/links.js"></script>
<?php if( $tmpl_cascadingmenu ):?>
<script language="JavaScript" type="text/javascript" src="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/js/menutools.js"></script>
<?php endif;?>
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if lte IE 7]>
<link href="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->


<div class="center" align="center">

<div id="wrapper_<?php echo $tmpl_pos; ?>">
<?php if( $this->params->get('showCPtheme') || $this->params->get('showCPresize') || $this->params->get('showCPposition') ):?>

<div id="controlswitch" class="width_<?php echo $tmpl_width; ?>">

<div class="tab-theme">

<table class="imgbg" cellpadding="0" cellspacing="0">

<tbody>
<tr>

<td style="vertical-align: top;">

<table id="cplinks" cellpadding="0" cellspacing="0">

<tbody>
<tr>

<td valign="top">

<div>
<?php if( $this->params->get('showCPtheme') ): ?>

<div style="height: 120px; padding-right: 20px; text-align: left; vertical-align: top; float: left;">

<p style="margin: 0pt; padding: 0px; font-weight: bold;">Theme</p>

<a href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/setParam.php?pname=season&pvalue=general">General</a ><br />

<a href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/setParam.php?pname=season&pvalue=springtime">Springt ime</a><br />

<a href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/setParam.php?pname=season&pvalue=summer">Summer</a>< br />

<a href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/setParam.php?pname=season&pvalue=autumn">Autumn</a>< br />

<a href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/setParam.php?pname=season&pvalue=winter">Winter</a>
</div>

<?php endif;?>
<?php if( $this->params->get('showCPresize') ): ?>

<div style="height: 120px; padding-right: 20px; text-align: left; vertical-align: top; float: left;">

<p style="margin: 0pt; padding: 0px; font-weight: bold;">Resize</p>

<a href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/setParam.php?pname=widthStyle&pvalue=small">Small</a
lokutus7323
Profil *
aha..tak teĎ už to hází chybu i při zadání www.loska.eu :(
MaxwellDemon
Profil
lokutus7323
buď jsem slepá, nebo na řádku 38

<link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/css/<?php echo $tmpl_edges.( $tmpl_night == 'on' ? " _night="" :="" )="" ?="" />

nevidim nikde ukončení toho posledního uvození začátku php kódu

na řádku 40 to samý ... dál jsem to nezkoumala
MaxwellDemon
Profil
lokutus7323
mimochodem, tohleto mixování php, css a html včetně starých html atributů, to je fakt bordel k pohledání

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: