Ejemplo n.º 1
0
    $display = COM_createHTMLDocument('');
    COM_output($display);
    exit;
}
// Retrieves vars
$_GET = MYCALJP_stripslashes($_GET);
$_POST = MYCALJP_stripslashes($_POST);
$template = $_CONF['path_html'] . 'mycaljp/templates_search';
$T = new Template($template);
$T->set_file(array('t_index' => 'index.thtml', 't_data_source' => 'data_source.thtml', 't_data_source_no_hr' => 'data_source_no_hr.thtml', 't_category_list' => 'category_list.thtml', 't_category' => 'category.thtml', 't_item_list' => 'item_list.thtml', 't_item' => 'item.thtml'));
$T->set_var('xhtml', XHTML);
// Collects data sources
$_dateStart = COM_applyFilter($_GET['datestart']);
$_dateEnd = COM_applyFilter($_GET['dateend']);
// $dataproxy is a global object in this script and functions.inc
$dataproxy = Dataproxy::getInstance($uid);
$drivers = Dataproxy::getAllDriverNames();
$dataproxy->setDateStart($_dateStart);
$dataproxy->setDateEnd($_dateEnd);
foreach ($drivers as $driver_name) {
    $content = $driver_name;
    if ($driver_name == 'article') {
        $content = 'stories';
    }
    if (!in_array($content, $_MYCALJP2_CONF['supported_contents'])) {
        continue;
    }
    if (!($_MYCALJP2_CONF['enabled_contents'][$content] == 1)) {
        continue;
    }
    $num_items = 0;