This commit is contained in:
biosvos
2026-08-07 17:38:18 +09:00
commit 873193a243
9613 changed files with 2755992 additions and 0 deletions
+515
View File
@@ -0,0 +1,515 @@
-- MySQL dump 10.13 Distrib 5.6.32, for Linux (x86_64)
--
-- Host: localhost Database: CCDB
-- ------------------------------------------------------
-- Server version 5.6.32
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `t_admin`
--
DROP TABLE IF EXISTS `t_admin`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_admin` (
`admin_seq` bigint(20) NOT NULL AUTO_INCREMENT,
`admin_id` varchar(16) NOT NULL,
`admin_name` varchar(16) NOT NULL,
`admin_password` varchar(32) NOT NULL,
`admin_type` char(4) NOT NULL,
`admin_email` varchar(128) NOT NULL,
`admin_phone` varchar(20) NOT NULL,
`admin_sms_send` char(1) NOT NULL,
`admin_etc` text NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_yn` char(1) NOT NULL DEFAULT 'N',
`warn_stg_rate` int(11) DEFAULT NULL,
PRIMARY KEY (`admin_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_admin`
--
LOCK TABLES `t_admin` WRITE;
/*!40000 ALTER TABLE `t_admin` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_admin` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_code_master`
--
DROP TABLE IF EXISTS `t_code_master`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_code_master` (
`code` char(4) NOT NULL,
`code_dtl` varchar(64) NOT NULL,
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_code_master`
--
LOCK TABLES `t_code_master` WRITE;
/*!40000 ALTER TABLE `t_code_master` DISABLE KEYS */;
INSERT INTO `t_code_master` VALUES ('AT01','전체관리자'),('AT02','일반관리자'),('EV01','관리작업'),('EV02','시스템장애'),('EV03','용량경고'),('EV04','RAID Error'),('RA01','DEVICE_OUT'),('RA02','Undefined Error'),('RA03','Writing Error'),('RA04','Reading Error'),('RA05','Start Rebuild'),('RA06','Undefined Error');
/*!40000 ALTER TABLE `t_code_master` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_fts_log`
--
DROP TABLE IF EXISTS `t_fts_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_fts_log` (
`tid` varchar(20) NOT NULL,
`mode` int(10) DEFAULT NULL,
`source_pop` varchar(20) NOT NULL,
`target_pop` varchar(20) NOT NULL,
`file_name` varchar(256) DEFAULT NULL,
`fts_status` varchar(4) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_yn` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`tid`),
UNIQUE KEY `tid` (`tid`),
KEY `tid_2` (`tid`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_fts_log`
--
LOCK TABLES `t_fts_log` WRITE;
/*!40000 ALTER TABLE `t_fts_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_fts_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_fts_log_dtl`
--
DROP TABLE IF EXISTS `t_fts_log_dtl`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_fts_log_dtl` (
`tid` varchar(20) NOT NULL,
`file_name_dtl` varchar(256) DEFAULT NULL,
`fts_status` varchar(4) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_yn` char(1) NOT NULL DEFAULT 'N',
KEY `idx_fhs_log_dtl_tid` (`tid`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_fts_log_dtl`
--
LOCK TABLES `t_fts_log_dtl` WRITE;
/*!40000 ALTER TABLE `t_fts_log_dtl` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_fts_log_dtl` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_neo_server_index`
--
DROP TABLE IF EXISTS `t_neo_server_index`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_neo_server_index` (
`neo_seq` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`neo_type` varchar(10) DEFAULT NULL,
`name` varchar(10) NOT NULL,
`ip` varchar(30) NOT NULL,
`port` tinyint(3) unsigned DEFAULT NULL,
`domain` varchar(50) DEFAULT NULL,
`dig_domain` varchar(50) DEFAULT NULL,
`to_align` varchar(2) DEFAULT NULL,
`status` tinyint(3) unsigned NOT NULL DEFAULT '1',
`dead_count` tinyint(3) unsigned DEFAULT '0',
`type` varchar(50) NOT NULL DEFAULT 'NEOSVR',
`monitor_yn` char(50) DEFAULT 'Y',
`deleted_yn` char(50) NOT NULL DEFAULT 'N',
`update_datetime` datetime DEFAULT NULL,
PRIMARY KEY (`neo_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_neo_server_index`
--
LOCK TABLES `t_neo_server_index` WRITE;
/*!40000 ALTER TABLE `t_neo_server_index` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_neo_server_index` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_rms_rc_index`
--
DROP TABLE IF EXISTS `t_rms_rc_index`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_rms_rc_index` (
`rcid` varchar(32) NOT NULL,
`rc_name` varchar(255) DEFAULT NULL,
`svc_rcts_url` varchar(2048) DEFAULT NULL,
`vol_url_rts` varchar(2048) DEFAULT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_yn` char(1) NOT NULL DEFAULT 'N',
`arrange` int(2) NOT NULL AUTO_INCREMENT,
`rcacct` varchar(2048) DEFAULT NULL,
PRIMARY KEY (`arrange`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_rms_rc_index`
--
LOCK TABLES `t_rms_rc_index` WRITE;
/*!40000 ALTER TABLE `t_rms_rc_index` DISABLE KEYS */;
INSERT INTO `t_rms_rc_index` VALUES ('SK51','SK-51','sk-51-rcts.myskcdn.co.kr','sk-51-fhs.myskcdn.co.kr','2016-07-27 12:17:15','0000-00-00 00:00:00','Y',2,'sk-51-monitor:solboxmonitor:redeye99:sk51monitor:/user/service/cert/solboxmonitor517.cert'),('test','유희곤','rcts.myskcdn.co.kr','fhs.myskcdn.co.kr','2016-07-27 12:39:43','0000-00-00 00:00:00','Y',3,'test:test1:test2:test3:/cert/test.cert'),('test5','희봉5','rcts.myskcdn.co.kr','fhs.myskcdn.co.kr','2016-07-27 13:09:11','0000-00-00 00:00:00','Y',4,'2:3:4:5:6'),('test7','희봉','rcts.myskcdn.co.kr','fhs.myskcdn.co.kr','2016-07-28 05:22:15','0000-00-00 00:00:00','Y',5,'3:4:5:6:adf'),('SK51','SBS CH','sk-51-rcts.myskcdn.co.kr','sk-51-fhs.myskcdn.co.kr','2016-07-29 06:03:31','2016-08-05 05:53:12','N',6,'sk-51-monitor:solboxmonitor:solboxmonitor1@:sk51monitor:/user/service/cert/solboxmonitor71.cert'),('CC','Control Center','cs-gts.myskcdn.co.kr','cs-gts.myskcdn.co.kr','2016-08-05 06:08:32','2016-08-05 06:11:44','N',7,'::::');
/*!40000 ALTER TABLE `t_rms_rc_index` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_rms_rc_server_index`
--
DROP TABLE IF EXISTS `t_rms_rc_server_index`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_rms_rc_server_index` (
`rc_server_seq` bigint(20) NOT NULL AUTO_INCREMENT,
`rcid` varchar(32) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`ip` varchar(255) DEFAULT NULL,
`port` varchar(10) DEFAULT '80',
`type` varchar(10) DEFAULT 'RTS',
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`monitor_yn` char(1) NOT NULL DEFAULT 'Y',
`deleted_yn` char(1) NOT NULL DEFAULT 'N',
`etc1` varchar(4000) NOT NULL DEFAULT '0',
`etc2` varchar(4000) NOT NULL DEFAULT '0',
`etc3` varchar(4000) NOT NULL DEFAULT '0',
`raid_stat` tinyint(3) unsigned NOT NULL DEFAULT '2',
`raid_update_updatetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`rc_server_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_rms_rc_server_index`
--
LOCK TABLES `t_rms_rc_server_index` WRITE;
/*!40000 ALTER TABLE `t_rms_rc_server_index` DISABLE KEYS */;
INSERT INTO `t_rms_rc_server_index` VALUES (1,'SK51','SK51_RC','sk-51-monitor','80','RC','2016-07-29 06:04:50','2016-08-04 05:22:29','Y','N','A','6','0',2,'0000-00-00 00:00:00'),(2,'SK51','SK51_RCDB01','222.239.93.17','6543','RCDB','2016-07-29 06:06:22','2016-08-04 05:22:29','Y','N','E','6','0',2,'0000-00-00 00:00:00'),(3,'SK51','SK51_RCDB02','222.239.93.18','6543','RCDB','2016-07-29 06:07:40','2016-08-04 05:22:29','Y','N','E','6','0',2,'0000-00-00 00:00:00'),(4,'SK51','SK51_RCTS01','222.239.93.19','13104','RCTS','2016-07-29 06:09:31','2016-08-04 05:22:29','Y','N','D','6','0',2,'0000-00-00 00:00:00'),(5,'SK51','SK51_RCTS02','222.239.93.20','13104','RCTS','2016-07-29 06:09:49','2016-08-04 05:22:29','N','N','D','6','0',2,'0000-00-00 00:00:00'),(6,'SK51','SK51_FHS001','222.239.11.107','80','RTS','2016-07-29 06:11:33','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(7,'SK51','SK51_FHS002','222.239.11.108','80','RTS','2016-07-29 06:11:48','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(8,'SK51','SK51_STAT','sk51','80','STAT','2016-07-29 06:13:54','2016-08-04 05:22:29','N','N','B','6','0',2,'0000-00-00 00:00:00'),(9,'SK51','SK51_FHS003','222.239.11.109','80','RTS','2016-08-02 00:49:52','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(10,'SK51','SK51_FHS004','222.239.11.110','80','RTS','2016-08-03 03:36:04','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(11,'SK51','SK51_FHS005','222.239.11.117','80','RTS','2016-08-03 03:36:28','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(12,'SK51','SK51_FHS006','222.239.11.118','80','RTS','2016-08-03 03:36:49','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(13,'SK51','SK51_FHS007','222.239.11.119','80','RTS','2016-08-03 03:37:07','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(14,'SK51','SK51_FHS008','222.239.11.120','80','RTS','2016-08-03 03:37:35','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(15,'SK51','SK51_FHS009','222.239.93.51','80','RTS','2016-08-03 03:39:36','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(16,'SK51','SK51_FHS010','222.239.93.52','80','RTS','2016-08-03 03:39:52','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(17,'SK51','SK51_FHS011','222.239.93.53','80','RTS','2016-08-03 03:40:10','2016-08-04 05:22:29','Y','N','C','6','0',2,'0000-00-00 00:00:00'),(18,'CC','CC_cs-gts01','222.239.93.13','80','TIMED','2016-08-05 06:10:06','2016-08-05 06:10:06','N','N','','7','0',2,'0000-00-00 00:00:00'),(19,'CC','CC_cs-gts02','222.239.93.14','80','TIMED','2016-08-05 06:10:37','2016-08-05 06:10:37','N','N','','7','0',2,'0000-00-00 00:00:00');
/*!40000 ALTER TABLE `t_rms_rc_server_index` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_sp_svc_product`
--
DROP TABLE IF EXISTS `t_sp_svc_product`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_sp_svc_product` (
`sp_svc_tran_id` int(11) NOT NULL AUTO_INCREMENT,
`sp_user_seq` bigint(20) NOT NULL,
`sp_svc_id` varchar(32) NOT NULL,
`sp_svc_begin_date` date NOT NULL,
`sp_svc_end_date` date NOT NULL,
`sp_svc_band_width` bigint(20) NOT NULL,
`sp_svc_max_stg_size` bigint(20) NOT NULL,
`initial_vector` varchar(32) NOT NULL,
`private_key` varchar(32) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_yn` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`sp_svc_tran_id`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_sp_svc_product`
--
LOCK TABLES `t_sp_svc_product` WRITE;
/*!40000 ALTER TABLE `t_sp_svc_product` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_sp_svc_product` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_sp_svc_product_sp_svc_tran_id_seq`
--
DROP TABLE IF EXISTS `t_sp_svc_product_sp_svc_tran_id_seq`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_sp_svc_product_sp_svc_tran_id_seq` (
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_sp_svc_product_sp_svc_tran_id_seq`
--
LOCK TABLES `t_sp_svc_product_sp_svc_tran_id_seq` WRITE;
/*!40000 ALTER TABLE `t_sp_svc_product_sp_svc_tran_id_seq` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_sp_svc_product_sp_svc_tran_id_seq` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_sp_user`
--
DROP TABLE IF EXISTS `t_sp_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_sp_user` (
`sp_user_seq` bigint(20) NOT NULL AUTO_INCREMENT,
`sp_user_id` varchar(32) NOT NULL,
`sp_user_password` varchar(32) NOT NULL,
`sp_max_stg_size` bigint(20) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_yn` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`sp_user_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_sp_user`
--
LOCK TABLES `t_sp_user` WRITE;
/*!40000 ALTER TABLE `t_sp_user` DISABLE KEYS */;
INSERT INTO `t_sp_user` VALUES (1,'skbb','28eb83b5adb2a1bc6f991ed14186bd23',314572800,'2007-03-02 12:54:14','2006-11-03 03:12:12','N');
/*!40000 ALTER TABLE `t_sp_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_stx_netstat`
--
DROP TABLE IF EXISTS `t_stx_netstat`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_stx_netstat` (
`stx_netstat_seq` bigint(20) NOT NULL AUTO_INCREMENT,
`host_name` varchar(65) NOT NULL,
`service_name` varchar(65) NOT NULL,
`rcid` varchar(33) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`stx_traffic_in` bigint(20) DEFAULT NULL,
`stx_traffic_out` bigint(20) DEFAULT NULL,
`stx_packet_in` bigint(10) DEFAULT NULL,
`stx_packet_out` bigint(10) DEFAULT NULL,
PRIMARY KEY (`stx_netstat_seq`),
KEY `STX_NETSTAT_SEQ` (`stx_netstat_seq`),
KEY `REG_DATETIME` (`reg_datetime`),
KEY `HOST_NAME` (`host_name`),
KEY `SERVICE_NAME` (`service_name`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_stx_netstat`
--
LOCK TABLES `t_stx_netstat` WRITE;
/*!40000 ALTER TABLE `t_stx_netstat` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_stx_netstat` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_stx_network`
--
DROP TABLE IF EXISTS `t_stx_network`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_stx_network` (
`stx_network_seq` bigint(20) NOT NULL AUTO_INCREMENT,
`sp_svc_tran_id` bigint(20) NOT NULL,
`rcid` varchar(32) NOT NULL,
`stx_traffic_in` bigint(20) NOT NULL,
`stx_traffic_out` bigint(20) NOT NULL,
`stx_content_in` bigint(20) NOT NULL,
`stx_content_out` bigint(20) NOT NULL,
`n_cc_in` int(11) NOT NULL,
`n_cc_out` int(11) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`stx_network_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_stx_network`
--
LOCK TABLES `t_stx_network` WRITE;
/*!40000 ALTER TABLE `t_stx_network` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_stx_network` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_stx_stgstat`
--
DROP TABLE IF EXISTS `t_stx_stgstat`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_stx_stgstat` (
`stx_stgstat_seq` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`host_name` varchar(65) NOT NULL,
`service_name` varchar(65) NOT NULL,
`rcid` varchar(33) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`total` bigint(20) unsigned DEFAULT NULL,
`free` bigint(20) unsigned DEFAULT NULL,
PRIMARY KEY (`stx_stgstat_seq`),
KEY `stx_stgstat_seq` (`stx_stgstat_seq`),
KEY `reg_datetime` (`reg_datetime`),
KEY `host_name` (`host_name`),
KEY `service_name` (`service_name`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_stx_stgstat`
--
LOCK TABLES `t_stx_stgstat` WRITE;
/*!40000 ALTER TABLE `t_stx_stgstat` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_stx_stgstat` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_stx_storage`
--
DROP TABLE IF EXISTS `t_stx_storage`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_stx_storage` (
`stx_stg_seq` bigint(20) NOT NULL AUTO_INCREMENT,
`sp_svc_tran_id` bigint(20) NOT NULL,
`rcid` varchar(32) NOT NULL,
`vol_quota` bigint(20) NOT NULL,
`vol_alloc_size` bigint(20) NOT NULL,
`vol_in_use` bigint(20) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`stx_stg_seq`)
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_stx_storage`
--
LOCK TABLES `t_stx_storage` WRITE;
/*!40000 ALTER TABLE `t_stx_storage` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_stx_storage` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_system_event`
--
DROP TABLE IF EXISTS `t_system_event`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_system_event` (
`sys_evt_seq` int(11) NOT NULL AUTO_INCREMENT,
`sp_user_seq` bigint(20) NOT NULL,
`sys_evt_svr_name` varchar(64) NOT NULL,
`sys_evt_code` char(4) NOT NULL,
`sys_evt_dtl` text NOT NULL,
`sys_evt_sendcnt` int(11) NOT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_yn` char(1) NOT NULL DEFAULT 'N',
`sys_evt_adminid` varchar(32) DEFAULT NULL,
PRIMARY KEY (`sys_evt_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_system_event`
--
LOCK TABLES `t_system_event` WRITE;
/*!40000 ALTER TABLE `t_system_event` DISABLE KEYS */;
INSERT INTO `t_system_event` VALUES (1,1,'211.38.137.33','EV01','[POP추가] POP ID:test POP 이름:유희곤',0,'2016-07-27 12:39:43','2016-07-27 12:39:43','N',''),(2,1,'211.38.137.33','EV01','[POP추가] POP ID:test5 POP 이름:희봉5',0,'2016-07-27 13:09:11','2016-07-27 13:09:11','N',''),(3,1,'211.38.137.33','EV01','[POP추가] POP ID:test7 POP 이름:희봉',0,'2016-07-28 05:22:15','2016-07-28 05:22:15','N',''),(4,1,'211.38.137.33','EV01','[POP추가] POP ID:SK51 POP 이름:SK-51',0,'2016-07-29 06:03:31','2016-07-29 06:03:31','N',''),(5,1,'211.38.137.33','EV01','[POP추가] POP ID:CC POP 이름:CC',0,'2016-08-05 06:08:32','2016-08-05 06:08:32','N','');
/*!40000 ALTER TABLE `t_system_event` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_vms_vol_index`
--
DROP TABLE IF EXISTS `t_vms_vol_index`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_vms_vol_index` (
`vol_name` varchar(255) NOT NULL,
`svc_rc_url` varchar(128) DEFAULT NULL,
`vol_url_rts` varchar(2048) DEFAULT NULL,
`reg_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`update_datetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`max_bandwidth` bigint(20) NOT NULL,
`sp_svc_tran_id` varchar(16) NOT NULL,
`rcid` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=euckr;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_vms_vol_index`
--
LOCK TABLES `t_vms_vol_index` WRITE;
/*!40000 ALTER TABLE `t_vms_vol_index` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_vms_vol_index` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2016-08-07 23:30:01
+402
View File
@@ -0,0 +1,402 @@
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: syshost; Type: DATABASE; Schema: -; Owner: syshost
--
CREATE DATABASE syshost WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'C' LC_CTYPE = 'C';
ALTER DATABASE syshost OWNER TO syshost;
\connect syshost
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = true;
--
-- Name: t_group; Type: TABLE; Schema: public; Owner: pgsql; Tablespace:
--
CREATE TABLE t_group (
group_seq bigint NOT NULL,
group_id character varying(32) NOT NULL,
group_password character varying(32) NOT NULL,
group_name character varying(32) NOT NULL,
deleted_yn character(1) DEFAULT 'N'::bpchar,
reg_datetime timestamp without time zone NOT NULL,
update_datetime timestamp without time zone NOT NULL
);
ALTER TABLE public.t_group OWNER TO pgsql;
--
-- Name: t_group_group_seq_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
--
CREATE SEQUENCE t_group_group_seq_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.t_group_group_seq_seq OWNER TO pgsql;
--
-- Name: t_group_group_seq_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pgsql
--
ALTER SEQUENCE t_group_group_seq_seq OWNED BY t_group.group_seq;
--
-- Name: t_group_member; Type: TABLE; Schema: public; Owner: pgsql; Tablespace:
--
CREATE TABLE t_group_member (
group_seq bigint NOT NULL,
member_name character varying(32) NOT NULL,
member_cellphone character varying(16) NOT NULL,
reg_datetime timestamp without time zone NOT NULL,
update_datetime timestamp without time zone NOT NULL
);
ALTER TABLE public.t_group_member OWNER TO pgsql;
--
-- Name: t_server_list; Type: TABLE; Schema: public; Owner: pgsql; Tablespace:
--
CREATE TABLE t_server_list (
group_seq bigint NOT NULL,
server_name character varying(32) NOT NULL,
server_addr character varying(16) NOT NULL,
server_port integer NOT NULL,
server_type character varying(12) NOT NULL,
reg_datetime timestamp without time zone NOT NULL,
update_datetime timestamp without time zone NOT NULL
);
ALTER TABLE public.t_server_list OWNER TO pgsql;
--
-- Name: t_server_log; Type: TABLE; Schema: public; Owner: pgsql; Tablespace:
--
CREATE TABLE t_server_log (
log_seq bigint NOT NULL,
group_seq bigint NOT NULL,
server_name character varying(32) NOT NULL,
server_address character varying(32) NOT NULL,
server_statchgtime bigint NOT NULL,
server_status integer NOT NULL,
server_type character varying(12) NOT NULL,
server_deadcount integer NOT NULL,
reg_datetime timestamp without time zone NOT NULL,
update_datetime timestamp without time zone NOT NULL
);
ALTER TABLE public.t_server_log OWNER TO pgsql;
--
-- Name: t_server_log_log_seq_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
--
CREATE SEQUENCE t_server_log_log_seq_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.t_server_log_log_seq_seq OWNER TO pgsql;
--
-- Name: t_server_log_log_seq_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pgsql
--
ALTER SEQUENCE t_server_log_log_seq_seq OWNED BY t_server_log.log_seq;
--
-- Name: t_sms_log; Type: TABLE; Schema: public; Owner: pgsql; Tablespace:
--
CREATE TABLE t_sms_log (
sms_log_seq bigint NOT NULL,
group_seq bigint NOT NULL,
sms_id character varying(32) NOT NULL,
sms_cellphone character varying(16) NOT NULL,
sms_message text NOT NULL,
reg_datetime timestamp without time zone NOT NULL,
update_datetime timestamp without time zone NOT NULL
);
ALTER TABLE public.t_sms_log OWNER TO pgsql;
--
-- Name: t_sms_log_sms_log_seq_seq; Type: SEQUENCE; Schema: public; Owner: pgsql
--
CREATE SEQUENCE t_sms_log_sms_log_seq_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.t_sms_log_sms_log_seq_seq OWNER TO pgsql;
--
-- Name: t_sms_log_sms_log_seq_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: pgsql
--
ALTER SEQUENCE t_sms_log_sms_log_seq_seq OWNED BY t_sms_log.sms_log_seq;
--
-- Name: group_seq; Type: DEFAULT; Schema: public; Owner: pgsql
--
ALTER TABLE ONLY t_group ALTER COLUMN group_seq SET DEFAULT nextval('t_group_group_seq_seq'::regclass);
--
-- Name: log_seq; Type: DEFAULT; Schema: public; Owner: pgsql
--
ALTER TABLE ONLY t_server_log ALTER COLUMN log_seq SET DEFAULT nextval('t_server_log_log_seq_seq'::regclass);
--
-- Name: sms_log_seq; Type: DEFAULT; Schema: public; Owner: pgsql
--
ALTER TABLE ONLY t_sms_log ALTER COLUMN sms_log_seq SET DEFAULT nextval('t_sms_log_sms_log_seq_seq'::regclass);
--
-- Data for Name: t_group; Type: TABLE DATA; Schema: public; Owner: pgsql
--
COPY t_group (group_seq, group_id, group_password, group_name, deleted_yn, reg_datetime, update_datetime) FROM stdin;
1 ALL 1234 ALL N 2006-03-09 16:32:50.079344 2008-01-08 14:28:10.855279
3 ADMIN 1234 ADMIN N 2007-12-07 20:35:54.581478 2008-01-08 15:27:07.097177
\.
--
-- Name: t_group_group_seq_seq; Type: SEQUENCE SET; Schema: public; Owner: pgsql
--
SELECT pg_catalog.setval('t_group_group_seq_seq', 3, true);
--
-- Data for Name: t_group_member; Type: TABLE DATA; Schema: public; Owner: pgsql
--
COPY t_group_member (group_seq, member_name, member_cellphone, reg_datetime, update_datetime) FROM stdin;
1 01094964373 2012-04-02 16:30:26.788956 2012-04-02 16:30:26.788956
3 01065540424 2012-04-04 11:17:03.007993 2015-11-04 09:56:45.13787
1 01065540424 2009-12-16 07:29:49.302311 2015-11-04 09:56:57.520116
\.
--
-- Data for Name: t_server_list; Type: TABLE DATA; Schema: public; Owner: pgsql
--
COPY t_server_list (group_seq, server_name, server_addr, server_port, server_type, reg_datetime, update_datetime) FROM stdin;
\.
--
-- Data for Name: t_server_log; Type: TABLE DATA; Schema: public; Owner: pgsql
--
COPY t_server_log (log_seq, group_seq, server_name, server_address, server_statchgtime, server_status, server_type, server_deadcount, reg_datetime, update_datetime) FROM stdin;
\.
--
-- Name: t_server_log_log_seq_seq; Type: SEQUENCE SET; Schema: public; Owner: pgsql
--
SELECT pg_catalog.setval('t_server_log_log_seq_seq', 1, false);
--
-- Data for Name: t_sms_log; Type: TABLE DATA; Schema: public; Owner: pgsql
--
COPY t_sms_log (sms_log_seq, group_seq, sms_id, sms_cellphone, sms_message, reg_datetime, update_datetime) FROM stdin;
2 1 SH_ALL 01094964373 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:04:24 2016-08-02 18:04:24.923343 2016-08-02 18:04:24.923343
3 1 SH_ALL 01065540424 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:04:24 2016-08-02 18:04:24.923343 2016-08-02 18:04:24.923343
4 1 SH_ALL 01094964373 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:08:55 2016-08-02 18:08:55.334082 2016-08-02 18:08:55.334082
5 1 SH_ALL 01065540424 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:08:55 2016-08-02 18:08:55.334082 2016-08-02 18:08:55.334082
6 1 SH_ALL 01094964373 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:13:25 2016-08-02 18:13:25.756345 2016-08-02 18:13:25.756345
7 1 SH_ALL 01065540424 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:13:25 2016-08-02 18:13:25.756345 2016-08-02 18:13:25.756345
8 1 SH_ALL 01094964373 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:18:25 2016-08-02 18:18:25.211858 2016-08-02 18:18:25.211858
9 1 SH_ALL 01065540424 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:18:25 2016-08-02 18:18:25.211858 2016-08-02 18:18:25.211858
10 1 SH_ALL 01094964373 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:23:25 2016-08-02 18:23:25.674751 2016-08-02 18:23:25.674751
11 1 SH_ALL 01065540424 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:23:25 2016-08-02 18:23:25.674751 2016-08-02 18:23:25.674751
12 1 SH_ALL 01094964373 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:28:25 2016-08-02 18:28:25.129366 2016-08-02 18:28:25.129366
13 1 SH_ALL 01065540424 [ SK51_RCTS02 ] DEAD :: 2016-08-02 18:28:25 2016-08-02 18:28:25.129366 2016-08-02 18:28:25.129366
14 1 SH_ALL 01094964373 [ SK51_FHS002 ] DEAD :: 2016-08-04 10:57:04 2016-08-04 10:57:04.06802 2016-08-04 10:57:04.06802
15 1 SH_ALL 01065540424 [ SK51_FHS002 ] DEAD :: 2016-08-04 10:57:04 2016-08-04 10:57:04.06802 2016-08-04 10:57:04.06802
16 1 SH_ALL 01094964373 [ SK51_FHS002 ] IS BACK :: 2016-08-04 10:57:34 2016-08-04 10:57:34.124508 2016-08-04 10:57:34.124508
17 1 SH_ALL 01065540424 [ SK51_FHS002 ] IS BACK :: 2016-08-04 10:57:34 2016-08-04 10:57:34.124508 2016-08-04 10:57:34.124508
18 1 SH_ALL 01094964373 [ SK51_RC ] DEAD :: 2016-08-04 14:23:56 2016-08-04 14:23:56.3195 2016-08-04 14:23:56.3195
19 1 SH_ALL 01065540424 [ SK51_RC ] DEAD :: 2016-08-04 14:23:56 2016-08-04 14:23:56.3195 2016-08-04 14:23:56.3195
20 1 SH_ALL 01094964373 [ SK51_RC ] DEAD :: 2016-08-04 14:41:56 2016-08-04 14:41:56.125315 2016-08-04 14:41:56.125315
21 1 SH_ALL 01065540424 [ SK51_RC ] DEAD :: 2016-08-04 14:41:56 2016-08-04 14:41:56.125315 2016-08-04 14:41:56.125315
22 1 SH_ALL 01094964373 [ SK51_RC ] DEAD :: 2016-08-04 15:01:56 2016-08-04 15:01:56.161069 2016-08-04 15:01:56.161069
23 1 SH_ALL 01065540424 [ SK51_RC ] DEAD :: 2016-08-04 15:01:56 2016-08-04 15:01:56.161069 2016-08-04 15:01:56.161069
24 1 SH_ALL 01094964373 [ SK51_RC ] DEAD :: 2016-08-04 15:21:56 2016-08-04 15:21:56.162701 2016-08-04 15:21:56.162701
25 1 SH_ALL 01065540424 [ SK51_RC ] DEAD :: 2016-08-04 15:21:56 2016-08-04 15:21:56.162701 2016-08-04 15:21:56.162701
26 1 SH_ALL 01094964373 [ SK51_RC ] DEAD :: 2016-08-04 15:41:56 2016-08-04 15:41:56.247911 2016-08-04 15:41:56.247911
27 1 SH_ALL 01065540424 [ SK51_RC ] DEAD :: 2016-08-04 15:41:56 2016-08-04 15:41:56.247911 2016-08-04 15:41:56.247911
28 1 SH_ALL 01094964373 [ SK51_RC ] DEAD :: 2016-08-04 17:52:09 2016-08-04 17:52:09.099334 2016-08-04 17:52:09.099334
29 1 SH_ALL 01065540424 [ SK51_RC ] DEAD :: 2016-08-04 17:52:09 2016-08-04 17:52:09.099334 2016-08-04 17:52:09.099334
30 1 SH_ALL 01094964373 [ SK51_RC ] IS BACK :: 2016-08-04 17:53:29 2016-08-04 17:53:29.214297 2016-08-04 17:53:29.214297
31 1 SH_ALL 01065540424 [ SK51_RC ] IS BACK :: 2016-08-04 17:53:29 2016-08-04 17:53:29.214297 2016-08-04 17:53:29.214297
\.
--
-- Name: t_sms_log_sms_log_seq_seq; Type: SEQUENCE SET; Schema: public; Owner: pgsql
--
SELECT pg_catalog.setval('t_sms_log_sms_log_seq_seq', 31, true);
--
-- Name: pk_group_group_seq; Type: CONSTRAINT; Schema: public; Owner: pgsql; Tablespace:
--
ALTER TABLE ONLY t_group
ADD CONSTRAINT pk_group_group_seq PRIMARY KEY (group_seq);
--
-- Name: pk_server_log_log_seq; Type: CONSTRAINT; Schema: public; Owner: pgsql; Tablespace:
--
ALTER TABLE ONLY t_server_log
ADD CONSTRAINT pk_server_log_log_seq PRIMARY KEY (log_seq);
--
-- Name: pk_sms_log_log_seq; Type: CONSTRAINT; Schema: public; Owner: pgsql; Tablespace:
--
ALTER TABLE ONLY t_sms_log
ADD CONSTRAINT pk_sms_log_log_seq PRIMARY KEY (sms_log_seq);
--
-- Name: idx_erver_list_group_seq; Type: INDEX; Schema: public; Owner: pgsql; Tablespace:
--
CREATE INDEX idx_erver_list_group_seq ON t_server_list USING btree (group_seq);
--
-- Name: idx_group_member_group_seq; Type: INDEX; Schema: public; Owner: pgsql; Tablespace:
--
CREATE INDEX idx_group_member_group_seq ON t_group_member USING btree (group_seq);
--
-- Name: idx_server_log_log_seq; Type: INDEX; Schema: public; Owner: pgsql; Tablespace:
--
CREATE INDEX idx_server_log_log_seq ON t_server_log USING btree (log_seq);
--
-- Name: idx_server_log_regdate_time; Type: INDEX; Schema: public; Owner: pgsql; Tablespace:
--
CREATE INDEX idx_server_log_regdate_time ON t_server_log USING btree (reg_datetime);
--
-- Name: idx_server_log_server_name; Type: INDEX; Schema: public; Owner: pgsql; Tablespace:
--
CREATE INDEX idx_server_log_server_name ON t_server_log USING btree (server_name);
--
-- Name: idx_server_log_server_status; Type: INDEX; Schema: public; Owner: pgsql; Tablespace:
--
CREATE INDEX idx_server_log_server_status ON t_server_log USING btree (server_status);
--
-- Name: idx_sms_log; Type: INDEX; Schema: public; Owner: pgsql; Tablespace:
--
CREATE INDEX idx_sms_log ON t_sms_log USING btree (group_seq);
--
-- Name: public; Type: ACL; Schema: -; Owner: pgsql
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM pgsql;
GRANT ALL ON SCHEMA public TO pgsql;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- PostgreSQL database dump complete
--
+24
View File
@@ -0,0 +1,24 @@
Revision 1437
-------------------
수정일 : 2018-01-19
수정자 : 유희곤
- NEW: RC 단위 Storage 사용률 정보 표시 기능 추가 (#31703)
- RC 별 Storage 사용률, Free 비율 정보 표시
- Storage 사용률이 90% 이상인 경우 강조 표시
- NEW: FHS Storage free 용량이 1% 이하인 경우 강조 표시 (#31703)
- FHS 별 storage free 비율이 1% 이하인 경우.. background 색상 강조 표시
Revision 1406
-------------------
수정일 : 2016-08-08
수정자 : 유희곤
- NEW: SVN 신규 등록
- SKB GMS 신규 구축(#28221) 에 따라 수정된 최신 httpd.conf 등록
- SKB 환경에 맞도록 구성 웹소스 관련 wwwroot 등록
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,115 @@
<?php
define('SQL_ASSOC', MYSQL_ASSOC);
define('SQL_NUM', MYSQL_NUM);
define('SQL_BOTH', MYSQL_BOTH);
define('CRLF', "\r\n");
class dbconnect
{
var $showError;
var $dbc;
function dbconnect($host, $user, $pass, $base, $file = '', $line = 0)
{
//echo $host." ".$user." ".$pass;
if(!$this->dbc = @mysql_connect($host, $user, $pass))
{
$error = 'Cannot connect to MySQL server. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
die($error);
}
if(!@mysql_query("USE ".$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
die($error);
}
$this->showError = true;
}
function query($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return new dbcResult($result);
}
function query_bool($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function insert_id()
{
$id = $this->firstCell("SELECT LAST_INSERT_ID() as id");
return $id;
}
function fetch_array($query, $type = SQL_BOTH)
{
$result = $this->query($query);
return $result->fetch_array($type);
}
function first_cell($query)
{
$result = $this->query($query);
$row = $result->fetch_array(SQL_NUM);
return $row[0];
}
function change_base($base, $file = '', $line = 0)
{
if(!$result = @mysql_query('USE '.$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function close()
{
@mysql_close($this->dbc);
unset($this);
}
}
class dbcResult
{
function dbcResult($result)
{
$this->result = $result;
}
function fetch_array($type = SQL_BOTH)
{
return @mysql_fetch_array($this->result, $type);
}
function first_cell()
{
$row = @mysql_fetch_row($this->result);
return $row[0];
}
function num_rows()
{
return @mysql_num_rows($this->result);
}
}
?>
@@ -0,0 +1,371 @@
<?php
class DB_Sql {
var $Host = "211.38.137.35";
var $Database = "syshost";
var $Port = "5432";
var $User = "syshost";
var $Password = "alfkzmf!?{}";
var $Link_ID = 0;
var $Query_ID = 0;
var $Record = array();
var $Row = 0;
var $Seq_Table = "db_sequence";
var $Errno = 0;
var $Error = "";
var $Debug = 0;
var $Auto_Free = 0; # Set this to 1 for automatic pg_freeresult on
# last record.
var $PConnect = 0; ## Set to 1 to use persistent database connections
function ifadd($add, $me) {
if("" != $add) return " ".$me.$add;
}
/* public: constructor */
function DB_Sql($query = "") {
$this->query($query);
}
function querySafe($string) {
$string = str_replace("'", "\'", $string);
$string = str_replace("\\", "\\\\", $string);
return $string;
}
function connect() {
if ( 0 == $this->Link_ID ) {
$cstr = "dbname=".$this->Database.
$this->ifadd($this->Host, "host=").
$this->ifadd($this->Port, "port=").
$this->ifadd($this->User, "user=").
$this->ifadd($this->Password, "password=");
if(!$this->PConnect) {
$this->Link_ID = pg_connect($cstr);
} else {
$this->Link_ID = pg_pconnect($cstr);
}
if (!$this->Link_ID) {
$this->halt("connect() failed.");
}
}
}
function close() {
pg_close($this->Link_ID);
}
function query($Query_String) {
/* No empty queries, please, since PHP4 chokes on them. */
if ($Query_String == "")
/* The empty query string is passed on from the constructor,
* when calling the class without a query, e.g. in situations
* like these: '$db = new DB_Sql_Subclass;'
*/
return 0;
$this->connect();
if ($this->Debug)
printf("<br>Debug: query = %s<br>\n", $Query_String);
$this->Query_ID = pg_Exec($this->Link_ID, $Query_String);
$this->Row = 0;
$this->Error = pg_ErrorMessage($this->Link_ID);
$this->Errno = ($this->Error == "")?0:1;
if (!$this->Query_ID) {
$this->halt("Invalid SQL: ".$Query_String);
}
return $this->Query_ID;
}
function beginTrans() {
return $this->query("begin");
}
function commitTrans() {
return $this->query("commit");
}
function rollbackTrans() {
return $this->query("rollback");
}
function next_record() {
$this->Record = @pg_fetch_array($this->Query_ID, $this->Row++);
$this->Error = pg_ErrorMessage($this->Link_ID);
$this->Errno = ($this->Error == "")?0:1;
$stat = is_array($this->Record);
if (!$stat && $this->Auto_Free) {
pg_freeresult($this->Query_ID);
$this->Query_ID = 0;
}
return $stat;
}
function seek($pos) {
$this->Row = $pos;
}
function lock($table, $mode = "write") {
if ($mode == "write") {
$result = pg_Exec($this->Link_ID, "lock table $table");
} else {
$result = 1;
}
return $result;
}
function unlock() {
return pg_Exec($this->Link_ID, "commit");
}
/* public: sequence numbers */
function nextid($seq_name) {
$this->connect();
if ($this->lock($this->Seq_Table)) {
/* get sequence number (locked) and increment */
$q = sprintf("select nextid from %s where seq_name = '%s'",
$this->Seq_Table,
$seq_name);
$id = @pg_Exec($this->Link_ID, $q);
$res = @pg_Fetch_Array($id, 0);
/* No current value, make one */
if (!is_array($res)) {
$currentid = 0;
$q = sprintf("insert into %s values('%s', %s)",
$this->Seq_Table,
$seq_name,
$currentid);
$id = @pg_Exec($this->Link_ID, $q);
} else {
$currentid = $res["nextid"];
}
$nextid = $currentid + 1;
$q = sprintf("update %s set nextid = '%s' where seq_name = '%s'",
$this->Seq_Table,
$nextid,
$seq_name);
$id = @pg_Exec($this->Link_ID, $q);
$this->unlock();
} else {
$this->halt("cannot lock ".$this->Seq_Table." - has it been created?");
return 0;
}
return $nextid;
}
function metadata($table="") {
$count = 0;
$id = 0;
$res = array();
if ($table) {
$this->connect();
$id = pg_exec($this->Link_ID, "select * from $table");
if ($id < 0) {
$this->Error = pg_ErrorMessage($id);
$this->Errno = 1;
$this->halt("Metadata query failed.");
}
} else {
$id = $this->Query_ID;
if (!$id) {
$this->halt("No query specified.");
}
}
$count = pg_NumFields($id);
for ($i=0; $i<$count; $i++) {
$res[$i]["table"] = $table;
$res[$i]["name"] = pg_FieldName ($id, $i);
$res[$i]["type"] = pg_FieldType ($id, $i);
$res[$i]["len"] = pg_FieldSize ($id, $i);
$res[$i]["flags"] = "";
}
if ($table) {
pg_FreeResult($id);
}
return $res;
}
function affected_rows() {
return pg_cmdtuples($this->Query_ID);
}
function num_rows() {
return pg_numrows($this->Query_ID);
}
function num_fields() {
return pg_numfields($this->Query_ID);
}
function nf() {
return $this->num_rows();
}
function np() {
print $this->num_rows();
}
function tf($Name) {
return $this->Record[$Name];
}
function f($Name) {
if($this->Record[$Name] == "")
{
return;
//return "&nbsp;";
}
else
{
return trim($this->Record[$Name]);
//return $this->Record[$Name];
}
}
function p($Name) {
print $this->Record[$Name];
}
function halt($msg) {
printf("</td></tr></table><b>Database error:</b> %s<br>\n", $msg);
printf("<b>PostgreSQL Error</b>: %s (%s)<br>\n",
$this->Errno,
$this->Error);
die("Session halted.");
}
function table_names() {
$this->query("select relname from pg_class where relkind = 'r' and not relname like 'pg_%'");
$i=0;
while ($this->next_record())
{
$return[$i]["table_name"]= $this->f(0);
$return[$i]["tablespace_name"]=$this->Database;
$return[$i]["database"]=$this->Database;
$i++;
}
return $return;
}
}
function _query_string($method)
{
$params = $_SERVER['QUERY_STRING'];
if( $method = "POST" )
{
if( getenv("REQUEST_METHOD") == "POST" )
{
$params = "$HTTP_POST_VARS";
$params = str_replace("+", "%20", $params);
}
}
return $params;
}
function param_remove($params, $key)
{
$str = split("&", $params);
$str_cnt = sizeof($str);
for( $i=0; $i < $str_cnt; $i++ )
{
$sub_str = split("=", $str[$i]);
if( $sub_str[0] != $key )
{
$qstring .= $str[$i]. "&";
}
}
if( $qstring != "" )
{
$qstring = substr($qstring, 0, strlen($qstring)-1);
}
return $qstring;
}
function sub_page_navigate( $page, $pagecnt, $preimg, $nextimg, $params )
{
$blocknum = (integer)(($page - 1) / 10) + 1;
$spage = ($blocknum-1) * 10 + 1;
$epage = $blocknum * 10;
if( $epage > $pagecnt)
{
$epage = $pagecnt;
}
$cur_url = $_SERVER['PHP_SELF'];
if($params != "") $params = "&".$params;
if($spage > 10) //' ÀÌÀü 10°³
{
if($preimg == "")
{
printf("<a href='".$cur_url."?page=".($spage-10).$params.">¢¸</a>&nbsp;");
}else
{
printf("<a href=".$cur_url."?page=".($spage-10).$params.">".$preimg."</a>&nbsp;");
}
}else
{
if($preimg == "")
{
printf("¢¸&nbsp;");
}else
{
printf($preimg."&nbsp;");
}
}
for($i = $spage; $i <= $epage; $i++)
{
if($i == $page)
{
printf("&nbsp;<b>".$i."</b>&nbsp;");
}else
{
printf("&nbsp;<a href=".$cur_url."?page=".$i.$params.">".$i."</a>&nbsp;");
}
}
if($epage < $pagecnt)
{
if($nextimg == "")
{
printf("&nbsp;<a href=".$cur_url."?page=".($epage+1).$params.">¢º</a>");
}else
{
printf("&nbsp;<a href=".$cur_url."?page=".($epage+1).$params.">".$nextimg."</a>");
}
}else
{
if($nextimg == "")
{
printf("&nbsp;¢º");
}else
{
printf("&nbsp;".$nextimg);
}
}
}
?>
@@ -0,0 +1,55 @@
<?php
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/mysql.inc");
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/pgsql.inc");
$id = $_GET['id'];
$pw = $_GET['pw'];
$msg = $_GET['msg'];
if($id != "" && $pw != "" && $msg != "")
{
$dbConnPgSql = new DB_Sql;
$strSqlpg = "SELECT group_seq ";
$strSqlpg .= "FROM t_group ";
$strSqlpg .= "WHERE group_id = '".$id."' AND group_password = '".$pw."' AND deleted_yn = 'N'";
$dbConnPgSql->query($strSqlpg);
if($dbConnPgSql->nf() == 1)
{
$dbConnPgSql->next_record();
$group_seq = $dbConnPgSql->f("group_seq");
if($group_seq != "")
{
$strSqlpg = "SELECT member_cellphone ";
$strSqlpg .= "FROM t_group_member ";
$strSqlpg .= "WHERE group_seq = ".$group_seq;
//$strSqlpg .= "LIMIT 1 ";
$dbConnPgSql->query($strSqlpg);
if($dbConnPgSql->nf() != 0)
{
$tmpSqlmy = "";
$tmpSqlpg = "";
$dbConnMySql = new dbconnect('211.39.134.109', 'sh_trans', 'sh_trans', 'midc', __FILE__, __LINE__);
while($dbConnPgSql->next_record())
{
$cellphone = $dbConnPgSql->f("member_cellphone");
$tmpSqlmy = "INSERT INTO sms(id, dstaddr, msg, deliver) ";
$tmpSqlmy .= "VALUES ('SH_".$id."', '".$cellphone."', '".$msg."', 9)";
echo "$tmpSqlmy";
$dbConnMySql->query($tmpSqlmy,__FILE__, __LINE__);
$tmpSqlpg .= "INSERT INTO t_sms_log (group_seq, sms_id, sms_cellphone, sms_message, reg_datetime, update_datetime) ";
$tmpSqlpg .= "VALUES (".$group_seq.", 'SH_".$id."', '".$cellphone."', '".$msg."', now(), now()); ";
}
$dbConnPgSql->query($tmpSqlpg);
}
}
}
}
?>
@@ -0,0 +1,8 @@
AuthName 'ICS SERVICE STATUS -CC'
AuthType Basic
AuthUserFile /user2/service/wwwroot/controller_server_monitor/status/.htpasswd
AuthGroupFile /dev/null
ErrorDocument 401 'Sorry, check your e-mail'
<Limit GET POST>
require valid-user
</Limit>
@@ -0,0 +1 @@
aion:OKh1UVvzLrz2s
@@ -0,0 +1,377 @@
<html>
<head>
<title>######## SYSTEM-HOSTING SERVICE STATUS ######## </title>
<STYLE type=text/css>
TD { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TR { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TABLE { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
INPUT { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
}
</STYLE>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<? require "layer.js";?>
<script language="javascript1.2" type="text/javascript" src="clock.js" ></script>
<style type="text/css">
#tooltip {position:absolute;
top:5;
left:5;
border:solid 3 ffccff;
background:ffffcc;
color:660066;
font-size:9pt;
width:200;
height:20;
padding:2;
overflow:hidden;
z-index:10;
display:none;
}
</style>
</head>
<body onLoad="UpdateClocks()">
<link rel="stylesheet" href="clockstyle.css" type="text/css">
<table border="0" cellspacing="0" width="100%">
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock0" width="25%" > </td>
<td ID="Clock1" width="25%" > </td>
<td ID="Clock2" width="25%" > </td>
<td ID="Clock3" width="25%" > </td>
</tr>
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock4" width="25%" > </td>
<td ID="Clock5" width="25%" > </td>
<td ID="Clock6" width="25%" > </td>
<td ID="Clock7" width="25%" > </td>
</tr>
</table>
<br>
<?php
$monitor_member = array("OP ROOM"=>"031-781-0399",
"강명균"=>"016-574-5625",
"최현선(주중야간)"=>"011-365-0370",
"박성우(주중야간)"=>"011-9953-7630",
"김기백(주중주간)"=>"017-608-2385",
"김동민(주말야간)"=>"011-9719-8899",
"김경완"=>"011-9279-1325, 010-2800-1325",
"박정제"=>"011-9737-1955, 02-805-1955",
"강중권"=>"011-745-4849, 02-868-6378",
"임상현"=>"019-376-1236, 010-3337-1236",
"박상용"=>"011-9776-8839",
"배상범"=>"010-4613-8795, 010-4631-8795");
?>
<table border="0" cellspacing="1" width="530" align="center">
<tr align="center">
<td> <h3>######## SYSTEM-HOSTING SERVICE STATUS ########</h3></td>
</tr>
</table>
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
<marquee id="tooltip" name="tooltip"></marquee>
<?
$server_addr[0][0] = "127.0.0.1";
$server_addr[0][1] = "30002";
$server_addr[0][2] = "DREAMLINE-1";
/*
$server_addr[1][0] = "127.0.0.1";
$server_addr[1][1] = "30001";
$server_addr[1][2] = "DREAMLINE-2";
*/
$tot = count($server_addr);
for($i=0; $i < $tot; $i++){
if($i%3 == 0) echo "<table align=\"center\"><tr>";
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
continue;
} else {
fwrite($fp,"GET_SERVSTATUS", 15);
while(1) {
$test2 = fread($fp, 1024);
$test .= trim($test2);
$j = strlen($test2);
//echo $test2;
if($j < 1024) break;
}
fclose($fp);
}
//echo $test;
$pt = new parsePipe();
$result = $pt->parseIt($test);
$tot_tr = $pt->countIt();
//echo $tot_tr
?>
<td valign=top><table border=1 cellpadding=1 cellspacing=0>
<tr height="35">
<td colspan="9">
<center><b>
<font color="#000066" size="4">
MNG SERVER IP: <?=$server_addr[$i][0]?>,&nbsp;&nbsp; PORT: <?=$server_addr[$i][1]?>
(<?=$server_addr[$i][2]?>)
</font>
</b>
</center>
</td>
</tr>
<tr align="center">
<td width="170"><center><b><font color="#000066">Name</font></b></center></td>
<td width="110"><center><b><font color="#000066">Server IP</font></b></center></td>
<td width="50"><center><b><font color="#000066">Server Port</font></b></center></td>
<td width="150"><center><b><font color="#000066">Last Status Changed At</font></b></center></td>
<td width="150"><center><b><font color="#000066">Last Disk Checked At</font></b></center></td>
<td width="170"><center><b><font color="#000066">Domain</font></b></center></td>
<td width="70"><center><b><font color="#000066">Total Disk</font></b></center></td>
<td width="70"><center><b><font color="#000066">Free</font></b></center></td>
<td width="70"><center><b><font color="#000066">Used</font></b></center></td>
</tr>
<?
$totalDisk = 0;
$freeDisk = 0;
$usedDisk = 0;
for($j=0; $j<$tot_tr; $j++){
$alt_str = "[$j]".
" [SERVER STATUS] : ".$pt->translateIt($result[$j][0], 2).
" [SERVER NAME] : ".$pt->translateIt($result[$j][2],2).
" [SERVER IP] : ".$pt->translateIt($result[$j][3],3).
" [SERVER PORT] : ".$pt->translateIt($result[$j][4],4);
$totalDisk += $result[$j][8];
$freeDisk += $result[$j][9];
$usedDisk += ($result[$j][8] - $result[$j][9]);
?>
<span onmouseover="showtip('<?=$alt_str?>');" onmouseout="hidetip();">
<tr>
<td>(<?=$pt->translateIt($result[$j][0],1)?>&nbsp;<?=$pt->translateIt($result[$j][1],0)?>)&nbsp;<?=$result[$j][2]?></td>
<td align="center"><?=$pt->translateIt($result[$j][3],3)?></td>
<td align="center"><?=$pt->translateIt($result[$j][4],4)?></td>
<td align="center"><?=date("Y-m-d H:i:s", $result[$j][5])?></td>
<td align="center">
<?
if ($result[$j][6] == "-") {
echo "-";
} else {
echo date("Y-m-d H:i:s", $result[$j][6]);
}
?></td>
<td align="center"><?=$pt->translateIt($result[$j][7],7)?></td>
<td align="center"><?=$pt->translateIt($result[$j][8],8)?></td>
<td align="center" bgcolor="<?=$pt->translateIt($result[$j][10],100)?>"><?=$pt->translateIt(trim($result[$j][9]), 8)?></td>
<td align="center">
<?
if($result[$j][8] == "-") echo "-";
else echo $pt->translateIt($result[$j][8]-$result[$j][9], 9);
?>
</td>
</tr>
</span>
<?
}
?>
<tr>
<td align="center" colspan="6"><b>Storage Total</b></td>
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($totalDisk, 9)?></td>
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($freeDisk, 9)?></td>
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($usedDisk, 9)?></td>
</tr>
</table></td>
<?
if($i%3 == 2) echo "</table></tr>"; //
}
?>
<table>
</table>
<?
////////////////////
//Print REFRESHER
////////////////////
extract($_POST);
if($refresh_rate<1 || $refresh_rate>1000)
$refresh_rate = 60;
?>
<br>
<table align="center">
<tr>
<td>
<form action=<?=$PHP_SELF?> method=POST>
Refresh Rate :
<input type=text name=refresh_rate value=<?=$refresh_rate?>>
<input type=submit value=SET>
(MIN : 1, MAX : 1000)
</form>
</td>
</tr><tr>
<td align=right>
<form action=<?=$PHP_SELF?> method=POST>
<input type=hidden name=refresh_rate value=30>
<input type=submit value=RESET(30)>
</form>
</td>
</tr>
</table>
<script language="javascript" type="text/javascript" src="tooltip.js" ></script>
<script language=javascript>
function showtip(text) {
tooltip.innerText=text;
tooltip.style.display="inline";
}
function hidetip() {
tooltip.style.display="none";
}
function movetip() {
tooltip.style.pixelTop=event.y+document.body.scrollTop;
tooltip.style.pixelLeft=event.x+document.body.scrollLeft+10;
}
document.onmousemove=movetip;
</script>
</body>
</html>
<META http-equiv="refresh" content="<?=$refresh_rate?>; url=<?=$PHP_SELF?>?refresh_rate=<?=$refresh_rate?>">
<?
########
#CLASSES
########
class parsePipe {
var $tot_line;
function parseIt($givenText){
$cnt = 0;
$minValue = 0;
$maxValue = 0;
$tmp_arr = array();
$temp_arr = explode("\r\n", $givenText);
$result_arr[$i][9] = "";
$this->tot_line = count($temp_arr) == 1 ? 0 : count($temp_arr);
for($i=0; $i < $this->tot_line; $i++){
if($temp_arr[$i]!='') {
$result_arr[$i] = explode("|", $temp_arr[$i]);
$result_arr[$i][10] = "";
$tmp_arr[$i] = ($result_arr[$i][9] == '' || $result_arr[$i][9] == '-') ? 0 : $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][8] = $this->nullTrim($result_arr[$i][8]);
$result_arr[$i][9] = $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][10] = $this->nullTrim($result_arr[$i][10]);
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
}
}
$cnt = 0;
arsort($tmp_arr);
reset($tmp_arr);
while (list ($key, $val) = each ($tmp_arr)) {
//echo "$key = $val<br>";
if($val != 0) {
if($cnt == 0) {
$maxValue = $val;
$result_arr[$key][10] = "99FFFF";
$cnt++;
} else {
//if($minValue == $val) {
if($val < (2 * 1024 * 1024 * 1024 * 10)) {
$result_arr[$key][10] = "red";
}else if(($maxValue - $val) < (1024 * 1024 * 1024)) {
//echo "1GB Highed<br>";
$result_arr[$key][10] = "99FFFF";
} else {
//echo "1GB Lowed<br>";
$result_arr[$key][10] = "yellow";//$maxValue;
}
}
} else {
$result_arr[$key][10] = "white";
}
}
return $result_arr;
}
function countIt(){
return $this->tot_line;
}
function translateIt($parsedText, $type){
if($parsedText == '') return;
$eServerType = array('WWW', 'RTS', 'UISSD', 'CCDB', 'RCTS', 'GTS', "RCDB");
/*$eStatus = array('<img src=images/bu16.gif width=11 height=11>UNKNOWN',
'<img src=images/bu14.gif width=11 height=11>ALIVE',
'<img src=images/bu15.gif width=11 height=11>DEAD');*/
$eStatus = array('<img src=images/bu16.gif width=11 height=11>UNKNOWN',
'<img src=images/bu14.gif width=11 height=11>',
'<img src=images/bu15.gif width=11 height=11>');
$eStatusChar = array('UNKNOWN', 'ALIVE', 'DEAD');
switch($type){
case 0:
return $eServerType[$parsedText];
case 1:
return $eStatus[$parsedText];
case 2:
return $eStatusChar[$parsedText];
case 8:
if(trim($parsedText) == "-") return "-";
else return sprintf("%.2lfG", (trim($parsedText) / 1024) / 1024 / 1024);
case 9:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 / 1024 > 1024) {
return sprintf("%.2fT", trim($parsedText) / 1024 / 1024 / 1024 / 1024);
} else
return sprintf("%.2fG", trim($parsedText) / 1024 / 1024 / 1024);
}
default:
return $parsedText;
}
}
function nullTrim($tmp_str)
{
$return_str = "";
$maxLength = strlen($tmp_str);
for($i=0 ; $i < $maxLength ; $i++) {
if(ord(substr($tmp_str, $i, 1)) != 0) {
$return_str .= substr($tmp_str, $i, 1);
}
}
return $return_str;
}
}
?>
@@ -0,0 +1,176 @@
<?php
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/pgsql.inc");
if(getenv("REQUEST_METHOD") != "POST")
{
?>
<html>
<head>
<title></title>
<script language='javascript'>
function chkForm()
{
frm = document.info;
if(frm.group_id.value == '')
{
alert('그룹아이디를 입력하세요!');
return;
}
if(frm.group_name.value == '')
{
alert('그룹명을 입력하세요!');
return;
}
if(frm.group_password.value == '' || frm.group_password_confirm.value == '')
{
alert('비밀번호를 입력하세요!');
return;
}
if(frm.group_name.value != frm.group_password_confirm.value)
{
alert('비밀번호를 확인 하십시오!');
return;
}
frm.submit();
}
</script>
</head>
<body>
<form name='info' method='POST' action='./add_group.html'>
<table>
<tr>
<td>&nbsp;그룹ID</td>
<td><input name='group_id' maxlength='20'></td>
</tr>
<tr>
<td>&nbsp;그룹명</td>
<td><input name='group_name' maxlength='20'></td>
</tr>
<tr>
<td>&nbsp;패스워드</td>
<td><input type="password" name='group_password' maxlength='20'></td>
</tr>
<tr>
<td>&nbsp;패스워드확인</td>
<td><input type="password" name='group_password_confirm' maxlength='20'></td>
</tr>
<tr>
<td colspan='2'>
<div align='right'><a href='javascript:history.back(-1)'>뒤로</a>&nbsp;<a href='javascript:chkForm();'>추가</a></div>
</td>
</tr>
</table>
</form>
</body>
</html>
<?php
}else if(getenv("REQUEST_METHOD") == "POST")
{
$group_id = trim($_POST['group_id']);
$group_name = trim($_POST['group_name']);
$group_password = trim($_POST['group_password']);
$group_password_confirm = trim($_POST['group_password_confirm']);
if($group_id != "" && $group_name != "" && ($group_password == $group_password_confirm))
{
$objConn = new DB_Sql;
$enCoding = "set client_encoding = 'uhc'";
$objConn->query($enCoding);
$strSql = "SELECT COUNT(group_seq) AS cnt ";
$strSql .= "FROM t_group ";
$strSql .= "WHERE group_id = '".$group_id."' AND deleted_yn = 'N' ";
$objConn->query($strSql);
if($objConn->nf() != 0)
{
$objConn->next_record();
$cnt = $objConn->f("cnt");
if($cnt == 0)
{
$strSql = "INSERT INTO t_group(group_id, group_password, group_name, deleted_yn, ";
$strSql .= " reg_datetime, update_datetime) ";
$strSql .= "VALUES ('".$group_id."', '".$group_password."', '".$group_name."', 'N', now(), now())";
$objConn->query($strSql);
echo "<script language='javascript'>\n";
echo " alert('등록되었습니다.');\n";
echo " location.href = './group_list.html';\n";
echo "</script>";
}else
{
echo "<script language='javascript'>\n";
echo " alert('그룹이 존재합니다.');\n";
echo " history.back(-1);\n";
echo "</script>";
die;
}
}else
{
echo "<script language='javascript'>\n";
echo " alert('잘못된 접근입니다.');\n";
echo " history.back(-1);\n";
echo "</script>";
die;
}
}else
{
echo "<script language='javascript'>\n";
echo " alert('잘못된 접근입니다.');\n";
echo " history.back(-1);\n";
echo "</script>";
die;
}
}
die;
/*
$group_seq = trim($_POST['group']);
$member_name = trim($_POST['member_name']);
$member_cellphone = trim(str_replace("-", "", $_POST['member_cellphone']));
$strSql = "SELECT COUNT(group_seq) AS cnt ";
$strSql .= "FROM t_group_member ";
$strSql .= "WHERE group_seq = ".$group_seq." AND member_cellphone = '".$member_cellphone."'";
$objConn->query($strSql);
if($objConn->nf() != 0)
{
$objConn->next_record();
$cnt = $objConn->f("cnt");
if($cnt == 0)
{
$strSql = "INSERT INTO t_group_member(group_seq, member_name, member_cellphone, reg_datetime, update_datetime) ";
$strSql .= "VALUES (".$group_seq.", '".$member_name."', '".$member_cellphone."', now(), now())";
$objConn->query($strSql);
echo "<script language='javascript'>\n";
echo " alert('등록되었습니다.');\n";
echo " location.href = './group_list.html';\n";
echo "</script>";
}else
{
echo "<script language='javascript'>\n";
echo " alert('이미 등록되었습니다.');\n";
echo " history.back(-1);\n";
echo "</script>";
}
}
}
}else
{
echo "<script language='javascript'>\n";
echo " alert('잘못된 접근입니다..');\n";
echo " history.back(-1);\n";
echo "</script>";
die;
}
*/
?>
@@ -0,0 +1,101 @@
<?php
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/pgsql.inc");
$group_seq = isset($_GET['group']) ? $_GET['group'] : $_POST['group'];
if($group_seq != "")
{
$objConn = new DB_Sql;
$enCoding = "set client_encoding = 'uhc'";
$objConn->query($enCoding);
if(getenv("REQUEST_METHOD") == "GET")
{
?>
<html>
<head>
<title></title>
<script language='javascript'>
function chkForm()
{
frm = document.info;
if(frm.member_name.value == '')
{
alert('이름을 입력하세요!');
return;
}
if(frm.member_cellphone.value == "")
{
alert('핸드폰번호를 입력하세요!');
return;
}
frm.submit();
}
</script>
</head>
<body>
<form name='info' method='POST' action='./add_member.html'>
<table>
<tr>
<td>&nbsp;이름</td>
<td><input name='member_name' maxlength='20'></td>
</tr>
<tr>
<td>&nbsp;핸드폰</td>
<td><input name='member_cellphone' maxlength='15'></td>
</tr>
<tr>
<td colspan='2'>
<input type='hidden' name='group' value='<?= $group_seq ?>'>
<div align='right'><a href='javascript:history.back(-1)'>뒤로</a>&nbsp;<a href='javascript:chkForm();'>추가</a></div>
</td>
</tr>
</table>
</form>
</body>
</html>
<?php
}else if(getenv("REQUEST_METHOD") == "POST")
{
$group_seq = trim($_POST['group']);
$member_name = trim($_POST['member_name']);
$member_cellphone = trim(str_replace("-", "", $_POST['member_cellphone']));
$strSql = "SELECT COUNT(group_seq) AS cnt ";
$strSql .= "FROM t_group_member ";
$strSql .= "WHERE group_seq = ".$group_seq." AND member_cellphone = '".$member_cellphone."'";
$objConn->query($strSql);
if($objConn->nf() != 0)
{
$objConn->next_record();
$cnt = $objConn->f("cnt");
if($cnt == 0)
{
$strSql = "INSERT INTO t_group_member(group_seq, member_name, member_cellphone, reg_datetime, update_datetime) ";
$strSql .= "VALUES (".$group_seq.", '".$member_name."', '".$member_cellphone."', now(), now())";
$objConn->query($strSql);
echo "<script language='javascript'>\n";
echo " alert('등록되었습니다.');\n";
echo " location.href = './group_list.html';\n";
echo "</script>";
}else
{
echo "<script language='javascript'>\n";
echo " alert('이미 등록되었습니다.');\n";
echo " history.back(-1);\n";
echo "</script>";
}
}
}
}else
{
echo "<script language='javascript'>\n";
echo " alert('잘못된 접근입니다..');\n";
echo " history.back(-1);\n";
echo "</script>";
die;
}
?>
@@ -0,0 +1,292 @@
// Removes leading and trailing spaces from the passed string. Also removes
// consecutive spaces and replaces it with one space. If something besides
// a string is passed in (null, custom object, etc.) then return the input.
function trimString(inputString) {
if (typeof inputString != "string") {
return inputString;
}
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == " ") {
// Check for spaces at the beginning of the string
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ") { // Check for spaces at the end of the string
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
while (retValue.indexOf(" ") != -1) {
// Note that there are two spaces in the string - look for multiple spaces within the string
retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+ 1, retValue.length); // Again, there are two spaces in each of the strings
}
return retValue; // Return the trimmed string back to the user
}
// Ends the "trim" function
function idnKeyboard(url)
{
myPopupWin= window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=818,height=350');
myPopupWin.focus();
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+args[i+2]+args[i+3]+args[i+4]+"'");
}
function submitRequest(url)
{
self.opener.location.href=url;
self.opener.document.submit();
}
function setGainingRegIDValue(selectedform, selectedRegID ) {
selectedRegID.value = selectedform.regID.options[selectedform.regID.selectedIndex].value;
}
function PopWin(myUrl, arg1, arg2, arg3, width, height,resizable)
{
var url=myUrl+arg1+arg2+arg3;
myPopupWin = window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=700', copyhistory=0);
myPopupWin.focus();
}
function appendValues(nameObj)
{
if (isEmpty(nameObj.value) ) return;
appendOptionToSelectBox(window.document.form1.userNameList,
nameObj.value, false);
}
function appendNVPair(nameObj, valueObj)
{
if (isEmpty(nameObj.value) ) return;
if (isEmpty(valueObj.value) ) return;
str = nameObj.value + "=" + valueObj.value;
appendOptionToSelectBox(window.document.form1.userNameList, str, false);
}
function appendContPairs(nameObj, valueObj)
{
if (isEmpty(nameObj.value) ) return;
if (isEmpty(valueObj.value) ) return;
str = nameObj.value + "=" + valueObj.value;
appendOptionToSelectBox(window.document.form1.regContList, str, false);
}
function appendIPAdressValue(nameObj, valueObj)
{
if (isEmpty(nameObj.value) ) return;
if (isEmpty(valueObj.value) ) return;
str = nameObj.value + "=" + valueObj.value;
appendOptionToSelectBox(window.document.form1.nsIplist, str, false);
}
function removeNVPair()
{
if(window.document.form1.userNameList.selectedIndex >=0 ){
//removeOptionSelected(window.document.form1.userValueList);
removeOptionSelected(window.document.form1.userNameList);
}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function validateIP(theIP,theField, formCxt)
{
if( !isValidIPV4(theIP) ) {
formCxt.setError();
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
}
}
function setRegIDValue(selectedRegID ) {
selectedRegID.value = window.document.query.regID.options[window.document.query.regID.selectedIndex].value;
}
var timerID ;
function tzone(tz, os, ds, cl)
{
this.ct = new Date(0) ; // datetime
this.tz = tz ; // code
this.os = os ; // GMT offset
this.ds = ds ; // has daylight savings
this.cl = cl ; // font color
}
function UpdateClocks()
{
// www.timeanddate.com/worldclock
var ct = new Array(
new tzone('UTC: ', 0, 1, '#FFAA00'),
new tzone('KST: ', +9, 1, '#FFAA00'),
new tzone('EST: ', -5, 1, '#FFAA00'),
new tzone('GMT: ', 0, 1, '#FFAA00'),
new tzone('C N : ', +8, 0, 'silver'),
new tzone('KST: ', +9, 0, 'silver'),
new tzone('EDT: ', -4, 1, 'silver'),
new tzone('GER: ', +1, 1, 'silver')
) ;
var dt = new Date() ; // [GMT] time according to machine clock
var startDST = new Date(dt.getFullYear(), 3, 1) ;
while (startDST.getDay() != 0)
startDST.setDate(startDST.getDate() + 1) ;
var endDST = new Date(dt.getFullYear(), 9, 31) ;
while (endDST.getDay() != 0)
endDST.setDate(endDST.getDate() - 1) ;
var ds_active ; // DS currently active
if (startDST < dt && dt < endDST)
ds_active = 1 ;
else
ds_active = 0 ;
// Adjust each clock offset if that clock has DS and in DS.
for(n=0 ; n<ct.length ; n++)
if (ct[n].ds == 1 && ds_active == 1) ct[n].os++ ;
// compensate time zones
gmdt = new Date() ;
for (n=0 ; n<ct.length ; n++)
ct[n].ct = new Date(gmdt.getTime() + ct[n].os * 3600 * 1000) ;
window.document.getElementById("Clock0").innerHTML = '<font color="' + ct[0].cl + '">' + ct[0].tz + ClockString(ct[0].ct) + '</font>' ;
window.document.getElementById("Clock1").innerHTML = '<font color="' + ct[1].cl + '">' + ct[1].tz + ClockString(ct[1].ct) + '</font>' ;
window.document.getElementById("Clock2").innerHTML = '<font color="' + ct[2].cl + '">' + ct[2].tz + ClockString(ct[2].ct) + '</font>' ;
window.document.getElementById("Clock3").innerHTML = '<font color="' + ct[3].cl + '">' + ct[3].tz + ClockString(ct[3].ct) + '</font>' ;
window.document.getElementById("Clock4").innerHTML = '<font color="' + ct[4].cl + '">' + ct[4].tz + ClockString(ct[4].ct) + '</font>' ;
window.document.getElementById("Clock5").innerHTML = '<font color="' + ct[5].cl + '">' + ct[5].tz + ClockString(ct[5].ct) + '</font>' ;
window.document.getElementById("Clock6").innerHTML = '<font color="' + ct[6].cl + '">' + ct[6].tz + ClockString(ct[6].ct) + '</font>' ;
window.document.getElementById("Clock7").innerHTML = '<font color="' + ct[7].cl + '">' + ct[7].tz + ClockString(ct[7].ct) + '</font>' ;
timerID = window.setTimeout("UpdateClocks()", 1001) ;
}
function ClockString(dt)
{
var stemp, ampm ;
var dt_year = dt.getUTCFullYear() ;
var dt_month = dt.getUTCMonth() + 1 ;
var dt_day = dt.getUTCDate() ;
var dt_hour = dt.getUTCHours() ;
var dt_minute = dt.getUTCMinutes() ;
var dt_second = dt.getUTCSeconds() ;
dt_year = dt_year.toString() ;
if (0 <= dt_hour && dt_hour < 12)
{
ampm = 'AM' ;
// if (dt_hour == 0) dt_hour = 12 ;
} else {
ampm = 'PM' ;
// dt_hour = dt_hour - 12 ;
// if (dt_hour == 0) dt_hour = 12 ;
}
if (dt_hour < 10)
dt_hour = '0' + dt_hour ;
if (dt_minute < 10)
dt_minute = '0' + dt_minute ;
if (dt_second < 10)
dt_second = '0' + dt_second ;
//stemp = dt_month + '/' + dt_day + '/' + dt_year.substr(2,2) ;
stemp = dt_year + '/' + dt_month + '/' + dt_day;
stemp = stemp + ' ' + dt_hour + ":" + dt_minute + ":" + dt_second + ' ' + ampm ;
return stemp ;
}
function goToURL( myUrl, arg1, arg2, arg3 ) {
window.location.href=myUrl+arg1+arg2+arg3;
}
function validateStreet(value, theField, formCxt)
{
if(value.length >= 10) {
formCxt.setError();
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
}
}
function validateName(value,theField, formCxt )
{
if(value.length > 5) {
formCxt.setError();
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
}
}
function validateEmail(email, theField, formCxt)
{
if ( ! isValidEmail(email) ){
formCxt.setError();
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
}
}
function selectNVPair(nameObj, valueObj, nvplistObj)
{
nm = nameObj;
val = valueObj;
ix = nvplistObj.selectedIndex;
if(ix < 0 ) return;
nm.value = userNVPList.getName(ix);
val.value = userNVPList.getValue(ix);
val.focus();
}
//Name server add and delete functions
function addNS(nslistObj,nsObj)
{
appendOptionToSelectBox(nslistObj,nsObj);
}
function removeNS(nslistObj,nsObj)
{
removeOptionFromSelectBox(nslistObj,nsObj);
}
function selectNS(nslistObj,nsObj)
{
selectOption(nslistObj,nsObj);
}
function selectAll(list1, list2, list3)
{
if (list1)
selectList(list1);
if (list2)
selectList(list2);
if (list3)
selectList(list3);
}
@@ -0,0 +1,109 @@
H1 A:link, H2 A:link, H3 A:link, H4 A:link, H5 A:link, H6 A:link,
H1 A:visited, H2 A:visited, H3 A:visited, H4 A:visited, H5 A:visited, H6 A:visited
{color: #000;}
.ratBodyText
{ font-family: arial, helvetica, sans-serif; }
.ratBodyText
{ font-size: 12px; }
A:link
{ color: #000000; }
A:visited
{ color: #000000; }
A:link:hover
{color: #900;}
A:visited:hover
{color: #600;}
.ratBodyText
{ color: #000000; }
BODY {
background-color: #ffffff;
color: #000;
margin: 0px 0px;
}
.ratNav {
background-color: #036;
color: #fff;
}
.ratNav A:link, .ratNav A:visited { color: #fff; }
.ratNavHighlight A:link, .ratNavHighlight A:visited { color: #fff; }
.ratNavHighlight {
background-color: #c00;
color: #fff;
}
TD{
font-family: Arial,Vernada, Helvetica, sans-serif;
}
.ratNavText {
font-family: µ¸¿òü, Arial, Helvetica, sans-serif;
font-size: 12px;
;font-weight: bold;
line-height: 120%;
padding-left: 0px;
; text-decoration: none
; text-indent: 15pt
}
@@ -0,0 +1,86 @@
<html>
<head>
<title></title>
<script language='javascript'>
function addGroup()
{
location.href = './add_group.html';
}
</script>
<head>
<body>
<?php
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/pgsql.inc");
$objConn = new DB_Sql;
$enCoding = "set client_encoding = 'uhc'";
$objConn->query($enCoding);
$row = 0;
$table = 0;
$strSql = "SELECT a.group_seq, a.group_name, b.member_name, b.member_cellphone ";
$strSql .= "FROM t_group a ";
$strSql .= "LEFT OUTER JOIN t_group_member b ON a.group_seq = b.group_seq ";
$strSql .= "WHERE a.deleted_yn = 'N' ";
$strSql .= "ORDER BY a.group_seq, b.member_name ";
$objConn->query($strSql);
if($objConn->nf() != 0)
{
$chkFirst = 0;
while($objConn->next_record())
{
if($chkFirst == 0) $pre_group_seq = $objConn->f("group_seq");
$group_seq = $objConn->f("group_seq");
if($pre_group_seq != $group_seq)
{
$table++;
$row = 0;
}
$tmpArr[$table][$row][0] = $group_seq;
$tmpArr[$table][$row][1] = $objConn->f("group_name");
$tmpArr[$table][$row][2] = $objConn->f("member_name");
$tmpArr[$table][$row][3] = $objConn->f("member_cellphone");
//echo $table."-".$row."<br>";
//echo $pre_group_seq."-".$group_seq."<br>";
$pre_group_seq = $group_seq;
$row++;
$chkFirst++;
}
echo "<table width='230' border='0'>\n";
echo " <tr>\n";
echo " <td colspan='".($table+1)."'>\n";
echo " <a href='javascript:addGroup();'>그룹추가</a>\n";
echo " </td>\n";
echo " </tr>\n";
for($i=0; $i<($table+1); $i++)
{
if(($i+1)%3 == 0) echo " <tr align='center'>\n";
echo " <td valign='top' height='250'>\n";
echo " <table border='0' width='200'>\n";
echo " <tr>\n";
echo " <td align='center'><b>그룹명#".($i+1)." ".$tmpArr[$i][0][1]."</b></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <table border='1' width='200'>\n";
for($j=0; $j<sizeof($tmpArr[$i]); $j++)
{
echo " <tr>\n";
echo " <td width='10' align='center'>".($j+1)."</td>\n";
echo " <td width='80' align='center'><a href='./mod_member.html?group=".$tmpArr[$i][0][0]."&cell=".$tmpArr[$i][$j][3]."'>".$tmpArr[$i][$j][2]."</a></td>\n";
echo " <td width='110'>&nbsp;".$tmpArr[$i][$j][3]."</td>\n";
echo " </tr>\n";
}
echo " </table>\n";
echo "<div align='right'><a href='./add_member.html?group=".$tmpArr[$i][0][0]."'>멤버추가</a></div>";
echo " </td>\n";
if(($i+1)%3 == 0) echo " </tr>\n";
}
echo "</table>";
}
?>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 819 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 B

@@ -0,0 +1,581 @@
<?
$explain['222.122.19.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['222.122.69.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['222.122.69.17']['40004'] = '[스트리밍]FHS error event를 GTS로 전달';
$explain['222.122.69.148']['40004'] = '[스트리밍]FHS error event를 GTS로 전달';
$explain['222.122.181.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['125.141.215.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['121.254.146.5']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['125.141.243.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['121.189.28.5']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['121.189.28.10']['40004'] = '[스트리밍]FHS error event를 GTS로 전달';
$explain['121.189.28.140']['40004'] = '[스트리밍]FHS error event를 GTS로 전달';
$explain['175.117.147.8']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$serviceType = isset($_GET['service_type']) ? $_GET['service_type'] : $_POST['service_type'];
if($serviceType == "") $serviceType = 3;
//serviceType : the order described in conf file. --_-;
$width = isset($_GET['width']) ? $_GET['width'] : $_POST['width'];
if ( $width == "" ) $width=800;
header("Content-type: text/html; charset=euc-kr");
?>
<html>
<head>
<title>######## SYSTEM-HOSTING SERVICE STATUS ######## </title>
<STYLE type=text/css>
TD { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TR { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TABLE { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
INPUT { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
</STYLE>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<link rel="stylesheet" href="clockstyle.css" type="text/css">
<style type="text/css">
#tooltip {position:absolute;
top:5;
left:5;
border:solid 3 ffccff;
background:ffffcc;
color:660066;
font-size:9pt;
width:580;
height:20;
padding:2;
overflow:hidden;
z-index:10;
display:none;
}
</style>
<? require "layer.js";?>
<!-- <script language="javascript1.2" type="text/javascript" src="clock.js" ></script> -->
</head>
<!-- <body onLoad="UpdateClocks()"> -->
<body>
<form name="frm" action=<?=$_SERVER['PHP_SELF']?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType ?>">
<!--
<table border="0" cellspacing="0" width="100%">
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock0" width="25%" > </td>
<td ID="Clock1" width="25%" > </td>
<td ID="Clock2" width="25%" > </td>
<td ID="Clock3" width="25%" > </td>
</tr>
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock4" width="25%" > </td>
<td ID="Clock5" width="25%" > </td>
<td ID="Clock6" width="25%" > </td>
<td ID="Clock7" width="25%" > </td>
</tr>
</table>
//-->
<br>
<table border="0" cellspacing="1" width="530" align="center">
<tr align="center" valign="center">
<td> <h3>######## 제어 서버 모니터링 ########</h3></td>
<td>
<!--
<img src="images/bu14.gif" width=11 height=11>norm&nbsp;&nbsp;
<img src="images/bu77.gif" width=11 height=11>nomon&nbsp;&nbsp;
<img src="images/bu15.gif" width=11 height=11>fail&nbsp;&nbsp;
//-->
<button onclick=marqueeObj.start()>START</button>
<button onclick=marqueeObj.stop()>STOP</button>
</td>
</tr>
</table>
<div id="tooltip" name="tooltip" width=530></div>
<?
/* <marquee id="tooltip" name="tooltip"></marquee>*/
$server_addr[0][0] = "127.0.0.1";
$server_addr[0][1] = "30002";
$server_addr[0][2] = "KT-IDC";
$tot = count($server_addr);
for($i=0; $i < $tot; $i++){
if($i%3 == 0) echo "<table align=\"center\"><tr>";
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
continue;
} else {
fwrite($fp,"GET_SERVSTATUS", 15);
while(1) {
$test2 = fread($fp, 2048);
$test .= trim($test2);
$j = strlen($test2);
if($j < 1024) break;
}
fclose($fp);
}
//echo "\n<!-- TEST:\n$test\n-->\n";
?>
<td valign=top>
<?
$pt = new parsePipe();
$test = $pt->nullTrim($test);
$tmpArr = $pt->textArr($test);
$serviceName = $pt->serviceName($test);
$result = $pt->parseIt($tmpArr[$serviceType]);
$tot_tr = $pt->countIt();
?>
<!-- <marquee direction=up infinite behavior="scroll" width="800" height="650"> //-->
<marquee id="marqueeObj" behavior="alternate" scrolldelay=200 width=<?=$width?> height=650>
<table border=0>
<tr>
<td>
<table border=0 width=100%>
<tr>
<td>
<table border=0 cellspacing=0 width=100%>
<tr>
<td bgcolor='618FFC' align='center'>0%</td>
<td bgcolor='ADC900' align='center'>10%</td>
<td bgcolor='FEBC00' align='center'>20%</td>
<td bgcolor='F2685E' align='center'>30%</td>
<td bgcolor='618FFC' align='center'>40%</td>
<td bgcolor='ADC900' align='center'>50%</td>
<td bgcolor='FEBC00' align='center'>60%</td>
<td bgcolor='F2685E' align='center'>70%</td>
<td bgcolor='618FFC' align='center'>80%</td>
<td bgcolor='ADC900' align='center'>90%</td>
<td bgcolor='FEBC00' align='center'>100%</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=0 blcolor=yellow>
<tr>
<td>
<table border=0>
<tr>
<td>
</td>
</tr>
<?
for($j=0; $j<$tot_tr; $j++){
if (strrpos($pt->tailer($result[$j][2]), "^") == false)
$servName = $pt->tailer($result[$j][2]);
else
$servName = substr($pt->tailer($result[$j][2]), 0, strrpos($pt->tailer($result[$j][2]), "^"));
$partrc=explode("-", $servName);
$rcname="$partrc[0]$partrc[1]";
#echo "rcname = $rcname | rcname1 = $rcname1";
if ( $rcname != $rcname1 ) { ## 절반 나누어서 옆테이블로 구성
echo "</table>";
echo "</td>";
echo "<td valign=top>";
echo "<table border=0 cellpadding=3 cellspacing=1 bgcolor='b2b2b2'>";
echo "<tr>";
echo "<td bgcolor='efefef'><center><b><font color='#000066'>Name</font></b></center></td>";
echo "<td bgcolor='efefef'><center><b><font color='#000066'>Server IP</font></b></center></td>";
echo "<td bgcolor='efefef'><center><b><font color='#000066'>Port</font></b></center></td>";
#echo "<td bgcolor='efefef'><center><b><font color='#000066'>Etc</font></b></center</td>";
echo "</tr>";
}
$rcname1=$rcname;
?>
<!-- <span onmouseover="showtip('<?=$alt_str?>');" onmouseout="hidetip();"> //-->
<tr>
<?
switch($result[$j][0])
{
case 2 :
$bgcolor = 'red';
/*
$font_servName = "<font color='red'><b>".$servName."</b></font>";
$font_servIp = "<font color='red'><b>".$result[$j][3]."</b></font>";
$font_servPort = "<font color='red'><b>".$pt->translateIt($result[$j][4],4)."</b></font>";
*/
break;
case 1 :
$bgcolor = 'white';
/*
$font_servName = $servName;
$font_servIp = $result[$j][3];
$font_servPort = $pt->translateIt($result[$j][4],4);
*/
break;
default :
$bgcolor = 'white';
/*
$font_servName = $servName;
$font_servIp = $result[$j][3];
$font_servPort = $pt->translateIt($result[$j][4],4);
*/
break;
}
?>
<td bgcolor=<?=$bgcolor?> nowrap><?=$pt->translateIt($result[$j][0],1)?>&nbsp;&nbsp; <?=$servName?></td>
<td bgcolor=<?=$bgcolor?> align="center"><?=$result[$j][3]?></td>
<td bgcolor=<?=$bgcolor?> align="center"><?=$pt->translateIt($result[$j][4],4)?></td>
<!-- Etc
<td bgcolor=<?=$bgcolor?>><?=$explain[$result[$j][3]][$pt->translateIt($result[$j][4],4)]?></td>
//-->
</tr>
<!-- </span> //-->
<?
}
?>
</td>
</tr>
</table>
</table>
</marquee>
</td>
<?
if($i%3 == 2) echo "</table></tr>"; //
}
?>
<table>
</table>
<?
////////////////////
//Print REFRESHER
////////////////////
extract($_POST);
$refresh_rate = $_REQUEST['refresh_rate'];
$width = $_REQUEST['width'];
if($refresh_rate<1 || $refresh_rate>1000)
$refresh_rate = 60;
if ( $width == '')
$width = 800;
?>
<br>
<table align="center">
<tr>
<td>
Refresh Rate(1~1000) :
<input type=text name=refresh_rate width=100 value=<?=$refresh_rate?>>
Roll Size(default:800) :
<input type=text name=width value=<?=$width?>>
<input type=submit value=SET>
<input type="hidden" name="chk" value="0">
</form>
</td>
<td align=right>
<form action=<?=$_SERVER['PHP_SELF']?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType?>">
<input type=hidden name=refresh_rate value=60>
<input type=hidden name=width value=800>
<input type=submit value='RESET(60sec, 800px)'>
</form>
</td>
</tr>
</table>
<script language="javascript" type="text/javascript" src="tooltip.js" ></script>
<script language=javascript>
function showtip(text) {
tooltip.innerText=text;
tooltip.style.display="inline";
}
function hidetip() {
tooltip.style.display="none";
}
function movetip() {
tooltip.style.pixelTop=event.y+document.body.scrollTop;
tooltip.style.pixelLeft=event.x+document.body.scrollLeft + 10;
}
document.onmousemove=movetip;
</script>
</body>
</html>
<META http-equiv="refresh" content="<?=$refresh_rate?>; url=<?=$PHP_SELF?>?refresh_rate=<?=$refresh_rate?>&service_type=<?=$serviceType?>&width=<?=$width?>">
<?
########
#CLASSES
########
class parsePipe {
var $tot_line;
function parseIt($givenText){
$cnt = 0;
$minValue = 0;
$maxValue = 0;
$minLevel = 1000;
$tmp_arr = array();
$temp_arr = explode("\r\n", $givenText);
$result_arr[$i][9] = "";
$this->tot_line = count($temp_arr) == 1 ? 0 : count($temp_arr) - 1;
for($i=0; $i < $this->tot_line; $i++){
if($temp_arr[$i]!='') {
$result_arr[$i] = explode("|", $temp_arr[$i]);
$result_arr[$i][20] = "";
$tmp_arr[$i] = ($result_arr[$i][9] == '' || $result_arr[$i][9] == '-') ? 0 : $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][8] = $this->nullTrim($result_arr[$i][8]);
$result_arr[$i][9] = $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][10] = $this->nullTrim($result_arr[$i][10]);
/*
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
*/
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if ($minLevel > $result_arr[$i][11]) {
$minLevel = $result_arr[$i][11];
}
}
}
}
for ($i = 0; $i < $tot_tr; $i++) {
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0 && $result_arr[$i][11] <= $minLevel) {
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
}
}
//echo "minLevel $minLevel minValue $minValue<br>";
$cnt = 0;
arsort($tmp_arr);
reset($tmp_arr);
while (list ($key, $val) = each ($tmp_arr)) {
//echo "$key = $val<br>";
if($val != 0) {
if($cnt == 0) {
if ($minLevel < $result_arr[$key][11] ||
$result_arr[$key][10] > 0) {
$result_arr[$key][20] = "yellow";//$maxValue;
} else {
//echo "11 ".$result_arr[$key][11]." 10 ".$result_arr[$key][10]."<br>";
$maxValue = $val;
$result_arr[$key][20] = "99FFFF";
$cnt++;
}
} else {
//if($minValue == $val) {
if($val < (2 * 1024 * 1024 * 1024 * 10)) {
$result_arr[$key][20] = "red";
} else if(($maxValue - $val) < (1024 * 1024 * 1024) &&
$minLevel == $result_arr[$key][11]) {
//echo "1GB Highed<br>";
//echo "minLevel $minLevel maxValue $maxValue<br>";
$result_arr[$key][20] = "99FFFF";
} else {
//echo "1GB Lowed<br>";
$result_arr[$key][20] = "yellow";//$maxValue;
}
}
} else {
$result_arr[$key][20] = "white";
}
}
return $result_arr;
}
function countIt(){
return $this->tot_line;
}
function translateIt($parsedText, $type){
if($parsedText == '') return;
$eServerType = array('WWW', 'RTS', 'RC', 'CCDB', 'RCTS', 'GTS', "RCDB");
$eStatus = array('<img src=images/bu16_1.gif width=11 height=11>',
'<img src=images/bu14.gif width=11 height=11>',
'<img src=images/bu15.gif width=11 height=11>',
'<img src=images/bu77.gif width=11 height=11>');
$eStatusUP = array('<img src=images/bu14.gif width=11 height=11>',
'<img src=images/bu16_1.gif width=11 height=11>',
'<img src=images/bu15.gif width=11 height=11>');
$eStatusChar = array('UNKNOWN', 'ALIVE', 'DEAD', 'NO MONITORING');
switch($type){
case 0:
return $eServerType[$parsedText];
return '';
case 1:
return $eStatus[$parsedText];
case 2:
return $eStatusChar[$parsedText];
case 3:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 > 1024) {
return sprintf("<b>%.2fGB</b>",
trim($parsedText) / 1024 / 1024 / 1024 );
} else {
if (trim($parsedText) / 1024 > 1024) {
if (trim($parsedText) / 1024 / 1024 > 10) {
return sprintf("<font color=\"blue\"><b>%.2fMB</b></font>",
trim($parsedText) / 1024 / 1024 );
} else {
return sprintf("<b>%.2fMB</b>",
trim($parsedText) / 1024 / 1024 );
}
} else {
if (trim($parsedText) > 1024) {
return sprintf("%.2fKB",
trim($parsedText) / 1024 );
} else {
return sprintf("%dB",
trim($parsedText));
}
}
}
}
case 8:
if(trim($parsedText) == "-" || $parsedText == "") return "-";
else return sprintf("%.2lfG", (trim($parsedText) / 1024) / 1024 / 1024);
case 9:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 / 1024 > 1024) {
return sprintf("%.2fT", trim($parsedText) / 1024 / 1024 / 1024 / 1024);
} else
return sprintf("%.2fG", trim($parsedText) / 1024 / 1024 / 1024);
}
case 10:
return $eStatusUP[$parsedText];
case 30:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 > 1024) {
return sprintf("%.2fG",
trim($parsedText) / 1024 / 1024 / 1024 );
} else {
if (trim($parsedText) / 1024 > 1024) {
return sprintf("%.2fM",
trim($parsedText) / 1024 / 1024 );
} else {
if (trim($parsedText) > 1024) {
return sprintf("%.2fK",
trim($parsedText) / 1024 );
} else {
return sprintf("%d",
trim($parsedText));
}
}
}
}
default:
return $parsedText;
}
}
function nullTrim($tmp_str)
{
$return_str = "";
$maxLength = strlen($tmp_str);
for($i=0 ; $i < $maxLength ; $i++) {
if(ord(substr($tmp_str, $i, 1)) != 0 || $tmp_str != " ") {
$return_str .= substr($tmp_str, $i, 1);
}
}
return $return_str;
}
function textArr($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
//$str_arr[$cnt][30] = $search_str[0];
//echo $str_arr[$cnt][0]."<br>".$tmp_search_str."->".$cnt."<-"."<br>";
$cnt++;
}
$str_arr[$cnt] .= $temp_arr[$i]."\r\n";
}
return $str_arr;
}
function serviceName($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
//echo $split_str[0]."<br>";
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
$cnt++;
}
$str_arr[$cnt][0] = $tmp_search_str;
if($split_str[0] == 2) {
$str_arr[$cnt][1] = "dead";
}
// $str_arr[4][1] = "dead";
// $str_arr[1][1] = "dead";
}
return $str_arr;
}
function tailer($name)
{
$temp_arr = explode("_", $name);
$temp_arr2 = substr($name, strlen($temp_arr[0]) + 1, strlen($name));
return $temp_arr2;
}
function noYear($date)
{
$date = substr($date, 5, 14);
return $date;
}
}
?>
@@ -0,0 +1,479 @@
<?
$serviceType = isset($_GET['service_type']) ? $_GET['service_type'] : $_POST['service_type'];
if($serviceType == "") $serviceType = 0;
?>
<html>
<head>
<title>######## SYSTEM-HOSTING SERVICE STATUS ######## </title>
<STYLE type=text/css>
TD { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TR { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TABLE { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
INPUT { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
}
</STYLE>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<link rel="stylesheet" href="clockstyle.css" type="text/css">
<style type="text/css">
#tooltip {position:absolute;
top:5;
left:5;
border:solid 3 ffccff;
background:ffffcc;
color:660066;
font-size:9pt;
width:200;
height:20;
padding:2;
overflow:hidden;
z-index:10;
display:none;
}
</style>
<? require "layer.js";?>
<script language="javascript1.2" type="text/javascript" src="clock.js" ></script>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
//-->
</script>
</head>
<body onLoad="UpdateClocks()">
<form name="frm" action=<?=$PHP_SELF?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType ?>">
<table border="0" cellspacing="0" width="100%">
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock0" width="25%" > </td>
<td ID="Clock1" width="25%" > </td>
<td ID="Clock2" width="25%" > </td>
<td ID="Clock3" width="25%" > </td>
</tr>
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock4" width="25%" > </td>
<td ID="Clock5" width="25%" > </td>
<td ID="Clock6" width="25%" > </td>
<td ID="Clock7" width="25%" > </td>
</tr>
</table>
<br>
<table border="0" cellspacing="1" width="530" align="center">
<tr align="center">
<td> <h3>######## SYSTEM-HOSTING SERVICE STATUS ########</h3></td>
</tr>
</table>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:changeVisual();">클릭</a>
</td>
</tr>
</table>
<?php
$monitor_member = array("SE ROOM"=>"031-788-0191",
"강명균"=>"016-574-5625",
"최현선(주중야간)"=>"011-365-0370",
"박성우(주중야간)"=>"011-9953-7630",
"김기백(주중주간)"=>"017-608-2385",
"김동민(주말야간)"=>"011-9719-8899",
"김경완"=>"011-9279-1325, 010-2800-1325",
"신동호"=>"017-713-4785",
"박정제"=>"011-9737-1955, 02-805-1955",
"강중권"=>"011-745-4849, 02-868-6378",
"배상범"=>"010-4613-8795, 010-4631-8795");
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
<marquee id="tooltip" name="tooltip"></marquee>
<?
$server_addr[0][0] = "127.0.0.1";
$server_addr[0][1] = "30001";
$server_addr[0][2] = "DREAMLINE-1";
$tot = count($server_addr);
for($i=0; $i < $tot; $i++){
if($i%3 == 0) echo "<table align=\"center\"><tr>";
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
continue;
} else {
fwrite($fp,"GET_SERVSTATUS", 15);
while(1) {
$test2 = fread($fp, 1024);
$test .= trim($test2);
$j = strlen($test2);
if($j < 1024) break;
}
fclose($fp);
}
?>
<td valign=top>
<?
$pt = new parsePipe();
$test = $pt->nullTrim($test);
$tmpArr = $pt->textArr($test);
$serviceName = $pt->serviceName($test);
echo $test;
$result = $pt->parseIt($tmpArr[$serviceType]);
$tot_tr = $pt->countIt();
echo " <table border=0 cellpadding=0 cellspacing=0>\n";
echo " <tr>\n";
for($k=0; $k<sizeof($serviceName); $k++) {
echo " <td width='80' height='35'>\n";
echo " <font size='4'>";
echo " <a href='".$PHP_SELF."?service_type=".$k."'>";
if($serviceType==$k) echo "<b>";
echo $serviceName[$k];
if($serviceType==$k) echo "</b>";
echo " </a>";
echo " </font>";
echo " </td>\n";
}
echo " </tr>\n";
echo " </table>\n";
?>
<table border=1 cellpadding=1 cellspacing=0>
<tr height="60">
<td colspan="9">
<center><b>
<font color="#000066" size="5">
<?= $serviceName[$serviceType] ?><br><br>
</font>
<font color="#000066" size="4">
MNG SERVER IP: <?=$server_addr[$i][0]?>,&nbsp;&nbsp; PORT: <?=$server_addr[$i][1]?>
(<?=$server_addr[$i][2]?>)
</font>
</b>
</center>
</td>
</tr>
<tr align="center">
<td width="170"><center><b><font color="#000066">Name</font></b></center></td>
<td width="110"><center><b><font color="#000066">Server IP</font></b></center></td>
<td width="50"><center><b><font color="#000066">Server Port</font></b></center></td>
<td width="150"><center><b><font color="#000066">Last Status Changed At</font></b></center></td>
<td width="150"><center><b><font color="#000066">Last Disk Checked At</font></b></center></td>
<td width="170"><center><b><font color="#000066">Domain</font></b></center></td>
<td width="70"><center><b><font color="#000066">Total Disk</font></b></center></td>
<td width="70"><center><b><font color="#000066">Free</font></b></center></td>
<td width="70"><center><b><font color="#000066">Used</font></b></center></td>
</tr>
<?
$totalDisk = 0;
$freeDisk = 0;
$usedDisk = 0;
for($j=0; $j<$tot_tr; $j++){
$alt_str = "[$j]".
" [SERVER STATUS] : ".$pt->translateIt($result[$j][0], 2).
" [SERVER NAME] : ".$pt->translateIt($result[$j][2],2).
" [SERVER IP] : ".$pt->translateIt($result[$j][3],3).
" [SERVER PORT] : ".$pt->translateIt($result[$j][4],4);
$totalDisk += $result[$j][8];
$freeDisk += $result[$j][9];
$usedDisk += ($result[$j][8] - $result[$j][9]);
?>
<span onmouseover="showtip('<?=$alt_str?>');" onmouseout="hidetip();">
<tr>
<td>(<?=$pt->translateIt($result[$j][0],1)?>&nbsp;<?=$pt->translateIt($result[$j][1],0)?>)&nbsp;<?=$result[$j][2]?></td>
<td align="center"><?=$pt->translateIt($result[$j][3],3)?></td>
<td align="center"><?=$pt->translateIt($result[$j][4],4)?></td>
<td align="center"><?=date("Y-m-d H:i:s", $result[$j][5])?></td>
<td align="center">
<?
if ($result[$j][6] == "-" || $result[$j][6] == "") {
echo "-";
} else {
echo date("Y-m-d H:i:s", $result[$j][6]);
}
?></td>
<td align="center"><?=$pt->translateIt($result[$j][7],7)?></td>
<td align="center"><?=$pt->translateIt($result[$j][8],8)?></td>
<td align="center" bgcolor="<?=$pt->translateIt($result[$j][10],100)?>"><?=$pt->translateIt(trim($result[$j][9]), 8)?></td>
<td align="center">
<?
if($result[$j][8] == "-" || $result[$j][8] == "") echo "-";
else if($result[$j][8] == "0") echo "disabled";
else echo $pt->translateIt($result[$j][8]-$result[$j][9], 8);
?>
</td>
</tr>
</span>
<?
}
?>
<tr>
<td align="center" colspan="6"><b>Storage Total</b></td>
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($totalDisk, 9)?></td>
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($freeDisk, 9)?></td>
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($usedDisk, 9)?></td>
</tr>
</table></td>
<?
if($i%3 == 2) echo "</table></tr>"; //
}
?>
<table>
</table>
<?
////////////////////
//Print REFRESHER
////////////////////
extract($_POST);
if($refresh_rate<1 || $refresh_rate>1000)
$refresh_rate = 60;
?>
<br>
<table align="center">
<tr>
<td>
Refresh Rate :
<input type=text name=refresh_rate value=<?=$refresh_rate?>>
<input type=submit value=SET>
(MIN : 1, MAX : 1000)
<input type="hidden" name="chk" value="0">
</form>
</td>
</tr><tr>
<td align=right>
<form action=<?=$PHP_SELF?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType?>">
<input type=hidden name=refresh_rate value=30>
<input type=submit value=RESET(30)>
</form>
</td>
</tr>
</table>
<script language="javascript" type="text/javascript" src="tooltip.js" ></script>
<script language=javascript>
function showtip(text) {
tooltip.innerText=text;
tooltip.style.display="inline";
}
function hidetip() {
tooltip.style.display="none";
}
function movetip() {
tooltip.style.pixelTop=event.y+document.body.scrollTop;
tooltip.style.pixelLeft=event.x+document.body.scrollLeft+10;
}
document.onmousemove=movetip;
</script>
</body>
</html>
<META http-equiv="refresh" content="<?=$refresh_rate?>; url=<?=$PHP_SELF?>?refresh_rate=<?=$refresh_rate?>&service_type=<?= $serviceType ?>">
<?
########
#CLASSES
########
class parsePipe {
var $tot_line;
function parseIt($givenText){
$cnt = 0;
$minValue = 0;
$maxValue = 0;
$tmp_arr = array();
$temp_arr = explode("\r\n", $givenText);
$result_arr[$i][9] = "";
$this->tot_line = count($temp_arr) == 1 ? 0 : count($temp_arr) - 1;
for($i=0; $i < $this->tot_line; $i++){
if($temp_arr[$i]!='') {
$result_arr[$i] = explode("|", $temp_arr[$i]);
$result_arr[$i][10] = "";
$tmp_arr[$i] = ($result_arr[$i][9] == '' || $result_arr[$i][9] == '-') ? 0 : $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][8] = $this->nullTrim($result_arr[$i][8]);
$result_arr[$i][9] = $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][10] = $this->nullTrim($result_arr[$i][10]);
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
}
}
$cnt = 0;
arsort($tmp_arr);
reset($tmp_arr);
while (list ($key, $val) = each ($tmp_arr)) {
//echo "$key = $val<br>";
if($val != 0) {
if($cnt == 0) {
$maxValue = $val;
$result_arr[$key][10] = "99FFFF";
$cnt++;
} else {
//if($minValue == $val) {
if($val < (2 * 1024 * 1024 * 1024 * 10)) {
$result_arr[$key][10] = "red";
}else if(($maxValue - $val) < (1024 * 1024 * 1024)) {
//echo "1GB Highed<br>";
$result_arr[$key][10] = "99FFFF";
} else {
//echo "1GB Lowed<br>";
$result_arr[$key][10] = "yellow";//$maxValue;
}
}
} else {
$result_arr[$key][10] = "white";
}
}
return $result_arr;
}
function countIt(){
return $this->tot_line;
}
function translateIt($parsedText, $type){
if($parsedText == '') return;
$eServerType = array('WWW', 'RTS', 'UISSD', 'CCDB', 'RCTS', 'GTS', "RCDB");
/*$eStatus = array('<img src=images/bu16.gif width=11 height=11>UNKNOWN',
'<img src=images/bu14.gif width=11 height=11>ALIVE',
'<img src=images/bu15.gif width=11 height=11>DEAD');*/
$eStatus = array('<img src=images/bu16.gif width=11 height=11>UNKNOWN',
'<img src=images/bu14.gif width=11 height=11>',
'<img src=images/bu15.gif width=11 height=11>');
$eStatusChar = array('UNKNOWN', 'ALIVE', 'DEAD');
switch($type){
case 0:
return $eServerType[$parsedText];
case 1:
return $eStatus[$parsedText];
case 2:
return $eStatusChar[$parsedText];
case 8:
if(trim($parsedText) == "-" || $parsedText == "") return "-";
else return sprintf("%.2lfG", (trim($parsedText) / 1024) / 1024 / 1024);
case 9:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 / 1024 > 1024) {
return sprintf("%.2fT", trim($parsedText) / 1024 / 1024 / 1024 / 1024);
} else
return sprintf("%.2fG", trim($parsedText) / 1024 / 1024 / 1024);
}
default:
return $parsedText;
}
}
function nullTrim($tmp_str)
{
$cnt = 0;
$return_str = "";
//$tmp_str = str_replace("\r\n", "", $tmp_str);
$maxLength = strlen($tmp_str);
for($i=0 ; $i < $maxLength ; $i++) {
$splitStr = substr($tmp_str, $i, 1);
if(ord($splitStr) != 0) {
/*if($splitStr == "|") {
$cnt++;
}*/
$return_str .= substr($tmp_str, $i, 1);
//If(($cnt % 10) == 0) $return_str .= "\r\n";
}
}
return $return_str;
}
function textArr($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
//$str_arr[$cnt][30] = $search_str[0];
//echo $str_arr[$cnt][0]."<br>".$tmp_search_str."->".$cnt."<-"."<br>";
$cnt++;
}
$str_arr[$cnt] .= $temp_arr[$i]."\r\n";
}
return $str_arr;
}
function serviceName($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
$cnt++;
}
$str_arr[$cnt] = $tmp_search_str;
}
return $str_arr;
}
}
?>
@@ -0,0 +1,610 @@
<?
$explain['222.122.19.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['222.122.69.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['222.122.69.17']['40004'] = '[스트리밍]FHS error event를 GTS로 전달';
$explain['222.122.69.148']['40004'] = '[스트리밍]FHS error event를 GTS로 전달';
$explain['222.122.181.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['125.141.215.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['121.254.146.5']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['125.141.243.7']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['121.189.28.5']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$explain['121.189.28.10']['40004'] = '[스트리밍]FHS error event를 GTS로 전달';
$explain['121.189.28.140']['40004'] = '[스트리밍]FHS error event를 GTS로 전달';
$explain['175.117.147.8']['30000'] = '기동중인 서버의 Active/Standby 상태값을 결정함.';
$serviceType = isset($_GET['service_type']) ? $_GET['service_type'] : $_POST['service_type'];
if($serviceType == "") $serviceType = 3;
//serviceType : the order described in conf file. --_-;
header("Content-type: text/html; charset=euc-kr");
?>
<html>
<head>
<title>######## SYSTEM-HOSTING SERVICE STATUS ######## </title>
<STYLE type=text/css>
TD { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TR { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TABLE { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
INPUT { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
</STYLE>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<link rel="stylesheet" href="clockstyle.css" type="text/css">
<style type="text/css">
#tooltip {position:absolute;
top:5;
left:5;
border:solid 3 ffccff;
background:ffffcc;
color:660066;
font-size:9pt;
width:580;
height:20;
padding:2;
overflow:hidden;
z-index:10;
display:none;
}
</style>
<? require "layer.js";?>
<script language="javascript1.2" type="text/javascript" src="clock.js" ></script>
</head>
<body onLoad="UpdateClocks()">
<form name="frm" action=<?=$_SERVER['PHP_SELF']?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType ?>">
<table border="0" cellspacing="0" width="100%">
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock0" width="25%" > </td>
<td ID="Clock1" width="25%" > </td>
<td ID="Clock2" width="25%" > </td>
<td ID="Clock3" width="25%" > </td>
</tr>
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock4" width="25%" > </td>
<td ID="Clock5" width="25%" > </td>
<td ID="Clock6" width="25%" > </td>
<td ID="Clock7" width="25%" > </td>
</tr>
</table>
<br>
<table border="0" cellspacing="1" width="530" align="center">
<tr align="center">
<td> <h3>######## ICS CONTROL STATUS ########</h3></td>
</tr>
</table>
<table border="0" cellspacing="1" width="430" align="center">
<tr align="left">
<td>
<img src="images/bu14.gif" width=11 height=11>norm&nbsp;&nbsp;
<img src="images/bu77.gif" width=11 height=11>nomon&nbsp;&nbsp;
<img src="images/bu15.gif" width=11 height=11>fail&nbsp;&nbsp;
</td>
</tr>
</table>
<div id="tooltip" name="tooltip" width=530></div>
<?
/* <marquee id="tooltip" name="tooltip"></marquee>*/
$server_addr[0][0] = "127.0.0.1";
$server_addr[0][1] = "30002";
$server_addr[0][2] = "KT-IDC";
$tot = count($server_addr);
for($i=0; $i < $tot; $i++){
if($i%3 == 0) echo "<table align=\"center\"><tr>";
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
continue;
} else {
fwrite($fp,"GET_SERVSTATUS", 15);
while(1) {
$test2 = fread($fp, 2048);
$test .= trim($test2);
$j = strlen($test2);
if($j < 1024) break;
}
fclose($fp);
}
//echo "\n<!-- TEST:\n$test\n-->\n";
?>
<td valign=top>
<?
$pt = new parsePipe();
$test = $pt->nullTrim($test);
$tmpArr = $pt->textArr($test);
$serviceName = $pt->serviceName($test);
$result = $pt->parseIt($tmpArr[$serviceType]);
$tot_tr = $pt->countIt();
?>
<table border=0 cellpadding=3 cellspacing=1 bgcolor="b2b2b2">
<tr height="60">
<td colspan="4" bgcolor="FFFFFF">
<center><b>
<font color="#000066" size="5">
<? ## modified by nuhonda
if($serviceName[$serviceType][0]=='CCMONITOR')
echo "제어서버 모니터링";
?>
</font>
</b>
</center>
</td>
</tr>
<tr>
<td bgcolor="efefef"><center><b><font color="#000066">Name</font></b></center></td>
<td width="140" bgcolor="efefef"><center><b><font color="#000066">Server IP</font></b></center></td>
<td width="75" bgcolor="efefef"><center><b><font color="#000066">Port</font></b></center></td>
<td bgcolor="efefef"><center><b><font color="#000066">Etc</font></b></center</td>
<!--
<td width="135"><center><b><font color="#000066">Status<br>Changed</font></b></center></td>
<td width="65"><center><b><font color="#000066">Total Disk</font></b></center></td>
<td width="65"><center><b><font color="#000066">Free</font></b></center></td>
<td width="25"><center><b><font color="#000066">Upload</font>
<img src="http://sh.0x31.com/status/images/bu14.gif" width=20 height=20>norm<br>
<img src="http://sh.0x31.com/status/images/bu16_1.gif" width=20 height=20>disb<br>
<img src="http://sh.0x31.com/status/images/bu15.gif" width=20 height=20>fsck<br>
</b>
</center>
</td>
<td width="50"><center><b><font color="#000066">Disk Busy(Lq)</font></b></center></td>
<td width="100"><center><b><font color="#000066">Traffic INB(Packets)</font></b></center></td>
<td width="100"><center><b><font color="#000066">Traffic OUTB(Packets)</font></b></center></td>
<td width="50"><center><b><font color="#000066">Conn EASTAB(TOT)</font></b></center></td>
-->
</tr>
<?
$totalDisk = 0;
$freeDisk = 0;
$usedDisk = 0;
$totalRTSCount = 0;
$totalTrafficINB = 0;
$totalPacketsINB = 0;
$totalTrafficOUTB = 0;
$totalPacketsOUTB = 0;
$totalConnEstab = 0;
$totalConnAll = 0;
for($j=0; $j<$tot_tr; $j++){
//echo $serviceName[2][0];
$add_alt = "";
if (!strcmp($result[$j][20], "99FFFF")) {
$add_alt = " (UPLOAD TARGET)";
} else if ($result[$j][10] == 1) {
$add_alt = " (UPLOAD MANUALLY DISABLED)";
} else if ($result[$j][10] == 2) {
$add_alt = " (FSCK RUNNING)";
} else {
$add_alt = "";
}
$alt_str =
"[NAME] : ".
$result[$j][2].
" [STATUS] : ".
$pt->translateIt($result[$j][0], 2).$add_alt.
" [TYPE] : ".
$pt->translateIt($result[$j][1], 0);
$totalDisk += $result[$j][8];
$freeDisk += $result[$j][9];
$usedDisk += ($result[$j][8] - $result[$j][9]);
if($result[$j][2]=="RC004_RCTS01" || $result[$j][2] == "RC004_RCTS02" || $result[$j][2] == "EVENT_DB01")
{
continue;
}
if($result[$j][2] == "EVENT_DB02" || $result[$j][2] == "EVENT_PGLB01")
{
continue;
}
if ($result[$j][1] == 1) {
$totalRTSCount += 1;
}
/* Packets INB */
if ($result[$j][16] != '-') {
$totalPacketsINB += $result[$j][16];
}
/* Traffic INB */
if ($result[$j][17] != '-') {
$totalTrafficINB += $result[$j][17];
}
/* Packets OUTB */
if ($result[$j][18] != '-') {
$totalPacketsOUTB += $result[$j][18];
}
/* Traffic OUTB */
if ($result[$j][19] != '-') {
$totalTrafficOUTB += $result[$j][19];
}
/* Connection Estblished */
if ($result[$j][14] != '-') {
$totalConnEstab += $result[$j][14];
}
/* Connection All */
if ($result[$j][15] != '-') {
$totalConnAll += $result[$j][15];
}
?>
<span onmouseover="showtip('<?=$alt_str?>');" onmouseout="hidetip();">
<tr>
<?
if (strrpos($pt->tailer($result[$j][2]), "^") == false)
$servName = $pt->tailer($result[$j][2]);
else
$servName = substr($pt->tailer($result[$j][2]), 0, strrpos($pt->tailer($result[$j][2]), "^"));
?>
<?
switch($result[$j][0])
{
case 2 :
$bgcolor = 'red';
/*
$font_servName = "<font color='red'><b>".$servName."</b></font>";
$font_servIp = "<font color='red'><b>".$result[$j][3]."</b></font>";
$font_servPort = "<font color='red'><b>".$pt->translateIt($result[$j][4],4)."</b></font>";
*/
break;
case 1 :
$bgcolor = 'white';
/*
$font_servName = $servName;
$font_servIp = $result[$j][3];
$font_servPort = $pt->translateIt($result[$j][4],4);
*/
break;
default :
$bgcolor = 'white';
/*
$font_servName = $servName;
$font_servIp = $result[$j][3];
$font_servPort = $pt->translateIt($result[$j][4],4);
*/
break;
}
?>
<td bgcolor=<?=$bgcolor?>><?=$pt->translateIt($result[$j][0],1)?>&nbsp;&nbsp;<?=$servName?></td>
<td bgcolor=<?=$bgcolor?> align="center"><?=$result[$j][3]?></td>
<td bgcolor=<?=$bgcolor?> align="center"><?=$pt->translateIt($result[$j][4],4)?></td>
<td bgcolor=<?=$bgcolor?>><?=$explain[$result[$j][3]][$pt->translateIt($result[$j][4],4)]?></td>
</tr>
</span>
<?
}
?>
</table></td>
<?
if($i%3 == 2) echo "</table></tr>"; //
}
?>
<table>
</table>
<?
////////////////////
//Print REFRESHER
////////////////////
extract($_POST);
$refresh_rate = $_REQUEST['refresh_rate'];
if($refresh_rate<1 || $refresh_rate>1000)
$refresh_rate = 60;
?>
<br>
<table align="center">
<tr>
<td>
Refresh Rate :
<input type=text name=refresh_rate value=<?=$refresh_rate?>>
<input type=submit value=SET>
(MIN : 1, MAX : 1000)
<input type="hidden" name="chk" value="0">
</form>
</td>
</tr><tr>
<td align=right>
<form action=<?=$_SERVER['PHP_SELF']?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType?>">
<input type=hidden name=refresh_rate value=30>
<input type=submit value=RESET(30)>
</form>
</td>
</tr>
</table>
<script language="javascript" type="text/javascript" src="tooltip.js" ></script>
<script language=javascript>
function showtip(text) {
tooltip.innerText=text;
tooltip.style.display="inline";
}
function hidetip() {
tooltip.style.display="none";
}
function movetip() {
tooltip.style.pixelTop=event.y+document.body.scrollTop;
tooltip.style.pixelLeft=event.x+document.body.scrollLeft + 10;
}
document.onmousemove=movetip;
</script>
</body>
</html>
<META http-equiv="refresh" content="<?=$refresh_rate?>; url=<?=$PHP_SELF?>?refresh_rate=<?=$refresh_rate?>&service_type=<?= $serviceType ?>">
<?
########
#CLASSES
########
class parsePipe {
var $tot_line;
function parseIt($givenText){
$cnt = 0;
$minValue = 0;
$maxValue = 0;
$minLevel = 1000;
$tmp_arr = array();
$temp_arr = explode("\r\n", $givenText);
$result_arr[$i][9] = "";
$this->tot_line = count($temp_arr) == 1 ? 0 : count($temp_arr) - 1;
for($i=0; $i < $this->tot_line; $i++){
if($temp_arr[$i]!='') {
$result_arr[$i] = explode("|", $temp_arr[$i]);
$result_arr[$i][20] = "";
$tmp_arr[$i] = ($result_arr[$i][9] == '' || $result_arr[$i][9] == '-') ? 0 : $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][8] = $this->nullTrim($result_arr[$i][8]);
$result_arr[$i][9] = $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][10] = $this->nullTrim($result_arr[$i][10]);
/*
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
*/
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if ($minLevel > $result_arr[$i][11]) {
$minLevel = $result_arr[$i][11];
}
}
}
}
for ($i = 0; $i < $tot_tr; $i++) {
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0 && $result_arr[$i][11] <= $minLevel) {
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
}
}
//echo "minLevel $minLevel minValue $minValue<br>";
$cnt = 0;
arsort($tmp_arr);
reset($tmp_arr);
while (list ($key, $val) = each ($tmp_arr)) {
//echo "$key = $val<br>";
if($val != 0) {
if($cnt == 0) {
if ($minLevel < $result_arr[$key][11] ||
$result_arr[$key][10] > 0) {
$result_arr[$key][20] = "yellow";//$maxValue;
} else {
//echo "11 ".$result_arr[$key][11]." 10 ".$result_arr[$key][10]."<br>";
$maxValue = $val;
$result_arr[$key][20] = "99FFFF";
$cnt++;
}
} else {
//if($minValue == $val) {
if($val < (2 * 1024 * 1024 * 1024 * 10)) {
$result_arr[$key][20] = "red";
} else if(($maxValue - $val) < (1024 * 1024 * 1024) &&
$minLevel == $result_arr[$key][11]) {
//echo "1GB Highed<br>";
//echo "minLevel $minLevel maxValue $maxValue<br>";
$result_arr[$key][20] = "99FFFF";
} else {
//echo "1GB Lowed<br>";
$result_arr[$key][20] = "yellow";//$maxValue;
}
}
} else {
$result_arr[$key][20] = "white";
}
}
return $result_arr;
}
function countIt(){
return $this->tot_line;
}
function translateIt($parsedText, $type){
if($parsedText == '') return;
$eServerType = array('WWW', 'RTS', 'RC', 'CCDB', 'RCTS', 'GTS', "RCDB");
$eStatus = array('<img src=images/bu16_1.gif width=11 height=11>',
'<img src=images/bu14.gif width=11 height=11>',
'<img src=images/bu15.gif width=11 height=11>',
'<img src=images/bu77.gif width=11 height=11>');
$eStatusUP = array('<img src=images/bu14.gif width=11 height=11>',
'<img src=images/bu16_1.gif width=11 height=11>',
'<img src=images/bu15.gif width=11 height=11>');
$eStatusChar = array('UNKNOWN', 'ALIVE', 'DEAD', 'NO MONITORING');
switch($type){
case 0:
return $eServerType[$parsedText];
return '';
case 1:
return $eStatus[$parsedText];
case 2:
return $eStatusChar[$parsedText];
case 3:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 > 1024) {
return sprintf("<b>%.2fGB</b>",
trim($parsedText) / 1024 / 1024 / 1024 );
} else {
if (trim($parsedText) / 1024 > 1024) {
if (trim($parsedText) / 1024 / 1024 > 10) {
return sprintf("<font color=\"blue\"><b>%.2fMB</b></font>",
trim($parsedText) / 1024 / 1024 );
} else {
return sprintf("<b>%.2fMB</b>",
trim($parsedText) / 1024 / 1024 );
}
} else {
if (trim($parsedText) > 1024) {
return sprintf("%.2fKB",
trim($parsedText) / 1024 );
} else {
return sprintf("%dB",
trim($parsedText));
}
}
}
}
case 8:
if(trim($parsedText) == "-" || $parsedText == "") return "-";
else return sprintf("%.2lfG", (trim($parsedText) / 1024) / 1024 / 1024);
case 9:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 / 1024 > 1024) {
return sprintf("%.2fT", trim($parsedText) / 1024 / 1024 / 1024 / 1024);
} else
return sprintf("%.2fG", trim($parsedText) / 1024 / 1024 / 1024);
}
case 10:
return $eStatusUP[$parsedText];
case 30:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 > 1024) {
return sprintf("%.2fG",
trim($parsedText) / 1024 / 1024 / 1024 );
} else {
if (trim($parsedText) / 1024 > 1024) {
return sprintf("%.2fM",
trim($parsedText) / 1024 / 1024 );
} else {
if (trim($parsedText) > 1024) {
return sprintf("%.2fK",
trim($parsedText) / 1024 );
} else {
return sprintf("%d",
trim($parsedText));
}
}
}
}
default:
return $parsedText;
}
}
function nullTrim($tmp_str)
{
$return_str = "";
$maxLength = strlen($tmp_str);
for($i=0 ; $i < $maxLength ; $i++) {
if(ord(substr($tmp_str, $i, 1)) != 0 || $tmp_str != " ") {
$return_str .= substr($tmp_str, $i, 1);
}
}
return $return_str;
}
function textArr($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
//$str_arr[$cnt][30] = $search_str[0];
//echo $str_arr[$cnt][0]."<br>".$tmp_search_str."->".$cnt."<-"."<br>";
$cnt++;
}
$str_arr[$cnt] .= $temp_arr[$i]."\r\n";
}
return $str_arr;
}
function serviceName($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
//echo $split_str[0]."<br>";
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
$cnt++;
}
$str_arr[$cnt][0] = $tmp_search_str;
if($split_str[0] == 2) {
$str_arr[$cnt][1] = "dead";
}
// $str_arr[4][1] = "dead";
// $str_arr[1][1] = "dead";
}
return $str_arr;
}
function tailer($name)
{
$temp_arr = explode("_", $name);
$temp_arr2 = substr($name, strlen($temp_arr[0]) + 1, strlen($name));
return $temp_arr2;
}
function noYear($date)
{
$date = substr($date, 5, 14);
return $date;
}
}
?>
@@ -0,0 +1,13 @@
<?php
$explain['222.122.19.7']['30000'] = '±âµ¿ÁßÀÎ ¼­¹öÀÇ Active/Standby »óŰªÀ» °áÁ¤ÇÔ.';
$explain['222.122.69.7']['30000'] = '±âµ¿ÁßÀÎ ¼­¹öÀÇ Active/Standby »óŰªÀ» °áÁ¤ÇÔ.';
$explain['222.122.69.17']['40004'] = '[½ºÆ®¸®¹Ö]FHS error event¸¦ GTS·Î Àü´Þ';
$explain['222.122.69.148']['40004'] = '[½ºÆ®¸®¹Ö]FHS error event¸¦ GTS·Î Àü´Þ';
$explain['222.122.181.7']['30000'] = '±âµ¿ÁßÀÎ ¼­¹öÀÇ Active/Standby »óŰªÀ» °áÁ¤ÇÔ.';
$explain['125.141.215.7']['30000'] = '±âµ¿ÁßÀÎ ¼­¹öÀÇ Active/Standby »óŰªÀ» °áÁ¤ÇÔ.';
$explain['121.254.146.5']['30000'] = '±âµ¿ÁßÀÎ ¼­¹öÀÇ Active/Standby »óŰªÀ» °áÁ¤ÇÔ.';
$explain['125.141.243.7']['30000'] = '±âµ¿ÁßÀÎ ¼­¹öÀÇ Active/Standby »óŰªÀ» °áÁ¤ÇÔ.';
$explain['121.189.28.5']['30000'] = '±âµ¿ÁßÀÎ ¼­¹öÀÇ Active/Standby »óŰªÀ» °áÁ¤ÇÔ.';
$explain['121.189.28.10']['40004'] = '[½ºÆ®¸®¹Ö]FHS error event¸¦ GTS·Î Àü´Þ';
$explain['121.189.28.140']['40004'] = '[½ºÆ®¸®¹Ö]FHS error event¸¦ GTS·Î Àü´Þ';
?>
@@ -0,0 +1,133 @@
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_dragLayer(objName,x,hL,hT,hW,hH,toFront,dropBack,cU,cD,cL,cR,targL,targT,tol,dropJS,et,dragJS) { //v4.01
//Copyright 1998 Macromedia, Inc. All rights reserved.
var i,j,aLayer,retVal,curDrag=null,curLeft,curTop,IE=document.all,NS4=document.layers;
var NS6=(!IE&&document.getElementById), NS=(NS4||NS6); if (!IE && !NS) return false;
retVal = true; if(IE && event) event.returnValue = true;
if (MM_dragLayer.arguments.length > 1) {
curDrag = MM_findObj(objName); if (!curDrag) return false;
if (!document.allLayers) { document.allLayers = new Array();
with (document) if (NS4) { for (i=0; i<layers.length; i++) allLayers[i]=layers[i];
for (i=0; i<allLayers.length; i++) if (allLayers[i].document && allLayers[i].document.layers)
with (allLayers[i].document) for (j=0; j<layers.length; j++) allLayers[allLayers.length]=layers[j];
} else {
if (NS6) { var spns = getElementsByTagName("span"); var all = getElementsByTagName("div");
for (i=0;i<spns.length;i++) if (spns[i].style&&spns[i].style.position) allLayers[allLayers.length]=spns[i];}
for (i=0;i<all.length;i++) if (all[i].style&&all[i].style.position) allLayers[allLayers.length]=all[i];
} }
curDrag.MM_dragOk=true; curDrag.MM_targL=targL; curDrag.MM_targT=targT;
curDrag.MM_tol=Math.pow(tol,2); curDrag.MM_hLeft=hL; curDrag.MM_hTop=hT;
curDrag.MM_hWidth=hW; curDrag.MM_hHeight=hH; curDrag.MM_toFront=toFront;
curDrag.MM_dropBack=dropBack; curDrag.MM_dropJS=dropJS;
curDrag.MM_everyTime=et; curDrag.MM_dragJS=dragJS;
curDrag.MM_oldZ = (NS4)?curDrag.zIndex:curDrag.style.zIndex;
curLeft= (NS4)?curDrag.left:(NS6)?parseInt(curDrag.style.left):curDrag.style.pixelLeft;
if (String(curLeft)=="NaN") curLeft=0; curDrag.MM_startL = curLeft;
curTop = (NS4)?curDrag.top:(NS6)?parseInt(curDrag.style.top):curDrag.style.pixelTop;
if (String(curTop)=="NaN") curTop=0; curDrag.MM_startT = curTop;
curDrag.MM_bL=(cL<0)?null:curLeft-cL; curDrag.MM_bT=(cU<0)?null:curTop-cU;
curDrag.MM_bR=(cR<0)?null:curLeft+cR; curDrag.MM_bB=(cD<0)?null:curTop+cD;
curDrag.MM_LEFTRIGHT=0; curDrag.MM_UPDOWN=0; curDrag.MM_SNAPPED=false; //use in your JS!
document.onmousedown = MM_dragLayer; document.onmouseup = MM_dragLayer;
if (NS) document.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
} else {
var theEvent = ((NS)?objName.type:event.type);
if (theEvent == 'mousedown') {
var mouseX = (NS)?objName.pageX : event.clientX + document.body.scrollLeft;
var mouseY = (NS)?objName.pageY : event.clientY + document.body.scrollTop;
var maxDragZ=null; document.MM_maxZ = 0;
for (i=0; i<document.allLayers.length; i++) { aLayer = document.allLayers[i];
var aLayerZ = (NS4)?aLayer.zIndex:parseInt(aLayer.style.zIndex);
if (aLayerZ > document.MM_maxZ) document.MM_maxZ = aLayerZ;
var isVisible = (((NS4)?aLayer.visibility:aLayer.style.visibility).indexOf('hid') == -1);
if (aLayer.MM_dragOk != null && isVisible) with (aLayer) {
var parentL=0; var parentT=0;
if (NS6) { parentLayer = aLayer.parentNode;
while (parentLayer != null && parentLayer.style.position) {
parentL += parseInt(parentLayer.offsetLeft); parentT += parseInt(parentLayer.offsetTop);
parentLayer = parentLayer.parentNode;
} } else if (IE) { parentLayer = aLayer.parentElement;
while (parentLayer != null && parentLayer.style.position) {
parentL += parentLayer.offsetLeft; parentT += parentLayer.offsetTop;
parentLayer = parentLayer.parentElement; } }
var tmpX=mouseX-(((NS4)?pageX:((NS6)?parseInt(style.left):style.pixelLeft)+parentL)+MM_hLeft);
var tmpY=mouseY-(((NS4)?pageY:((NS6)?parseInt(style.top):style.pixelTop) +parentT)+MM_hTop);
if (String(tmpX)=="NaN") tmpX=0; if (String(tmpY)=="NaN") tmpY=0;
var tmpW = MM_hWidth; if (tmpW <= 0) tmpW += ((NS4)?clip.width :offsetWidth);
var tmpH = MM_hHeight; if (tmpH <= 0) tmpH += ((NS4)?clip.height:offsetHeight);
if ((0 <= tmpX && tmpX < tmpW && 0 <= tmpY && tmpY < tmpH) && (maxDragZ == null
|| maxDragZ <= aLayerZ)) { curDrag = aLayer; maxDragZ = aLayerZ; } } }
if (curDrag) {
document.onmousemove = MM_dragLayer; if (NS4) document.captureEvents(Event.MOUSEMOVE);
curLeft = (NS4)?curDrag.left:(NS6)?parseInt(curDrag.style.left):curDrag.style.pixelLeft;
curTop = (NS4)?curDrag.top:(NS6)?parseInt(curDrag.style.top):curDrag.style.pixelTop;
if (String(curLeft)=="NaN") curLeft=0; if (String(curTop)=="NaN") curTop=0;
MM_oldX = mouseX - curLeft; MM_oldY = mouseY - curTop;
document.MM_curDrag = curDrag; curDrag.MM_SNAPPED=false;
if(curDrag.MM_toFront) {
eval('curDrag.'+((NS4)?'':'style.')+'zIndex=document.MM_maxZ+1');
if (!curDrag.MM_dropBack) document.MM_maxZ++; }
retVal = false; if(!NS4&&!NS6) event.returnValue = false;
} } else if (theEvent == 'mousemove') {
if (document.MM_curDrag) with (document.MM_curDrag) {
var mouseX = (NS)?objName.pageX : event.clientX + document.body.scrollLeft;
var mouseY = (NS)?objName.pageY : event.clientY + document.body.scrollTop;
newLeft = mouseX-MM_oldX; newTop = mouseY-MM_oldY;
if (MM_bL!=null) newLeft = Math.max(newLeft,MM_bL);
if (MM_bR!=null) newLeft = Math.min(newLeft,MM_bR);
if (MM_bT!=null) newTop = Math.max(newTop ,MM_bT);
if (MM_bB!=null) newTop = Math.min(newTop ,MM_bB);
MM_LEFTRIGHT = newLeft-MM_startL; MM_UPDOWN = newTop-MM_startT;
if (NS4) {left = newLeft; top = newTop;}
else if (NS6){style.left = newLeft; style.top = newTop;}
else {style.pixelLeft = newLeft; style.pixelTop = newTop;}
if (MM_dragJS) eval(MM_dragJS);
retVal = false; if(!NS) event.returnValue = false;
} } else if (theEvent == 'mouseup') {
document.onmousemove = null;
if (NS) document.releaseEvents(Event.MOUSEMOVE);
if (NS) document.captureEvents(Event.MOUSEDOWN); //for mac NS
if (document.MM_curDrag) with (document.MM_curDrag) {
if (typeof MM_targL =='number' && typeof MM_targT == 'number' &&
(Math.pow(MM_targL-((NS4)?left:(NS6)?parseInt(style.left):style.pixelLeft),2)+
Math.pow(MM_targT-((NS4)?top:(NS6)?parseInt(style.top):style.pixelTop),2))<=MM_tol) {
if (NS4) {left = MM_targL; top = MM_targT;}
else if (NS6) {style.left = MM_targL; style.top = MM_targT;}
else {style.pixelLeft = MM_targL; style.pixelTop = MM_targT;}
MM_SNAPPED = true; MM_LEFTRIGHT = MM_startL-MM_targL; MM_UPDOWN = MM_startT-MM_targT; }
if (MM_everyTime || MM_SNAPPED) eval(MM_dropJS);
if(MM_dropBack) {if (NS4) zIndex = MM_oldZ; else style.zIndex = MM_oldZ;}
retVal = false; if(!NS) event.returnValue = false; }
document.MM_curDrag = null;
}
if (NS) document.routeEvent(objName);
} return retVal;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
@@ -0,0 +1,148 @@
<?php
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/pgsql.inc");
$group_seq = isset($_GET['group']) ? $_GET['group'] : $_POST['group'];
$member_cellphone = isset($_GET['cell']) ? $_GET['cell'] : $_POST['member_cellphone'];
if($member_cellphone != "" && $group_seq != "")
{
$objConn = new DB_Sql;
$enCoding = "set client_encoding = 'uhc'";
$objConn->query($enCoding);
if(getenv("REQUEST_METHOD") == "GET")
{
$strSql = "SELECT member_name, member_cellphone ";
$strSql .= "FROM t_group_member ";
$strSql .= "WHERE group_seq = ".$group_seq." AND member_cellphone = '".$member_cellphone."'";
$objConn->query($strSql);
if($objConn->nf() == 1)
{
$objConn->next_record();
$member_name = $objConn->f("member_name");
$member_cellphone = $objConn->f("member_cellphone");
}else
{
echo "<script language='javascript'>\n";
echo " alert('잘못된 접근입니다..');\n";
echo " history.back(-1);\n";
echo "</script>";
die;
}
?>
<html>
<head>
<title></title>
<script language='javascript'>
function chkForm()
{
frm = document.info;
if(frm.member_name.value == '')
{
alert('이름을 입력하세요!');
return;
}
if(frm.member_cellphone.value == "")
{
alert('핸드폰번호를 입력하세요!');
return;
}
frm.actiontype.value = 1;
frm.submit();
}
function delForm()
{
frm = document.info;
if(confirm('정말 삭제 하겠습니까?'))
{
frm.actiontype.value = 0;
frm.member_cellphone.value = '<?= $member_cellphone ?>';
frm.submit();
}
}
</script>
</head>
<body>
<form name='info' method='POST' action='./mod_member.html'>
<table>
<tr>
<td>&nbsp;이름</td>
<td><input name='member_name' maxlength='20' value='<?= $member_name ?>'></td>
</tr>
<tr>
<td>&nbsp;핸드폰</td>
<td><input name='member_cellphone' maxlength='15' value='<?= $member_cellphone ?>'></td>
</tr>
<tr>
<td colspan='2'>
<input type='hidden' name='group' value='<?= $group_seq ?>'>
<input type='hidden' name='actiontype'>
<input type='hidden' name='org_member_cellphone' value='<?= $member_cellphone ?>'>
<div align='right'><a href='javascript:history.back(-1)'>뒤로</a>&nbsp;<a href='javascript:delForm()'>삭제</a>&nbsp;<a href='javascript:chkForm();'>수정</a></div>
</td>
</tr>
</table>
</form>
</body>
</html>
<?php
}else if(getenv("REQUEST_METHOD") == "POST")
{
$action_type = trim($_POST['actiontype']);
$group_seq = trim($_POST['group']);
$member_name = trim($_POST['member_name']);
$member_cellphone = trim(str_replace("-", "", $_POST['member_cellphone']));
$org_member_cellphone = trim(str_replace("-", "", $_POST['org_member_cellphone']));
$strSql = "SELECT COUNT(group_seq) AS cnt ";
$strSql .= "FROM t_group_member ";
$strSql .= "WHERE group_seq = ".$group_seq." AND member_cellphone = '".$org_member_cellphone."'";
$objConn->query($strSql);
if($objConn->nf() != 0)
{
$objConn->next_record();
$cnt = $objConn->f("cnt");
if($cnt == 1)
{
if($action_type == 0) //삭제
{
$strSql = "DELETE FROM t_group_member ";
$strSql .= "WHERE group_seq = ".$group_seq." AND member_cellphone = '".$org_member_cellphone."'";
}else if($action_type == 1) //수정
{
$strSql = "UPDATE t_group_member ";
$strSql .= "SET member_name ='".$member_name."', ";
$strSql .= " member_cellphone ='".$member_cellphone."', ";
$strSql .= " update_datetime = now() ";
$strSql .= "WHERE group_seq = ".$group_seq." AND member_cellphone = '".$org_member_cellphone."'";
}
$objConn->query($strSql);
echo "<script language='javascript'>\n";
if($action_type == 0)
{
echo " alert('삭제되었습니다.');\n";
}else if($action_type == 1)
{
echo " alert('수정되었습니다.');\n";
}
echo " location.href = './group_list.html';\n";
echo "</script>";
}
}
}
}else
{
echo "<script language='javascript'>\n";
echo " alert('잘못된 접근입니다..');\n";
echo " history.back(-1);\n";
echo "</script>";
die;
}
?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1,10 @@
<?php
$id = $_GET['id'];
$pw = $_GET['pw'];
$msg = $_GET['msg'];
echo $id."<br>".$pw."<br>".$msg;
?>
@@ -0,0 +1,611 @@
<?
$serviceType = isset($_GET['service_type']) ? $_GET['service_type'] : $_POST['service_type'];
if($serviceType == "") $serviceType = 0;
//serviceType : the order described in conf file. --_-;
?>
<html>
<head>
<title>######## SYSTEM-HOSTING SERVICE STATUS ######## </title>
<STYLE type=text/css>
TD { FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TR { FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; }
TABLE { FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
INPUT { FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,굴림체'; TEXT-DECORATION: none; line-height : 120%}
}
</STYLE>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<link rel="stylesheet" href="clockstyle.css" type="text/css">
<style type="text/css">
#tooltip {position:absolute;
top:5;
left:5;
border:solid 3 ffccff;
background:ffffcc;
color:660066;
font-size:9pt;
width:580;
height:20;
padding:2;
overflow:hidden;
z-index:10;
display:none;
}
</style>
<? require "layer.js";?>
<script language="javascript1.2" type="text/javascript" src="clock.js" ></script>
</head>
<body onLoad="UpdateClocks()">
<form name="frm" action=<?=$_SERVER['PHP_SELF']?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType ?>">
<table border="0" cellspacing="0" width="100%">
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock0" width="25%" > </td>
<td ID="Clock1" width="25%" > </td>
<td ID="Clock2" width="25%" > </td>
<td ID="Clock3" width="25%" > </td>
</tr>
<tr bgcolor=#003366 class="ratNavText">
<td ID="Clock4" width="25%" > </td>
<td ID="Clock5" width="25%" > </td>
<td ID="Clock6" width="25%" > </td>
<td ID="Clock7" width="25%" > </td>
</tr>
</table>
<br>
<table border="0" cellspacing="1" width="530" align="center">
<tr align="center">
<td> <h3>######## ICS STATUS ########</h3></td>
</tr>
</table>
<table border="0" cellspacing="1" width="430" align="center">
<tr align="left">
<td>
<img src="images/bu14.gif" width=20 height=20>norm&nbsp;&nbsp;
<img src="images/bu77.gif" width=20 height=20>nomon&nbsp;&nbsp;
<img src="images/bu15.gif" width=20 height=20>fail&nbsp;&nbsp;
</td>
</tr>
</table>
<div id="tooltip" name="tooltip" width=530></div>
<?
/* <marquee id="tooltip" name="tooltip"></marquee>*/
$server_addr[0][0] = "127.0.0.1";
$server_addr[0][1] = "30002";
$server_addr[0][2] = "KT-IDC";
$tot = count($server_addr);
for($i=0; $i < $tot; $i++){
if($i%3 == 0) echo "<table align=\"center\"><tr>";
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
continue;
} else {
fwrite($fp,"GET_SERVSTATUS", 15);
while ( 1 )
{
$test2 = fread($fp, 4096);
$test .= trim($test2);
echo "TEST :\n$test2<br>"; // tael@solbox.com
$j = strlen($test2); if($j < 1024) break;
}
fclose($fp);
}
//echo "\n<!-- TEST:\n$test\n-->\n";
?>
<td valign=top>
<?
$pt = new parsePipe();
$test = $pt->nullTrim($test);
$tmpArr = $pt->textArr($test);
$serviceName = $pt->serviceName($test);
$result = $pt->parseIt($tmpArr[$serviceType]);
$tot_tr = $pt->countIt();
?>
<table border=1 cellpadding=1 cellspacing=0>
<tr height="60">
<td colspan="3">
<center><b>
<font color="#000066" size="5">
<!--
<?= $serviceName[$serviceType][0] ?>
-->
<?
if($serviceName[$serviceType][0]=='AION')
echo "AION NCSOFT";
?><br><br>
</font>
</b>
</center>
</td>
</tr>
<tr align="center">
<td width="200"><center><b><font color="#000066">Name</font></b></center></td>
<td width="140"><center><b><font color="#000066">Server IP</font></b></center></td>
<td width="75"><center><b><font color="#000066">Port</font></b></center></td>
<!--
<td width="135"><center><b><font color="#000066">Status<br>Changed</font></b></center></td>
<td width="65"><center><b><font color="#000066">Total Disk</font></b></center></td>
<td width="65"><center><b><font color="#000066">Free</font></b></center></td>
<td width="25"><center><b><font color="#000066">Upload</font>
<img src="http://sh.0x31.com/status/images/bu14.gif" width=20 height=20>norm<br>
<img src="http://sh.0x31.com/status/images/bu16_1.gif" width=20 height=20>disb<br>
<img src="http://sh.0x31.com/status/images/bu15.gif" width=20 height=20>fsck<br>
</b>
</center>
</td>
<td width="50"><center><b><font color="#000066">Disk Busy(Lq)</font></b></center></td>
<td width="100"><center><b><font color="#000066">Traffic INB(Packets)</font></b></center></td>
<td width="100"><center><b><font color="#000066">Traffic OUTB(Packets)</font></b></center></td>
<td width="50"><center><b><font color="#000066">Conn EASTAB(TOT)</font></b></center></td>
-->
</tr>
<?
$totalDisk = 0;
$freeDisk = 0;
$usedDisk = 0;
$totalRTSCount = 0;
$totalTrafficINB = 0;
$totalPacketsINB = 0;
$totalTrafficOUTB = 0;
$totalPacketsOUTB = 0;
$totalConnEstab = 0;
$totalConnAll = 0;
for($j=0; $j<$tot_tr; $j++){
$add_alt = "";
if (!strcmp($result[$j][20], "99FFFF")) {
$add_alt = " (UPLOAD TARGET)";
} else if ($result[$j][10] == 1) {
$add_alt = " (UPLOAD MANUALLY DISABLED)";
} else if ($result[$j][10] == 2) {
$add_alt = " (FSCK RUNNING)";
} else {
$add_alt = "";
}
$alt_str =
"[NAME] : ".
$result[$j][2].
" [STATUS] : ".
$pt->translateIt($result[$j][0], 2).$add_alt.
" [TYPE] : ".
$pt->translateIt($result[$j][1], 0);
$totalDisk += $result[$j][8];
$freeDisk += $result[$j][9];
$usedDisk += ($result[$j][8] - $result[$j][9]);
if($result[$j][2]=="RC004_RCTS01" || $result[$j][2] == "RC004_RCTS02" || $result[$j][2] == "EVENT_DB01")
{
continue;
}
if($result[$j][2] == "EVENT_DB02" || $result[$j][2] == "EVENT_PGLB01")
{
continue;
}
if ($result[$j][1] == 1) {
$totalRTSCount += 1;
}
/* Packets INB */
if ($result[$j][16] != '-') {
$totalPacketsINB += $result[$j][16];
}
/* Traffic INB */
if ($result[$j][17] != '-') {
$totalTrafficINB += $result[$j][17];
}
/* Packets OUTB */
if ($result[$j][18] != '-') {
$totalPacketsOUTB += $result[$j][18];
}
/* Traffic OUTB */
if ($result[$j][19] != '-') {
$totalTrafficOUTB += $result[$j][19];
}
/* Connection Estblished */
if ($result[$j][14] != '-') {
$totalConnEstab += $result[$j][14];
}
/* Connection All */
if ($result[$j][15] != '-') {
$totalConnAll += $result[$j][15];
}
?>
<span onmouseover="showtip('<?=$alt_str?>');" onmouseout="hidetip();">
<tr>
<?
if (strrpos($pt->tailer($result[$j][2]), "^") == false)
$servName = $pt->tailer($result[$j][2]);
else
$servName = substr($pt->tailer($result[$j][2]), 0, strrpos($pt->tailer($result[$j][2]), "^"));
?>
<?
switch($result[$j][0])
{
case 2 :
$bgcolor = 'red';
/*
$font_servName = "<font color='red'><b>".$servName."</b></font>";
$font_servIp = "<font color='red'><b>".$result[$j][3]."</b></font>";
$font_servPort = "<font color='red'><b>".$pt->translateIt($result[$j][4],4)."</b></font>";
*/
break;
case 1 :
$bgcolor = 'white';
/*
$font_servName = $servName;
$font_servIp = $result[$j][3];
$font_servPort = $pt->translateIt($result[$j][4],4);
*/
break;
default :
$bgcolor = 'white';
/*
$font_servName = $servName;
$font_servIp = $result[$j][3];
$font_servPort = $pt->translateIt($result[$j][4],4);
*/
break;
}
?>
<td bgcolor=<?=$bgcolor?>><?=$pt->translateIt($result[$j][0],1)?>&nbsp;&nbsp;<?=$servName?></td>
<td bgcolor=<?=$bgcolor?> align="center"><?=$result[$j][3]?></td>
<td bgcolor=<?=$bgcolor?> align="center"><?=$pt->translateIt($result[$j][4],4)?></td>
</tr>
</span>
<?
}
?>
</table></td>
<?
if($i%3 == 2) echo "</table></tr>"; //
}
?>
<table>
</table>
<?
$command = "wget --http-user=ktsh --http-password=5rhkswp0 -O ./mrtg_img/total_aion-day.png http://mrtg.ktsh.co.kr:88/customer/NCSOFT/total_aion-day.png";
system($command);
?>
<!---MRTG START---------->
<br>
<TABLE align="center" BORDER=0 CELLPADDING=0 CELLSPACING=10>
<H5> ◐ AION Cache 서버 트래픽 정보 ◑</H5>
<tr>
<td><img src='mrtg_img/total_aion-day.png'></td>
</tr>
</table>
<!---MRTG END ---------->
<?
////////////////////
//Print REFRESHER
////////////////////
extract($_POST);
$refresh_rate = $_REQUEST['refresh_rate'];
if($refresh_rate<1 || $refresh_rate>1000)
$refresh_rate = 60;
?>
<br>
<table align="center">
<tr>
<td>
Refresh Rate :
<input type=text name=refresh_rate value=<?=$refresh_rate?>>
<input type=submit value=SET>
(MIN : 1, MAX : 1000)
<input type="hidden" name="chk" value="0">
</form>
</td>
</tr><tr>
<td align=right>
<form action=<?=$_SERVER['PHP_SELF']?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType?>">
<input type=hidden name=refresh_rate value=30>
<input type=submit value=RESET(30)>
</form>
</td>
</tr>
</table>
<script language="javascript" type="text/javascript" src="tooltip.js" ></script>
<script language=javascript>
function showtip(text) {
tooltip.innerText=text;
tooltip.style.display="inline";
}
function hidetip() {
tooltip.style.display="none";
}
function movetip() {
tooltip.style.pixelTop=event.y+document.body.scrollTop;
tooltip.style.pixelLeft=event.x+document.body.scrollLeft + 10;
}
document.onmousemove=movetip;
</script>
</body>
</html>
<META http-equiv="refresh" content="<?=$refresh_rate?>; url=<?=$PHP_SELF?>?refresh_rate=<?=$refresh_rate?>&service_type=<?= $serviceType ?>">
<?
########
#CLASSES
########
class parsePipe {
var $tot_line;
function parseIt($givenText){
$cnt = 0;
$minValue = 0;
$maxValue = 0;
$minLevel = 1000;
$tmp_arr = array();
$temp_arr = explode("\r\n", $givenText);
$result_arr[$i][9] = "";
$this->tot_line = count($temp_arr) == 1 ? 0 : count($temp_arr) - 1;
for($i=0; $i < $this->tot_line; $i++){
if($temp_arr[$i]!='') {
$result_arr[$i] = explode("|", $temp_arr[$i]);
$result_arr[$i][20] = "";
$tmp_arr[$i] = ($result_arr[$i][9] == '' || $result_arr[$i][9] == '-') ? 0 : $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][8] = $this->nullTrim($result_arr[$i][8]);
$result_arr[$i][9] = $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][10] = $this->nullTrim($result_arr[$i][10]);
/*
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
*/
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if ($minLevel > $result_arr[$i][11]) {
$minLevel = $result_arr[$i][11];
}
}
}
}
for ($i = 0; $i < $tot_tr; $i++) {
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0 && $result_arr[$i][11] <= $minLevel) {
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
}
}
//echo "minLevel $minLevel minValue $minValue<br>";
$cnt = 0;
arsort($tmp_arr);
reset($tmp_arr);
while (list ($key, $val) = each ($tmp_arr)) {
//echo "$key = $val<br>";
if($val != 0) {
if($cnt == 0) {
if ($minLevel < $result_arr[$key][11] ||
$result_arr[$key][10] > 0) {
$result_arr[$key][20] = "yellow";//$maxValue;
} else {
//echo "11 ".$result_arr[$key][11]." 10 ".$result_arr[$key][10]."<br>";
$maxValue = $val;
$result_arr[$key][20] = "99FFFF";
$cnt++;
}
} else {
//if($minValue == $val) {
if($val < (2 * 1024 * 1024 * 1024 * 10)) {
$result_arr[$key][20] = "red";
} else if(($maxValue - $val) < (1024 * 1024 * 1024) &&
$minLevel == $result_arr[$key][11]) {
//echo "1GB Highed<br>";
//echo "minLevel $minLevel maxValue $maxValue<br>";
$result_arr[$key][20] = "99FFFF";
} else {
//echo "1GB Lowed<br>";
$result_arr[$key][20] = "yellow";//$maxValue;
}
}
} else {
$result_arr[$key][20] = "white";
}
}
return $result_arr;
}
function countIt(){
return $this->tot_line;
}
function translateIt($parsedText, $type){
if($parsedText == '') return;
$eServerType = array('WWW', 'RTS', 'RC', 'CCDB', 'RCTS', 'GTS', "RCDB");
$eStatus = array('<img src=images/bu16_1.gif width=20 height=20>',
'<img src=images/bu14.gif width=20 height=20>',
'<img src=images/bu15.gif width=20 height=20>',
'<img src=images/bu77.gif width=20 height=20>');
$eStatusUP = array('<img src=images/bu14.gif width=20 height=20>',
'<img src=images/bu16_1.gif width=20 height=20>',
'<img src=images/bu15.gif width=20 height=11>');
$eStatusChar = array('UNKNOWN', 'ALIVE', 'DEAD', 'NO MONITORING');
switch($type){
case 0:
return $eServerType[$parsedText];
return '';
case 1:
return $eStatus[$parsedText];
case 2:
return $eStatusChar[$parsedText];
case 3:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 > 1024) {
return sprintf("<b>%.2fGB</b>",
trim($parsedText) / 1024 / 1024 / 1024 );
} else {
if (trim($parsedText) / 1024 > 1024) {
if (trim($parsedText) / 1024 / 1024 > 10) {
return sprintf("<font color=\"blue\"><b>%.2fMB</b></font>",
trim($parsedText) / 1024 / 1024 );
} else {
return sprintf("<b>%.2fMB</b>",
trim($parsedText) / 1024 / 1024 );
}
} else {
if (trim($parsedText) > 1024) {
return sprintf("%.2fKB",
trim($parsedText) / 1024 );
} else {
return sprintf("%dB",
trim($parsedText));
}
}
}
}
case 8:
if(trim($parsedText) == "-" || $parsedText == "") return "-";
else return sprintf("%.2lfG", (trim($parsedText) / 1024) / 1024 / 1024);
case 9:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 / 1024 > 1024) {
return sprintf("%.2fT", trim($parsedText) / 1024 / 1024 / 1024 / 1024);
} else
return sprintf("%.2fG", trim($parsedText) / 1024 / 1024 / 1024);
}
case 10:
return $eStatusUP[$parsedText];
case 30:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 > 1024) {
return sprintf("%.2fG",
trim($parsedText) / 1024 / 1024 / 1024 );
} else {
if (trim($parsedText) / 1024 > 1024) {
return sprintf("%.2fM",
trim($parsedText) / 1024 / 1024 );
} else {
if (trim($parsedText) > 1024) {
return sprintf("%.2fK",
trim($parsedText) / 1024 );
} else {
return sprintf("%d",
trim($parsedText));
}
}
}
}
default:
return $parsedText;
}
}
function nullTrim($tmp_str)
{
$return_str = "";
$maxLength = strlen($tmp_str);
for($i=0 ; $i < $maxLength ; $i++) {
if(ord(substr($tmp_str, $i, 1)) != 0 || $tmp_str != " ") {
$return_str .= substr($tmp_str, $i, 1);
}
}
return $return_str;
}
function textArr($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
//$str_arr[$cnt][30] = $search_str[0];
//echo $str_arr[$cnt][0]."<br>".$tmp_search_str."->".$cnt."<-"."<br>";
$cnt++;
}
$str_arr[$cnt] .= $temp_arr[$i]."\r\n";
}
return $str_arr;
}
function serviceName($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
//echo $split_str[0]."<br>";
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
$cnt++;
}
$str_arr[$cnt][0] = $tmp_search_str;
if($split_str[0] == 2) {
$str_arr[$cnt][1] = "dead";
}
// $str_arr[4][1] = "dead";
// $str_arr[1][1] = "dead";
}
return $str_arr;
}
function tailer($name)
{
$temp_arr = explode("_", $name);
$temp_arr2 = substr($name, strlen($temp_arr[0]) + 1, strlen($name));
return $temp_arr2;
}
function noYear($date)
{
$date = substr($date, 5, 14);
return $date;
}
}
?>
@@ -0,0 +1,12 @@
function showtip(text) {
tooltip.innerText=text;
tooltip.style.display="inline";
}
function hidetip() {
tooltip.style.display="none";
}
function movetip() {
tooltip.style.pixelTop=event.y+document.body.scrollTop;
tooltip.style.pixelLeft=event.x+document.body.scrollLeft+10;
}
document.onmousemove=movetip;
@@ -0,0 +1 @@
ktsh:dGJUsrzaYl/zk
@@ -0,0 +1,7 @@
AuthUserFile /user/service/wwwroot/htpasswd/.htpasswd
AuthGroupFile /dev/null
AuthName "KT ADMIN"
AuthType Basic
<Limit GET>
require valid-user
</Limit>
@@ -0,0 +1 @@
<?php phpinfo(); ?>
@@ -0,0 +1,84 @@
<?php
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/mysql.inc");
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/pgsql.inc");
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/sendmail.inc");
$mseg = $_REQUEST['msg'];
$body_in = $_REQUEST['body'];
$msg = "[".$_REQUEST['host'].":".$_REQUEST['owner']."]::".$mseg;
$to_mails = $_REQUEST['mailto'];
#$from_mail = "icsalert@netomi.co.kr";
$from_mail = "icsalert@solbox.com";
$body = trim(htmlBody($body_in));
//echo("BODY $body");
echo("MSG $msg TO_MAILS $to_mails\n");
$to_mail = explode(",", $to_mails);
$cnt = count($to_mail);
for($i=0; $i < $cnt; $i++) {
$sendmail = new sendmail("127.0.0.1", 25, 30);
$sendmail->open();
echo("TO $to_mail[$i] FROM $from_mail MSG $msg BODY $body\n");
$sendmail->send($to_mail[$i], $from_mail, trim($msg), $body);
$sendmail->close();
}
/*
if($id != "" && $pw != "" && $msg != "")
{
$dbConnPgSql = new DB_Sql;
$strSqlpg = "SELECT group_seq ";
$strSqlpg .= "FROM t_group ";
$strSqlpg .= "WHERE group_id = '".$id."' AND group_password = '".$pw."' AND deleted_yn = 'N'";
$dbConnPgSql->query($strSqlpg);
if($dbConnPgSql->nf() == 1)
{
$dbConnPgSql->next_record();
$group_seq = $dbConnPgSql->f("group_seq");
if($group_seq != "")
{
$strSqlpg = "SELECT member_cellphone ";
$strSqlpg .= "FROM t_group_member ";
$strSqlpg .= "WHERE group_seq = ".$group_seq;
//$strSqlpg .= " AND member_cellphone='0117454849'";
//$strSqlpg .= "LIMIT 1 ";
//echo $strSqlpg."<br>";
$dbConnPgSql->query($strSqlpg);
//echo $dbConnPgSql->nf()."<br>";
if($dbConnPgSql->nf() != 0)
{
$tmpSqlmy = "";
$tmpSqlpg = "";
//echo "1"."<br>";
$dbConnMySql = new dbconnect('211.39.134.109', 'sh_trans', 'sh_trans', 'midc', __FILE__, __LINE__);
//echo "2";
while($dbConnPgSql->next_record())
{
$cellphone = $dbConnPgSql->f("member_cellphone");
$tmpSqlmy = "INSERT INTO sms(id, dstaddr, msg, deliver) ";
$tmpSqlmy .= "VALUES ('SH_".$id."', '".$cellphone."', '".$msg."', 9)";
//echo "$tmpSqlmy";
$dbConnMySql->query($tmpSqlmy,__FILE__, __LINE__);
$tmpSqlpg .= "INSERT INTO t_sms_log (group_seq, sms_id, sms_cellphone, sms_message, reg_datetime, update_datetime) ";
$tmpSqlpg .= "VALUES (".$group_seq.", 'SH_".$id."', '".$cellphone."', '".$msg."', now(), now()); ";
}
$dbConnPgSql->query($tmpSqlpg);
}
//echo "3";
}
}
}
*/
?>
@@ -0,0 +1,2 @@
[2010-08-16 20:37:20]Called ADDR : 222.122.171.11
[2010-08-16 20:37:20]Called ADDR : 222.122.171.11
@@ -0,0 +1,54 @@
<?php
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/mysql.inc");
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/pgsql.inc");
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/sendmail.inc");
// $handle = fopen("log.txt", "a+");
$ndate = "[".date('Y-m-d H:i:s',$_SERVER['REQUEST_TIME'])."]";
// fwrite($handle, $ndate."Called ADDR : ".$_SERVER["REMOTE_ADDR"]."\r\n");
$mseg = $_REQUEST['msg'];
$body_in = $_REQUEST['body'];
$msg = "[".$_REQUEST['host'].":".$_REQUEST['owner']."]::".$mseg;
$to_mails = $_REQUEST['mailto'];
// CHG 2010-06-01 huibong netomi.co.kr domain expired & new domain information set.
// CHG 2010-06-03 huibong from & sender is equal.. google mail not tranfer...icsaler@solbox.com to svc1@solbox.com changed..
//$from_mail = "icsalert@netomi.co.kr";
//$from_mail = "icsalert@solbox.com";
$from_mail = "svc1@solbox.com";
$body = trim(htmlBody($body_in));
//echo("BODY $body");
//echo("MSG $msg TO_MAILS $to_mails\n");
$errmsg="";
//fwrite($handle, $ndate."body_in : ".$body_in."\r\n");
try {
$to_mail = explode(",", $to_mails);
$cnt = count($to_mail);
for($i=0; $i < $cnt; $i++) {
$sendmail = new sendmail("127.0.0.1", 25, 30);
$sendmail->open();
//echo("TO $to_mail[$i] FROM $from_mail MSG $msg BODY $body\n");
$sendmail->send($to_mail[$i], $from_mail, trim($msg), $body);
$sendmail->close();
}
} catch (Exception $e) {
//echo 'Caught exception: ', $e->getMessage(), "\n";
$errmsg = 'Caught exception: '.$e->getMessage()."\n";
// fwrite($handle, $ndate."Called ADDR : ".$_SERVER["REMOTE_ADDR"].
// ",Error - ".$errmsg."\r\n");
}
if(empty($errmsg))
{
//fwrite($handle, $ndate."Called ADDR : ".$_SERVER["REMOTE_ADDR"]."\r\n");
}
// fclose($handle);
?>
@@ -0,0 +1,89 @@
<?php
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/mysql.inc");
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/pgsql.inc");
require_once ($_SERVER['DOCUMENT_ROOT']."/inc/sendmail.inc");
$mseg = $_REQUEST['msg'];
$body_in = $_REQUEST['body'];
$msg = "[".$_REQUEST['host'].":".$_REQUEST['owner']."]::".$mseg;
$to_mails = $_REQUEST['mailto'];
// CHG 2010-06-01 huibong netomi.co.kr domain expired & new domain information set.
// CHG 2010-06-03 huibong from & sender is equal.. google mail not tranfer...icsaler@solbox.com to svc1@solbox.com changed..
//$from_mail = "icsalert@netomi.co.kr";
//$from_mail = "icsalert@solbox.com";
$from_mail = "svc1@solbox.com";
$body = trim(htmlBody($body_in));
//echo("BODY $body");
echo("MSG $msg TO_MAILS $to_mails\n");
$to_mail = explode(",", $to_mails);
$cnt = count($to_mail);
for($i=0; $i < $cnt; $i++) {
$sendmail = new sendmail("127.0.0.1", 25, 30);
$sendmail->open();
echo("TO $to_mail[$i] FROM $from_mail MSG $msg BODY $body\n");
$sendmail->send($to_mail[$i], $from_mail, trim($msg), $body);
$sendmail->close();
}
/*
if($id != "" && $pw != "" && $msg != "")
{
$dbConnPgSql = new DB_Sql;
$strSqlpg = "SELECT group_seq ";
$strSqlpg .= "FROM t_group ";
$strSqlpg .= "WHERE group_id = '".$id."' AND group_password = '".$pw."' AND deleted_yn = 'N'";
$dbConnPgSql->query($strSqlpg);
if($dbConnPgSql->nf() == 1)
{
$dbConnPgSql->next_record();
$group_seq = $dbConnPgSql->f("group_seq");
if($group_seq != "")
{
$strSqlpg = "SELECT member_cellphone ";
$strSqlpg .= "FROM t_group_member ";
$strSqlpg .= "WHERE group_seq = ".$group_seq;
//$strSqlpg .= " AND member_cellphone='0117454849'";
//$strSqlpg .= "LIMIT 1 ";
//echo $strSqlpg."<br>";
$dbConnPgSql->query($strSqlpg);
//echo $dbConnPgSql->nf()."<br>";
if($dbConnPgSql->nf() != 0)
{
$tmpSqlmy = "";
$tmpSqlpg = "";
//echo "1"."<br>";
$dbConnMySql = new dbconnect('211.39.134.109', 'sh_trans', 'sh_trans', 'midc', __FILE__, __LINE__);
//echo "2";
while($dbConnPgSql->next_record())
{
$cellphone = $dbConnPgSql->f("member_cellphone");
$tmpSqlmy = "INSERT INTO sms(id, dstaddr, msg, deliver) ";
$tmpSqlmy .= "VALUES ('SH_".$id."', '".$cellphone."', '".$msg."', 9)";
//echo "$tmpSqlmy";
$dbConnMySql->query($tmpSqlmy,__FILE__, __LINE__);
$tmpSqlpg .= "INSERT INTO t_sms_log (group_seq, sms_id, sms_cellphone, sms_message, reg_datetime, update_datetime) ";
$tmpSqlpg .= "VALUES (".$group_seq.", 'SH_".$id."', '".$cellphone."', '".$msg."', now(), now()); ";
}
$dbConnPgSql->query($tmpSqlpg);
}
//echo "3";
}
}
}
*/
?>
@@ -0,0 +1,14 @@
<?php
$msg = "I'm a line that is a message.\n";
$path = $_SERVER['DOCUMENT_ROOT'] . '/logs/myawesome_logfile.txt';
$f = fopen($path, "a+");
fwrite($f, $msg);
fclose($f);
chmod($path, 0777);
$ourFileName = "./testFile.txt";
$ourFileHandle = fopen($ourFileName, 'w+') or die("can't open file");
fclose($ourFileHandle);
phpinfo();
?>
@@ -0,0 +1,47 @@
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20971520000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20971520000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20971520000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20971520000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20971076501
222.122.153.83 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2FTEST%2E20g%2E2%284%29&ip=211.38.137.33&req_size=20970625768
222.122.153.83 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2FTEST%2E20g%2E2%284%29&ip=211.38.137.33&req_size=20970481724
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20970346756
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20969760244
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20968792672
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20967844080
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20966793288
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20965825716
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20964694624
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20963668652
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20962546320
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20961502828
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20960446197
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20959437746
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20958985555
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20958042804
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&req_size=20957294233
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=3850046
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&req_size=4839552
@@ -0,0 +1,14 @@
<?php
$handle = fopen("./auth.log", "a");
#fwrite($handle, $_SERVER['REMOTE_ADDR'] );
#$body = http_get_request_body();
$body = @file_get_contents('php://input');
#fwrite($handle, $body);
$log = $_SERVER['REMOTE_ADDR']." => ".$body."\n";
fwrite($handle, $log);
fclose($handle);
?>
@@ -0,0 +1,47 @@
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839873
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839873
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839873
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839873
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839873
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=20971520000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=20971520000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=20971520000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=20971520000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=20971076501
222.122.153.83 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2FTEST%2E20g%2E2%284%29&ip=211.38.137.33&sent_size=220292&time_9=220292
222.122.153.83 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2FTEST%2E20g%2E2%284%29&ip=211.38.137.33&sent_size=272857&time_10=272857
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=855560
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1314000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1211800
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1230780
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1241000
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1398680
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=20964694624
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=20963668652
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1340280
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1287720
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1211800
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1020540
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1430800
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=1306700
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2Fincinerate%2Ftest%2E20g%2E2%281%29&ip=211.38.137.33&sent_size=713940
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=1255600
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=3807680
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=201S103wolt1920220h893ds10da3da3&uri=/incinerate/test_0&ip=211.38.137.33&file_size=3&
222.122.153.80 => session_id=201S103wolt1920220h893ds10da3da3&uri=/incinerate/test_0&ip=211.38.137.33&file_size=3&a=10&werfgwerf=123!@#$%^&*()UPLOAD
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552&a=10&werfgwerf=123!@#$%^&*()테스트
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552&a=10&werfgwerf=123!@#$%^&*()테스트
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552&a=10&werfgwerf=123!@#$%^&*()테스트
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552&a=10&werfgwerf=123!@#$%^&*()테스트
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552&a=10&werfgwerf=123!@#$%^&*()테스트
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552&a=10&werfgwerf=123!@#$%^&*()테스트
222.122.153.80 => session_id=98feef588c840125f4ffddf92711fb4c&uri=%2FINCINERATE%2Fhey%2Emp3&ip=211.38.137.33&sent_size=4839552&a=10&werfgwerf=123!@#$%^&*()테스트
@@ -0,0 +1,14 @@
<?php
$handle = fopen("./payment.log", "a+");
#fwrite($handle, $_SERVER['REMOTE_ADDR'] );
#$body = http_get_request_body();
$body = @file_get_contents('php://input');
#fwrite($handle, $body);
$log = $_SERVER['REMOTE_ADDR']." => ".$body."\n";
fwrite($handle, $log);
fclose($handle);
?>
@@ -0,0 +1,67 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
function check_admin_pop()
{
window.open("../status/check_admin.html", "_box", "width=200, height=100, scrollbars=yes");
}
function disk_check()
{
window.open("../status/check_storage_report.html","_box", 'height=' + screen.height + ',width=' + screen.width + 'fullscreen=yes, scrollbars=yes');
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:check_admin_pop();"><img src="img/bt_rc_admin.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:disk_check();"><img src="img/bt_storage_amount.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
$monitor_member = array( "Á¤±â¿í(¼Ö¹Ú½º)"=>"010-9496-4373"
);
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,64 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
function check_admin_pop()
{
window.open("../status/check_admin.html", "_box", "width=200, height=100, scrollbar=yes");
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:check_admin_pop();"><img src="img/bt_rc_admin.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
$monitor_member = array("기술지원팀"=>"031-788-0191",
"강명균"=>"016-574-5625",
"홍성업"=>"011-9733-1231",
"신동호"=>"017-713-4785",
"이재영"=>"016-560-2290",
"김태일"=>"010-9600-2211",
"김석환"=>"010-4714-1749",
"이현준(KT)"=>"010-9837-5010");
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,76 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
function check_admin_pop()
{
window.open("../status/check_admin.html", "_box", "width=200, height=100, scrollbar=yes");
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:check_admin_pop();"><img src="img/bt_rc_admin.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
/*
$monitor_member = array("기술지원팀"=>"031-788-0191",
"강명균"=>"016-574-5625",
"홍성업"=>"011-9733-1231",
"신동호"=>"017-713-4785",
"이재영"=>"016-560-2290",
"김태일"=>"010-9600-2211",
"김석환"=>"010-4714-1749",
"이현준(KT)"=>"010-9837-5010");
*/
$monitor_member = array("ICS 운영팀"=>"031-781-0344",
"홍성업"=>"010-8733-1231",
"신동호"=>"010-3783-4785",
"김해중"=>"010-9288-2464",
"정기욱"=>"010-9496-4373",
"모민규(KT)"=>"010-2833-0015",
"조병희(KT)"=>"010-2739-6496");
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,86 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
function check_admin_pop()
{
window.open("../status/check_admin.html", "_box", "width=200, height=100, scrollbar=yes");
}
function disk_check()
{
window.open("http://www.ktsystemhosting.com:8080/disk_check/output.html",
"_box", "width=800, height=600, scrollbar=yes");
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:check_admin_pop();"><img src="img/bt_rc_admin.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:disk_check();"><img src="img/bt_storage_amount.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
/*
$monitor_member = array("기술지원팀"=>"031-788-0191",
"강명균"=>"016-574-5625",
"홍성업"=>"011-9733-1231",
"신동호"=>"017-713-4785",
"이재영"=>"016-560-2290",
"김태일"=>"010-9600-2211",
"김석환"=>"010-4714-1749",
"이현준(KT)"=>"010-9837-5010");
*/
$monitor_member = array("ICS 운영팀"=>"031-781-0344",
"홍성업"=>"010-8733-1231",
"신동호"=>"010-3783-4785",
"김해중"=>"010-9288-2464",
"정기욱"=>"010-9496-4373",
"모민규(KT)"=>"010-2833-0015",
"김정진(KT)"=>"010-6811-8901",
"장지민(KT)"=>"010-7300-0358",
"박성모(KT)"=>"010-6737-7337"
);
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,84 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
function check_admin_pop()
{
window.open("../status/check_admin.html", "_box", "width=200, height=100, scrollbar=yes");
}
function disk_check()
{
window.open("http://www.ktsystemhosting.com:8080/disk_check/output.html",
"_box", "width=800, height=600, scrollbar=yes");
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:check_admin_pop();"><img src="img/bt_rc_admin.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:disk_check();"><img src="img/bt_storage_amount.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
/*
$monitor_member = array("기술지원팀"=>"031-788-0191",
"강명균"=>"016-574-5625",
"홍성업"=>"011-9733-1231",
"신동호"=>"017-713-4785",
"이재영"=>"016-560-2290",
"김태일"=>"010-9600-2211",
"김석환"=>"010-4714-1749",
"이현준(KT)"=>"010-9837-5010");
*/
$monitor_member = array("ICS 운영팀"=>"031-781-0344",
"홍성업"=>"010-8733-1231",
"김정진(KT)"=>"010-6811-8901",
"장지민(KT)"=>"010-7300-0358",
"박성모(KT)"=>"010-6737-7337",
"유희곤"=>"018-554-0424"
);
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,68 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
function check_admin_pop()
{
window.open("../status/check_admin.html", "_box", "width=200, height=100, scrollbars=yes");
}
function disk_check()
{
window.open("../status/check_storage_report.html","_box", 'height=' + screen.height + ',width=' + screen.width + 'fullscreen=yes, scrollbars=yes');
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:check_admin_pop();"><img src="img/bt_rc_admin.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:disk_check();"><img src="img/bt_storage_amount.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
$monitor_member = array("CDN ¿î¿µÆÀ"=>"031-781-0344",
"Á¤±â¿í(¼Ö¹Ú½º)"=>"010-9496-4373"
);
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,64 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
function check_admin_pop()
{
window.open("../status/check_admin.html", "_box", "width=200, height=100, scrollbar=yes");
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:check_admin_pop();"><img src="img/bt_rc_admin.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
$monitor_member = array("기술지원팀"=>"031-788-0191",
"강명균"=>"016-574-5625",
"홍성업"=>"011-9733-1231",
"신동호"=>"017-713-4785",
"이재영"=>"016-560-2290",
"김태일"=>"010-9600-2211",
"김석환"=>"010-4714-1749",
"이현준(KT)"=>"010-9837-5010");
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,64 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
function check_admin_pop()
{
window.open("../status/check_admin.html", "_box", "width=200, height=100, scrollbar=yes");
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:check_admin_pop();"><img src="img/bt_rc_admin.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>&nbsp;&nbsp;&nbsp;
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
$monitor_member = array("기술지원팀"=>"031-788-0191",
"강명균"=>"016-574-5625",
"홍성업"=>"011-9733-1231",
"신동호"=>"017-713-4785",
"이재영"=>"016-560-2290",
"김태일"=>"010-9600-2211",
"김석환"=>"010-4714-1749",
"이현준(KT)"=>"010-9837-5010");
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,57 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
$monitor_member = array(
"ICS 운영팀"=>"031-781-0344",
"김정진(KT)"=>"010-6811-8901",
"배연욱(KT)"=>"010-9593-1774",
"정기욱(솔박스)"=>"010-9496-4373"
);
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,57 @@
<?php
require_once("../status/inc/session.php");
?>
<script language="JavaScript">
<!--
function changeVisual()
{
fr = document.frm;
if(fr.chk.value == 0) {
fr.chk.value = 1;
info.style.display="block";
} else {
fr.chk.value = 0;
info.style.display="none";
}
}
//-->
</script>
<table border="0" align="center" width="1050">
<tr>
<td>
<a href="javascript:changeVisual();"><img src="img/bt_contact.gif" border="0"></a>
</td>
<td align="right" class="PR40"><img src="img/Dot.gif"><a href="inc/logout_process.html"><img src="img/BtnLogout.gif" border="0" width="36" height="9"></a></td>
</tr>
</table>
<?php
$monitor_member = array("기술지원팀"=>"031-788-0191",
"강명균"=>"016-574-5625",
"홍성업"=>"011-9733-1231",
"신동호"=>"017-713-4785",
"이재영"=>"016-560-2290",
"이현준(KT)"=>"010-9837-5010");
?>
<div id="info" style="DISPLAY:none;">
<table border="1" cellspacing="1" width="530" align="center">
<tr align="center">
<td><b> Priority </b></td>
<td><b> Name </b></td>
<td><b> Emergency Phone NO. </b> </td>
</tr>
<?
$i = 0;
while(list($key, $value) = each($monitor_member))
{
$i++;
echo"<tr align=\"center\" align=\"center\">\n";
echo" <td><b> ".$i.". </b></td>\n";
echo" <td><b> ".$key." </b></td>\n";
echo" <td><b> ".$value." </b></td>\n";
echo"</tr>\n";
}
?>
</table>
</div>
@@ -0,0 +1,141 @@
<?php
define('SQL_ASSOC', MYSQL_ASSOC);
define('SQL_NUM', MYSQL_NUM);
define('SQL_BOTH', MYSQL_BOTH);
define('CRLF', "\r\n");
class dbconnect
{
var $showError;
var $dbc;
var $bConnect; // add invalidate
var $bQueryrun; // add invalidate
function dbconnect($host, $user, $pass, $base, $file = '', $line = 0)
{
if($pass != ""){
if(!$this->dbc = mysql_connect($host, $user, $pass))
{
$error = 'Cannot connect to MySQL server. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
$this->bConnect= false;
//die($error);
return false;
}
}else{
if(!$this->dbc = mysql_connect($host, $user))
{
$error = 'Cannot connect to MySQL server. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
//die($error);
//FIXME: return? die?
$this->bConnect= false;
return false;
}
}
if(!@mysql_query("USE ".$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
$this->bConnect= false;
//die($error);
}else
$this->bConnect= true;
$this->showError = true;
return $this->bConnect;
}
function query($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
$this->bQueryrun = false;
return new dbcResult($result);
}
}
else
$this->bQueryrun = true;
return new dbcResult($result);
}
function query_bool($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function insert_id()
{
$id = $this->firstCell("SELECT LAST_INSERT_ID() as id");
return $id;
}
function fetch_array($query, $type = SQL_BOTH)
{
$result = $this->query($query);
return $result->fetch_array($type);
}
function first_cell($query)
{
$result = $this->query($query);
$row = $result->fetch_array(SQL_NUM);
return $row[0];
}
function change_base($base, $file = '', $line = 0)
{
if(!$result = @mysql_query('USE '.$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function close()
{
@mysql_close($this->dbc);
unset($this);
}
}
class dbcResult
{
function dbcResult($result)
{
$this->result = $result;
}
function fetch_array($type = SQL_BOTH)
{
return @mysql_fetch_array($this->result, $type);
}
function first_cell()
{
$row = @mysql_fetch_row($this->result);
return $row[0];
}
function num_rows()
{
return @mysql_num_rows($this->result);
}
}
?>
@@ -0,0 +1,122 @@
<?php
define('SQL_ASSOC', MYSQL_ASSOC);
define('SQL_NUM', MYSQL_NUM);
define('SQL_BOTH', MYSQL_BOTH);
define('CRLF', "\r\n");
class dbconnect
{
var $showError;
var $dbc;
function dbconnect($host, $user, $pass, $base, $file = '', $line = 0)
{
//echo $host." ".$user." ".$pass;
//[ string $server = ini_get("mysql.default_host")
//[, string $username = ini_get("mysql.default_user")
//[, string $password = ini_get("mysql.default_password") [, bool $new_link = false [, int $client_flags = 0 ]]
//]
//]
//]
//if(!$this->dbc = mysql_connect($host, $user, $pass))
if(!$this->dbc = mysql_connect($host, $user))
{
$error = 'Cannot connect to MySQL server. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
die($error);
}
if(!@mysql_query("USE ".$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
die($error);
}
$this->showError = true;
}
function query($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return new dbcResult($result);
}
function query_bool($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function insert_id()
{
$id = $this->firstCell("SELECT LAST_INSERT_ID() as id");
return $id;
}
function fetch_array($query, $type = SQL_BOTH)
{
$result = $this->query($query);
return $result->fetch_array($type);
}
function first_cell($query)
{
$result = $this->query($query);
$row = $result->fetch_array(SQL_NUM);
return $row[0];
}
function change_base($base, $file = '', $line = 0)
{
if(!$result = @mysql_query('USE '.$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function close()
{
@mysql_close($this->dbc);
unset($this);
}
}
class dbcResult
{
function dbcResult($result)
{
$this->result = $result;
}
function fetch_array($type = SQL_BOTH)
{
return @mysql_fetch_array($this->result, $type);
}
function first_cell()
{
$row = @mysql_fetch_row($this->result);
return $row[0];
}
function num_rows()
{
return @mysql_num_rows($this->result);
}
}
?>
@@ -0,0 +1,141 @@
<?php
define('SQL_ASSOC', MYSQL_ASSOC);
define('SQL_NUM', MYSQL_NUM);
define('SQL_BOTH', MYSQL_BOTH);
define('CRLF', "\r\n");
class dbconnect
{
var $showError;
var $dbc;
var $bConnect; // add invalidate
var $bQueryrun; // add invalidate
function dbconnect($host, $user, $pass, $base, $file = '', $line = 0)
{
if($pass != ""){
if(!$this->dbc = mysql_connect($host, $user, $pass))
{
$error = 'Cannot connect to MySQL server. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
$this->bConnect= false;
//die($error);
return false;
}
}else{
if(!$this->dbc = mysql_connect($host, $user))
{
$error = 'Cannot connect to MySQL server. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
//die($error);
//FIXME: return? die?
$this->bConnect= false;
return false;
}
}
if(!@mysql_query("USE ".$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
$this->bConnect= false;
//die($error);
}else
$this->bConnect= true;
$this->showError = true;
return $this->bConnect;
}
function query($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
$this->bQueryrun = false;
return new dbcResult($result);
}
}
else
$this->bQueryrun = true;
return new dbcResult($result);
}
function query_bool($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function insert_id()
{
$id = $this->firstCell("SELECT LAST_INSERT_ID() as id");
return $id;
}
function fetch_array($query, $type = SQL_BOTH)
{
$result = $this->query($query);
return $result->fetch_array($type);
}
function first_cell($query)
{
$result = $this->query($query);
$row = $result->fetch_array(SQL_NUM);
return $row[0];
}
function change_base($base, $file = '', $line = 0)
{
if(!$result = @mysql_query('USE '.$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function close()
{
@mysql_close($this->dbc);
unset($this);
}
}
class dbcResult
{
function dbcResult($result)
{
$this->result = $result;
}
function fetch_array($type = SQL_BOTH)
{
return @mysql_fetch_array($this->result, $type);
}
function first_cell()
{
$row = @mysql_fetch_row($this->result);
return $row[0];
}
function num_rows()
{
return @mysql_num_rows($this->result);
}
}
?>
@@ -0,0 +1,140 @@
<?php
define('SQL_ASSOC', MYSQL_ASSOC);
define('SQL_NUM', MYSQL_NUM);
define('SQL_BOTH', MYSQL_BOTH);
define('CRLF', "\r\n");
class dbconnect
{
var $showError;
var $dbc;
var $bConnect; // add invalidate
var $bQueryrun; // add invalidate
function dbconnect($host, $user, $pass, $base, $file = '', $line = 0)
{
if($pass != ""){
if(!$this->dbc = mysql_connect($host, $user, $pass))
{
$error = 'Cannot connect to MySQL server. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
$this->bConnect= false;
//die($error);
return false;
}else
$this->bConnect= true;
}else{
if(!$this->dbc = mysql_connect($host, $user))
{
$error = 'Cannot connect to MySQL server. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
//die($error);
//FIXME: return? die?
$this->bConnect= false;
}else
$this->bConnect= true;
}
if(!@mysql_query("USE ".$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
$this->bConnect= false;
//die($error);
}else
$this->bConnect= true;
$this->showError = true;
return
}
function query($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
$this->bQueryrun = false;
}
}
else
$this->bQueryrun = true;
return new dbcResult($result);
}
function query_bool($query, $file = '', $line = 0)
{
if(!$result = @mysql_query($query, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function insert_id()
{
$id = $this->firstCell("SELECT LAST_INSERT_ID() as id");
return $id;
}
function fetch_array($query, $type = SQL_BOTH)
{
$result = $this->query($query);
return $result->fetch_array($type);
}
function first_cell($query)
{
$result = $this->query($query);
$row = $result->fetch_array(SQL_NUM);
return $row[0];
}
function change_base($base, $file = '', $line = 0)
{
if(!$result = @mysql_query('USE '.$base, $this->dbc))
{
$error = 'Error <b>'.mysql_error($this->dbc).'</b> in query <b>'.$query.'</b>. In file '.$file.' in line '.$line.'. Date: '.date('Y-m-d H:i:s').'<br />'.CRLF;
if($this->showError)
{
echo $error;
}
}
return ($result?true:false);
}
function close()
{
@mysql_close($this->dbc);
unset($this);
}
}
class dbcResult
{
function dbcResult($result)
{
$this->result = $result;
}
function fetch_array($type = SQL_BOTH)
{
return @mysql_fetch_array($this->result, $type);
}
function first_cell()
{
$row = @mysql_fetch_row($this->result);
return $row[0];
}
function num_rows()
{
return @mysql_num_rows($this->result);
}
}
?>
@@ -0,0 +1,371 @@
<?php
class DB_Sql {
var $Host = "127.0.0.1";
var $Database = "syshost";
var $Port = "5432";
var $User = "syshost";
var $Password = "alfkzmf!?{}";
var $Link_ID = 0;
var $Query_ID = 0;
var $Record = array();
var $Row = 0;
var $Seq_Table = "db_sequence";
var $Errno = 0;
var $Error = "";
var $Debug = 0;
var $Auto_Free = 0; # Set this to 1 for automatic pg_freeresult on
# last record.
var $PConnect = 0; ## Set to 1 to use persistent database connections
function ifadd($add, $me) {
if("" != $add) return " ".$me.$add;
}
/* public: constructor */
function DB_Sql($query = "") {
$this->query($query);
}
function querySafe($string) {
$string = str_replace("'", "\'", $string);
$string = str_replace("\\", "\\\\", $string);
return $string;
}
function connect() {
if ( 0 == $this->Link_ID ) {
$cstr = "dbname=".$this->Database.
$this->ifadd($this->Host, "host=").
$this->ifadd($this->Port, "port=").
$this->ifadd($this->User, "user=").
$this->ifadd($this->Password, "password=");
if(!$this->PConnect) {
$this->Link_ID = pg_connect($cstr);
} else {
$this->Link_ID = pg_pconnect($cstr);
}
if (!$this->Link_ID) {
$this->halt("connect() failed.");
}
}
}
function close() {
pg_close($this->Link_ID);
}
function query($Query_String) {
/* No empty queries, please, since PHP4 chokes on them. */
if ($Query_String == "")
/* The empty query string is passed on from the constructor,
* when calling the class without a query, e.g. in situations
* like these: '$db = new DB_Sql_Subclass;'
*/
return 0;
$this->connect();
if ($this->Debug)
printf("<br>Debug: query = %s<br>\n", $Query_String);
$this->Query_ID = pg_Exec($this->Link_ID, $Query_String);
$this->Row = 0;
$this->Error = pg_ErrorMessage($this->Link_ID);
$this->Errno = ($this->Error == "")?0:1;
if (!$this->Query_ID) {
$this->halt("Invalid SQL: ".$Query_String);
}
return $this->Query_ID;
}
function beginTrans() {
return $this->query("begin");
}
function commitTrans() {
return $this->query("commit");
}
function rollbackTrans() {
return $this->query("rollback");
}
function next_record() {
$this->Record = @pg_fetch_array($this->Query_ID, $this->Row++);
$this->Error = pg_ErrorMessage($this->Link_ID);
$this->Errno = ($this->Error == "")?0:1;
$stat = is_array($this->Record);
if (!$stat && $this->Auto_Free) {
pg_freeresult($this->Query_ID);
$this->Query_ID = 0;
}
return $stat;
}
function seek($pos) {
$this->Row = $pos;
}
function lock($table, $mode = "write") {
if ($mode == "write") {
$result = pg_Exec($this->Link_ID, "lock table $table");
} else {
$result = 1;
}
return $result;
}
function unlock() {
return pg_Exec($this->Link_ID, "commit");
}
/* public: sequence numbers */
function nextid($seq_name) {
$this->connect();
if ($this->lock($this->Seq_Table)) {
/* get sequence number (locked) and increment */
$q = sprintf("select nextid from %s where seq_name = '%s'",
$this->Seq_Table,
$seq_name);
$id = @pg_Exec($this->Link_ID, $q);
$res = @pg_Fetch_Array($id, 0);
/* No current value, make one */
if (!is_array($res)) {
$currentid = 0;
$q = sprintf("insert into %s values('%s', %s)",
$this->Seq_Table,
$seq_name,
$currentid);
$id = @pg_Exec($this->Link_ID, $q);
} else {
$currentid = $res["nextid"];
}
$nextid = $currentid + 1;
$q = sprintf("update %s set nextid = '%s' where seq_name = '%s'",
$this->Seq_Table,
$nextid,
$seq_name);
$id = @pg_Exec($this->Link_ID, $q);
$this->unlock();
} else {
$this->halt("cannot lock ".$this->Seq_Table." - has it been created?");
return 0;
}
return $nextid;
}
function metadata($table="") {
$count = 0;
$id = 0;
$res = array();
if ($table) {
$this->connect();
$id = pg_exec($this->Link_ID, "select * from $table");
if ($id < 0) {
$this->Error = pg_ErrorMessage($id);
$this->Errno = 1;
$this->halt("Metadata query failed.");
}
} else {
$id = $this->Query_ID;
if (!$id) {
$this->halt("No query specified.");
}
}
$count = pg_NumFields($id);
for ($i=0; $i<$count; $i++) {
$res[$i]["table"] = $table;
$res[$i]["name"] = pg_FieldName ($id, $i);
$res[$i]["type"] = pg_FieldType ($id, $i);
$res[$i]["len"] = pg_FieldSize ($id, $i);
$res[$i]["flags"] = "";
}
if ($table) {
pg_FreeResult($id);
}
return $res;
}
function affected_rows() {
return pg_cmdtuples($this->Query_ID);
}
function num_rows() {
return pg_numrows($this->Query_ID);
}
function num_fields() {
return pg_numfields($this->Query_ID);
}
function nf() {
return $this->num_rows();
}
function np() {
print $this->num_rows();
}
function tf($Name) {
return $this->Record[$Name];
}
function f($Name) {
if($this->Record[$Name] == "")
{
return;
//return "&nbsp;";
}
else
{
return trim($this->Record[$Name]);
//return $this->Record[$Name];
}
}
function p($Name) {
print $this->Record[$Name];
}
function halt($msg) {
printf("</td></tr></table><b>Database error:</b> %s<br>\n", $msg);
printf("<b>PostgreSQL Error</b>: %s (%s)<br>\n",
$this->Errno,
$this->Error);
die("Session halted.");
}
function table_names() {
$this->query("select relname from pg_class where relkind = 'r' and not relname like 'pg_%'");
$i=0;
while ($this->next_record())
{
$return[$i]["table_name"]= $this->f(0);
$return[$i]["tablespace_name"]=$this->Database;
$return[$i]["database"]=$this->Database;
$i++;
}
return $return;
}
}
function _query_string($method)
{
$params = $_SERVER['QUERY_STRING'];
if( $method = "POST" )
{
if( getenv("REQUEST_METHOD") == "POST" )
{
$params = "$HTTP_POST_VARS";
$params = str_replace("+", "%20", $params);
}
}
return $params;
}
function param_remove($params, $key)
{
$str = split("&", $params);
$str_cnt = sizeof($str);
for( $i=0; $i < $str_cnt; $i++ )
{
$sub_str = split("=", $str[$i]);
if( $sub_str[0] != $key )
{
$qstring .= $str[$i]. "&";
}
}
if( $qstring != "" )
{
$qstring = substr($qstring, 0, strlen($qstring)-1);
}
return $qstring;
}
function sub_page_navigate( $page, $pagecnt, $preimg, $nextimg, $params )
{
$blocknum = (integer)(($page - 1) / 10) + 1;
$spage = ($blocknum-1) * 10 + 1;
$epage = $blocknum * 10;
if( $epage > $pagecnt)
{
$epage = $pagecnt;
}
$cur_url = $_SERVER['PHP_SELF'];
if($params != "") $params = "&".$params;
if($spage > 10) //' ÀÌÀü 10°³
{
if($preimg == "")
{
printf("<a href='".$cur_url."?page=".($spage-10).$params.">¢¸</a>&nbsp;");
}else
{
printf("<a href=".$cur_url."?page=".($spage-10).$params.">".$preimg."</a>&nbsp;");
}
}else
{
if($preimg == "")
{
printf("¢¸&nbsp;");
}else
{
printf($preimg."&nbsp;");
}
}
for($i = $spage; $i <= $epage; $i++)
{
if($i == $page)
{
printf("&nbsp;<b>".$i."</b>&nbsp;");
}else
{
printf("&nbsp;<a href=".$cur_url."?page=".$i.$params.">".$i."</a>&nbsp;");
}
}
if($epage < $pagecnt)
{
if($nextimg == "")
{
printf("&nbsp;<a href=".$cur_url."?page=".($epage+1).$params.">¢º</a>");
}else
{
printf("&nbsp;<a href=".$cur_url."?page=".($epage+1).$params.">".$nextimg."</a>");
}
}else
{
if($nextimg == "")
{
printf("&nbsp;¢º");
}else
{
printf("&nbsp;".$nextimg);
}
}
}
?>
@@ -0,0 +1,371 @@
<?php
class DB_Sql {
var $Host = "127.0.0.1";
var $Database = "syshost";
var $Port = "5432";
var $User = "syshost";
var $Password = "alfkzmf!?{}";
var $Link_ID = 0;
var $Query_ID = 0;
var $Record = array();
var $Row = 0;
var $Seq_Table = "db_sequence";
var $Errno = 0;
var $Error = "";
var $Debug = 0;
var $Auto_Free = 0; # Set this to 1 for automatic pg_freeresult on
# last record.
var $PConnect = 0; ## Set to 1 to use persistent database connections
function ifadd($add, $me) {
if("" != $add) return " ".$me.$add;
}
/* public: constructor */
function DB_Sql($query = "") {
$this->query($query);
}
function querySafe($string) {
$string = str_replace("'", "\'", $string);
$string = str_replace("\\", "\\\\", $string);
return $string;
}
function connect() {
if ( 0 == $this->Link_ID ) {
$cstr = "dbname=".$this->Database.
$this->ifadd($this->Host, "host=").
$this->ifadd($this->Port, "port=").
$this->ifadd($this->User, "user=").
$this->ifadd($this->Password, "password=");
if(!$this->PConnect) {
$this->Link_ID = pg_connect($cstr);
} else {
$this->Link_ID = pg_pconnect($cstr);
}
if (!$this->Link_ID) {
$this->halt("connect() failed.");
}
}
}
function close() {
pg_close($this->Link_ID);
}
function query($Query_String) {
/* No empty queries, please, since PHP4 chokes on them. */
if ($Query_String == "")
/* The empty query string is passed on from the constructor,
* when calling the class without a query, e.g. in situations
* like these: '$db = new DB_Sql_Subclass;'
*/
return 0;
$this->connect();
if ($this->Debug)
printf("<br>Debug: query = %s<br>\n", $Query_String);
$this->Query_ID = pg_Exec($this->Link_ID, $Query_String);
$this->Row = 0;
$this->Error = pg_ErrorMessage($this->Link_ID);
$this->Errno = ($this->Error == "")?0:1;
if (!$this->Query_ID) {
$this->halt("Invalid SQL: ".$Query_String);
}
return $this->Query_ID;
}
function beginTrans() {
return $this->query("begin");
}
function commitTrans() {
return $this->query("commit");
}
function rollbackTrans() {
return $this->query("rollback");
}
function next_record() {
$this->Record = @pg_fetch_array($this->Query_ID, $this->Row++);
$this->Error = pg_ErrorMessage($this->Link_ID);
$this->Errno = ($this->Error == "")?0:1;
$stat = is_array($this->Record);
if (!$stat && $this->Auto_Free) {
pg_freeresult($this->Query_ID);
$this->Query_ID = 0;
}
return $stat;
}
function seek($pos) {
$this->Row = $pos;
}
function lock($table, $mode = "write") {
if ($mode == "write") {
$result = pg_Exec($this->Link_ID, "lock table $table");
} else {
$result = 1;
}
return $result;
}
function unlock() {
return pg_Exec($this->Link_ID, "commit");
}
/* public: sequence numbers */
function nextid($seq_name) {
$this->connect();
if ($this->lock($this->Seq_Table)) {
/* get sequence number (locked) and increment */
$q = sprintf("select nextid from %s where seq_name = '%s'",
$this->Seq_Table,
$seq_name);
$id = @pg_Exec($this->Link_ID, $q);
$res = @pg_Fetch_Array($id, 0);
/* No current value, make one */
if (!is_array($res)) {
$currentid = 0;
$q = sprintf("insert into %s values('%s', %s)",
$this->Seq_Table,
$seq_name,
$currentid);
$id = @pg_Exec($this->Link_ID, $q);
} else {
$currentid = $res["nextid"];
}
$nextid = $currentid + 1;
$q = sprintf("update %s set nextid = '%s' where seq_name = '%s'",
$this->Seq_Table,
$nextid,
$seq_name);
$id = @pg_Exec($this->Link_ID, $q);
$this->unlock();
} else {
$this->halt("cannot lock ".$this->Seq_Table." - has it been created?");
return 0;
}
return $nextid;
}
function metadata($table="") {
$count = 0;
$id = 0;
$res = array();
if ($table) {
$this->connect();
$id = pg_exec($this->Link_ID, "select * from $table");
if ($id < 0) {
$this->Error = pg_ErrorMessage($id);
$this->Errno = 1;
$this->halt("Metadata query failed.");
}
} else {
$id = $this->Query_ID;
if (!$id) {
$this->halt("No query specified.");
}
}
$count = pg_NumFields($id);
for ($i=0; $i<$count; $i++) {
$res[$i]["table"] = $table;
$res[$i]["name"] = pg_FieldName ($id, $i);
$res[$i]["type"] = pg_FieldType ($id, $i);
$res[$i]["len"] = pg_FieldSize ($id, $i);
$res[$i]["flags"] = "";
}
if ($table) {
pg_FreeResult($id);
}
return $res;
}
function affected_rows() {
return pg_cmdtuples($this->Query_ID);
}
function num_rows() {
return pg_numrows($this->Query_ID);
}
function num_fields() {
return pg_numfields($this->Query_ID);
}
function nf() {
return $this->num_rows();
}
function np() {
print $this->num_rows();
}
function tf($Name) {
return $this->Record[$Name];
}
function f($Name) {
if($this->Record[$Name] == "")
{
return;
//return "&nbsp;";
}
else
{
return trim($this->Record[$Name]);
//return $this->Record[$Name];
}
}
function p($Name) {
print $this->Record[$Name];
}
function halt($msg) {
printf("</td></tr></table><b>Database error:</b> %s<br>\n", $msg);
printf("<b>PostgreSQL Error</b>: %s (%s)<br>\n",
$this->Errno,
$this->Error);
die("Session halted.");
}
function table_names() {
$this->query("select relname from pg_class where relkind = 'r' and not relname like 'pg_%'");
$i=0;
while ($this->next_record())
{
$return[$i]["table_name"]= $this->f(0);
$return[$i]["tablespace_name"]=$this->Database;
$return[$i]["database"]=$this->Database;
$i++;
}
return $return;
}
}
function _query_string($method)
{
$params = $_SERVER['QUERY_STRING'];
if( $method = "POST" )
{
if( getenv("REQUEST_METHOD") == "POST" )
{
$params = "$HTTP_POST_VARS";
$params = str_replace("+", "%20", $params);
}
}
return $params;
}
function param_remove($params, $key)
{
$str = split("&", $params);
$str_cnt = sizeof($str);
for( $i=0; $i < $str_cnt; $i++ )
{
$sub_str = split("=", $str[$i]);
if( $sub_str[0] != $key )
{
$qstring .= $str[$i]. "&";
}
}
if( $qstring != "" )
{
$qstring = substr($qstring, 0, strlen($qstring)-1);
}
return $qstring;
}
function sub_page_navigate( $page, $pagecnt, $preimg, $nextimg, $params )
{
$blocknum = (integer)(($page - 1) / 10) + 1;
$spage = ($blocknum-1) * 10 + 1;
$epage = $blocknum * 10;
if( $epage > $pagecnt)
{
$epage = $pagecnt;
}
$cur_url = $_SERVER['PHP_SELF'];
if($params != "") $params = "&".$params;
if($spage > 10) //' ÀÌÀü 10°³
{
if($preimg == "")
{
printf("<a href='".$cur_url."?page=".($spage-10).$params.">¢¸</a>&nbsp;");
}else
{
printf("<a href=".$cur_url."?page=".($spage-10).$params.">".$preimg."</a>&nbsp;");
}
}else
{
if($preimg == "")
{
printf("¢¸&nbsp;");
}else
{
printf($preimg."&nbsp;");
}
}
for($i = $spage; $i <= $epage; $i++)
{
if($i == $page)
{
printf("&nbsp;<b>".$i."</b>&nbsp;");
}else
{
printf("&nbsp;<a href=".$cur_url."?page=".$i.$params.">".$i."</a>&nbsp;");
}
}
if($epage < $pagecnt)
{
if($nextimg == "")
{
printf("&nbsp;<a href=".$cur_url."?page=".($epage+1).$params.">¢º</a>");
}else
{
printf("&nbsp;<a href=".$cur_url."?page=".($epage+1).$params.">".$nextimg."</a>");
}
}else
{
if($nextimg == "")
{
printf("&nbsp;¢º");
}else
{
printf("&nbsp;".$nextimg);
}
}
}
?>
@@ -0,0 +1,594 @@
<?
function htmlBody($content)
{
if($content != "") {
sleep(5);
$body = "<table border=\"1\" width=\"800\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-size:9pt;\">";
$body .= " <tr>";
$body .= " <td align=\"center\"><b>Problem</b></td>";
$body .= " <td align=\"center\"><b>Last Change</b></td>";
$body .= " <td align=\"center\"><b>Logical Location</b></td>";
$body .= " <td align=\"center\"><b>Logical Size</b></td>";
$body .= " <td align=\"center\"><b>Physical Location</b></td>";
$body .= " <td align=\"center\"><b>Physical Size</b></td>";
$body .= " </tr>";
$res = explode("\n", $content);
$tot = count($res);
for($i=0; $i < $tot; $i++) {
$res2 = explode("::", trim(str_replace("|", "<br>",$res[$i])));
$body .= " <tr>";
for ($j = 0; $j < 6; $j++) {
$body .= " <td align=\"center\">".trim($res2[$j]);
$body .= " </td>";
}
$body .= " </tr>";
}
$body .= "</table>";
} else {
$body = "Fail to detail log!!";
}
echo $body;
return $body;
}
class Smtp {
var $host;
var $fp;
var $self;
var $lastmsg;
var $parts;
var $error;
var $debug;
var $charset;
var $ctype;
function Smtp($host="self") {
if($host == "self") $this->self = true;
else $this->host = $host;
$this->parts = array();
$this->error = array();
$$this->debug = 0;
$this->charset = "euc-kr";
$this->ctype = "text/html";
}
// 디버그 모드 : 1
function debug($n=1) {
$this->debug = $n;
}
// smtp 통신을 한다.
function dialogue($code, $cmd) {
fputs($this->fp, $cmd."\r\n");
$line = fgets($this->fp, 1024);
ereg("^([0-9]+).(.*)$", $line, &$data);
$this->lastmsg = $data[0];
if($this->debug) {
echo htmlspecialchars($cmd)."<br>".$this->lastmsg."<br>";
flush();
}
if($data[1] != $code) return false;
return true;
}
// smptp 서버에 접속을 한다.
function smtp_connect($host) {
if($this->debug) {
echo "SMTP($host) Connecting...<br>";
flush();
}
if(!$host) $host = $this->host;
if(!$this->fp = fsockopen($host, 25, $errno, $errstr, 10)) {
$this->lastmsg = "SMTP($host) 서버접속에 실패했습니다.[$errno:$errstr]";
return false;
}
$line = fgets($this->fp, 1024);
ereg("^([0-9]+).(.*)$", $line, &$data);
$this->lastmsg = $data[0];
if($data[1] != "220") return false;
if($this->debug) {
echo $this->lastmsg."<br>";
flush();
}
$this->dialogue(250, "HELO phpmail");
return true;
}
// stmp 서버와의 접속을 끊는다.
function smtp_close() {
$this->dialogue(221, "QUIT");
fclose($this->fp);
return true;
}
// 메시지를 보낸다.
function smtp_send($email, $from, $data) {
if(!$mail_from = $this->get_email($from)) return false;
if(!$rcpt_to = $this->get_email($email)) return false;
if(!$this->dialogue(250, "MAIL FROM: $mail_from"))
$this->error[] = $email.":MAIL FROM 실패($this->lastmsg)";
if(!$this->dialogue(250, "RCPT TO: $rcpt_to"))
$this->error[] = $email.":RCPT TO 실패($this->lastmsg)";
$this->dialogue(354, "DATA");
$mime = "Message-ID: <".$this->get_message_id().">\r\n";
$mime .= "From: $from\r\n";
$mime .= "To: $email\r\n";
fputs($this->fp, $mime);
fputs($this->fp, $data);
$this->dialogue(250, ".");
}
// Message ID 를 얻는다.
function get_message_id() {
$id = date("YmdHis",time());
mt_srand((float) microtime() * 1000000);
$randval = mt_rand();
$id .= $randval."@phpmail";
return $id;
}
// Boundary 값을 얻는다.
function get_boundary() {
$uniqchr = uniqid(time());
$one = strtoupper($uniqchr[0]);
$two = strtoupper(substr($uniqchr,0,8));
$three = strtoupper(substr(strrev($uniqchr),0,8));
return "----=_NextPart_000_000${one}_${two}.${three}";
}
// 첨부파일이 있을 경우 이 함수를 이용해 파일을 첨부한다.
function attach($message, $name="", $ctype="application/octet-stream") {
$this->parts[] = array ("ctype" => $ctype, "message" => $message, "name" => $name);
}
// Multipart 메시지를 생성시킨다.
function build_message($part) {
$msg .= "Content-Type: ".$part['ctype'];
if($part['name']) $msg .= "; name=\"".$part['name']."\"";
$msg .= "\r\nContent-Transfer-Encoding: base64\r\n";
$msg .= "Content-Disposition: attachment; filename=\"".$part['name']."\"\r\n\r\n";
$msg .= chunk_split(base64_encode($part['message']));
return $msg;
}
// SMTP에 보낼 DATA를 생성시킨다.
function build_data($subject, $body) {
$boundary = $this->get_boundary();
$mime .= "Subject: $subject\r\n";
$mime .= "Date: ".date ("D, j M Y H:i:s T",time())."\r\n";
$mime .= "MIME-Version: 1.0\r\n";
$mime .= "Content-Type: multipart/mixed; boundary=\"".$boundary."\"\r\n\r\n".
"This is a multi-part message in MIME format.\r\n\r\n";
$mime .= "--".$boundary."\r\n".
"Content-Type: ".$this->ctype."; charset=\"".$this->charset."\"\r\n".
"Content-Transfer-Encoding: base64\r\n\r\n".
chunk_split(base64_encode($body)).
"\r\n\r\n--".$boundary;
$max = count($this->parts);
for($i=0; $i<$max; $i++) {
$mime .= "\r\n".$this->build_message($this->parts[$i])."\r\n\r\n--".$boundary;
}
$mime .= "--\r\n";
return $mime;
}
// MX 값을 찾는다.
function get_mx_server($email) {
if(!ereg("([\._0-9a-zA-Z-]+)@([0-9a-zA-Z-]+\.[a-zA-Z\.]+)", $email, $reg)) return false;
getmxrr($reg[2], $host);
if(!$host) $host[0] = $reg[2];
return $host;
}
// 이메일의 형식이 맞는지 체크한다.
function get_email($email) {
if(!ereg("([\._0-9a-zA-Z-]+)@([0-9a-zA-Z-]+\.[a-zA-Z\.]+)", $email, $reg)) return false;
return "<".$reg[0].">";
}
// 메일을 전송한다.
function send($to, $from, $subject, $body) {
if(!is_array($to)) $to = split("[,;]",$to);
if($this->self) {
$data = $this->build_data($subject, $body);
foreach($to as $email) {
if($host = $this->get_mx_server($email)) {
$flag = false; $i = 0;
while($flag == false) {
if($host[$i]) {
$flag = $this->smtp_connect($host[$i]);
$i++;
echo "-----------> $i";
} else break;
}
if($flag) {
$this->smtp_send($email, $from, $data);
$this->smtp_close();
} else {
$this->error[] = $email.":SMTP 접속실패";
}
} else {
$this->error[] = $email.":형식이 잘못됨";
}
}
} else {
if(!$this->smtp_connect($this->host)) {
$this->error[] = "$this->host SMTP 접속실패";
return false;
}
$data = $this->build_data($subject, $body);
foreach($to as $email) $this->smtp_send($email, $from, $data);
$this->smtp_close();
}
}
}
/*-----------------------------------------사용법--------------------------------------------*/
/*
$mail = new Smtp("mail.solutionbox.co.kr");
//$mail->debug();
$mail->send("mirshead@solutionbox.co.kr", "mirshead@solutionbox.co.kr", "이 메일은 정상입니다.", "정상적인 메일이니 삭제하지 마십시오.");
*/
/*-----------------------------------------사용법--------------------------------------------*/
class mime
{
protected $mime_version = "1.0";
protected $mime_content_type = "text/plain";
protected $mime_charset = "ks_c_5601-1987";
protected $mime_encoding = "base64";
protected $mime_boundary = null;
protected $mime_xmailer = null;
public function __construct()
{
}
public function set_content_type($content_type = null)
{
$this->mime_content_type = $content_type != null ? $content_type : "text/html";
}
public function set_charset($charset = null)
{
$this->mime_charset = $charset != null ? $charset : "euc_kr";
}
public function set_boundary($boundary = null)
{
$this->mime_boundary = $boundary ? $boundary : null;
}
public function set_encoding($encoding = null)
{
$this->mime_encoding = $encoding != null ? $encoding : "base64";
}
public function set_xmailer($xmailer = null)
{
$this->mime_xmailer = $xmailer != null ? $xmailer : $_SERVER['HTTP_USER_AGENT'];
}
public function __destruct()
{
}
}
class sendmail extends mime
{
protected $smtp_server = null;
protected $smtp_port = 0;
protected $smtp_timeout = 0;
protected $smtp_socketopen = 0;
protected $smtp_status = false;
protected $smtp_CRLF = "\r\n";
protected $smtp_attachfile_name = null;
protected $smtp_attachfile_size = 0;
protected $smtp_attachfile_type = null;
protected $smtp_cmd_status = array();
protected $mail_from = null;
protected $mail_to = null;
protected $mail_subject = null;
protected $mail_priority = 3;
protected $mail_notification = 0;
protected $mail_body = null;
public function __construct($server = null, $port = 0, $timeout = 0)
{
$this->smtp_server = ($server != null) ? $server : "localhost";
$this->smtp_port = ($port != 0) ? $port : 25;
$this->smtp_timeout = ($timeout != 0) ? $timeout : 30;
}
public function encoding($str)
{
return "=?ks_c_5601-1987?B?" . base64_encode($str) . "?=";
}
private function _mail_env ($to, $from, $subject, $body, $priority = 3, $notification = 0)
{
$this->mail_from = $from;
$this->mail_to = $to;
$this->mail_subject = $subject;
$this->mail_body = $body;
$this->mail_priority = $priority;
$this->mail_notification = $notification;
}
private function _smtp_base_header()
{
$this->_smtp_cmd("From: $this->mail_from");
$this->_smtp_cmd("To: $this->mail_to");
$this->_smtp_cmd("Subject: $this->mail_subject");
$this->_smtp_cmd("MIME-Version: $this->mime_version");
$this->_smtp_cmd("X-Priority: $this->mail_priority");
$this->_smtp_cmd("X-Mailer: $this->mime_xmailer");
}
private function _smtp_base_content()
{
$this->_smtp_cmd("Content-Type: $this->mime_content_type; charset=\"$this->mime_charset\"");
$this->_smtp_cmd("Content-Transfer-Encoding: $this->mime_encoding");
}
private function _smtp_multipart_content($attach = false)
{
if($attach)
{
$this->_smtp_cmd("Content-Type: multipart/mixed; boundary=\"$this->mime_boundary\"");
} else {
$this->_smtp_cmd("Content-Type: multipart/alternative; boundary=\"$this->mime_boundary\"");
}
$this->_smtp_cmd("$this->smtp_CRLF");
$this->_smtp_cmd("This is a multi-part message in MIME format.");
}
private function _smtp_attachfile_content()
{
$this->_smtp_cmd("Content-Type: $this->smtp_attachfile_type");
$this->_smtp_cmd("Content-Transfer-Encoding: $this->mime_encoding");
$this->_smtp_cmd("Content-Disposition: attachment; filename=\"$this->smtp_attachfile_name\"");
}
private function _smtp_start_boundary()
{
$this->_smtp_cmd("$this->smtp_CRLF");
$this->_smtp_cmd("--$this->mime_boundary");
}
private function _smtp_end_boundary()
{
$this->_smtp_cmd("--$this->mime_boundary--");
}
public function open()
{
$this->smtp_socketopen = @fsockopen($this->smtp_server, $this->smtp_port, $errno, $errstr, $this->smtp_timeout);
if($this->_smtp_code($this->_receive()) != 220)
{
throw new Exception("..... ... . .....");
}
else
{
$this->smtp_status = true;
}
return $this->smtp_status;
}
private function _smtp_helo()
{
$this->_smtp_cmd("HELO $this->smtp_server");
if($this->_smtp_code($this->_receive()) == 250)
{
return true;
}
return false;
}
private function _smtp_mailfrom($from)
{
$this->_smtp_cmd("MAIL FROM: $this->mail_from");
if($this->_smtp_code($this->_receive()) == 250)
{
return true;
}
return false;
}
private function _smtp_rcptto($to)
{
$this->_smtp_cmd("RCPT TO: $this->mail_to");
if($this->_smtp_code($this->_receive()) == 250)
{
return true;
}
return false;
}
private function _smtp_data()
{
$this->_smtp_cmd("DATA");
if($this->_smtp_code($this->_receive()) == 354)
{
return true;
}
return false;
}
private function _smtp_end()
{
$this->_smtp_cmd(".");
if($this->_smtp_code($this->_receive()) == 250)
{
return true;
}
return false;
}
private function _smtp_quit()
{
$this->_smtp_cmd("QUIT");
if($this->_smtp_code($this->_receive()) == 221)
{
return true;
}
return false;
}
public function close()
{
if(@fclose($this->smtp_socketopen) == false)
{
throw new Exception(".. ..... ...... .....");
}
return true;
}
private function _smtp_send($files = null)
{
$this->mime_boundary = "======" . uniqid(rand()) . "/$_SERVER[SERVER_NAME]";
$mail_body = nl2br(stripslashes($this->mail_body));
if($this->mime_encoding == "base64")
{
$mail_body = chunk_split(base64_encode($mail_body));
}
$this->smtp_cmd_status[] = $this->_smtp_helo();
$this->smtp_cmd_status[] = $this->_smtp_mailfrom($this->mail_from);
$this->smtp_cmd_status[] = $this->_smtp_rcptto($this->mail_to);
$this->smtp_cmd_status[] = $this->_smtp_data();
$this->_smtp_base_header();
if(is_array($files))
{
$this->_smtp_multipart_content(true);
$this->_smtp_start_boundary();
$this->_smtp_base_content();
$this->_smtp_cmd("$this->smtp_CRLF");
$this->_smtp_cmd($mail_body);
$this->_smtp_cmd("$this->smtp_CRLF");
for($i = 0; $i < sizeof($files); $i++)
{
if(is_uploaded_file($files[tmp_name][$i]))
{
$this->smtp_attachfile_name = $this->_check_empty($files[name][$i]);
$this->smtp_attachfile_size = $files[size][$i];
$this->smtp_attachfile_type = $files[type][$i];
$attachfile_handle = @fopen($files[tmp_name][$i], "r");
$attachfile_body = @fread($attachfile_handle, $files[size][$i]);
if($this->mime_encoding == "base64")
{
$attachfile_body = chunk_split(base64_encode($attachfile_body));
}
$this->_smtp_start_boundary();
$this->_smtp_attachfile_content();
$this->_smtp_cmd("$this->smtp_CRLF");
$this->_smtp_cmd($attachfile_body);
$this->_smtp_cmd("$this->smtp_CRLF");
@fclose($attachfile_handle);
}
}
} else {
$this->_smtp_multipart_content(false);
$this->mime_content_type = "text/plain";
$this->_smtp_start_boundary();
$this->_smtp_base_content();
$this->_smtp_cmd("$this->smtp_CRLF");
$this->_smtp_cmd($mail_body);
$this->_smtp_cmd("$this->smtp_CRLF");
$this->mime_content_type = "text/html";
$this->_smtp_start_boundary();
$this->_smtp_base_content();
$this->_smtp_cmd("$this->smtp_CRLF");
$this->_smtp_cmd($mail_body);
$this->_smtp_cmd("$this->smtp_CRLF");
}
$this->_smtp_end_boundary();
$this->smtp_cmd_status[] = $this->_smtp_end();
$this->smtp_cmd_status[] = $this->_smtp_quit();
foreach($this->smtp_cmd_status as $key => $value)
{
if($value == false)
{
return false;
break;
}
}
return true;
}
private function _smtp_cmd($str)
{
@fputs($this->smtp_socketopen, $str . $this->smtp_CRLF);
}
private function _smtp_code($str)
{
return substr($str, 0, 3);
}
private function _receive()
{
return @fgets($this->smtp_socketopen, 1024);
}
private function _check_empty($filename)
{
return preg_replace("/ /i", "_", $filename);
}
public function send($to, $from, $subject, $text, $priority = 3, $files = null)
{
$this->set_xmailer($_SERVER[HTTP_USER_AGENT]);
$this->set_content_type("text/html");
$this->set_charset("euc_kr");
$this->set_encoding("base64");
$this->_mail_env($to, $from, $this->encoding($subject), $text, $priority);
if($this->_smtp_send($files) == false)
{
throw new Exception("Error");
}
}
public function __destruct()
{
}
};
?>
@@ -0,0 +1,261 @@
BODY {
BACKGROUND-POSITION: left top; FONT-SIZE: 8pt; BACKGROUND-IMAGE: url(/IcsImage/Web/Bg.gif); MARGIN: 0px 0px 0px 40px; COLOR: #666666; LINE-HEIGHT: 18px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: "tahoma"; BACKGROUND-COLOR: #ffffff
}
TD {
FONT-SIZE: 8pt; COLOR: #666666; LINE-HEIGHT: 18px; FONT-FAMILY: "tahoma"
}
SELECT {
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 8pt; PADDING-BOTTOM: 2px; COLOR: #666666; PADDING-TOP: 2px; FONT-FAMILY: tahoma
}
INPUT {
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 8pt; PADDING-BOTTOM: 2px; COLOR: #666666; PADDING-TOP: 2px; FONT-FAMILY: tahoma
}
TEXTAREA {
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 8pt; PADDING-BOTTOM: 2px; COLOR: #666666; PADDING-TOP: 2px; FONT-FAMILY: tahoma
}
SELECT {
BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none
}
FORM {
MARGIN: 0px
}
IMG {
BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px
}
.Box01 {
BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 19px
}
.Box02 {
BORDER-RIGHT: #f3f3f3 1px solid; BORDER-TOP: #f3f3f3 1px solid; BORDER-LEFT: #f3f3f3 1px solid; BORDER-BOTTOM: #f3f3f3 1px solid; BACKGROUND-COLOR: #f3f3f3
}
.Box03 {
BORDER-RIGHT: #e3f1d4 1px solid; BORDER-TOP: #e3f1d4 1px solid; BORDER-LEFT: #e3f1d4 1px solid; BORDER-BOTTOM: #e3f1d4 1px solid; BACKGROUND-COLOR: #f5f8f2
}
.BoxSearch {
BORDER-RIGHT: #b2cf54 1px solid; BORDER-TOP: #b2cf54 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #b2cf54 1px solid; WIDTH: 130px; COLOR: #607993; BORDER-BOTTOM: #b2cf54 1px solid; FONT-FAMILY: µ¸¿ò; LETTER-SPACING: -1px; HEIGHT: 18px
}
.BoxSearchS {
BORDER-RIGHT: #b2cf54 1px solid; BORDER-TOP: #b2cf54 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #b2cf54 1px solid; COLOR: #888888; BORDER-BOTTOM: #b2cf54 1px solid; FONT-FAMILY: µ¸¿ò; LETTER-SPACING: -1px; HEIGHT: 16px
}
.Txt01 {
FONT-SIZE: 11px; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px
}
.Txt02 {
FONT-SIZE: 11px; FONT-FAMILY: "Tahoma"; LETTER-SPACING: 0px
}
.Txt03 {
FONT-SIZE: 11px; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; padding-botto: 2px
}
.TxtTitle {
FONT-WEIGHT: bold; FONT-SIZE: 12px; PADDING-TOP: 3px; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px
}
.Color01 {
COLOR: #ffffff
}
.Color02 {
COLOR: #83766b
}
.Color03 {
COLOR: #1b3674
}
.Color04 {
COLOR: #244798
}
.ColorName {
COLOR: #7088a4
}
.ColorName02 {
COLOR: #839933
}
.BgBbsLine {
BACKGROUND-COLOR: #eaeaea
}
.BgBbs {
BACKGROUND-COLOR: #f9fbf7
}
.BgBbsBottom {
BACKGROUND-COLOR: #b1d444
}
#SubMnu01 {
Z-INDEX: 2; LEFT: 0px; WIDTH: 260px; POSITION: absolute; TOP: 0px; HEIGHT: 100%
}
#Top {
Z-INDEX: 1; LEFT: 0px; WIDTH: 100%; POSITION: absolute; TOP: 0px; HEIGHT: 130px
}
#Family {
Z-INDEX: 1; LEFT: 800px; WIDTH: 180px; BOTTOM: 100px; POSITION: absolute; HEIGHT: 30px
}
A:link {
FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: tahoma; TEXT-DECORATION: none
}
A:active {
FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: tahoma; TEXT-DECORATION: none
}
A:visited {
FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: tahoma; TEXT-DECORATION: none
}
A:hover {
FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: tahoma; TEXT-DECORATION: none
}
A:unknown {
FONT-SIZE: 9pt; COLOR: #666666; FONT-FAMILY: verdana; TEXT-DECORATION: none
}
A:unknown {
FONT-SIZE: 9pt; COLOR: #666666; FONT-FAMILY: verdana; TEXT-DECORATION: none
}
A:unknown {
FONT-SIZE: 9pt; COLOR: #666666; FONT-FAMILY: verdana; TEXT-DECORATION: none
}
A:unknown {
FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: verdana; TEXT-DECORATION: none
}
A.Sdotum:link {
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; TEXT-DECORATION: none
}
A.Sdotum:active {
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; TEXT-DECORATION: none
}
A.Sdotum:visited {
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; TEXT-DECORATION: none
}
A.Sdotum:hover {
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; TEXT-DECORATION: underline
}
.PT02 {
PADDING-TOP: 2px
}
.PT05 {
PADDING-TOP: 5px
}
.PT10 {
PADDING-TOP: 10px
}
.PT20 {
PADDING-TOP: 20px
}
.PT40 {
PADDING-TOP: 40px
}
.PR05 {
PADDING-RIGHT: 5px
}
.PR10 {
PADDING-RIGHT: 10px
}
.PR20 {
PADDING-RIGHT: 20px
}
.PR40 {
PADDING-RIGHT: 40px
}
.PB02 {
PADDING-BOTTOM: 2px
}
.PB05 {
PADDING-BOTTOM: 5px
}
.PB10 {
PADDING-BOTTOM: 10px
}
.PB20 {
PADDING-BOTTOM: 20px
}
.PL05 {
PADDING-LEFT: 5px
}
.PL10 {
PADDING-LEFT: 10px
}
.PL20 {
PADDING-LEFT: 20px
}
.PL40 {
PADDING-LEFT: 40px
}
.PMargin {
PADDING-RIGHT: 5px; PADDING-LEFT: 25px; PADDING-TOP: 13px
}
.PPath {
PADDING-RIGHT: 5px; PADDING-LEFT: 10px
}
.PHeader {
PADDING-RIGHT: 10px; PADDING-LEFT: 10px
}
.PInput {
PADDING-BOTTOM: 6px; PADDING-TOP: 5px
}
.PBbs {
PADDING-BOTTOM: 5px; PADDING-TOP: 6px
}
.PBbs02 {
PADDING-BOTTOM: 2px; PADDING-TOP: 3px
}
.PBbsP {
PADDING-BOTTOM: 10px; PADDING-TOP: 10px
}
.PBbsView {
PADDING-BOTTOM: 25px; PADDING-TOP: 20px
}
.PCont {
PADDING-LEFT: 0px
}
.PSearch {
PADDING-RIGHT: 10px; HEIGHT: 35px
}
.PSub {
PADDING-LEFT: 10px
}
.PTitle {
PADDING-LEFT: 0px
}
.PTitleSub {
PADDING-BOTTOM: 5px
}
.PTable {
PADDING-LEFT: 10px
}
.HeightBottom {
HEIGHT: 20px
}
.HeightTitle {
HEIGHT: 70px
}
.HeightTitleBottom {
HEIGHT: 15px
}
.HeightTitleBottom02 {
HEIGHT: 10px
}
.HeightTitleBottom03 {
HEIGHT: 25px
}
.HeightMnuBottom {
HEIGHT: 30px
}
.HeightMnuBottom02 {
HEIGHT: 25px
}
.HeightMnuSub {
HEIGHT: 5px
}
.HeightImageBottom {
HEIGHT: 25px
}
.HeightImageBottom02 {
HEIGHT: 40px
}
.HeightImageBottom03 {
HEIGHT: 20px
}
.HeightImageTop {
HEIGHT: 10px
}
.HeightBr {
HEIGHT: 25px
}
.HeightBr02 {
HEIGHT: 4px
}
UNKNOWN {
BACKGROUND-IMAGE: url(/IcsImage/MyIcs/HeaderLine.gif); BACKGROUND-REPEAT: no-repeat
}
@@ -0,0 +1,627 @@
// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드)
function flashWrite(url,w,h,id,bg,vars,win){
// 플래시 코드 정의
var flashStr=
"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
"<param name='allowScriptAccess' value='always' />"+
"<param name='movie' value='"+url+"' />"+
"<param name='FlashVars' value='"+vars+"' />"+
"<param name='wmode' value='"+win+"' />"+
"<param name='menu' value='false' />"+
"<param name='quality' value='high' />"+
"<param name='bgcolor' value='"+bg+"' />"+
"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
"</object>";
document.write(flashStr);
}
// 오픈 팝업 스크립트 //
function goPopup(url, name, _width, _height, _scrollbar){
var screenX;
var screenY;
if(navigator.appName == "Microsoft Internet Explorer") {
screenX = window.screen.availWidth;
screenY = window.screen.availHeight;
}
else {
screenX = window.outerWidth;
screenY = window.outerHeight;
}
var h, w;
w = (screenX - _width)/2;
h = (screenY - _height)/2;
var newWin = window.open(url, name, 'left=' + w + ' top=' + h + ' width=' +_width + ' height=' + _height + ' scrollbars=' + _scrollbar + 'resize=no,toolbar=no,status=no,menu=no');
newWin.focus();
return newWin;
}
/**************************************************************/
/* Select Box */
/**************************************************************/
var SS_ENV = new Object();
SS_ENV.IE_Version = new Number(((window.navigator.appVersion.split('; '))[1].split(' '))[1]);
SS_ENV.CR = new Object();
SS_ENV.CR.ReverseBackground = '#E6E6E6';
SS_ENV.CR.ReverseText = '#333333';
SS_ENV.CR.Border = '#D4D4D4';
SS_ENV.CR.BorderActive = '#D4D4D4';
SS_ENV.ImgPrefix = '/IcsImage/Web/';
SS_ENV.DefaultHeight =18;
SS_ENV.ButtonWidth = 16;
SS_ENV.OptionsDivStyle = ''
+ ' display:none;'
+ ' z-index:10;'
+ ' position:absolute;'
+ ' border:1 solid '+ SS_ENV.CR.Border+';'
+ ' background-color:#ffffff;'
+ ' scrollbar-face-color:#FFFFFF;'
+ ' scrollbar-shadow-color:#ffffff;'
+ ' scrollbar-highlight-color:#f3f3f3;'
+ ' scrollbar-3dlight-color:#d9d9d9;'
+ ' scrollbar-darkshadow-color:#d9d9d9;'
+ ' scrollbar-track-color:#ffffff;'
+ ' scrollbar-arrow-color:#ffffff;';
SS_ENV.MouseStyle = 'cursor:hand;'//박스위에올라갔을때의 마우스모양
SS_ENV.OptionNobrStyle = ''
+ ' font-size:11px; padding-left:5;'
+ ' font-family:verdana,dotum;';
// SaySelect Variables
var SS_VAR = new Object();
SS_VAR.DivDummy = document.createElement("DIV");
SS_VAR.SelectList = new Array();
SS_VAR.bEventAttached = false;
var SS_CreatedElements = new Object();
function unloadObjects()
{
try {
if (SS_VAR && SS_VAR.SelectList)
{
for (key in SS_VAR.SelectList)
{
if (SS_VAR.SelectList[key])
{
try {
SS_VAR.SelectList[key].select.setAttribute('SS', 0);
} catch (e) {};
delete SS_VAR.SelectList[key];
}
}
}
} catch (e) {};
}
attachEvent("onunload", unloadObjects);
function SS_create (srcHTML, ListMax, bAutoDetect)
{
// property
this.ssID = SS_VAR.SelectList.length;
this.bOriginalSelect = (bAutoDetect && SS_ENV.IE_Version < 5.5);
this.select = SS_createElement(srcHTML);
this.selectedIndex = this.select.selectedIndex;
this.options = this.select.options;
this.width = parseInt(this.select.style.width);
this.height = (this.select.style.height) ? parseInt(this.select.style.height) : SS_ENV.DefaultHeight;
this.OptionHeight = this.height ;
this.bListDown = (ListMax && '-'==ListMax.toString().substr(0, 1)) ? false : true;
this.ListMax = (!isNaN(parseInt(ListMax))) ? Math.abs(ListMax) : 100;
this.Table;
this.TitleDiv;
this.TitleTable;
this.TitleWrapper;
this.OptionsDiv;
this.OptionsWrapper;
this.OptionsTable;
this.bFocused = false;
this.bExpanded = false;
this.bReverse = false;
// private method
this.isThisEventToBeCanceled = SS_isThisEventToBeCanceled;
this.toggleTitle = SS_toggleTitle;
this.syncSelectedIndex = SS_syncSelectedIndex;
this.toggleOptions = SS_toggleOptions;
this.turnOnOption = SS_turnOnOption;
this.turnOffOption = SS_turnOffOption;
this.handleMousewheel = SS_handleMousewheel;
this.handleOverTitle = SS_handleOverTitle;
this.handleOutTitle = SS_handleOutTitle;
this.handleOverOption = SS_handleOverOption;
this.createTable = SS_createTable;
this.createTitleDiv = SS_createTitleDiv;
this.createOptionsDiv = SS_createOptionsDiv;
this.createOptionTr = SS_createOptionTr;
this.adjustOptionsDiv = SS_adjustOptionsDiv;
this.syncOptions = SS_syncOptions;
this.pressOption = SS_pressOption;
this.moveOption = SS_moveOption;
this.releaseOption = SS_releaseOption;
this.pressTitle = SS_pressTitle;
this.releaseTitle = SS_releaseTitle;
// public method
this.display = SS_display;
this.insertOption = SS_insertOption;
this.deleteOption = SS_deleteOption;
this.changeOption = SS_changeOption;
// initiate
this.createTable();
this.select.setAttribute('SS', this);
if (!this.bOriginalSelect)
this.select.onpropertychange = SS_handlePropertychange;
SS_VAR.SelectList[this.ssID] = this;
}
function SS_display ()
{
document.write("<div id=SS_TempDiv></div>\n");
document.all.SS_TempDiv.appendChild(this.Table);
document.all.SS_TempDiv.removeNode();
}
function SS_write (srcHTML, ListMax, bAutoDetect)
{
var oSS = new SS_create(srcHTML, ListMax, bAutoDetect);
oSS.display();
return oSS;
}
function SS_insertOption (value, innerText, idx)
{
var NewOption = document.createElement("OPTION");
SS_CreatedElements[SS_CreatedElements.length] = NewOption;
this.options.add(NewOption, idx);
NewOption.innerText = innerText;
NewOption.value = value;
if (!this.bOriginalSelect)
this.createOptionTr(idx);
this.syncOptions();
this.adjustOptionsDiv();
this.syncSelectedIndex();
}
function SS_deleteOption (idx)
{
this.options.remove(idx);
if (!this.bOriginalSelect)
this.OptionsTable.deleteRow(idx);
this.syncOptions();
this.adjustOptionsDiv();
this.syncSelectedIndex();
}
function SS_changeOption (idx, value, innerText)
{
this.options[idx].value = value;
this.options[idx].innerText = innerText;
this.syncOptions();
this.syncSelectedIndex();
}
function SS_insertOption1 (obj, value, innerText, idx)
{
var NewOption = document.createElement("OPTION");
SS_CreatedElements[SS_CreatedElements.length] = NewOption;
obj.options.add(NewOption, idx);
NewOption.innerText = innerText;
NewOption.value = value;
if (!obj.bOriginalSelect)
obj.createOptionTr(idx);
obj.syncOptions();
obj.adjustOptionsDiv();
obj.syncSelectedIndex();
}
function SS_changeOption1 (obj, idx, value, innerText)
{
obj.options[idx].value = value;
obj.options[idx].innerText = innerText;
obj.syncOptions();
obj.syncSelectedIndex();
}
function SS_deleteOption1 (obj, idx)
{
obj.options.remove(idx);
if (!obj.bOriginalSelect)
obj.OptionsTable.deleteRow(idx);
obj.syncOptions();
obj.adjustOptionsDiv();
obj.syncSelectedIndex();
}
function SS_cancelEvent (event)
{
event.cancelBubble = true;
event.returnValue = false;
}
function SS_isThisEventToBeCanceled (event)
{
if ('object' == typeof(event)) {
switch (event.type) {
case 'mousedown':
if (!(event.button & 1)) return true;
break;
case 'mouseup':
if (!(event.button & 1)) return true;
if (SS_ENV.IE_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null) {
this.srcElementOfLastMousedown = null;
return true;
}
break;
case 'mouseout':
if (!(SS_ENV.IE_Version < 5.5 && event.srcElement == this.srcElementOfLastMousedown))
return true;
break;
case 'mousemove':
if (SS_ENV.IE_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null)
return true;
break;
}
}
return false;
}
function SS_createElement (html)
{
SS_VAR.DivDummy.insertAdjacentHTML('afterBegin', html);
var oEl = SS_VAR.DivDummy.children(0);
while (SS_VAR.DivDummy.children.length > 0) {
SS_VAR.DivDummy.removeChild(SS_VAR.DivDummy.children(0));
}
return oEl;
}
function SS_blurExcept (except)
{
SS_cancelEvent(window.event);
except = ('number'==typeof(except)) ? except : -1;
var bHasToDetachEvent = true;
for (var i=0; i < SS_VAR.SelectList.length; i++) {
if (-1==except && SS_VAR.SelectList[i].bFocused && SS_VAR.SelectList[i].bExpanded) {
SS_VAR.SelectList[i].toggleOptions(false, true);
SS_VAR.SelectList[i].toggleTitle(true);
bHasToDetachEvent = false;
}
else if (i!=except) {
if (SS_VAR.SelectList[i].bExpanded)
SS_VAR.SelectList[i].toggleOptions(false, true);
if (SS_VAR.SelectList[i].bReverse)
SS_VAR.SelectList[i].toggleTitle(false);
SS_VAR.SelectList[i].bFocused = false;
}
}
if (SS_VAR.bEventAttached && bHasToDetachEvent) {
document.detachEvent('onmousedown', SS_blurExcept);
document.detachEvent('ondblclick', SS_blurExcept);
SS_VAR.bEventAttached = false;
}
}
function SS_syncSelectedIndex ()
{
this.selectedIndex = this.select.selectedIndex;
if (this.bOriginalSelect) return;
if (this.TitleTable.cells(0).childNodes(0).innerText != this.options[this.selectedIndex].innerText)
this.TitleTable.cells(0).childNodes(0).innerText = this.options[this.selectedIndex].innerText;
if (this.bExpanded)
this.toggleOptions(false);
}
function SS_syncSelectedIndex1 (obj)
{
obj.selectedIndex = obj.select.selectedIndex;
if (obj.bOriginalSelect) return;
if (obj.TitleTable.cells(0).childNodes(0).innerText != obj.options[obj.selectedIndex].innerText)
obj.TitleTable.cells(0).childNodes(0).innerText = obj.options[obj.selectedIndex].innerText;
if (obj.bExpanded)
obj.toggleOptions(false);
}
function SS_toggleTitle (bReverse)
{
this.bReverse = ('undefined'!=typeof(bReverse)) ? bReverse: (!this.bReverse);
this.TitleTable.cells(0).style.backgroundColor = this.bReverse ? SS_ENV.CR.ReverseBackground : '';
this.TitleTable.cells(0).style.color = this.bReverse ? SS_ENV.CR.ReverseText : '';
}
function SS_toggleOptions (bExpanded, bStrict)
{
if (!bStrict && !this.bFocused) {
SS_blurExcept(this.ssID);
}
this.bExpanded = ('undefined'!=typeof(bExpanded)) ? bExpanded: (!this.bExpanded);
if (this.bExpanded) {
this.adjustOptionsDiv();
this.OptionsDiv.style.display = 'block';
if (!bStrict) {
this.toggleTitle(false);
this.handleOverOption(this.selectedIndex);
}
this.handleOutTitle();
}
else {
this.OptionsDiv.style.display = 'none';
if (!bStrict) {
this.toggleTitle(true);
}
}
if (!bStrict) {
this.bFocused = true;
if (!SS_VAR.bEventAttached) {
document.attachEvent('onmousedown', SS_blurExcept);
document.attachEvent('ondblclick', SS_blurExcept);
SS_VAR.bEventAttached = true;
}
}
}
function SS_handlePropertychange ()
{
if ('propertychange'==window.event.type && 'selectedIndex'==window.event.propertyName) {
var oSS = window.event.srcElement.SS;
oSS.syncSelectedIndex();
if (null != oSS.select.onchange)
oSS.select.onchange();
}
}
function SS_handleMousewheel (event)
{
var idx = this.selectedIndex;
if ('mousewheel'==event.type && this.bFocused && this.bReverse) {
for (var i=0; i < event.wheelDelta; i += 120)
idx--;
for (var i=0; i > event.wheelDelta; i -= 120)
idx++;
}
idx = Math.max(idx, 0);
idx = Math.min(idx, this.options.length - 1);
this.select.selectedIndex = idx;
}
function SS_handleOverTitle ()
{
if (this.bExpanded)
return;
this.TitleTable.style.borderColor = SS_ENV.CR.BorderActive;
this.TitleTable.cells(1).style.display = 'none';
this.TitleTable.cells(2).style.display = 'block';
}
function SS_handleOutTitle ()
{
this.TitleTable.style.borderColor = SS_ENV.CR.Border;
this.TitleTable.cells(2).style.display = 'none';
this.TitleTable.cells(1).style.display = 'block';
}
function SS_handleOverOption (idx)
{
for (var i=0; i < this.options.length; i++) {
if (i==idx)
this.turnOnOption(i);
else
this.turnOffOption(i);
}
}
function SS_turnOnOption (idx)
{
this.OptionsTable.cells(idx).style.color = SS_ENV.CR.ReverseText;
this.OptionsTable.cells(idx).style.backgroundColor = SS_ENV.CR.ReverseBackground;
}
function SS_turnOffOption (idx)
{
this.OptionsTable.cells(idx).style.color = '';
this.OptionsTable.cells(idx).style.backgroundColor = '';
}
function SS_adjustOptionsDiv ()
{
if (this.bOriginalSelect) return;
this.OptionsDiv.style.width = this.width;
this.OptionsDiv.style.height = Math.min(this.options.length, this.ListMax) * this.OptionHeight ;
this.OptionsWrapper.style.height = this.options.length * this.OptionHeight;
this.OptionsDiv.style.overflowY = (this.options.length > this.ListMax) ? 'scroll' : '';
var top = this.Table.offsetTop;
var left = this.Table.offsetLeft;
for (var El = this.Table.offsetParent; 'BODY'!=El.tagName && 'absolute'!=El.style.position && 'relative'!=El.style.position; El = El.offsetParent) {
if ('TABLE' != El.tagName) {
top += El.clientTop;
left += El.clientLeft;
}
top += El.offsetTop;
left += El.offsetLeft;
}
this.OptionsDiv.style.top = (this.bListDown) ? (top + this.height) : (top - parseInt(this.OptionsDiv.style.height));
this.OptionsDiv.style.left = left;
this.TitleWrapper.style.top = 0;
this.TitleWrapper.style.left = 0;
}
function SS_syncOptions ()
{
if (this.bOriginalSelect) return;
for (var i=0; i < this.options.length; i++) {
this.OptionsTable.cells(i).setAttribute('index', i);
if (this.OptionsTable.cells(i).childNodes(0).innerText != this.options[i].innerText)
this.OptionsTable.cells(i).childNodes(0).innerText = this.options[i].innerText;
}
}
function SS_pressTitle (event)
{
SS_cancelEvent(event);
this.srcElementOfLastMousedown = event.srcElement;
this.toggleOptions();
}
function SS_releaseTitle (event)
{
SS_cancelEvent(event);
if (this.isThisEventToBeCanceled(event)) return;
this.srcElementOfLastMousedown = null;
}
function SS_pressOption (event)
{
SS_cancelEvent(event);
this.srcElementOfLastMousedown = event.srcElement;
}
function SS_moveOption (event)
{
SS_cancelEvent(event);
if (this.isThisEventToBeCanceled(event)) return;
if (!(event.offsetX >= 0 && event.offsetX <= this.OptionsTable.offsetWidth)) return;
this.handleOverOption(Math.floor(event.offsetY / this.OptionHeight));
}
function SS_releaseOption (event)
{
SS_cancelEvent(event);
if (this.isThisEventToBeCanceled(event)) return;
this.srcElementOfLastMousedown = null;
if (event.offsetX >= 0 && event.offsetX <= this.OptionsTable.offsetWidth) {
this.toggleOptions(false);
this.select.selectedIndex = Math.floor(event.offsetY / this.OptionHeight);
}
}
function SS_createTable ()
{
this.Table = SS_createElement(""
+ "<table border=0 cellpadding=0 cellspacing=0 style='table-layout:fixed; "+SS_ENV.MouseStyle+"'>"
+ "<tr><td></td></tr>"
+ "</table>"
);
if (!isNaN(this.width))
this.Table.style.width = this.width;
this.Table.style.height = this.height;
if (!this.bOriginalSelect) {
this.createTitleDiv();
this.createOptionsDiv();
this.Table.cells(0).appendChild(this.TitleDiv);
this.Table.cells(0).appendChild(this.OptionsDiv);
}
else {
this.Table.cells(0).appendChild(this.select);
}
}
function SS_createTitleDiv ()
{
this.TitleDiv = SS_createElement(""
+ "<div style='position:relative; top:0; left:0;'>"
+ " <table border=0 cellpadding=0 cellspacing=0"
+ " height="+this.height
+ " bgcolor=FFFFFF"
+ " style='table-layout:fixed; border:1 solid "+SS_ENV.CR.Border+";background-color:#ffffff;color:#8D8D8D'"
+ " onmouseover='SS_VAR.SelectList["+this.ssID+"].adjustOptionsDiv()'"
+ " >"
+ " <tr>"
+ " <td><nobr style='text-oveflow:hidden;"+SS_ENV.OptionNobrStyle+"'></nobr></td>"
+ " <td width="+SS_ENV.ButtonWidth+" align=center style='word-wrap:normal'></td>"
+ " <td style='display:none' width="+SS_ENV.ButtonWidth+" align=center style='word-wrap:normal'></td>"
+ " <td style='display:none'></td>"
+ " </tr>"
+ " </table>"
+ "</div>"
);
this.TitleTable = this.TitleDiv.childNodes(0);
this.TitleTable.cells(0).childNodes(0).innerText = this.options[this.selectedIndex].innerText;
this.TitleTable.cells(1).innerHTML = "<img src='" + SS_ENV.ImgPrefix + "btn_sbox_arrow2.gif' border=0 align=absmiddle>"; //화살표 이미지
this.TitleTable.cells(2).innerHTML = "<img src='" + SS_ENV.ImgPrefix + "btn_sbox_arrow2.gif' border=0 align=absmiddle>";
this.TitleTable.cells(3).appendChild(this.select);
this.TitleWrapper = document.createElement(""
+ "<img src='"+SS_ENV.ImgPrefix+"Blank.gif'"
+ " style='position:absolute; top:0; left:0; z-index:2; width:100%; height:"+this.height+";'"
+ " onmouseover='SS_VAR.SelectList["+this.ssID+"].handleOverTitle()'"
+ " onmouseout='SS_VAR.SelectList["+this.ssID+"].handleOutTitle(); SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event);'"
+ " onmousedown='SS_VAR.SelectList["+this.ssID+"].pressTitle(window.event)'"
+ " ondblclick='SS_VAR.SelectList["+this.ssID+"].pressTitle(window.event); SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event);'"
+ " onmouseup='SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event)'"
+ " onmousewheel='SS_VAR.SelectList["+this.ssID+"].handleMousewheel(window.event)'"
+ " ondragstart='SS_cancelEvent(window.event)'"
+ ">"
);
SS_CreatedElements[SS_CreatedElements.length] = this.TitleWrapper;
this.TitleDiv.appendChild(this.TitleWrapper);
}
function SS_createOptionsDiv ()
{
this.OptionsDiv = SS_createElement(""
+ "<div style='"+SS_ENV.OptionsDivStyle+"'"
+ " onscroll='SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)'"
+ " onmousedown='SS_cancelEvent(window.event)'"
+ ">"
+ " <table border=0 cellpadding=3 cellspacing=0 width=100% style='table-layout:fixed'>"
+ " </table>"
+ "</div>"
);
this.OptionsTable = this.OptionsDiv.childNodes(0);
for (var i=0; i < this.options.length; i++) {
this.createOptionTr(i);
}
this.syncOptions();
this.OptionsWrapper = document.createElement(""
+ "<img src='"+SS_ENV.ImgPrefix+"Blank.gif'"
+ " style='position:absolute; top:0; left:0; width:100%;'"
+ " onmousedown='SS_VAR.SelectList["+this.ssID+"].pressOption(window.event)'"
+ " onmousemove='SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)'"
+ " onmouseup='SS_VAR.SelectList["+this.ssID+"].releaseOption(window.event)'"
+ " onmouseout='SS_VAR.SelectList["+this.ssID+"].releaseOption(window.event)'"
+ " ondragstart='SS_cancelEvent(window.event)'"
+ ">"
);
SS_CreatedElements[SS_CreatedElements.length] = this.OptionsWrapper;
this.OptionsDiv.appendChild(this.OptionsWrapper);
}
function SS_createOptionTr (idx)
{
idx = ('undefined'!=typeof(idx)) ? idx : this.options.length - 1;
var OptionTr = this.OptionsTable.insertRow(-1);
var OptionTd = document.createElement("<td height="+this.OptionHeight+"></td>");
SS_CreatedElements[SS_CreatedElements.length] = this.OptionsTd;
OptionTd.appendChild(document.createElement("<nobr style='"+SS_ENV.OptionNobrStyle+"'></nobr>"));
OptionTr.appendChild(OptionTd);
}
function sectionChange(form)
{
var idx_office = SS_office.selectedIndex;
var office_section = section_list[idx_office];
var tmp, i, len;
len = SS_section.options.length;
for (i = office_section.length - 1; i >= 0; i--) {
tmp = office_section[i].split(",");
SS_section.insertOption(tmp[1], tmp[0], 0);
}
offset = office_section.length;
for (i = office_section.length; i < office_section.length + len; i++) {
SS_section.deleteOption(offset);
}
}
@@ -0,0 +1,103 @@
function UNotice(bName) {
menufrm.action = "/UserCustomer.do";
menufrm.cmd.value = "L";
menufrm.boardName.value = bName;
menufrm.currentPage.value = "1";
menufrm.submit();
}
function Main() {location.href = "/IcsHtml/Web/Main.jsp";} //메인
//** KT ICS 소개 **//
function About() {location.href = "/IcsHtml/Web/About/Overview.jsp";} //KT ICS 소개
function Overview() {location.href = "/IcsHtml/Web/About/Overview.jsp";} //서비스 개요
function Special() {location.href = "/IcsHtml/Web/About/Special.jsp";} //서비스 특징 _ ICS 서비스 특징
function SpecialTech() {location.href = "/IcsHtml/Web/About/SpecialTech.jsp";} //서비스 특징 _ ICS 기술적 특징
function SpecialTech02() {location.href = "/IcsHtml/Web/About/SpecialTech02.jsp";} //서비스 특징 _ ICS 기술적 특징
function SpecialTech03() {location.href = "/IcsHtml/Web/About/SpecialTech03.jsp";} //서비스 특징 _ ICS 기술적 특징
function Benefit() {location.href = "/IcsHtml/Web/About/Benefit.jsp";} //도입효과
function Case() {location.href = "/IcsHtml/Web/About/Case.jsp";} //Case Study
function Case02() {location.href = "/IcsHtml/Web/About/Case02.jsp";} //Case Study
function Case03() {location.href = "/IcsHtml/Web/About/Case03.jsp";} //Case Study
//** ICS 상품 **//
function UIcsExam(bName) {
menufrm.action = "/UserExam.do";
menufrm.cmd.value = "L";
menufrm.boardName.value = bName;
menufrm.currentPage.value = "1";
menufrm.submit();
}
function UIcsExam2(bName) {
menufrm.action = "/UserExam.do";
menufrm.cmd.value ="L";
menufrm.boardName.value = bName;
menufrm.currentPage.value = "1";
menufrm.target = "_blank";
menufrm.submit();
}
function InteractiveExam() {UIcsExam('ICSInteractive');} // ICS Interactive _ 적용사례
function StreamingExam() {UIcsExam('ICSStreaming');} // ICS Interactive _ 적용사례
function DownloadExam() {UIcsExam('ICSDownload');} // ICS Interactive _ 적용사례
function WebLinkExam() {UIcsExam('ICSWeb-Link');} // ICS Interactive _ 적용사례
function Service() {location.href = "/IcsHtml/Web/Service/Interactive.jsp";} //ICS 상품
function Interactive() {location.href = "/IcsHtml/Web/Service/Interactive.jsp";} //ICS Interactive
function Streaming() {location.href = "/IcsHtml/Web/Service/Streaming.jsp";} //ICS Streaming
function Download() {location.href = "/IcsHtml/Web/Service/Download.jsp";} //ICS Download
function WebLink() {location.href = "/IcsHtml/Web/Service/WebLink.jsp";} //ICS WebLink
//** ICS 체험 **//
function Experience() {UNotice('MediaPDS');} //보도자료
//function Press() {Notice('보도자료')location.href = "/IcsHtml/Web/Experience/Press.jsp";} //보도자료
function Press() {UNotice('MediaPDS');} //보도자료
function Tour() {location.href = "/IcsHtml/Web/Experience/Tour.jsp";} //ICS Tour
function View() {location.href = "/IcsHtml/Web/Experience/View.jsp";} //서비스 체험
function FreeZone() {location.href = "/IcsHtml/Web/Experience/FreeZone.jsp";} //프리존 프로그램
//** 고객센터 **//
function Customer() {UNotice('notice');} //고객센터
function Notice() {UNotice('notice');}
//function Customer() {location.href = "/IcsHtml/Web/Customer/Notice.jsp";} //고객센터
//function Notice() {location.href = "/IcsHtml/Web/Customer/Notice.jsp";} //공지사항
function Info() {location.href = "/IcsHtml/Web/Customer/Info.jsp";} //서비스안내 _ 서비스 이용절차
function InfoFee() {location.href = "/IcsHtml/Web/Customer/InfoFee.jsp";} //서비스안내 _ 요금체계
function UFaq(faqCtg) {
menufrm.action = "/UserFaq.do";
menufrm.cmd.value ="L";
menufrm.boardName.value = faqCtg;
menufrm.currentPage.value = "1";
menufrm.submit();
}
function Faq() {UFaq('webfaq')} //자주 묻는 질문
function Qna() {location.href = "/IcsHtml/Web/Customer/Qna.jsp";} //1:1 온라인 상담
function Counsel2() {
menufrm.action = "/IcsHtml/Web/Customer/Counsel.jsp";
menufrm.cmd.value ="Z";
menufrm.submit();
}
function Counsel() {location.href = "/IcsHtml/Web/Customer/Counsel.jsp";} //서비스 신청 상담
function ContactUs() {location.href = "/IcsHtml/Web/Customer/ContactUs.jsp";} //문의처 안내
//** 기타 **//
function Sitemap() {location.href = "/IcsHtml/Web/Etc/Sitemap.jsp";} //사이트맵
function IcsLogin() {window.open("/Login.do");} //My ICS 로그인
function Term() {goPopup('/IcsHtml/Web/Etc/Term.jsp','blogcheck',500,600,1);} //이용약관
function Address() {goPopup('/IcsHtml/Web/Etc/PopAddress.jsp','blogcheck',500,600,1);} //법적고지
function Privacy() {goPopup('/IcsHtml/Web/Etc/Privacy.jsp','blogcheck',500,600,1);} //개인보호정책
function Mail() {goPopup('/IcsHtml/Web/Etc/Mail.jsp','blogcheck',500,600,1);} //이메일무단수집거부
@@ -0,0 +1,65 @@
<?php
require_once("inc/session.php");
// if login already redirect rcmng/rc_list.html
//if ($HTTP_COOKIE_VARS[SUID] == "guru222")
if ($_COOKIE[SUID] == "guru222")
{
$transferURL = "http://$server_url/neocast/neo_monitor.html";
printf("<script>opener.window.location.href('$transferURL'); self.close(); </script>");
exit;
}
if(getenv("REQUEST_METHOD") == "POST")
{
$passwd = $_POST["passwd"];
if ($passwd == "ktsh!@#")
{
SetCookie("SUID", "guru222", 0, "/");
echo "<script language='javascript'>";
echo "opener.window.location.href('neo_monitor.html');";
echo "self.close();";
echo "</script>";
die();
}
else
{
echo "Password Error!!";
}
}
?>
<html>
<head>
<SCRIPT LANGUAGE=JAVASCRIPT>
function content_check(form)
{
pass = form.passwd.value.length;
if ( pass == 0 ) {
alert("ºñ¹øÀ» ÀÔ·Â Çϼ¼¿ä.");
form.passwd.focus();
return (false);
}
return (true);
}
function check_passwd()
{
document.form1.action = 'check_admin.html';
document.form1.submit();
}
</SCRIPT>
</head>
<body>
<center>
<form name=form1 action='javascript:check_passwd()' method=post onSubmit='return content_check(this)'>
PASSWORD: <input type=password name=passwd size=15>
<br><input type=submit value="È®ÀÎ" border=0>
</form>
</center>
</body>
<script>
document.form1.passwd.focus();
</script>
</html>
@@ -0,0 +1,292 @@
// Removes leading and trailing spaces from the passed string. Also removes
// consecutive spaces and replaces it with one space. If something besides
// a string is passed in (null, custom object, etc.) then return the input.
function trimString(inputString) {
if (typeof inputString != "string") {
return inputString;
}
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == " ") {
// Check for spaces at the beginning of the string
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ") { // Check for spaces at the end of the string
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
while (retValue.indexOf(" ") != -1) {
// Note that there are two spaces in the string - look for multiple spaces within the string
retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+ 1, retValue.length); // Again, there are two spaces in each of the strings
}
return retValue; // Return the trimmed string back to the user
}
// Ends the "trim" function
function idnKeyboard(url)
{
myPopupWin= window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=818,height=350');
myPopupWin.focus();
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+args[i+2]+args[i+3]+args[i+4]+"'");
}
function submitRequest(url)
{
self.opener.location.href=url;
self.opener.document.submit();
}
function setGainingRegIDValue(selectedform, selectedRegID ) {
selectedRegID.value = selectedform.regID.options[selectedform.regID.selectedIndex].value;
}
function PopWin(myUrl, arg1, arg2, arg3, width, height,resizable)
{
var url=myUrl+arg1+arg2+arg3;
myPopupWin = window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=700', copyhistory=0);
myPopupWin.focus();
}
function appendValues(nameObj)
{
if (isEmpty(nameObj.value) ) return;
appendOptionToSelectBox(window.document.form1.userNameList,
nameObj.value, false);
}
function appendNVPair(nameObj, valueObj)
{
if (isEmpty(nameObj.value) ) return;
if (isEmpty(valueObj.value) ) return;
str = nameObj.value + "=" + valueObj.value;
appendOptionToSelectBox(window.document.form1.userNameList, str, false);
}
function appendContPairs(nameObj, valueObj)
{
if (isEmpty(nameObj.value) ) return;
if (isEmpty(valueObj.value) ) return;
str = nameObj.value + "=" + valueObj.value;
appendOptionToSelectBox(window.document.form1.regContList, str, false);
}
function appendIPAdressValue(nameObj, valueObj)
{
if (isEmpty(nameObj.value) ) return;
if (isEmpty(valueObj.value) ) return;
str = nameObj.value + "=" + valueObj.value;
appendOptionToSelectBox(window.document.form1.nsIplist, str, false);
}
function removeNVPair()
{
if(window.document.form1.userNameList.selectedIndex >=0 ){
//removeOptionSelected(window.document.form1.userValueList);
removeOptionSelected(window.document.form1.userNameList);
}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function validateIP(theIP,theField, formCxt)
{
if( !isValidIPV4(theIP) ) {
formCxt.setError();
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
}
}
function setRegIDValue(selectedRegID ) {
selectedRegID.value = window.document.query.regID.options[window.document.query.regID.selectedIndex].value;
}
var timerID ;
function tzone(tz, os, ds, cl)
{
this.ct = new Date(0) ; // datetime
this.tz = tz ; // code
this.os = os ; // GMT offset
this.ds = ds ; // has daylight savings
this.cl = cl ; // font color
}
function UpdateClocks()
{
// www.timeanddate.com/worldclock
var ct = new Array(
new tzone('UTC: ', 0, 1, '3000b9'),
new tzone('KST: ', +9, 1, '3000b9'),
new tzone('EST: ', -5, 1, '3000b9'),
new tzone('GMT: ', 0, 1, '3000b9'),
new tzone('C N : ', +8, 0, '#FFFFFF'),
new tzone('KST: ', +9, 0, '#FFFFFF'),
new tzone('EDT: ', -4, 1, '#FFFFFF'),
new tzone('GER: ', +1, 1, '#FFFFFF')
) ;
var dt = new Date() ; // [GMT] time according to machine clock
var startDST = new Date(dt.getFullYear(), 3, 1) ;
while (startDST.getDay() != 0)
startDST.setDate(startDST.getDate() + 1) ;
var endDST = new Date(dt.getFullYear(), 9, 31) ;
while (endDST.getDay() != 0)
endDST.setDate(endDST.getDate() - 1) ;
var ds_active ; // DS currently active
if (startDST < dt && dt < endDST)
ds_active = 1 ;
else
ds_active = 0 ;
// Adjust each clock offset if that clock has DS and in DS.
for(n=0 ; n<ct.length ; n++)
if (ct[n].ds == 1 && ds_active == 1) ct[n].os++ ;
// compensate time zones
gmdt = new Date() ;
for (n=0 ; n<ct.length ; n++)
ct[n].ct = new Date(gmdt.getTime() + ct[n].os * 3600 * 1000) ;
window.document.getElementById("Clock0").innerHTML = '<font color="' + ct[0].cl + '">' + ct[0].tz + ClockString(ct[0].ct) + '</font>' ;
window.document.getElementById("Clock1").innerHTML = '<font color="' + ct[1].cl + '">' + ct[1].tz + ClockString(ct[1].ct) + '</font>' ;
window.document.getElementById("Clock2").innerHTML = '<font color="' + ct[2].cl + '">' + ct[2].tz + ClockString(ct[2].ct) + '</font>' ;
window.document.getElementById("Clock3").innerHTML = '<font color="' + ct[3].cl + '">' + ct[3].tz + ClockString(ct[3].ct) + '</font>' ;
window.document.getElementById("Clock4").innerHTML = '<font color="' + ct[4].cl + '">' + ct[4].tz + ClockString(ct[4].ct) + '</font>' ;
window.document.getElementById("Clock5").innerHTML = '<font color="' + ct[5].cl + '">' + ct[5].tz + ClockString(ct[5].ct) + '</font>' ;
window.document.getElementById("Clock6").innerHTML = '<font color="' + ct[6].cl + '">' + ct[6].tz + ClockString(ct[6].ct) + '</font>' ;
window.document.getElementById("Clock7").innerHTML = '<font color="' + ct[7].cl + '">' + ct[7].tz + ClockString(ct[7].ct) + '</font>' ;
timerID = window.setTimeout("UpdateClocks()", 1001) ;
}
function ClockString(dt)
{
var stemp, ampm ;
var dt_year = dt.getUTCFullYear() ;
var dt_month = dt.getUTCMonth() + 1 ;
var dt_day = dt.getUTCDate() ;
var dt_hour = dt.getUTCHours() ;
var dt_minute = dt.getUTCMinutes() ;
var dt_second = dt.getUTCSeconds() ;
dt_year = dt_year.toString() ;
if (0 <= dt_hour && dt_hour < 12)
{
ampm = 'AM' ;
// if (dt_hour == 0) dt_hour = 12 ;
} else {
ampm = 'PM' ;
// dt_hour = dt_hour - 12 ;
// if (dt_hour == 0) dt_hour = 12 ;
}
if (dt_hour < 10)
dt_hour = '0' + dt_hour ;
if (dt_minute < 10)
dt_minute = '0' + dt_minute ;
if (dt_second < 10)
dt_second = '0' + dt_second ;
//stemp = dt_month + '/' + dt_day + '/' + dt_year.substr(2,2) ;
stemp = dt_year + '/' + dt_month + '/' + dt_day;
stemp = stemp + ' ' + dt_hour + ":" + dt_minute + ":" + dt_second + ' ' + ampm ;
return stemp ;
}
function goToURL( myUrl, arg1, arg2, arg3 ) {
window.location.href=myUrl+arg1+arg2+arg3;
}
function validateStreet(value, theField, formCxt)
{
if(value.length >= 10) {
formCxt.setError();
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
}
}
function validateName(value,theField, formCxt )
{
if(value.length > 5) {
formCxt.setError();
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
}
}
function validateEmail(email, theField, formCxt)
{
if ( ! isValidEmail(email) ){
formCxt.setError();
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
}
}
function selectNVPair(nameObj, valueObj, nvplistObj)
{
nm = nameObj;
val = valueObj;
ix = nvplistObj.selectedIndex;
if(ix < 0 ) return;
nm.value = userNVPList.getName(ix);
val.value = userNVPList.getValue(ix);
val.focus();
}
//Name server add and delete functions
function addNS(nslistObj,nsObj)
{
appendOptionToSelectBox(nslistObj,nsObj);
}
function removeNS(nslistObj,nsObj)
{
removeOptionFromSelectBox(nslistObj,nsObj);
}
function selectNS(nslistObj,nsObj)
{
selectOption(nslistObj,nsObj);
}
function selectAll(list1, list2, list3)
{
if (list1)
selectList(list1);
if (list2)
selectList(list2);
if (list3)
selectList(list3);
}
@@ -0,0 +1,109 @@
H1 A:link, H2 A:link, H3 A:link, H4 A:link, H5 A:link, H6 A:link,
H1 A:visited, H2 A:visited, H3 A:visited, H4 A:visited, H5 A:visited, H6 A:visited
{color: #000;}
.ratBodyText
{ font-family: arial, helvetica, sans-serif; }
.ratBodyText
{ font-size: 12px; }
A:link
{ color: #000000; }
A:visited
{ color: #000000; }
A:link:hover
{color: #900;}
A:visited:hover
{color: #600;}
.ratBodyText
{ color: #000000; }
BODY {
background-color: #ffffff;
color: #000;
margin: 0px 0px;
}
.ratNav {
background-color: #036;
color: #fff;
}
.ratNav A:link, .ratNav A:visited { color: #fff; }
.ratNavHighlight A:link, .ratNavHighlight A:visited { color: #fff; }
.ratNavHighlight {
background-color: #c00;
color: #fff;
}
TD{
font-family: Arial,Vernada, Helvetica, sans-serif;
}
.ratNavText {
font-family: µ¸¿òü, Arial, Helvetica, sans-serif;
font-size: 12px;
;font-weight: bold;
line-height: 120%;
padding-left: 0px;
; text-decoration: none
; text-indent: 15pt
}
@@ -0,0 +1,171 @@
A:link {
TEXT-DECORATION: underline
}
A:visited {
TEXT-DECORATION: none
}
A:active {
TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
.pagelink:link { font-family: "verdana" ; color: 4c4c4c; TEXT-DECORATION: none}
.pagelink:visited { font-family: "verdana" ; color: 4c4c4c; TEXT-DECORATION: none}
.pagelink:hover { font-family: "verdana" ; color: 009AB4; TEXT-DECORATION: underline}
.txt { font-family: "µ¸¿ò"; font-size: 11px; color: 4c4c4c; font-weight: bold}
.eng { font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 10px; color: 4c4c4c}
select{behavior: url('selectbox.htc');}
TD{line-height:150%;}
.LoginWindow {
font-family:Arial,±¼¸²;
font-size:14px;
font-weight:bold;
color:#094899;
}
.TopMenuTitle {
font-family:Arial;
font-size:12px;
font-weight:bold;
color:#FFFFFF;
}
.TopMenu {
font-family:Verdana;
font-size:12px;
font-weight:normal;
color:#FFFFFF;
}
.TopMenu a:link, .TopMenu a:visited {
TEXT-DECORATION: none;
color:#FFFFFF;
}
.TopMenu a:link:hover, .TopMenu a:visited:hover {
TEXT-DECORATION: none;
}
.Logout {
font-family:Verdana;
font-size:12px;
font-weight:normal;
color:#FFFFFF;
}
.Logout a:link, .Logout a:visited {
TEXT-DECORATION: none;
color:#FFFFFF;
}
.Logout a:link:hover, .Logout a:visited:hover {
TEXT-DECORATION: underline;
}
.LeftMenuTitle {
font-family:Arial,µ¸¿ò;
font-size:13px;
font-weight:bold;
color:#094899;
}
.LeftMenu {
font-family:Verdana,±¼¸²;
font-size:12px;
font-weight:bold;
color:#000000;
}
.LeftMenu a:link, .LeftMenu a:visited {
TEXT-DECORATION: none;
color:#000000;
}
.LeftMenu a:link:hover, .LeftMenu a:visited:hover {
TEXT-DECORATION: underline;
}
.ContentSummary {
font-family:verdana,µ¸¿ò;
font-size:10px;
font-weight:bold;
color:#729399;
}
.ContentSubtitle {
font-family:Arial,µ¸¿ò;
font-size:13px;
font-weight:bold;
color:#EA0375;
}
.ContentTableTitle {
font-family:Verdana,µ¸¿ò;
font-size:12px;
font-weight:bold;
color:#000000;
}
.ContentTable {
font-family:µ¸¿ò;
font-size:11px;
font-weight:normal;
color:#4B4B4B;
}
.ContentTable a:link, .ContentTable a:visited {
TEXT-DECORATION: none;
color:#009AB4;
}
.ContentTable a:link:hover, .ContentTable a:visited:hover {
TEXT-DECORATION: underline;
}
.ContentTableSmall {
font-family:µ¸¿òü;
font-size:12px;
font-weight:normal;
color:#4B4B4B;
}
.ContentTableSmall a:link, .ContentTableSmall a:visited {
TEXT-DECORATION: none;
color:#4B4B4B;
}
.ContentTableSmall a:link:hover, .ContentTableSmall a:visited:hover {
TEXT-DECORATION: underline;
}
.ContentTableAlarm {
font-family:Verdana,µ¸¿ò;
font-size:11px;
font-weight:normal;
color:#4B4B4B;
}
.BorderBottom {
border-bottom:1px solid #E1E1E1;
}
.ContentListTitle {
font-family:Verdana,µ¸¿ò;
font-size:12px;
font-weight:bold;
color:#4B4B4B;
}
.TooltipLayer {
position:absolute;
top:5;
left:5;
width:auto;
height:auto;
padding:7pt;
overflow:hidden;
z-index:1;
border:solid 1 #000000;
background:#FFFFCC;
color:#000000;
font-size:9pt;
display:none;
}
@@ -0,0 +1,533 @@
<h3>######## ¿À¿¤ ¼ÒÇÁÆ® ²¨ EASTAB(TOT)¸¸ ±¸Çϱâ ########</h3>
<?
$server_addr[0][0] = "127.0.0.1";
$server_addr[0][1] = "30001";
$server_addr[0][2] = "KT-IDC";
$tot = count($server_addr);
for($i=0; $i < $tot; $i++){
if($i%3 == 0) echo "<table align=\"center\"><tr>";
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
continue;
} else {
fwrite($fp,"GET_SERVSTATUS", 15);
while( !feof ($fp) ) {
$test2 = fgets($fp, 2048);
echo $test2;
if (!strstr ( $test2, 'OLSOFT' )) {
continue;
}
$test3 .= trim($test2);
break;
}
echo "<xmp> $test3 </xmp>";
fclose($fp);
}
}
echo "TEST : <br><xmp>$test</xmp>";
exit;
?>
<td valign=top>
<?
$pt = new parsePipe();
$test = $pt->nullTrim($test);
$tmpArr = $pt->textArr($test);
$serviceName = $pt->serviceName($test);
$result = $pt->parseIt($tmpArr[$serviceType]);
$tot_tr = $pt->countIt();
echo " <table border=1 cellpadding=0 cellspacing=0>\n";
echo " <tr align=center>\n";
for($k=0; $k<sizeof($serviceName); $k++) {
if ( $serviceName[$k][0] != 'OLSOFT' ) continue;
echo " <td width='100' height='35'>\n";
echo " <font size='2'>";
if($serviceName[$k][1] != "dead") {
echo "<img src=images/bu14.gif width=11 height=11>";
} else {
echo "<img src=images/bu15.gif width=11 height=11>";
}
echo "<b>"; echo $serviceName[$k][0]; echo "</b>";
echo "<br>(NS-RC02)"; break;
echo "</td>\n";
}
echo " </tr>\n";
echo " </table>\n";
?>
<table border=1 cellpadding=1 cellspacing=0>
<tr height="60">
<td colspan="13">
<center><b>
<font color="#000066" size="5">
<?switch($serviceName[$serviceType][0]){
case 'EVENT' : echo "EVENT (KTH PARAN)"; break;
case 'INCOK' : echo "TRINEX"; break;
default :
echo $serviceName[$serviceType][0];
}
?>
<br><br>
</font>
<font color="#000066" size="4">
MNG SERVER IP: <?=$server_addr[$i][0]?>,&nbsp;&nbsp; PORT: <?=$server_addr[$i][1]?>
(<?=$server_addr[$i][2]?>)
</font>
</b>
</center>
</td>
</tr>
<tr align="center">
<td width="75"><center><b><font color="#000066">Name</font></b></center></td>
<td width="90"><center><b><font color="#000066">Server IP</font></b></center></td>
<td width="25"><center><b><font color="#000066">Port</font></b></center></td>
<td width="85"><center><b><font color="#000066">Status<br>Changed</font></b></center></td>
<!--
<td width="85"><center><b><font color="#000066">Disk<br>Checked</font></b></center></td>
<td width="110"><center><b><font color="#000066">Domain</font></b></center></td>
<td width="65"><center><b><font color="#000066">Total Disk</font></b></center></td>
<td width="65"><center><b><font color="#000066">Free</font></b></center></td>
<td width="25"><center><b><font color="#000066">Upload</font>
<img src="http://sh.0x31.com/status/images/bu14.gif" width=11 height=11>norm<br>
<img src="http://sh.0x31.com/status/images/bu16_1.gif" width=11 height=11>disb<br>
<img src="http://sh.0x31.com/status/images/bu15.gif" width=11 height=11>fsck<br>
</b>
</center>
</td>
<td width="50"><center><b><font color="#000066">Disk Busy(Lq)</font></b></center></td>
<td width="100"><center><b><font color="#000066">Traffic INB(Packets)</font></b></center></td>
<td width="100"><center><b><font color="#000066">Traffic OUTB(Packets)</font></b></center></td>
//-->
<td width="50"><center><b><font color="#000066">Conn EASTAB(TOT)</font></b></center></td>
</tr>
<?
/*
$totalDisk = 0;
$freeDisk = 0;
$usedDisk = 0;
$totalRTSCount = 0;
$totalTrafficINB = 0;
$totalPacketsINB = 0;
$totalTrafficOUTB = 0;
$totalPacketsOUTB = 0;
*/
$totalConnEstab = 0;
$totalConnAll = 0;
for($j=0; $j < $tot_tr; $j++){
$pt->translateIt($result[$j][1], 0);
if ($result[$j][1] == 1) {
$totalRTSCount += 1;
}
/* Connection Estblished */
if ($result[$j][14] != '-') {
$totalConnEstab += $result[$j][14];
}
/* Connection All */
if ($result[$j][15] != '-') {
$totalConnAll += $result[$j][15];
}
?>
<tr>
<td><?=$pt->translateIt($result[$j][0],1)?>&nbsp;<? /* =$pt->translateIt($result[$j][1],999) */ ?>&nbsp;<?=$pt->tailer($result[$j][2])?></td>
<td align="center"><?=$result[$j][3]?></td>
<td align="center"><?=$pt->translateIt($result[$j][4],4)?></td> <!-- port -->
<td align="center"><?=$pt->noYear(date("Y-m-d H:i:s", $result[$j][5]))?></td> <!-- status Changed -->
<td align="center">
<? if ($result[$j][14] == '-') {
echo "-";
} else if ($result[$j][10] == 0 &&
$result[$j][11] == 0 &&
$result[$j][12] == 0 &&
$result[$j][13] == 0 &&
$result[$j][14] == 0 &&
$result[$j][15] == 0 &&
$result[$j][16] == 0 &&
$result[$j][17] == 0 &&
$result[$j][18] == 0 &&
$result[$j][19] == 0) {
echo "-";
} else {
?>
<?=$result[$j][14]?>(<?=$result[$j][15]?>)
<?
echo "</font>";
?>
<? } ?>
</td>
</tr>
</span>
<?
}
?>
<tr>
<td align="center" colspan="4">&nbsp;</b></td>
<td align="center" colspan="1"><b>Storage Total</b></td>
<td align="center" colspan="1"><b>RTS Total : <?=$totalRTSCount?></b></td>
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($totalDisk, 9)?></td>
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($freeDisk, 9)?></td>
<td align="center" colspan="2"><b>Network Total</b></td>
<td align="center" colspan="1">
<? if ($totalTrafficINB > 0) { ?>
<?=$pt->translateIt($totalTrafficINB,30)?>B(<?=$pt->translateIt($totalPacketsINB,30)?>p)
<? } else { ?>
-
<? } ?>
</td>
<td align="center" colspan="1">
<? if ($totalTrafficOUTB > 0) { ?>
<?=$pt->translateIt($totalTrafficOUTB,30)?>B(<?=$pt->translateIt($totalPacketsOUTB,30)?>p)
<? } else { ?>
-
<? } ?>
</td>
<td align="center" colspan="1">
<? if ($totalConnEstab > 0) { ?>
<?=$totalConnEstab?>(<?=$totalConnAll?>)
<? } else { ?>
-
<? } ?>
</td>
</tr>
</table></td>
<?
if($i%3 == 2) echo "</table></tr>"; //
?>
<table>
</table>
<?
////////////////////
//Print REFRESHER
////////////////////
//extract($_POST);
$refresh_rate = $_REQUEST['refresh_rate'];
if($refresh_rate<1 || $refresh_rate>1000)
$refresh_rate = 60;
?>
<br>
<table align="center">
<tr>
<td>
Refresh Rate :
<input type=text name=refresh_rate value=<?=$refresh_rate?>>
<input type=submit value=SET>
(MIN : 1, MAX : 1000)
<input type="hidden" name="chk" value="0">
</form>
</td>
</tr><tr>
<td align=right>
<form action=<?=$_SERVER['PHP_SELF']?> method=POST>
<input type="hidden" name="service_type" value="<?= $serviceType?>">
<input type=hidden name=refresh_rate value=30>
<input type=submit value=RESET(30)>
</form>
</td>
</tr>
</table>
<script language="javascript" type="text/javascript" src="tooltip.js" ></script>
<script language=javascript>
function showtip(text) {
tooltip.innerText=text;
tooltip.style.display="inline";
}
function hidetip() {
tooltip.style.display="none";
}
function movetip() {
tooltip.style.pixelTop=event.y+document.body.scrollTop;
tooltip.style.pixelLeft=event.x+document.body.scrollLeft + 10;
}
document.onmousemove=movetip;
</script>
</body>
</html>
<META http-equiv="refresh" content="<?=$refresh_rate?>; url=<?=$PHP_SELF?>?refresh_rate=<?=$refresh_rate?>&service_type=<?= $serviceType ?>">
<?
########
#CLASSES
########
class parsePipe {
var $tot_line;
function parseIt($givenText){
$cnt = 0;
$minValue = 0;
$maxValue = 0;
$minLevel = 1000;
$tmp_arr = array();
$temp_arr = explode("\r\n", $givenText);
$result_arr[$i][9] = "";
$this->tot_line = count($temp_arr) == 1 ? 0 : count($temp_arr) - 1;
for($i=0; $i < $this->tot_line; $i++){
if($temp_arr[$i]!='') {
$result_arr[$i] = explode("|", $temp_arr[$i]);
$result_arr[$i][20] = "";
$tmp_arr[$i] = ($result_arr[$i][9] == '' || $result_arr[$i][9] == '-') ? 0 : $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][8] = $this->nullTrim($result_arr[$i][8]);
$result_arr[$i][9] = $this->nullTrim($result_arr[$i][9]);
$result_arr[$i][10] = $this->nullTrim($result_arr[$i][10]);
/*
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
*/
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if ($minLevel > $result_arr[$i][11]) {
$minLevel = $result_arr[$i][11];
}
}
}
}
for ($i = 0; $i < $tot_tr; $i++) {
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0 && $result_arr[$i][11] <= $minLevel) {
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
if($cnt == 0) {
$minValue = $result_arr[$i][9];
$cnt++;
}
if($minValue > $result_arr[$i][9]) {
$minValue = $result_arr[$i][9];
}
}
}
}
//echo "minLevel $minLevel minValue $minValue<br>";
$cnt = 0;
arsort($tmp_arr);
reset($tmp_arr);
while (list ($key, $val) = each ($tmp_arr)) {
//echo "$key = $val<br>";
if($val != 0) {
if($cnt == 0) {
if ($minLevel < $result_arr[$key][11] ||
$result_arr[$key][10] > 0) {
$result_arr[$key][20] = "yellow";//$maxValue;
} else {
//echo "11 ".$result_arr[$key][11]." 10 ".$result_arr[$key][10]."<br>";
$maxValue = $val;
$result_arr[$key][20] = "99FFFF";
$cnt++;
}
} else {
//if($minValue == $val) {
if($val < (2 * 1024 * 1024 * 1024 * 10)) {
$result_arr[$key][20] = "red";
} else if(($maxValue - $val) < (1024 * 1024 * 1024) &&
$minLevel == $result_arr[$key][11]) {
//echo "1GB Highed<br>";
//echo "minLevel $minLevel maxValue $maxValue<br>";
$result_arr[$key][20] = "99FFFF";
} else {
//echo "1GB Lowed<br>";
$result_arr[$key][20] = "yellow";//$maxValue;
}
}
} else {
$result_arr[$key][20] = "white";
}
}
return $result_arr;
}
function countIt(){
return $this->tot_line;
}
function translateIt($parsedText, $type){
if($parsedText == '') return;
$eServerType = array('WWW', 'RTS', 'RC', 'CCDB', 'RCTS', 'GTS', "RCDB");
/*$eStatus = array('<img src=images/bu16_1.gif width=11 height=11>UNKNOWN',
'<img src=images/bu14.gif width=11 height=11>ALIVE',
'<img src=images/bu15.gif width=11 height=11>DEAD');*/
$eStatus = array('<img src=images/bu16_1.gif width=11 height=11>',
'<img src=images/bu14.gif width=11 height=11>',
'<img src=images/bu15.gif width=11 height=11>');
$eStatusUP = array('<img src=images/bu14.gif width=11 height=11>',
'<img src=images/bu16_1.gif width=11 height=11>',
'<img src=images/bu15.gif width=11 height=11>');
$eStatusChar = array('UNKNOWN', 'ALIVE', 'DEAD');
switch($type){
case 0:
return $eServerType[$parsedText];
return '';
case 1:
return $eStatus[$parsedText];
case 2:
return $eStatusChar[$parsedText];
case 3:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 > 1024) {
return sprintf("<b>%.2fGB</b>",
trim($parsedText) / 1024 / 1024 / 1024 );
} else {
if (trim($parsedText) / 1024 > 1024) {
if (trim($parsedText) / 1024 / 1024 > 10) {
return sprintf("<font color=\"blue\"><b>%.2fMB</b></font>",
trim($parsedText) / 1024 / 1024 );
} else {
return sprintf("<b>%.2fMB</b>",
trim($parsedText) / 1024 / 1024 );
}
} else {
if (trim($parsedText) > 1024) {
return sprintf("%.2fKB",
trim($parsedText) / 1024 );
} else {
return sprintf("%dB",
trim($parsedText));
}
}
}
}
case 8:
if(trim($parsedText) == "-" || $parsedText == "") return "-";
else return sprintf("%.2lfG", (trim($parsedText) / 1024) / 1024 / 1024);
case 9:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 / 1024 > 1024) {
return sprintf("%.2fT", trim($parsedText) / 1024 / 1024 / 1024 / 1024);
} else
return sprintf("%.2fG", trim($parsedText) / 1024 / 1024 / 1024);
}
case 10:
return $eStatusUP[$parsedText];
case 30:
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
else {
if (trim($parsedText) / 1024 / 1024 > 1024) {
return sprintf("%.2fG",
trim($parsedText) / 1024 / 1024 / 1024 );
} else {
if (trim($parsedText) / 1024 > 1024) {
return sprintf("%.2fM",
trim($parsedText) / 1024 / 1024 );
} else {
if (trim($parsedText) > 1024) {
return sprintf("%.2fK",
trim($parsedText) / 1024 );
} else {
return sprintf("%d",
trim($parsedText));
}
}
}
}
default:
return $parsedText;
}
}
function nullTrim($tmp_str)
{
$return_str = "";
$maxLength = strlen($tmp_str);
for($i=0 ; $i < $maxLength ; $i++) {
if(ord(substr($tmp_str, $i, 1)) != 0 || $tmp_str != " ") {
$return_str .= substr($tmp_str, $i, 1);
}
}
return $return_str;
}
function textArr($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
//$str_arr[$cnt][30] = $search_str[0];
//echo $str_arr[$cnt][0]."<br>".$tmp_search_str."->".$cnt."<-"."<br>";
$cnt++;
}
$str_arr[$cnt] .= $temp_arr[$i]."\r\n";
}
return $str_arr;
}
function serviceName($text)
{
$cnt = -1;
$tmp_cnt = 0;
$str_arr = array();
$tmp_search_str = "";
$temp_arr = explode("\r\n", $text);
for($i=0; $i<sizeof($temp_arr); $i++) {
$split_str = explode("|", $temp_arr[$i]);
$search_str = explode("_", $split_str[2]);
//echo $split_str[0]."<br>";
if($tmp_search_str != $search_str[0]) {
$tmp_search_str = $search_str[0];
$cnt++;
}
$str_arr[$cnt][0] = $tmp_search_str;
if($split_str[0] == 2) {
$str_arr[$cnt][1] = "dead";
}
// $str_arr[4][1] = "dead";
// $str_arr[1][1] = "dead";
}
return $str_arr;
}
function tailer($name)
{
$temp_arr = explode("_", $name);
$temp_arr2 = substr($name, strlen($temp_arr[0]) + 1, strlen($name));
return $temp_arr2;
}
function noYear($date)
{
$date = substr($date, 5, 14);
return $date;
}
}
?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

Some files were not shown because too many files have changed in this diff Show More