$col = $defaultCollection; // valor default criada no script de configuracao do sistema $VARS["col"] = $col; // registra no array vars para uso na XSL } if (!isset($site)) { $site = $defaultSite; // valor default criada no script de configuracao do sistema $VARS["site"] = $site; // registra no array vars para uso na XSL } $index = $_REQUEST["index"]; $sort = $_REQUEST["sort"]; //sort parameter if (isset($_REQUEST['sort']) && $_REQUEST['sort'] != "") { $sort = getSortValue($colectionData, $_REQUEST["sort"]); //get sort field to apply } else { $sort = getDefaultSort($colectionData, $q); //get default sort } $output = isset($_REQUEST["output"]) && $_REQUEST["output"] != '' ? $_REQUEST["output"] : "json"; $format = $_REQUEST["format"]; $where = $_REQUEST["where"]; //select where search $whereFilter = getWhereFilter($colectionData, $where); $filter_chain = $_REQUEST["filter_chain"]; //user filter sequence (history) $VARS["count"] = $count; //DIA server connection object $dia = new Dia($site, $col, $count, $output, $lang);
$site = $_REQUEST["site"]; if ( !isset($col) ){ $col = $defaultCollection; // valor default criada no script de configuracao do sistema $VARS["col"] = $col; // registra no array vars para uso na XSL } if ( !isset($site) ){ $site= $defaultSite; // valor default criada no script de configuracao do sistema $VARS["site"] = $site; // registra no array vars para uso na XSL } $index= $_REQUEST["index"]; $sort = $_REQUEST["sort"]; //sort parameter if (isset($_REQUEST['sort']) && $_REQUEST['sort'] != ""){ $sort = getSortValue($colectionData,$_REQUEST["sort"]); //get sort field to apply }else{ $sort = getDefaultSort($colectionData, $q); //get default sort } $output = ( isset($_REQUEST["output"]) && $_REQUEST["output"] != '' ? $_REQUEST["output"] : "json" ); $where = $_REQUEST["where"]; //select where search $whereFilter = getWhereFilter($colectionData,$where); $filter_chain = $_REQUEST["filter_chain"]; //user filter sequence (history) $VARS["count"] = $count; //DIA server connection object $dia = new Dia($site, $col, $count, $output, $lang); $page= new Page(); $initial_restricion = html_entity_decode($colectionData->restriction);