25 lines
446 B
PHP
25 lines
446 B
PHP
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
class dbUsers extends DB_SERIALIZE
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct(PATH_DATABASES.'users.php');
|
|
}
|
|
|
|
// Return an array with the username databases
|
|
function get($username)
|
|
{
|
|
return $this->vars['users'][$username];
|
|
}
|
|
|
|
// Return TRUE if the post exists, FALSE otherwise.
|
|
public function validUsername($username)
|
|
{
|
|
return isset($this->vars['users'][$username]);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|