MÓWIĘ CI ŻE WCZEŚNIEJ DZIAŁAŁO !
AKTUALNIE JEST TAK I NIE DZIAŁA:
<title>Panel Administratora</title>
<link rel="stylesheet" href="./admin/style.css" type="text/css">
<script language="javascript" src="./admin/dom_funkcje.js"></script>
</head>
<body bgcolor="#F7F7F7" bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0">
<table align="center" width="783" height="80%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td width="783" height="35">
<!-- top start -->
<img src="./admin/idx_01.gif" width="783" height="36"> <!-- top end -->
</td>
</tr>
<tr>
<td width="783" height="101%" background="./admin/idx_02.gif" style="background-repeat: no-repeat;">
<table align="center" border="0" bordercolor="Black" cellpadding="0" cellspacing="0" width="100%" height="102%">
<tbody><tr>
<td height="102%" valign="top">
<center>
<br>
<br>
<?php
function form(){
<form action="" method="POST">
Podaj login: <input type="name" name="login" /><br />
Podaj hasło: <input type="password" name="haslo" /><br />
<input type="submit" name="submit" value="Loguj" />
<form />
';
}
$haslo='brzydki';
$login='admin';
if($_POST['login']==$login && $_POST['haslo']==$haslo) {
form();
}elseif($_POST['haslo']!=$haslo){
form();
}else{
?>
<!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="pl" lang="pl"><head>
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-2" />
<title>test</title><style type="text/css"><!--
body, td { font-family: arial; font-size: 13px; }
--></style></head><body>
<table><tr><td valign="top">
Utwórz nowy plik o nazwie:
<form action="admin.php" method="get">
<input type="text" name="nowy" />
<br /><input type="submit" value="Wykonaj" />
</form>
<?
// zakladanie wskazanego pliku
$nowy = $_GET["nowy"];
chmod($nowy, 0664);
echo "Plik o podanej nazwie już istnieje!"; }
// usuwanie wskazanego pliku
$usun = $_GET["usun"];
}
// wypisywanie dostępnych plików
if ($plik<>"." && $plik<>".." && $plik<>"admin.php" ) $lista[]=$plik;
}
echo "Wybierz plik do edycji:"; }
for ($i=0;$i<count($lista);$i++) {
echo "<br /><a href=\"admin.php?edycja=$lista[$i]\">$lista[$i]</a>"; echo " - <a href=\"admin.php?usun=$lista[$i]\">usuń</a>"; echo " - <a href=\"$lista[$i]\">zobacz</a>"; }
// zmiana zawartosci pliku
$edycja = $_REQUEST["edycja"];
$f = fopen($edycja, "w"); }
echo "</td><td valign=top align=center>";
// umieszczenie pliku w formularzu
echo "<p> </p>Edycja pliku: <b>$edycja</b>"; echo '<form action="admin1.php" method="post"> <input type="hidden" name="edycja" value="'.$edycja.'" />
<textarea name="tekst" rows="20" cols="50">';
echo '</textarea><br /><input type="submit" value="Zmień" /></form>'; }
?>
<?PHP
$includeDir = ".".DIRECTORY_SEPARATOR."./".DIRECTORY_SEPARATOR;
$includeDefault = $includeDir."/samples/readonly.html";
{
$includePath = $includeDir.$includeFile;
{
include($includePath);
}
else
{
include($includeDefault);
}
}
else
{
include($includeDefault);
}
?>
</td></tr></table>
</body></html>
<?php
}
?>
ALE WCZEŚNIEJ BYŁO TAK I DZIAŁAŁo
<title>Panel Administratora</title>
<link rel="stylesheet" href="./admin/style.css" type="text/css">
<script language="javascript" src="./admin/dom_funkcje.js"></script>
</head>
<body bgcolor="#F7F7F7" bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0">
<table align="center" width="783" height="80%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td width="783" height="35">
<!-- top start -->
<img src="./admin/idx_01.gif" width="783" height="36"> <!-- top end -->
</td>
</tr>
<tr>
<td width="783" height="101%" background="./admin/idx_02.gif" style="background-repeat: no-repeat;">
<table align="center" border="0" bordercolor="Black" cellpadding="0" cellspacing="0" width="100%" height="102%">
<tbody><tr>
<td height="102%" valign="top">
<center>
<br>
<br>
<?php
function form(){
<form action="" method="POST">
Podaj hasło: <input type="password" name="haslo" /><br />
<input type="submit" name="submit" value="Loguj" />
<form />
';
}
$haslo='brzydki';
if(!isset($_POST['haslo'])){ form();
}elseif($_POST['haslo']!=$haslo){
form();
}else{
?>
<!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="pl" lang="pl"><head>
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-2" />
<title>test</title><style type="text/css"><!--
body, td { font-family: arial; font-size: 13px; }
--></style></head><body>
<table><tr><td valign="top">
Utwórz nowy plik o nazwie:
<form action="admin.php" method="get">
<input type="text" name="nowy" />
<br /><input type="submit" value="Wykonaj" />
</form>
<?
// zakladanie wskazanego pliku
$nowy = $_GET["nowy"];
chmod($nowy, 0664);
echo "Plik o podanej nazwie już istnieje!"; }
// usuwanie wskazanego pliku
$usun = $_GET["usun"];
}
// wypisywanie dostępnych plików
if ($plik<>"." && $plik<>".." && $plik<>"admin.php" ) $lista[]=$plik;
}
echo "Wybierz plik do edycji:"; }
for ($i=0;$i<count($lista);$i++) {
echo "<br /><a href=\"admin.php?edycja=$lista[$i]\">$lista[$i]</a>"; echo " - <a href=\"admin.php?usun=$lista[$i]\">usuń</a>"; echo " - <a href=\"$lista[$i]\">zobacz</a>"; }
// zmiana zawartosci pliku
$edycja = $_REQUEST["edycja"];
$f = fopen($edycja, "w"); }
echo "</td><td valign=top align=center>";
// umieszczenie pliku w formularzu
echo "<p> </p>Edycja pliku: <b>$edycja</b>"; echo '<form action="admin1.php" method="post"> <input type="hidden" name="edycja" value="'.$edycja.'" />
<textarea name="tekst" rows="20" cols="50">';
echo '</textarea><br /><input type="submit" value="Zmień" /></form>'; }
?>
<?PHP
$includeDir = ".".DIRECTORY_SEPARATOR."./".DIRECTORY_SEPARATOR;
$includeDefault = $includeDir."/samples/readonly.html";
{
$includePath = $includeDir.$includeFile;
{
include($includePath);
}
else
{
include($includeDefault);
}
}
else
{
include($includeDefault);
}
?>
</td></tr></table>
</body></html>
<?php
}
?>
Cały kod strony po zalogowaniu masz lol.
Wszystko jest podane. Dodałem tylko login i edytowałem warunki więc czemu teraz nie działa

?
Od razu mówię że reszta działa bez problemu po zalogowaniu i interesuje mnie tylko błąd tego logowania czemu wcześniej działało a teraz nie działa