SESSION_START(); include 'needs/connString.php'; include 'func/functions.php'; ?> <!DOCTYPE html> <html> <head> <title>Payroll Generation</title> <meta name="viewport" content = "width=device-width, initial-scale=1.0"> <link rel='stylesheet' type='text/css' href='css/bootstrap.css'> </head> <body> <?php if (isset($_SESSION['posCode'])) { accessType(); echo getPos(); ?> <div class='container'> <div class='row'> <div id='view'> </div> </div> </div> <?php } if (isset($_GET['view'])) { } else { header("LOCATION: login.php");
putenv("TZ={$timezone}"); } // init uri code $GLOBALS['eZGlobalRequestURI'] = eZSys::serverVariable('REQUEST_URI'); eZSys::init('index.php', $ini->variable('SiteAccessSettings', 'ForceVirtualHost') === 'true'); $uri = eZURI::instance(eZSys::requestURI()); $GLOBALS['eZRequestedURI'] = $uri; // Check for extension eZExtension::activateExtensions('default'); // load siteaccess if (method_exists('eZSiteAccess', 'match') && method_exists('eZSiteAccess', 'change')) { $access = eZSiteAccess::match($uri, eZSys::hostname(), eZSys::serverPort(), eZSys::indexFile()); $access = eZSiteAccess::change($access); } else { include_once 'access.php'; $access = accessType($uri, eZSys::hostname(), eZSys::serverPort(), eZSys::indexFile()); $access = changeAccess($access); } $GLOBALS['eZCurrentAccess'] = $access; // Check for new extension loaded by siteaccess eZExtension::activateExtensions('access'); $db = eZDB::instance(); if ($db->isConnected()) { eZSession::start(); } else { exitWithInternalError(); return; } $moduleINI = eZINI::instance('module.ini'); $globalModuleRepositories = $moduleINI->variable('ModuleSettings', 'ModuleRepositories'); $globalModuleRepositories[] = 'extension/eztags/modules';