Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
doc /
Auth /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
logging.php
1.52
KB
-rw-r--r--
multi-container.php
1.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : logging.php
<?php require_once "Auth.php"; require_once 'Log.php'; require_once 'Log/observer.php'; // Callback function to display login form function loginFunction($username = null, $status = null, &$auth = null) { /* * Change the HTML output so that it fits to your * application. */ echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">"; echo "Username: <input type=\"text\" name=\"username\"><br/>"; echo "Password: <input type=\"password\" name=\"password\"><br/>"; echo "<input type=\"submit\">"; echo "</form>"; } class Auth_Log_Observer extends Log_observer { var $messages = array(); function notify($event) { $this->messages[] = $event; } } $options = array( 'enableLogging' => true, 'cryptType' => 'md5', 'users' => array( 'guest' => md5('password'), ), ); $a = new Auth("Array", $options, "loginFunction"); $infoObserver = new Auth_Log_Observer(AUTH_LOG_INFO); $a->attachLogObserver($infoObserver); $debugObserver = new Auth_Log_Observer(AUTH_LOG_DEBUG); $a->attachLogObserver($debugObserver); $a->start(); if ($a->checkAuth()) { /* * The output of your site goes here. */ print "Authentication Successful.<br/>"; } print '<h3>Logging Output:</h3>' .'<b>AUTH_LOG_INFO level messages:</b><br/>'; foreach ($infoObserver->messages as $event) { print $event['priority'].': '.$event['message'].'<br/>'; } print '<br/>' .'<b>AUTH_LOG_DEBUG level messages:</b><br/>'; foreach ($debugObserver->messages as $event) { print $event['priority'].': '.$event['message'].'<br/>'; } print '<br/>'; ?>
Close