[phpwebapp-commits] CVS: web_app/session wbSession.php,1.5,1.6 wbSession.html,1.4,1.5 doc.Session.tx
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-14 14:45:49
|
Update of /cvsroot/phpwebapp/web_app/session In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13284/session Modified Files: wbSession.php wbSession.html doc.Session.txt class.Session.php Log Message: Index: wbSession.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/wbSession.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** wbSession.php 25 Aug 2003 13:18:30 -0000 1.5 --- wbSession.php 14 Jul 2004 14:45:41 -0000 1.6 *************** *** 31,36 **** global $webPage; $session_url = WebApp::to_url(SESSION_PATH); ! $func_goto = " <script language='JavaScript' " ! . "src='${session_url}func.GoTo.js'></script>\n"; $webPage->append_to_head($func_goto); } --- 31,36 ---- global $webPage; $session_url = WebApp::to_url(SESSION_PATH); ! $func_goto = ' <script type="text/javascript" language="javascript" ' ! . "src=\"${session_url}func.GoTo.js\"></script>\n"; $webPage->append_to_head($func_goto); } Index: wbSession.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/wbSession.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** wbSession.html 13 Jul 2004 13:18:08 -0000 1.4 --- wbSession.html 14 Jul 2004 14:45:41 -0000 1.5 *************** *** 13,17 **** <!--# insert the session vars #--> ! <script language="JavaScript" src="{{./}}class.Session.js"></script> {{SESSION_VARS}} </WebBox> --- 13,17 ---- <!--# insert the session vars #--> ! <script type="text/javascript" language="javascript" src="{{./}}class.Session.js"></script> {{SESSION_VARS}} </WebBox> Index: doc.Session.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/doc.Session.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** doc.Session.txt 16 Jul 2003 09:27:59 -0000 1.2 --- doc.Session.txt 14 Jul 2004 14:45:41 -0000 1.3 *************** *** 66,75 **** automatically by the framework: ! <script language="JavaScript" src="class.Session.js"></script> ! <script language='JavaScript'> ! session = new Session(); ! session.addVar('ID_S','IP: 192.168.1.2; DATE: 2001/11/01/ 00:24:33'); ! session.addVar('var1','val1'); ! session.addVar('var2','val2'); </script> --- 66,77 ---- automatically by the framework: ! <script type="text/javascript" language="JavaScript" src="class.Session.js"></script> ! <script type="text/javascript" language="JavaScript"> ! <![CDATA[ ! session = new Session(); ! session.addVar('ID_S','IP: 192.168.1.2; DATE: 2001/11/01/ 00:24:33'); ! session.addVar('var1','val1'); ! session.addVar('var2','val2'); ! ]]> </script> Index: class.Session.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Session.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** class.Session.php 8 Sep 2003 13:18:23 -0000 1.7 --- class.Session.php 14 Jul 2004 14:45:41 -0000 1.8 *************** *** 288,293 **** function to_JS() { ! $session_vars = "<script language='JavaScript'>\n"; ! $session_vars .= "\tsession = new Session();\n"; reset($this->Vars); //add each variable of the session --- 288,294 ---- function to_JS() { ! $session_vars = '<script type="text/javascript" language="javascript">'."\n"; ! $session_vars .= "<![CDATA[\n"; ! $session_vars .= " session = new Session();\n"; reset($this->Vars); //add each variable of the session *************** *** 295,300 **** { $var_value = $this->js_encode($var_value); ! $session_vars .= "\tsession.addVar('$var_name','$var_value');\n"; } $session_vars .= "</script>"; --- 296,302 ---- { $var_value = $this->js_encode($var_value); ! $session_vars .= " session.addVar('$var_name','$var_value');\n"; } + $session_vars .= "]]>\n"; $session_vars .= "</script>"; *************** *** 336,340 **** //build the table of vars $html = " ! <br> <a name='session'> </a>[<a href='tree'>Top</a>] <table bgcolor='#aaaaaa' border='0' cellspacing='1' cellpadding='2'> --- 338,342 ---- //build the table of vars $html = " ! <br /> <a name='session'> </a>[<a href='tree'>Top</a>] <table bgcolor='#aaaaaa' border='0' cellspacing='1' cellpadding='2'> |