blob: 39587e4e3a690e5755a1ee1e5a49afc422ca10fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!./tclsh
#
# and any global config
#
source ./alpine.tcl
cgi_eval {
cgi_input
if {[catch {cgi_import serverid}]} {
set serverid 0
}
catch {cgi_import logerr}
cgi_http_head {
WPStdHttpHdrs
# clear cookies
cgi_cookie_set sessid=0 expires=now
}
if {[info exists env(REMOTE_USER)]} {
set log_text [font class=notice "Protect your privacy![cgi_nl]When you finish, [cgi_url "completely exit your Web browser" http://www.washington.edu/computing/web/logout.html class=notice]."]
append log_text "[cgi_nl][cgi_nl]Or you may want to:"
append log_text "<center><ul>"
if {[catch {cgi_import ppg}]} {
set perpage ""
} else {
set perpage "&ppg=$ppg"
}
append log_text "<li>[cgi_url "restart Web Alpine" "http://alpine.washington.edu"]"
append log_text "<li>[cgi_url "go to MyUW" "http://myuw.washington.edu"]"
append log_text "</ul></center>"
set log_url ""
} else {
set log_text "Please visit the [cgi_link Start] for a new session."
set log_url $_wp(serverpath)/
}
if {[info exists logerr] && [string length $logerr]} {
set log_text "[cgi_bold "Please Note"]: A problem, \"$logerr\", occurred while ending your session.<p>${log_text}"
}
WPInfoPage "Logged Out" "[font size=+2 face=Helvetica "Thank you for using Alpine"]" $log_text $log_url
}
|