1. Go to this page and download the library: Download tuxudo/audit_mr library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tuxudo / audit_mr example snippets
} else {
error('Wrong username or password', 'auth.wrong_user_or_pass');
}
} else {
// Load and audit the login
$audit = new Audit_mr_model;
$audit->add_audit_user("Login Failed", $login);
error('Wrong username or password', 'auth.wrong_user_or_pass');
}
// Initialize session
$this->authorized();
// Check if saml
// Initialize session
$this->authorized();
// Load and audit the logout
$audit = new Audit_mr_model;
$audit->add_audit("Logout");
// Check if saml
session_regenerate_id();
// Load and audit the login
$audit = new Audit_mr_model;
$audit->add_audit("Login");
return true;
if ($authObj->getAuthStatus() == 'failed'){
return false;
}
if ($authObj->getAuthStatus() == 'unauthorized'){
error('Not authorized', 'auth.not_authorized');
if ($authObj->getAuthStatus() == 'failed'){
// Load and audit the login
$audit = new Audit_mr_model;
$audit->add_audit_user("Login Failed", $login);
return false;
}
if ($authObj->getAuthStatus() == 'unauthorized'){
// Load and audit the login
$audit = new Audit_mr_model;
$audit->add_audit_user("Unauthorized", $login);
error('Not authorized', 'auth.not_authorized');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.