$GB_PG["base_url"] .= "/modules/{$ModName}"; $GB_SELF = basename($_SERVER['PHP_SELF']); $GB_PG["index"] = "{$GB_SELF}?op=modload&name={$ModName}&file=index"; $GB_PG["admin"] = "{$GB_SELF}?op=modload&name={$ModName}&file=index&agbook=admin"; $GB_PG["comment"] = "{$GB_SELF}?op=modload&name={$ModName}&file=index&agbook=comment"; $GB_PG["addentry"] = "{$GB_SELF}?op=modload&name={$ModName}&file=index&agbook=addentry"; if (!isset($agbook)) { $agbook = ''; } switch ($agbook) { case "admin": require_once $include_path . "/lib/session.class.php"; $gb_auth = new gb_session($include_path); $AUTH = $gb_auth->checkSessionID(); $VARS = $gb_auth->fetch_array($gb_auth->query("SELECT * FROM " . $gb_auth->table['cfg'])); $gb_auth->free_result($gb_auth->result); $template = new gb_template($include_path); if (isset($_COOKIE['lang']) && !empty($_COOKIE['lang'])) { $template->set_lang($_COOKIE['lang']); } else { $template->set_lang($VARS['lang']); } $LANG = $template->get_content(); $gb_auth->close_db(); $enter_html = ""; if (!$AUTH) { $message = isset($username) || isset($password) ? $LANG["PassMess2"] : $LANG["PassMess1"]; eval("\$enter_html = \"" . $template->get_template($GB_TPL['header']) . "\";"); eval("\$enter_html .= \"" . $template->get_template($GB_TPL['adm_enter']) . "\";"); eval("\$enter_html .= \"" . $template->get_template($GB_TPL['footer']) . "\";"); echo $enter_html;