include_once 'pages/individual_getfile.php'; exit; // } elseif ($environment->getConfiguration("c_shibboleth_direct_login")) { } elseif ($shib_direct_login) { include_once 'pages/context_login.php'; exit; } else { // no session created // so create session and redirect to requested page $session = new cs_session_item(); $session->createSessionID('guest'); $current_portal_id = $environment->getCurrentPortalID(); if (!empty($current_portal_id)) { $session->setValue('commsy_id', $current_portal_id); } else { $server_id = $environment->getServerID(); if (!empty($server_id)) { $session->setValue('commsy_id', $server_id); } } // external reload to check javascript $session_manager = $environment->getSessionManager(); $session_manager->save($session); if (!$outofservice) { include_once 'pages/context_reload.php'; exit; } else { $SID = $session->getSessionID(); } } if (!empty($SID)) {
include_once 'functions/text_functions.php'; $_POST = encode(FROM_FORM, $_POST); $_GET = encode(FROM_FORM, $_GET); // include classes needed for this script include_once 'classes/cs_session_item.php'; include_once 'classes/cs_session_manager.php'; $current_user = $environment->getCurrentUser(); /*********** INITIALIZE ENVIRONMENT ***********/ // initialize environment // - context id // - module // - function // and context object $cid_not_set = false; if (!isset($_GET['cid'])) { $current_context = $environment->getServerID(); $cid_not_set = true; } else { $current_context = $_GET['cid']; } if (!isset($_GET['mod'])) { $current_module = 'homepage'; } elseif (isset($_GET['mod'])) { $current_module = $_GET['mod']; } if ($current_module != 'homepage' and $current_module != 'picture' and $current_module != 'context') { $current_module = 'homepage'; } if (!isset($_GET['fct'])) { if ($current_context != $environment->getServerID()) { $current_function = 'detail';
#$id_array = $portal->getGroupIDArray(); $id_array = $portal->getActiveGroupIDArray(); fwrite($file, '<h4>Group Rooms (' . count($id_array) . ')</h4>' . LF); performRoomIDArray($id_array, $portal->getTitle()); unset($id_array); fwrite($file, '<hr/>' . LF); fwrite($file, '<h4>Workflow</h4>' . LF); cron_workflow($file, $portal); fwrite($file, '<hr/>' . LF); // unset unset($portal); } } unset($portal_manager); // server cron jobs must be run AFTER all other portal crons if (!isset($context_id) or $context_id == $environment->getServerID()) { fwrite($file, '<h4>' . $environment->getTextConverter()->text_as_html_short($server_item->getTitle()) . ' - Server</h4>' . LF); displayCronResults($server_item->runCron()); fwrite($file, '<hr/>' . BRLF); } unset($server_item); unset($environment); $time_end = getmicrotime(); $end_time = date('d.m.Y H:i:s'); $time = round($time_end - $time_start, 0); echo '<hr/>' . LF; fwrite($file, '<hr/>' . LF); echo '<h1>CRON END</h1>' . LF; fwrite($file, '<h1>CRON END</h1>' . LF); echo '<h2>Time</h2>' . LF; fwrite($file, '<h2>Time</h2>' . LF);