Initial commit
This commit is contained in:
commit
529efd53a1
140 changed files with 10310 additions and 0 deletions
57
admin-webpwd.php
Normal file
57
admin-webpwd.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
|
||||
include_once("./include/cfg-petar.php");
|
||||
include_once("./include/layout.php");
|
||||
include_once("./include/users.php");
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<!-- ------------------------------------------------------------------------ -->
|
||||
|
||||
<?php require 'include/inc-header.php';?>
|
||||
|
||||
<!-- ------------------------------------------------------------------------ -->
|
||||
|
||||
<?php require 'include/inc-top.php';?>
|
||||
|
||||
<!-- ------------------------------------------------------------------------ -->
|
||||
|
||||
<tr bgcolor=navy align=center>
|
||||
<td colspan=1><font color=yellow><b>Cambio password di accesso</b></font></td>
|
||||
|
||||
|
||||
<?php
|
||||
echo "<tr><td>";
|
||||
|
||||
$_REQUEST["step"] = $_REQUEST["step"] ?? '';
|
||||
if (!$_REQUEST["step"]){
|
||||
|
||||
echo "<FORM NAME=npwd ACTION=".$_SERVER["PHP_SELF"]." METHOD=POST>".
|
||||
"<b>Nuova pwd</b>".
|
||||
" ".
|
||||
"<INPUT TYPE=TEXT NAME=npwd SIZE=8 MAXLENGTH=30>".
|
||||
" ".
|
||||
"[ <a href='javascript:document.npwd.submit();'>Salva pwd</a> ]".
|
||||
"<INPUT TYPE=HIDDEN name=step value=1></FORM>";
|
||||
|
||||
} else {
|
||||
|
||||
$handle = fopen("$program_admin_user", "w");
|
||||
fwrite($handle,"admin:");
|
||||
fwrite($handle,crypt($_REQUEST["npwd"], '$6$')."\n");
|
||||
fclose($handle);
|
||||
|
||||
echo "Aggiornamento dati effettuato".
|
||||
"<p><a href=index.php>Home Page</a>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!-- ------------------------------------------------------------------------ -->
|
||||
|
||||
<?php require 'include/inc-footer.php';?>
|
||||
|
||||
<!-- ------------------------------------------------------------------------ -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue