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');
if ( $q['query']['not_in_directory'] > -1) {
$tn_pd = DB_DataObject::Factory('ProjectDirectory')->tableName();
// can list current - so that it does not break!!!
- $x->whereAdd("$tn_p.id NOT IN
+ $this->whereAdd("$tn_p.id NOT IN
( SELECT distinct person_id FROM $tn_pd WHERE
project_id = " . $q['query']['not_in_directory'] . " AND
company_id = " . $this->company_id . ')');
//
$tn_pd = DB_DataObject::Factory('ProjectDirectory')->tableName();
// can list current - so that it does not break!!!
- $x->whereAdd("$tn_p.id IN
+ $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']) ."'
+ )");
+
}