blob: 9cd6b7cb1a43865e2fe6a520943cf9bd0c41eb26 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
require_once "model/common.mod.php";
require_once "class/user.class.php";
class AuthModel extends CommonModel
{
/*
* Default action
*/
function deflt()
{
/* Make sure user accounts exist since this is preping the page to login. If there are no accounts in the DB,
* return false to signal controller to display the admin account creation */
$userTbl = new User();
if (count($userTbl->getAllUsers_orderByName()) == 0)
return false;
return true;
}
}
?>
|