Location: PHPKode > projects > SecurityAdmin for PHP > psa-4.0.3/include/main.php
<?php
    if(isset($_POST['PSA_LOGIN'])){
        $result=$PSA_SYS->login($_POST['PSA_user'],$_POST['PSA_pass']);
        if(!$result){
            $PSA_SYS->error();
            $PSA_SYS->login_form();
        }else{
            echo '    <p>',_("Login Successful"),'</p>',"\n";
        }
    }else{
        $PSA_SYS->logout();
        $PSA_SYS->login_form();
        echo '    <p>',_("You must have administrative rights to make changes on this system. If you do not, you will keep coming back to this page."),'</p>',"\n";
    }
?>
Return current item: SecurityAdmin for PHP