[Phpfreechat-svn] SF.net SVN: phpfreechat: [1079] branches/pfc-comet/misc/comet-tests/iframe2 /test
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-08-03 16:12:00
|
Revision: 1079 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1079&view=rev Author: kerphi Date: 2007-08-03 09:11:59 -0700 (Fri, 03 Aug 2007) Log Message: ----------- add a log in a file Modified Paths: -------------- branches/pfc-comet/misc/comet-tests/iframe2/tester-loop.php Modified: branches/pfc-comet/misc/comet-tests/iframe2/tester-loop.php =================================================================== --- branches/pfc-comet/misc/comet-tests/iframe2/tester-loop.php 2007-08-02 18:59:18 UTC (rev 1078) +++ branches/pfc-comet/misc/comet-tests/iframe2/tester-loop.php 2007-08-03 16:11:59 UTC (rev 1079) @@ -1,6 +1,9 @@ <?php function macallback($pfccomet) { + static $id; + if (!isset($id)) $id = md5(uniqid(rand(), true)); + file_put_contents('/tmp/cometdebug',"id=".$id." ".time()."\n",FILE_APPEND|LOCK_EX); return $pfccomet->formatResponse(time()); } @@ -34,6 +37,8 @@ <body> <div id="date">here will be displayed the server time</div> + <input type="button" value="Disconnect" onclick="pfccomet.disconnect()" /> + <input type="button" value="Connect" onclick="pfccomet.connect()" /> </body> </html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |