bludit/kernel/db_users.class.php

25 lines
446 B
PHP
Raw Normal View History

2015-03-08 18:02:59 +01:00
<?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]);
}
}
?>