CAT_Object::printFatalError(CAT_Object::lang()->translate('No search library installed!'), CAT_Helper_Page::getLink($page_id)); } // Required page details $page_id = -1; $page_description = ''; $page_keywords = ''; // load search library require_once CAT_PATH . '/modules/' . SEARCH_LIBRARY . '/library.php'; $s = new CATSearch(); $page_id = $s->getSearchPageID(); // load droplets extensions $h = CAT_Helper_Droplet::getInstance(); $h->register_droplet_css('SearchBox', $page_id, '/modules/' . SEARCH_LIBRARY . '/templates/default/', 'search.box.css'); $h->register_droplet_js('SearchBox', $page_id, '/modules/' . SEARCH_LIBRARY . '/templates/default/', 'search.box.js'); if (isset($_GET['string'])) { CAT_Helper_Page::addCSS(CAT_URL . '/modules/' . SEARCH_LIBRARY . '/templates/default/frontend.css'); } // add language file CAT_Helper_I18n::getInstance()->addFile(LANGUAGE . '.php', CAT_PATH . '/modules/' . SEARCH_LIBRARY . '/languages/'); // add template search path global $parser; $parser->setPath(CAT_PATH . '/modules/' . SEARCH_LIBRARY . '/templates/custom'); $parser->setFallbackPath(CAT_PATH . '/modules/' . SEARCH_LIBRARY . '/templates/default'); define('PAGE_CONTENT', CAT_PATH . '/modules/' . SEARCH_LIBRARY . '/index.php'); // Get the referrer page ID if it exists if (isset($_REQUEST['referrer']) && is_numeric($_REQUEST['referrer']) && intval($_REQUEST['referrer']) > 0) { define('REFERRER_ID', intval($_REQUEST['referrer'])); } else { define('REFERRER_ID', 0); } // Include index (wrapper) file
$root = "../"; $level = 1; while ($level < 10 && !file_exists($root . '/framework/class.secure.php')) { $root .= "../"; $level += 1; } if (file_exists($root . '/framework/class.secure.php')) { include $root . '/framework/class.secure.php'; } else { trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR); } } $val = CAT_Helper_Validate::getInstance(); $user = CAT_Users::getInstance(); $id = $user->get_user_id(); // this one is only used for the frontend! if (!FRONTEND_LOGIN || !FRONTEND_SIGNUP) { // no frontend login, no sign up if (INTRO_PAGE) { die(header('Location: ' . CAT_URL . PAGES_DIRECTORY . '/index.php')); } else { die(header('Location: ' . CAT_URL . '/index.php')); } } CAT_Helper_Page::getVirtualPage('Sign-up'); CAT_Helper_Page::addCSS(CAT_URL . '/account/css/preferences.css'); CAT_Registry::register('PAGE_CONTENT', CAT_PATH . '/account/signup_form.php', true); // Set auto authentication to false $auto_auth = false; // Include the index (wrapper) file require CAT_PATH . '/index.php';