/** * logout * */ function b_logout() { b_include('config.php'); $csql = "select max(nid) from " . PREFIX . "history where nid_users='" . $_SESSION['nid_login'] . "'"; $nid_histtory = b_fetch($csql); $csql = "update " . PREFIX . "history set dlogout=" . gcms_now() . " where nid='{$nid_histtory}'"; gcms_query($csql); foreach ($_SESSION as $k => $v) { unset($_SESSION[$k]); } // if(REMEMBER) b_cookies_destroy(); session_destroy(); }
/** * Mendapatkan init pada <head></head> berdasarkan menu yang dipilih * * @param string $cpage */ function menu_get_init2($path) { menu_get_dependencies2($path); $initfile = translate_modul_path(str_replace(".php", ".init.php", $path)); $GLOBALS['bv_pathextension'] = dirname($initfile) . "/"; define('PATHEXTENSION', dirname($initfile) . "/"); b_include($initfile); }