define(BRISK_AUTH_CONF, "brisk_auth.conf.pho");
-class LoginDB {
+class BriskDB {
var $item;
var $item_n;
- function LoginDB()
+ function BriskDB()
+ {
+ log_main("BriskDB create:start");
+
+ log_main("BriskDB create:end");
+ }
+
+ function users_load()
{
GLOBAL $DOCUMENT_ROOT;
- log_main("LoginDB create:start");
if (file_exists("$DOCUMENT_ROOT/Etc/".BRISK_AUTH_CONF)) {
require("$DOCUMENT_ROOT/Etc/".BRISK_AUTH_CONF);
new LoginDBItem(4, "tre", md5("three"), "pippo@pluto.com", USER_FLAG_TY_NORM) );
}
$this->item_n = count($this->item);
- log_main("LoginDB create:end");
}
function count()
{
log_main("login_exists: ".$login);
- /* check the existence of the nick in the LoginDB */
+ /* check the existence of the nick in the BriskDB */
for ($i = 0 ; $i < $this->item_n ; $i++) {
if (strcasecmp($this->item[$i]->login, $login) == 0) {
log_main("login[".$i."]: ".$this->item[$i]->login);
log_main("login_exists: ".$login);
- /* check the existence of the nick in the LoginDB */
+ /* check the existence of the nick in the BriskDB */
for ($i = 0 ; $i < $this->item_n ; $i++) {
if (strcasecmp($this->item[$i]->login, $login) == 0) {
log_main("login[".$i."]: ".$this->item[$i]->login);
{
log_main("getmail");
- /* check the existence of the nick in the LoginDB */
+ /* check the existence of the nick in the BriskDB */
for ($i = 0 ; $i < $this->item_n ; $i++) {
if (strcasecmp($this->item[$i]->login, $login) == 0) {
log_main("login[".$i."]: ".$this->item[$i]->login);
{
log_main("getmail");
- /* check the existence of the nick in the LoginDB */
+ /* check the existence of the nick in the BriskDB */
for ($i = 0 ; $i < $this->item_n ; $i++) {
if (strcasecmp($this->item[$i]->login, $login) == 0) {
log_main("login[".$i."]: ".$this->item[$i]->login);
log_main("login_verify: ".$login);
- /* check the existence of the nick in the LoginDB */
+ /* check the existence of the nick in the BriskDB */
for ($i = 0 ; $i < $this->item_n ; $i++) {
log_main("login_verify: LOOP");
if (strcasecmp($this->item[$i]->login, $login) == 0) {