|
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/ |
Upload File : |
<?
$maxconn = array(100,200,300,400,500,600);
$status_server = 0 ;
$status_rep = 0 ;
$hostcatti = "123.242.173.131";
$hostcatti2 = "123.242.173.131";
$smsgetstatus=false;
$mname = array("","มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม");
$host="localhost";$username="root";$pwd= "SPRD525@sapphire";
$database_sys = "system_monitor";
//========================
$hostsms ="www.sms.in.th";
$method="POST";
$path="/tunnel/sendsms.php";
$Sender="SystemMonitor";
$MsgType="T";
$User="sapphire";
$Password="es53y7h";
//========================
$arr_ip = array(
"123.242.173.131"=>array("comname"=>"131","hardware"=>"DL120","localIP"=>"123.242.173.131","username"=>"root","pwd"=>"SPRD525@sapphire","functional"=>"CMSS2","picture"=>"ML350.gif","IPcaption"=>"123.242.173.131","gid_net"=>"1","gid_mem"=>"1","local_th"=>"CMSS,VC,ALL APP"),
);
//*********** Network Circuit Config *************
$hostcacti = "123.242.173.129";
$network_con = array( "CAT LEASE LINE"=>array("graph_id"=>"6","ipusage"=>"123.242.173.129","functional"=>"CMSS") );
//*********เช็คว่าอยู่ใน Local **********
/*
//if( (substr($_SERVER["REMOTE_ADDR"],0,8) != "192.168.") && ( $_SERVER["REMOTE_ADDR"] != "123.242.173.129" )){
echo "<SCRIPT language=JavaScript>";
echo "alert('คุณไม่สามารถใช้งานระบบผ่าน Internet ได้ กรุณาใช้งานผ่าน Intranet');";
echo "</script>";
die;
}
*/
?>