PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Marcus Brasizza   Login with Linux passwd or shadow   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example to authenticate
Class: Login with Linux passwd or shadow
Authenticate Linux users with passwd or shadow
Author: By
Last change:
Date: 11 years ago
Size: 222 bytes
 

Contents

Class file image Download
<?php
$lin
= new LinuxAuth();
$myPass = base64_encode('myp4ss');
$myUser = 'root';
if(
$lin->authUser($myUser,$myPass)){
   
    echo
" YOU CAN HAVE THE ACCESS";
}else{
    echo
" FAILED TO ACCESS";
}
?>
?>