|
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/pathumthani_vc/ |
Upload File : |
<?
session_start();
/*
if ($_SESSION[applistname]){
header ("Location: application/authority/applist.php");
exit;
}
*/
// if ((($user != '') and ($pwd != '')) and ($session_username != "")) { session_destroy(); session_register("session_username"); }
include ("inc/conndb_nonsession.inc.php") ;
session_register("session_tmp_user");
session_register("session_tmp_pass");
// include ("inc/conndb.inc.php") ;
// include ("inc/std_function.inc.php") ;
// SET IP Address ตามภาค กลาง(1) ใต้(2) อีสาน(3) หนือ(4)
$IP_TTT = "202.69.143.76";
$IP_CAT1 = "61.7.155.244";
$IP_CAT2 = "61.7.155.245";
/*
// $IP_TTT = "www.pdc-obec.com";
// $IP_CAT1 = $IP_TTT;
$IP_LIST = array(
""=>"$IP_CAT2",
"0"=>"$IP_TTT",
"1"=>"$IP_CAT1",
"2"=>"$IP_CAT2",
"3"=>"$IP_TTT",
"4"=>"$IP_CAT1"
);
*/
if ($Login != "" ){
$x = explode(".", $txtusername) ;
$lastarr = count($x)-1 ; ############### Get Last record
if ($lastarr ==0){
$xarea_name = "obec" ;
}else{
$xarea_name = $x[$lastarr] ;
}
$_SESSION[secid] = $xarea_name ;
$_SESSION[tmpuser] = $txtusername ;
$_SESSION[tmppass] = $txtpass ;
if ($loginstep==1){
header("Location: application/admin/login.php");
}else{
$tmp_string="";
$result = mysql_query("select t1.*,t2.IP from $db_mainobec.eduarea t1 left join $db_mainobec.area_info t2 on t1.area_id=t2.area_id where t1.secid='$xarea_name';");
$rs = mysql_fetch_assoc($result);
//$xip = $IP_LIST[$rs[area_id]];
$xip = $rs[IP];
if ($xip == "") $xip=$IP_CAT1;
//$result = @file("http://$xip/vc_master/loginall.php?txtusername=" . urlencode($txtusername) . "&txtpass=" . urlencode($txtpass));
$url = "http://$xip/vc_master/loginall.php?txtusername=" . urlencode($txtusername) . "&txtpass=" . urlencode($txtpass) . "&loginstep=1&Login=1";
header("Location: $url");
}
// header("location: http://$xip/vc_master/application/admin/login.php");
// header("location:application/admin/qpass.txt");
exit;
}
?>
<html>
<head>
<title>เข้าสู่ระบบฐานข้อมูล</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<SCRIPT language=JavaScript>
function checkFields() {
missinginfo1 = "";
missinginfo = "";
if (document.form1.txtusername.value == "") { missinginfo1 += "\n - User name ไม่สามารถเป็นค่าว่าง"; }
if(document.form1.txtpass.value=="") { missinginfo1 += "\n - Password ไม่สามารถเป็นช่องว่าง"; }
if (missinginfo1 != "") {
missinginfo += "ไม่สามารถเข้าระบบได้ เนื่องจาก \n";
missinginfo +="_____________________________\n";
missinginfo = missinginfo + missinginfo1 ;
missinginfo += "\n_____________________________";
missinginfo += "\nกรุณาตรวจสอบ อีกครั้ง";
alert(missinginfo);
return false;
}
}
</SCRIPT>
<link href="common/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {color: #FFCC00}
.style4 {
color: #000099;
font-weight: bold;
}
.style5 {
color: #FF0000;
font-weight: bold;
}
.style10 {
color: #0099CC;
font-weight: bold;
}
-->
</style>
</head>
<body>
<form action="?" method="post" name="form1" onSubmit="return checkFields()" >
<br>
<table width="385" border="0" align="center" cellpadding="5" cellspacing="5" bgcolor="#F2F3F5">
<tr>
<td width="365" align="center" class="style5"><br>
ขณะนี้ได้ครบกำหนดเวลาตามประกาศ ที่ ศธ 04011/234 ระบบควบคุมเชิงประจักษ์ ขอทำการปิดระบบเพื่อ<br>
<br>
สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน<br>
จะประชุมดูแลตัวชี้วัดในส่วนกลาง เพื่อรับรองผลการรายงานของสำนักงานเขตพื้นที่การศึกษา <br>
ระหว่างวันที่ 23 -27 เมษายน 2550
นี้<br>
<br>
จึงเรียนมาเพื่อทราบ<br>
<br></td>
</tr>
</table>
<tr><br>
<tr><td width="983"><p>