<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<?php
extract(array_merge($_POST, $_GET, $_FILES, $_COOKIE));
?>
<HTML><head><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2"><title>Zmiana hasła</title>
<link href="styl.css" rel="stylesheet" type="text/css"><link rel="shortcut icon" href="../ikonka.ico" type="image/x-icon">
</head>
<body bgcolor="#FFFFB3"><?php
if (file_exists('../pl/obsluga_strony.php'))
{ echo "<input type=\"submit\" class=editor onMouseOver=\"this.className='editor1'\" onMouseOut=\"this.className='editor'\" name=\"login\" value=\"<<Powrót do działów obsługi-PL\" onClick=\"parent.location.href='../pl/obsluga_strony.php'\"><br><br>";
}
else
{
echo "<input type=\"submit\" class=editor onMouseOver=\"this.className='editor1'\" onMouseOut=\"this.className='editor'\" name=\"login\" value=\"<<Powrót do działów obsługi-PL\" onClick=\"parent.location.href='../obsluga_strony.php'\"><br><br>";
}
if (file_exists('../en/obsluga_strony.php'))
{ echo "<input type=\"submit\" class=editor onMouseOver=\"this.className='editor1'\" onMouseOut=\"this.className='editor'\" name=\"login\" value=\"<<Powrót do działów obsługi-EN\" onClick=\"parent.location.href='../en/obsluga_strony.php'\"><br><br>";
}
if (file_exists('../de/obsluga_strony.php'))
{ echo "<input type=\"submit\" class=editor onMouseOver=\"this.className='editor1'\" onMouseOut=\"this.className='editor'\" name=\"login\" value=\"<<Powrót do działów obsługi-DE\" onClick=\"parent.location.href='../de/obsluga_strony.php'\"><br><br>";
}
if (file_exists('../rus/obsluga_strony.php'))
{ echo "<input type=\"submit\" class=editor onMouseOver=\"this.className='editor1'\" onMouseOut=\"this.className='editor'\" name=\"login\" value=\"<<Powrót do działów obsługi-RUS\" onClick=\"parent.location.href='../rus/obsluga_strony.php'\"><br><br>";
}
if (file_exists('../cs/obsluga_strony.php'))
{ echo "<input type=\"submit\" class=editor onMouseOver=\"this.className='editor1'\" onMouseOut=\"this.className='editor'\" name=\"login\" value=\"<<Powrót do działów obsługi-CS\" onClick=\"parent.location.href='../cs/obsluga_strony.php'\"><br><br>";
}
include ("pass.php");
function login($alert){
global $password;
echo("<center>$alert</center>"); ?>
<center><form action="index.php" method='post'>
<table style="color: black; font-size: 10pt; font-weight: bold; background-color: #DFDCD7; border: 4px double black; margin: 2px;" ><tr><td align=center>Hasło: <input type='password' name='password' value="<?php echo($password); ?>"><br><br>
<input type='hidden' name='file' value="pass.php">
<input type='hidden' name='action' value='edit'><input type='submit' value='Przejdz' class='editor' onMouseOver="this.className='editor1'" onMouseOut="this.className='editor'"></form></td></tr></table></center>
<?php
}
switch($action){
case 'show':
if($password==$pwrd){
if(!show_source($file)){
login("<font class=blad>NIE MOŻNA OTWORZYĆ PLIKU Z HASŁEM: <b>$file</b></font>");
}
}
else {
login("<font class=blad>Złe hasło !</font>");
}
break;
case 'edit':
if($password==$pwrd){
$edfile=@fopen($file, "r");
$fc=fread($edfile, filesize($file));
fclose($edfile); ?>
<form action='index.php' method='post'>
<input type='hidden' name='action' value='add'><input type='hidden' name='password' value="<?php echo($password); ?>">
<div align="center"><table align="center"><tr><td><p>W polu czerwonym masz dotychczasowe hasło, zmień je sobie na nowe. Nie ma żadnych ograniczeń, mozna używać dowolnych znaków. Jedyna zasada: <b>zapamiętaj nowe hasło !</b></p><tr><td bgcolor="#F89C8E" align="center"><br><nobr>Tutaj zmień hasło: <input type='text' size=30 name="fc" value='<?php echo ($pwrd); ?>'></nobr><br> <br>Jesli zapomnisz hasła, to szukaj go w pliku: <input type='text' size='30' name='file' value="<?php echo ($file); ?>"><BR><BR><input type="SUBMIT" value="Zapisz zmiany" class=editor onMouseOver="this.className='editor1'" onMouseOut="this.className='editor'"></form><br><form name="Historia">
<input type="button" value="Wróć bez zapisywania zmian" onClick="parent.location.href='index.php'" class=editor onMouseOver="this.className='editor1'" onMouseOut="this.className='editor'">
<br> <br></form>
</td></tr><tr><td> </td></tr>
<tr><td>
<td> </td></tr>
<?php
}
else {
login("<font class=blad>Złe hasło !</font>");
}
break;
case 'add':
if($password==$pwrd){
$fc=stripslashes($fc);
if(is_file($file)){
copy($file, "lastedited.bak");
}
$edfile=fopen($file, "w");
flock($edfile, 2);
$a="<? \$pwrd=\"";
$b="\"; ?>";
fwrite($edfile, $a.$fc.$b);
flock($edfile, 3);
fclose($edfile);
login("<font color=red><b>Hasło do strony zmieniono !</b></font><br><b>Nowe</b> hasło brzmi:<br> <table width='200' border='1'><tr><td bgcolor='#ffffff'>$fc</td></tr></table><br><? print'($file)'; ?>");
}
else {
login("<font class=blad> Jaki¶ bł±d-hasła nie zmieniono!!!</font>");
}
break;
default:
login("<font class=blad>Zmiana hasła strony, która znajduje się <a href=\"../index.php\"> POD TYM ADRESEM</a>.</font>");
}
?>
</body></html>
Notice: Undefined variable: action in C:\xampp\htdocs\portal-slider-2\pass\index.php on line 45
Notice: Undefined variable: action in C:\xampp\htdocs\portal-slider-2\pass\index.php on line 55
Notice: Undefined variable: action in C:\xampp\htdocs\portal-slider-2\pass\index.php on line 74
Notice: Undefined variable: pwrd in C:\xampp\htdocs\portal-slider-2\pass\index.php on line 56