$cmd[] = '-'.$k . ($v === true ? '' : '='. $v);
}
+
$cmd = implode(' ', $cmd) ;
//$cmd = implode(' ', $cmd) . ' ' . (strlen($ocfg['template']) ? escapeshellarg($template) : '');
if (isseT($_REQUEST['_debug'])) {
exit;
}
- // echo $cmd;exit;
+// echo $cmd;exit;
$res = `$cmd`;
// var_dump( $res);
}
function syncDB($cfg)
{
- $roo = HTML_FlexyFramework::get()->page;
+ $dir = HTML_FlexyFramework::get()->Pman;
$do = DB_DataObject::Factory('invchead');
if (isset($cfg['template'])) {
$template = realpath(dirname(__FILE__).'/report_templates'). '/'.$cfg['template']. '.xml';
- print_r($roo->rootURL);exit;
+
+ if(isset($dir['report_template_dir'])){
+ $template = realpath($dir['report_template_dir']). '/'.$cfg['template']. '.xml';
+ }
+
unset($cfg['template']);
}
// do we have a localized version???