$this->_connect();
}
if (isset($_DB_DATAOBJECT['INI'][$this->_database][$this->tableName()."__keys"])) {
- return array_keys(array_filter($_DB_DATAOBJECT['INI'][$this->_database][$this->tableName()."__keys"], function($v,$k) {
- return $v != 'U';
- },ARRAY_FILTER_USE_BOTH));
+
+ $ret = array();
+ foreach($_DB_DATAOBJECT['INI'][$this->_database][$this->tableName()."__keys"] as $k=>$v) {
+ if ($v != 'U') {
+ $ret[] = $k;
+ }
+ }
+
+
+ return $ret;
+
}
$this->databaseStructure();
if (isset($_DB_DATAOBJECT['INI'][$this->_database][$this->tableName()."__keys"])) {
- return array_keys(array_filter($_DB_DATAOBJECT['INI'][$this->_database][$this->tableName()."__keys"], function($v,$k) {
- return $v != 'U';
- },ARRAY_FILTER_USE_BOTH));
+ $ret = array();
+ foreach($_DB_DATAOBJECT['INI'][$this->_database][$this->tableName()."__keys"] as $k=>$v) {
+ if ($v != 'U') {
+ $ret[] = $k;
+ }
+ }
+ return $ret;
}
return array();
}
}
$out = $fn . sprintf('-conv-%02d.'.str_replace('e', '', $ext), $pg);
//$out = $fn . '-conv-01.jpg';
-
+ clearstatcache();
+
$fe = file_exists($out) && filesize($out) ? true : false;
if ($fe) {
$this->debug("GOT conv file: renaming $out to $target");
- rename($out, $target);
+ rename($out, $target);
@chmod($target,fileperms($fn));
return $target;
$out = $fn . sprintf('-conv-%03d.'.str_replace('e', '', $ext), $pg);
//$out = $fn . '-conv-001.jpg'; .. if more than 100 pages...
-
+ clearstatcache();
+
$fe = file_exists($out) && filesize($out) ? $out : false;
if ($fe) {
$this->debug("GOT conv file: renaming $out to $target");