ADM002.php
926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
//*****************************************************************************
//*
//* プログラム名:ログインチェック
//* プログラムID:loginchk.php
//* 機能 :
//* 作成者 :K.Yoshimura(MTC)
//*
//*****************************************************************************
include("include/session_start.inc");
include("include/SessionChk.inc");
$strDBinc="include/dbcon.inc";
include($strDBinc);
$strSQL="";
$objRecSet="null";
//管理者判定
$strSQL = "SELECT password FROM admini_tbl WHERE password ='$Passwd'";
$objRecSet = pg_exec($strSQL);
if($objRecSet==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
if (pg_numrows($objRecSet) == 1) {
$objData = pg_fetch_object($objRecSet, 0);
$admin_session="administrator";
session_register("admin_session");
include("include/session_start.inc");
header("Location:TOP000.php");
}else{
header("Location:ADM003.php");
}
?>