return true;
}
+ // http basic auth..
+ $u = DB_DataObject::factory('Person');
+
+ if (!empty($_SERVER['PHP_AUTH_USER'])
+ &&
+ !empty($_SERVER['PHP_AUTH_PW'])
+ &&
+ $u->get('email', $_SERVER['PHP_AUTH_USER'])
+ &&
+ $u->checkPassword($_SERVER['PHP_AUTH_PW'])
+ ) {
+ $_SESSION[__CLASS__][$sesPrefix .'-auth'] = serialize($u);
+ return true;
+ }
+
+
+
// not in session or not matched...
$u = DB_DataObject::factory('Person');
// can list current - so that it does not break!!!
$this->whereAdd("$tn_p.id IN
( SELECT distinct person_id FROM $tn_pd WHERE
- role = '". $x->escape($q['query']['role']) ."'
+ role = '". $this->escape($q['query']['role']) ."'
)");
}