=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Doc/httpd.sm1,v retrieving revision 1.18 retrieving revision 1.21 diff -u -p -r1.18 -r1.21 --- OpenXM/src/kan96xx/Doc/httpd.sm1 2005/11/21 09:12:22 1.18 +++ OpenXM/src/kan96xx/Doc/httpd.sm1 2012/12/23 01:27:54 1.21 @@ -1,4 +1,4 @@ -%% $OpenXM: OpenXM/src/kan96xx/Doc/httpd.sm1,v 1.17 2005/11/17 08:15:51 takayama Exp $ +%% $OpenXM: OpenXM/src/kan96xx/Doc/httpd.sm1,v 1.20 2010/02/08 01:08:39 takayama Exp $ %% common modules for httpd on sm1. % [(Strict) 1] system_variable % for debugging. /Oxserver_history_variable (Oxserver_history_variable_) def @@ -6,6 +6,14 @@ [(getenv) (OpenXM_PSTOIMG_TYPE)] extension def +/httpd_sm1.cookie + [(oxGenPass)] extension +def +/httpd.set-cookie { + [(Set-Cookie: httpd_sm1=) httpd_sm1.cookie] cat +} def + + [(getenv) (OXWEB_DEBUG)] extension tag 0 eq { /httpd.debug 0 def } { @@ -135,6 +143,7 @@ def (HTTP/0.9 200 OK) sendln (Connection: close) sendln (Content-Type: text/html) sendln + httpd.set-cookie sendln 0 sendln %% (
) sendln result sendln @@ -810,8 +819,13 @@ def [(getenv) (OX_BROWSER)] extension /browser set { browser tag 0 eq { - [(sleep 3 ; netscape http://localhost:) portnum ( & ) ] cat - /cmd set cmd message + [(ostype)] extension 1 get (mac) eq { + [(sleep 3 ; open http://localhost:) portnum ( & ) ] cat + /cmd set cmd message + }{ + [(sleep 3 ; firefox http://localhost:) portnum ( & ) ] cat + /cmd set cmd message + }ifelse cmd system exit }{ } ifelse