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
@@ -0,0 +1,7 @@
AuthUserFile /user/service/wwwroot/htpasswd/.htpasswd
AuthGroupFile /dev/null
AuthName "KT ADMIN"
AuthType Basic
<Limit GET>
require valid-user
</Limit>
+1
View File
@@ -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";
}
}
}
*/
?>
+14
View File
@@ -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,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( "±èÀçÇÏ"=>"010-9613-2113",
"ÃÖ½ÂÈ£"=>"010-6262-1227"
);
?>
<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,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,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

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

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