File: 1.15.1a/server/web/logout.php (View as Code)

1: 2: ob_start(); 3: require("include.php"); 4: $NATS->Start(); 5: if (!$NATS_Session->Check($NATS->DB)) 6: { 7: header("Location: ./?login_msg=Invalid+Or+Expired+Session"); 8: exit(); 9: } 10: 11: 12: if (($NATS->Cfg->Get("site.auth")=="http") && isset($_SERVER['PHP_AUTH_USER'])) 13: { 14: Screen_Header($NATS->Lang->Item("httpa.logout"),1); 15: echo "

".$NATS->Lang->Item("httpa.logout")."

\n";
16: echo $NATS->Lang->Item("httpa.logout.desc")."

\n";
17: echo "".$NATS->Lang->Item("click.continue")."

\n";
18: Screen_Footer(); 19: exit(); 20: } 21: 22: 23: $NATS_Session->Destroy($NATS->DB); 24: setcookie("fn_lang",""); 25: 26: 27: header("Location: ./?msg=0"); 28: exit(); 29: ?> 30: