File "recv_alarm_log.php"
Full path: /www/ansys/qgis/common/recv_alarm_log.php
File size: 1.48 KiB (1520 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/10/19 KMK-Teraoka
//===============================================
define("DEBUG_MODE", "1");
Debug::setMode(DEBUG_MODE);
if (DEBUG_MODE == 1)
{
Stopwatch::start();
}
//===============================================
// CommonUtilities
// 備考 :
// 更新 : 2012/11/06 KMK-Teraoka
//===============================================
$LOG_FILE = "./log/recv_alarm.log";
try
{
$_log = new Log($LOG_FILE);
//===============================================
// POST、GETパラメータの受け取り
// 備考 :
// 更新 : 2012/10/25 KMK-Teraoka
//===============================================
if (DEBUG_MODE == 1)
{
extract($_POST);
extract($_GET);
Debug::writes($_POST);
}
$AlarmId = isset($_POST["alarm_id"]) ? htmlspecialchars($_POST["alarm_id"]) : "";
$timel = isset($_POST["time_log"]) ? htmlspecialchars($_POST["time_log"]) : "";
$_log->write("ALARM_ID->". $AlarmId. "\n");
$_log->write("TIME_->". $timel. "\n");
}
catch(Exception $exc)
{
$_log->write($exc->getMessage(). "\n");
}
?>