File "req_guardman.php"
Full path: /www/ansys/qgis/010_hitachinaka/intercomm/req_guardman.php
File size: 2.12 KiB (2173 bytes)
MIME-type: text/x-php
Charset: utf-8
<?php
//-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
// 自動でクラスを参照する
// 関数名 : __autoload()
// 備考 : 参照先は./class/XXX.phpとする
// 更新 : 2012/10/19 KMK-Teraoka
//-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
function __autoload($className)
{
$fPath = "./class/" . str_replace("_", "/", $className) . ".php";
require_once $fPath;
}
//===============================================
// DEBUG_MODE
// 備考 :
// 更新 : 2012/11/29 KMK-Teraoka
//===============================================
define("DEBUG_MODE", "0");
Debug::setMode(DEBUG_MODE);
if (DEBUG_MODE == 1)
{
Stopwatch::start();
}
//===============================================
// CommonUtilities
// 備考 :
// 更新 : 2012/11/29 KMK-Teraoka
//===============================================
$HOST = "192.168.100.153";
$DB = "ansys";
$USER = "postgres";
$PASS = "am#71ZJ*";
$LOG_FILE = "./log/req_guardman.log";
try
{
$_log = new Log($LOG_FILE);
//===============================================
// POST、GETパラメータの受け取り
// 備考 :
// 更新 : 2012/11/29 KMK-Teraoka
//===============================================
if (DEBUG_MODE == 1)
{
extract($_POST);
extract($_GET);
Debug::writes($_POST);
}
$constId = isset($_POST["const_id"]) ? htmlspecialchars($_POST["const_id"]) : "";
$appId = isset($_POST["app_id"]) ? htmlspecialchars($_POST["app_id"]) : "";
$androidId = isset($_POST["android_id"]) ? htmlspecialchars($_POST["android_id"]) : "";
$evId[0] = isset($_POST["event_id1"]) ? htmlspecialchars($_POST["event_id1"]) : "";
$evId[1] = isset($_POST["event_id2"]) ? htmlspecialchars($_POST["event_id2"]) : "";
$evId[2] = isset($_POST["event_id3"]) ? htmlspecialchars($_POST["event_id3"]) : "";
$evId[3] = isset($_POST["event_id4"]) ? htmlspecialchars($_POST["event_id4"]) : "";
//$_log->write("CONST_ID->". $constId. "\n");
//$_log->write("APP_ID->". $appId. "\n");
$_log->write("ADNROID_ID->". $androidId. "\n");
$_log->write("EVENTS->". $evId[0]. ",". $evId[1]. ",". $evId[2]. ",". $evId[3]. "\n");
}
catch(Exception $exc)
{
$_log->write("exception->". $exc. "\n");
}
?>