Mam taki problem polegajacy na tym, że jak zrobie stronke i umieszcze w menu linka do podstrony news.php to mi wszystko działa, ale jak dodam na początku skrypt logowania to już po kliknięciu w link nie otwiera się w okinku poniżej linku plik news.php -
W linijkach 56-60 jest link, a w linijkach 66-68 jest miejsce gdzie ma się wyswietlic news.php
<?php
require_once( '../getUsers.php' );
// wylogowanie
if ( isset ( $_GET[ 'logout' ] ) ) {
echo '<a href="../index.php" >Zostales poprawnie wylogowany, trwa przekierowanie...</a>';
header( "Refresh: 2; URL=../index.php" ); }
if ( isset ( $_SESSION[ 'Logged' ] ) ) {
if ( $_GET[ 'site' ] == $_SESSION[ 'Logged' ] )
{
$arr = getUsers( 'users.dat' );
$You = $arr[ $_SESSION[ 'Name' ] ];
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<title>
tytuł
</title>
<STYLE TYPE="text/css">
#Load {POSITION:Absolute; VISIBILITY:Visible; TOP:0; LEFT:0; WIDTH:100%; HEIGHT:100%; BACKGROUND-COLOR:White; LAYER-BACKGROUND-COLOR:White}
</STYLE>
<script LANGUAGE="JavaScript">
//Skrypt pochodzi z biblioteki http://javascript.reporter.pl/
function Ukryj() {
if (document.layers) document.layers["Load"].visibility="hidden";
if (document.all) document.all["Load"].style.visibility="hidden";
}
</SCRIPT>
</head>
<body onLoad="Ukryj()" background="img/background.jpg">
<table border=1 cellpadding="0" cellspacing="0" align="center" width="630" height="650">
<tr width=100% height="100">
<td colspan=2>
<?php
echo "<a href='index.php?main=news.php'>"; ?>
</td></tr>
<tr width=100% height="520">
<td width="100"><?php include "left.php"; ?></td>
<td width="530">
<?php
include( $_GET['main'] );
?>
</td></tr>
<tr width=100% height="30">
<td colspan=2><?php include "buttom.php"; ?></td></tr>
</table>
</body>
</html>
<?php
}
else
{
header("Location: ?site=" . $_SESSION[ 'Logged' ] ); }
}
else
{
header( "Refresh: 2; URL=../index.php" ); }
?>