public $person_id; // int(11)
public $remarks; // blob(65535) blob
public $person_table; // string(64)
public $person_id; // int(11)
public $remarks; // blob(65535) blob
public $person_table; // string(64)
$cfg = HTML_FlexyFramework::get()->Pman;
if (!empty($cfg['authTable'])) {
$person =$cfg['authTable'];
}
$jt = DB_DataObject::factory($person);
$cfg = HTML_FlexyFramework::get()->Pman;
if (!empty($cfg['authTable'])) {
$person =$cfg['authTable'];
}
$jt = DB_DataObject::factory($person);
- $this->whereAdd("
- person_table = '{$jt->tableName()}'
- OR
- person_table = ''
- OR person_table IS NULL"
- ); // default to our standard.. - unless otherwise requested..
+ //$this->whereAdd("
+ // person_table = '{$jt->tableName()}'
+ // OR
+ // person_table = ''
+ // OR person_table IS NULL"
+ //); // default to our standard.. - unless otherwise requested..
$dt = date('Y-m-d' , strtotime($q['query']['to']));
$this->whereAdd(" {$tn}.event_when <= '$dt' ");
}
$dt = date('Y-m-d' , strtotime($q['query']['to']));
$this->whereAdd(" {$tn}.event_when <= '$dt' ");
}
if (!$au->hasPerm("Admin.Admin_Tab", 'S')) {
//DB_DataObject::DebugLevel(1);
// they can only view their changes..
if (!$au->hasPerm("Admin.Admin_Tab", 'S')) {
//DB_DataObject::DebugLevel(1);
// they can only view their changes..
if (isset($q['query']['person_sum'])) {
//DB_DataObject::debugLevel(1);
$this->_extra_cols = array('qty' );
if (isset($q['query']['person_sum'])) {
//DB_DataObject::debugLevel(1);
$this->_extra_cols = array('qty' );
if (isset($q['_join_cols'])) {
$jcs = explode(',',$q['_join_cols'] );
//DB_DataObject::DebugLevel(1);
if (isset($q['_join_cols'])) {
$jcs = explode(',',$q['_join_cols'] );
//DB_DataObject::DebugLevel(1);
if (!method_exists($obj,'relatedWhere')) {
$roo->jerr( $q['_related_on_table'] . " Does not have method relatedWhere :" .
implode(',', get_class_methods($obj)));
}
if ($obj && method_exists($obj,'relatedWhere')) {
$ar = $obj->relatedWhere();
if (!method_exists($obj,'relatedWhere')) {
$roo->jerr( $q['_related_on_table'] . " Does not have method relatedWhere :" .
implode(',', get_class_methods($obj)));
}
if ($obj && method_exists($obj,'relatedWhere')) {
$ar = $obj->relatedWhere();
if (empty($au) || (isset($au->id) && empty($au->id))) {
// not authenticated - and a standard id based object
$this->person_id = 0;
} else {
$col = $au->tableName() == "Person" ? 'person_id' : $au->tableName() . '_id';
// does $col exist?
if (empty($au) || (isset($au->id) && empty($au->id))) {
// not authenticated - and a standard id based object
$this->person_id = 0;
} else {
$col = $au->tableName() == "Person" ? 'person_id' : $au->tableName() . '_id';
// does $col exist?
$col = isset($cols[$col]) ? $col : 'person_id'; // for BC.... - revert to using person_id
$this->{$col} = $au->pid();
$col = isset($cols[$col]) ? $col : 'person_id'; // for BC.... - revert to using person_id
$this->{$col} = $au->pid();
}
$this->person_table = $au ? $au->tableName() : '';
$this->ipaddr = isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : 'cli';
}
$this->person_table = $au ? $au->tableName() : '';
$this->ipaddr = isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : 'cli';
// should we JSON serialize this?
$n = empty($new->$k) ? '' : $new->$k;
$o = empty($old->$k) || empty($old->$k) ? '' : $old->$k;
// should we JSON serialize this?
$n = empty($new->$k) ? '' : $new->$k;
$o = empty($old->$k) || empty($old->$k) ? '' : $old->$k;
- mkdir(dirname($file),0700,true); // this might fail if it does not have correct permissions..
+
+ @mkdir(dirname($file),0700,true); // this might fail if it does not have correct permissions..
+ if (!file_exists(dirname($file))) {
+ die("could not create $file - permissons are not correct"); // fatal, otherwise we loop!?
+ }