'; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '
FATAL ERROR
    '; echo ' MIOLO\'s CONFIGURATION FILE NOT FOUND!

    '; echo ' Looked in:
    '; foreach ( $ConfigPaths as $cp ) { echo "
  • $cp
  • "; } echo '
'; echo '
Please correct this information in '. $_SERVER['DOCUMENT_ROOT'] .$_SERVER['PHP_SELF'] ; echo '
'; exit; } // Starts the whole thing (instanciates $MIOLO) include $MIOLOCONF['home']['miolo'].'/startup.inc'; $MIOLO->Trace("HTTP_REFERER='" . getenv("HTTP_REFERER") . "'"); $module = 'common'; $MIOLO->Uses('ui/lookuptheme.class'); $MIOLO->Uses('ui/calendar.class'); $config_file = $MIOLOCONF['home']['etc'] . "/$module.conf"; if ( file_exists($config_file) ) { include_once($config_file); } $form = MIOLO::_Request('form'); $field = MIOLO::_Request('field'); $sep = MIOLO::_Request('sep'); $handler = 'calendar.php?form='.urlencode($form). '&field='.urlencode($field). '&sep=' .urlencode($sep); $date = MIOLO::_Request('date'); if ( ! $date ) { $date = MIOLO::_Request('dia').$sep.MIOLO::_Request('mes').$sep.MIOLO::_Request('ano'); } if ( ! $date || $date == $sep.$sep ) { $date = date("d{$sep}m{$sep}Y"); } $calendar = new Calendar($date); $calendar->SetURL($handler); $calendar->form_name = $form; $calendar->field_name = $field; $calendar->sep = $sep; $data = array(); $calendar->SetData($data); $theme = new LookupTheme(); $start = '
'; $end = '
'; $content = array($start,$calendar,$end); $theme->SetContent($content); $MIOLO->SetTheme($theme); $MIOLO->GenerateTheme(); ?>