KST024_2.php 923 Bytes
<?php 
//*****************************************************************************
//* 
//* プログラム名:GoogleカレンダーOAuth認証
//* プログラムID:KST024_2.php
//* 機能        :GoogleカレンダーOAuth認証
//* 作成者      :
//* 
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");

include("include/session_start.inc");
include("include/SessionChk.inc");
include("include/Google_API_Info.inc");

//**** DB接続 ****//
$strDBinc="include/dbcon.inc";
include($strDBinc);

//カレンダーIDを削除
$strSQL="DELETE FROM kojin_data_tbl WHERE syain_cd = '".$PHP_SYAIN_CD."' AND seq = 50";
$objRec = pg_exec($strSQL);

//カレンダーIDを登録
$strSQL="INSERT INTO kojin_data_tbl (syain_cd, seq, memo) VALUES ('".$PHP_SYAIN_CD."',50, '".$_POST["Calender_ID"]."')";
$objRec = pg_exec($strSQL);

$auth_url = AUTH_URL;
header("Location: ".$auth_url);

?>