[Phpfreechat-svn] SF.net SVN: phpfreechat: [525] trunk/src/commands/debug.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-05-28 17:07:47
|
Revision: 525 Author: kerphi Date: 2006-05-28 10:07:39 -0700 (Sun, 28 May 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=525&view=rev Log Message: ----------- can print the $_SERVER global variable Modified Paths: -------------- trunk/src/commands/debug.class.php Modified: trunk/src/commands/debug.class.php =================================================================== --- trunk/src/commands/debug.class.php 2006-05-28 15:54:34 UTC (rev 524) +++ trunk/src/commands/debug.class.php 2006-05-28 17:07:39 UTC (rev 525) @@ -24,7 +24,14 @@ $msg = str_replace("\n","",addslashes(nl2br($msg))); $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ok', '".$msg."');"); } - + if ($param == "phpserver") + { + $msg = ""; + $msg .= var_export($_SERVER, true); + $msg = str_replace("\n","",addslashes(nl2br($msg))); + $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ok', '".$msg."');"); + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |