Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Simple Authentication System

System for accesses management that doesn't use MySQL, but a file to save data.



<?
session_start();
if($check){
    if(!$userid){
        $erry="not userid";
    }else{
        $fp = fopen("user.txt","r");
        while($userinfo = fscanf($fp,"%s\t%s\t%si\n")){
            list($id,$name,$pass)=$userinfo;
            if($name == $userid && $pass == $password){
                $auth['userid']=$userid;
                $auth['login']=1;
                session_register("auth");
                header("Location: $webroot");
            }
        }
    }
}
include("login.ihtml");
?>

Other files and instructions in the zip file


Download code...


Print this page


 

Inizio pagina

risorse per webmaster