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
![]()