PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 3 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";
}
?>
?>