function init() { initGlobals(); foreach ($GLOBALS['req'] as $key => $val) { $GLOBALS['req'][$key] = request($key); } }
$remoteIP = ''; $authed = ''; $viewmode = ''; $semid = ''; $semislocked = ''; unset($GLOBALS['php_errormsg']); $cache['nodes'] = array(); $cache['unityids'] = array(); $cache['nodeprivs']['resources'] = array(); $docreaders = array(); $shibauthed = 0; require_once ".ht-inc/states.php"; require_once '.ht-inc/errors.php'; require_once '.ht-inc/utils.php'; dbConnect(); initGlobals(); $modes = array_keys($actions['mode']); $args = array_keys($actions['args']); $hasArg = 0; if (in_array($mode, $modes)) { $actionFunction = $actions['mode'][$mode]; if (in_array($mode, $args)) { $hasArg = 1; $arg = $actions['args'][$mode]; } } else { $actionFunction = "main"; } checkAccess(); sendHeaders(); printHTMLHeader();