$info = __('Web Online Public Access Catalog - Use the search options to find documents quickly'); // total opac result page $total_pages = 1; // default header info $header_info = ''; // HTML metadata $metadata = ''; // member login information if (utility::isMemberLogin()) { $header_info .= '<div id="memberLoginInfo">' . __('You are currently Logged on as member') . ': <strong>' . $_SESSION['m_name'] . ' (<em>' . $_SESSION['m_email'] . '</em>)</strong> <a id="memberLogout" href="index.php?p=member&logout=1">' . __('LOGOUT') . '</a></div>'; } // start the output buffering for main content ob_start(); require LIB_DIR . 'contents/common.inc.php'; if (isset($_GET['p'])) { $path = utility::filterData('p', 'get', false, true, true); // some extra checking $path = preg_replace('@^(http|https|ftp|sftp|file|smb):@i', '', $path); $path = preg_replace('@\\/@i', '', $path); // check if the file exists if (file_exists(LIB_DIR . 'contents/' . $path . '.inc.php')) { include LIB_DIR . 'contents/' . $path . '.inc.php'; if ($path != 'show_detail') { $metadata = '<meta name="robots" content="noindex, follow">'; } } else { // get content data from database $metadata = '<meta name="robots" content="index, follow">'; include LIB_DIR . 'content.inc.php'; $content = new content(); $content_data = $content->get($dbs, $path);