<?php
#$GLOBALS['web'] = Db::p('extras')==='0' ? true : false;
+if (empty($DIR_SQLITE) or !file_exists('/opt/www/sem_ui/var/db/semantico.db')) return;
$GLOBALS['web'] = true;
if (Db::p('noextra')==='1') $GLOBALS['web'] = false;
# Happend when include from a function
if (!isset($Db)) global $Db, $Table;
+switch ($Db->mime2ext($Db->content_type())) {
+ case "html":
+ $Db->pdef('format','table');
+ break;
+ case "txt":
+ $Db->pdef('format','human');
+ break;
+ default:
+ #bye($type);
+ $Db->pdef('format','csv');
+}
return $Db->action($Db->p('action'),$Table);
?>