session_start(); if (isset($_GET['logout'])) { $_SESSION['auth'] = False; $_SESSION['auth_admin'] = False; } if (@$_POST['password']=='tanulo') $_SESSION['auth'] = True; if (@$_POST['password']=='retek') { $_SESSION['auth'] = True; $_SESSION['auth_admin'] = True; } if (isset($_GET['gotoAdmin']) ) { if (@$_SESSION['auth_admin']) { header('Location: /taoroot/'); die; } $_SESSION['auth'] = False; } if ( @$_SESSION['auth'] ) { header('Location: index.php'); die; } ?>