ACC SHELL
<?
session_start();
require "./classes/classes.php";
$pripojeni = new CDatabaze ( $GLOBALS['conf_uzivatel'], $GLOBALS['conf_heslodb'], $GLOBALS['conf_server'], $GLOBALS['conf_databaze']);
$administrace = new CAdministrace ( $pripojeni );
if ( ($_POST['heslo']!="") ){
if ($administrace->admin_send_pwd($_REQUEST['heslo'])){
header("Location: ./index.php?pwd_sent=ok");
}
else{
header("Location: ./index.php?lost_pwd=true&pwd_sent=failed");
}
}
else {
header("Location: ./index.php");
}
?>
ACC SHELL 2018