foreach ($jakXML->children() as $child) { $versioncont .= "define('LS_VC_" . strtoupper($child->getName()) . "','" . $child . "');\n"; } } else { $jakXML = jak_load_xml_from_url('http://vc.livesupportrhino.com/rhinolight.xml?url=' . $urlxml["host"]); if ($jakcurlxml) { $versioncont .= "define('LS_VC_STATUS',1);\n"; foreach ($jakXML->children() as $child) { $versioncont .= "define('LS_VC_" . strtoupper($child->getName()) . "','" . $child . "');\n"; } } else { $versioncont .= "define('LS_VC_STATUS',0);\n"; } } $versioncont .= "?>"; LS_base::lsWriteinCache($cacheverfile, $versioncont, ''); if (file_exists($cacheverfile)) { include_once $cacheverfile; } } $template = 'index.php'; } $checkp = 1; } if ($page == 'logout') { $checkp = 1; if (LS_USERID_RHINO) { $lsuserlogin->lsLogout(LS_USERID_RHINO); $LS_PROVED = 1; $html_title = $tl['logout']['l']; $template = 'success.php';
$cachestufffile = APP_PATH . LS_CACHE_DIRECTORY . '/stuff.php'; if (!file_exists($cachestufffile)) { $allstuff = "<?php\n"; // Get the general settings out the database $resultf = $lsdb->query('SELECT id, path, name FROM ' . DB_PREFIX . 'jrc_files'); while ($rowf = $resultf->fetch_assoc()) { // collect each record into a define $filesgrid[] = $rowf; } // Get the general settings out the database $resultr = $lsdb->query('SELECT id, title FROM ' . DB_PREFIX . 'jrc_responses'); while ($rowr = $resultr->fetch_assoc()) { // collect each record into a define $responsegrid[] = $rowr; } $allstuff .= "\$responsegserialize = '" . base64_encode(gzcompress(serialize($responsegrid))) . "';\n\n\$LV_RESPONSES = unserialize(gzuncompress(base64_decode(\$responsegserialize)));\n\n"; $allstuff .= "\$filesgserialize = '" . base64_encode(gzcompress(serialize($filesgrid))) . "';\n\n\$LV_FILES = unserialize(gzuncompress(base64_decode(\$filesgserialize)));\n\n"; $allstuff .= "?>"; LS_base::lsWriteinCache($cachestufffile, $allstuff, ''); } // Now include the created definefile include_once $cachestufffile; // timezone from server date_default_timezone_set(LS_TIMEZONESERVER); $lsdb->query('SET time_zone = "' . date("P") . '"'); // Check if https is activated if (LS_SITEHTTPS) { define('BASE_URL', 'https://' . FULL_SITE_DOMAIN . _APP_MAIN_DIR . '/'); } else { define('BASE_URL', 'http://' . FULL_SITE_DOMAIN . _APP_MAIN_DIR . '/'); }