* $Date: 2009-12-02 09:21:41 -0800 (Wed, 02 Dec 2009) $ */ $disable_cache_control = TRUE; require_once '..' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'global.inc.php'; //When going through the installer or using quickpunch the user isnt logged in, so we still //need to be able to load this file. if (isset($config_vars['other']['installer_enabled']) and $config_vars['other']['installer_enabled'] == 1 or stristr($_SERVER['HTTP_REFERER'], 'quick_punch')) { //FIXME: Remove the authenticate flag from sm_header and installer. $authenticate = FALSE; } require_once '..' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'Interface.inc.php'; //Use session created date or login date. //So this file is updated each time they login. forceCacheHeaders(NULL, $authentication->getCreatedDate()); $pplf = new PayPeriodListFactory(); $js_calendar_pay_period_dates = $pplf->getJSCalendarPayPeriodArray(); ?> var TTProductEdition = <?php if (isset($current_company) and is_object($current_company) and getTTProductEdition() >= $current_company->getProductEdition()) { echo (int) $current_company->getProductEdition(); } else { echo (int) getTTProductEdition(); } ?> ; var JSCalendarPayPeriodEndDates = <?php echo Misc::getJSArray($js_calendar_pay_period_dates['end_date']) . "\n"; ?> var JSCalendarPayPeriodTransactionDates = <?php echo Misc::getJSArray($js_calendar_pay_period_dates['transaction_date']) . "\n";