Cytat
function podaj() {
include("haslo.php");
global $pass;
echo ("<H2 align=center>Administracja</H2><center><form method=post action=administracja.php><BR>Hasło: <input type=password name=haslo size=20 value=$pass><BR> <input type=submit value=Wejdź_dalej></form></center>");
}
if ($haslo==$pass) {
prawidlowe();
}
function prawidlowe() {
global $pass;
echo ("<H2 align=center>Administracja</H2><table border=0 align=center><tr><td><form method=post action=administracja.php><input type=hidden name=act value=nwewww><input type=submit value="Nowy news"><input type=hidden name=haslo value=$pass></form><td><form method=post action=administracja.php><input type=hidden name=act value=ewdwiwtw><input type=submit value="Edycja newsa"><input type=hidden name=haslo value=$pass></form></td><td><form method=post action=administracja.php><input type=hidden name=pok value=tak><input type=hidden name=haslo value=$pass><input type=submit value="Wyświetl newsy"></form></td><td><form method=post action=administracja.php><input type=submit value="Usuń newsa"><input type=hidden name=act value=uwswuwnw><input type=hidden name=haslo value=$pass></form></td></tr></table>");
}
include("haslo.php");
global $pass;
echo ("<H2 align=center>Administracja</H2><center><form method=post action=administracja.php><BR>Hasło: <input type=password name=haslo size=20 value=$pass><BR> <input type=submit value=Wejdź_dalej></form></center>");
}
if ($haslo==$pass) {
prawidlowe();
}
function prawidlowe() {
global $pass;
echo ("<H2 align=center>Administracja</H2><table border=0 align=center><tr><td><form method=post action=administracja.php><input type=hidden name=act value=nwewww><input type=submit value="Nowy news"><input type=hidden name=haslo value=$pass></form><td><form method=post action=administracja.php><input type=hidden name=act value=ewdwiwtw><input type=submit value="Edycja newsa"><input type=hidden name=haslo value=$pass></form></td><td><form method=post action=administracja.php><input type=hidden name=pok value=tak><input type=hidden name=haslo value=$pass><input type=submit value="Wyświetl newsy"></form></td><td><form method=post action=administracja.php><input type=submit value="Usuń newsa"><input type=hidden name=act value=uwswuwnw><input type=hidden name=haslo value=$pass></form></td></tr></table>");
}
W pliku haslo.php jest haslo
