bludit/kernel/db_users.class.php
Diego Najar 29d06b62a3 mac
2015-03-08 14:02:59 -03:00

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]);
}
}
?>