$content = new content(); $content_data = $content->get($dbs, 'headerinfo'); if ($content_data) { $header_info .= '<div id="headerInfo">' . $content_data['Content'] . '</div>'; unset($content_data); } } } include LIB_DIR . 'contents/default.inc.php'; } // main content grab $main_content = ob_get_clean(); // template output if ($sysconf['template']['base'] == 'html') { // create the template object $template = new simbio_template_parser($sysconf['template']['dir'] . '/' . $sysconf['template']['theme'] . '/index_template.html'); // assign content to markers $template->assign('<!--PAGE_TITLE-->', $page_title); $template->assign('<!--CSS-->', $sysconf['template']['css']); $template->assign('<!--INFO-->', $info); $template->assign('<!--LIBRARY_NAME-->', $sysconf['library_name']); $template->assign('<!--LIBRARY_SUBNAME-->', $sysconf['library_subname']); $template->assign('<!--GMD_LIST-->', $gmd_list); $template->assign('<!--COLLTYPE_LIST-->', $colltype_list); $template->assign('<!--LOCATION_LIST-->', $location_list); $template->assign('<!--LANGUAGE_SELECT-->', $language_select); $template->assign('<!--ADVSEARCH_AUTHOR-->', $advsearch_author); $template->assign('<!--ADVSEARCH_TOPIC-->', $advsearch_topic); $template->assign('<!--HEADER_INFO-->', $header_info); $template->assign('<!--MAIN_CONTENT-->', $main_content); if ($metadata) {
<form action="index.php?p=login" method="post"> <div class="heading1">Username</div> <div><input type="text" name="userName" style="width: 80%;" /></div> <div class="heading1 marginTop">Password</div> <div><input type="password" name="passWord" style="width: 80%;" /></div> <div class="marginTop"><input type="submit" name="logMeIn" value="Logon" id="loginButton" /> <input type="button" value="Home" id="homeButton" onclick="javascript: location.href = 'index.php';" /> </div> </form> </div> <?php // main content $main_content = ob_get_clean(); // page title $page_title = $sysconf['library_name'] . ' :: Library Automation LOGIN'; if ($sysconf['template']['base'] == 'html') { // create the template object $template = new simbio_template_parser($sysconf['template']['dir'] . '/' . $sysconf['template']['theme'] . '/login_template.html'); // assign content to markers $template->assign('<!--PAGE_TITLE-->', $page_title); $template->assign('<!--CSS-->', $sysconf['template']['css']); $template->assign('<!--MAIN_CONTENT-->', $main_content); // print out the template $template->printOut(); } else { if ($sysconf['template']['base'] == 'php') { require_once $sysconf['template']['dir'] . '/' . $sysconf['template']['theme'] . '/login_template.inc.php'; } } exit;
// key to authenticate define('INDEX_AUTH', '1'); // required file require '../sysconfig.inc.php'; // start the session require SENAYAN_BASE_DIR . 'admin/default/session.inc.php'; // session checking require SENAYAN_BASE_DIR . 'admin/default/session_check.inc.php'; require SIMBIO_BASE_DIR . 'simbio_GUI/template_parser/simbio_template_parser.inc.php'; require LIB_DIR . 'module.inc.php'; // https connection (if enabled) if ($sysconf['https_enable']) { simbio_security::doCheckHttps($sysconf['https_port']); } // create the template object $template = new simbio_template_parser($sysconf['admin_template']['dir'] . '/' . $sysconf['admin_template']['theme'] . '/index_template.html'); // page title $page_title = $sysconf['library_name'] . ' :: Library Automation System'; // main menu $module = new module(); $module->setModulesDir(MODULES_BASE_DIR); $main_menu = $module->generateModuleMenu($dbs); $current_module = ''; // get module from URL if (isset($_GET['mod']) and !empty($_GET['mod'])) { $current_module = trim($_GET['mod']); } // read privileges $can_read = utility::havePrivilege($current_module, 'r'); // submenu $sub_menu = $module->generateSubMenu(($current_module and $can_read) ? $current_module : '');