Commit de45551a03da7347adc9765a9add4094d6ab8d82

Authored by 山上
1 parent 589e93bc

移行最新化

... ... @@ -83,10 +83,10 @@ if($objRecSet==false){
83 83
84 84 //メールポイント復元
85 85 if($reserva_flg==1){
86   - $hostname="localhost";
  86 + $hostname="172.31.18.14";
87 87 $database="post_kanri";
88 88
89   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  89 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
90 90 print "Error : connect to ${hostname}<br>";
91 91 exit;
92 92 }
... ...
... ... @@ -44,7 +44,7 @@ $intDataCount= 0;
44 44 //表示名称を取得
45 45 $strSQL = "SELECT disp_id,disp_name " .
46 46 "FROM mst_disp " .
47   - "WHERE disp_id = 2 " .
  47 + "WHERE disp_id = '2' " .
48 48 "ORDER BY disp_id DESC";
49 49 $objRecSet = pg_exec($strSQL);
50 50 if($objRecSet==false){
... ...
... ... @@ -16,8 +16,12 @@ include("./include/session_start.inc");
16 16 include("./include/SessionChk2.inc");
17 17 include("./include/dbcon.inc");
18 18 include("./include/jcode.phps");
19   -
20   -$strURL = "http://www.mtc-sv.jp/reg2.php?i=".str_rot13($PHP_POST_SYAIN_ID);
  19 +if($_SERVER["ENV"] == "test"){
  20 + $strURL = "https://etc.media-tek.jp/reg2.php?i=".str_rot13($PHP_POST_SYAIN_ID);
  21 +}
  22 +if($_SERVER["ENV"] == "production"){
  23 + $strURL = "https://www.mtc-sv.jp/reg2.php?i=".str_rot13($PHP_POST_SYAIN_ID);
  24 +}
21 25 //$strURL = "http://125.206.112.127/reg.php?i=".str_rot13($PHP_POST_SYAIN_ID);
22 26 //$strURL = "http://211.5.200.156/araya_web/mail_ni_pon_v2/reg.php?i=".str_rot13($PHP_POST_SYAIN_ID);
23 27
... ...
... ... @@ -17,7 +17,7 @@ include("./include/SessionChk2.inc");
17 17 include("./include/dbcon.inc");
18 18 include("./include/jcode.phps");
19 19
20   -//$strURL = "http://www.mtc-sv.jp/reg2.php?i=".str_rot13($PHP_POST_SYAIN_ID);
  20 +//$strURL = ""http://www.mtc-sv.jp/reg2.php?i=".str_rot13($PHP_POST_SYAIN_ID);
21 21 $strURL = "http://125.206.112.127/reg2.php?i=".str_rot13($PHP_POST_SYAIN_ID);
22 22 //$strURL = "http://125.206.112.127/reg.php?i=".str_rot13($PHP_POST_SYAIN_ID);
23 23 //$strURL = "http://211.5.200.156/araya_web/mail_ni_pon_v2/reg.php?i=".str_rot13($PHP_POST_SYAIN_ID);
... ...
... ... @@ -273,7 +273,13 @@ for($i=0;$i<count($User_List)-1;$i++){
273 273
274 274 $strComment = $_SESSION["PHP_POST_DB_USER_NAME"]."の皆様(".$strToName."様)へ\n\n";
275 275 $strComment .= "下記のアドレスからメール内容を確認してください。\n";
276   - $strComment .= "http://www.mtc-sv.jp/mail_ni_pon_v2/USER0000.php?m=" . $angou;
  276 + if($_SERVER["ENV"] == "test"){
  277 + $strComment .= "https://etc.media-tek.jp/mail_ni_pon_v2/USER0000.php?m=" . $angou;
  278 + }
  279 + if($_SERVER["ENV"] == "production"){
  280 + $strComment .= "http://www.mtc-sv.jp/mail_ni_pon_v2/USER0000.php?m=" . $angou;
  281 + }
  282 +
277 283 $strComment .= "&s=" . $strAngou ."&d=" .$_SESSION["PHP_POST_DB_ANGOU"]. "\n\n";
278 284
279 285 $strComment = jcodeconvert($strComment, 1, 3);
... ... @@ -377,4 +383,4 @@ for($i=0;$i<count($User_List)-1;$i++){
377 383
378 384 ?>
379 385 </BODY>
380   -</HTML>
\ No newline at end of file
  386 +</HTML>
... ...
... ... @@ -533,7 +533,12 @@ if ($intDataCount == 0){
533 533 $strComment .= $PHP_POST_DB_USER_NAME."様 へのユーザー登録が完了いたしました\n";
534 534 $strComment .= "\n";
535 535 $strComment .= "--ユーザー情報修正はこちらから--\n";
536   - $strComment .= "URL:http://www.mtc-sv.jp/mail_ni_pon_v2/MST1163.php?i=".$PHP_POST_SYAIN_ID."&key=".$angou."\n";
  536 + if($_SERVER["ENV"] == "test"){
  537 + $strComment .= "URL:https://etc.media-tek.jp/mail_ni_pon_v2/MST1163.php?i=".$PHP_POST_SYAIN_ID."&key=".$angou."\n";
  538 + }
  539 + if($_SERVER["ENV"] == "production"){
  540 + $strComment .= "URL:http://www.mtc-sv.jp/mail_ni_pon_v2/MST1163.php?i=".$PHP_POST_SYAIN_ID."&key=".$angou."\n";
  541 + }
537 542 $strComment .= "--\n";
538 543 $strComment .= "\n";
539 544 $strComment = jcodeconvert($strComment, 1, 3);
... ...
  1 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2 +<HTML>
  3 +<HEAD>
  4 +<META name="GENERATOR" content="Microsoft FrontPage 4.0">
  5 +<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
  6 +<META http-equiv="Content-Style-Type" content="text/css">
  7 +<link href="./css/style.css" rel="stylesheet" type="text/css">
  8 +<TITLE>め〜るNiポン!</TITLE>
  9 +<script type="text/javascript" src="./include/jkl-calendar.js" charset="Shift_JIS"></script>
  10 +<script type="text/javascript" src="./include/SEND1000.js" charset="EUC-JP"></script>
  11 +</HEAD>
  12 +<BODY onLoad="send_change();kouhoChange();{$strStartChk}">
  13 +<FORM METHOD="POST" name="Frm" enctype="multipart/form-data" style="margin:0px; ">
  14 +<!-- ヘッダー表示 -->
  15 +{include file='header.tpl'}
  16 +<!-- メニュー表示 -->
  17 +{include file='menu.tpl'}
  18 +<!-- 配信画面表示 -->
  19 +<table width="100%" border="0">
  20 + <tr>
  21 + <th width="70%">
  22 + <CENTER><B><FONT color=blue size=5>スケジュール調整メール配信</FONT></B></CENTER>
  23 + </th>
  24 + </tr>
  25 +</table>
  26 +<HR>
  27 +{if ($PHP_POST_DB_FLG==6)}
  28 + <font color="#FFFF00" size=4>
  29 + <b><a href="http://www.mail-ni-pon.net/category/7151311-1.html#p2" target="_blank">※ポイントについて</a></b>
  30 + </font>
  31 + <br><br>
  32 +{/if}
  33 +<FONT size="2" color=#FF0000>
  34 + <b><FONT size="2">項目の入力・選択を行わないと配信できません</b>
  35 +</FONT>
  36 +<BR>
  37 +
  38 +<div align="center">
  39 +<TABLE border=1 bordercolor="#008080" width="700">
  40 + <TR>
  41 + <TD bgcolor="#FFCC99">
  42 + <B><FONT size="2" color=#FF0000></FONT><FONT size="2">送信先</FONT></B>
  43 + </TD>
  44 + <TD>
  45 + <input type="radio" name="radSendPtn" value="1" onClick="send_change();" {$radSend[0]}><FONT size="2">個人配信</FONT><br>
  46 +  <INPUT size="60" maxlength="50" type="text" name="sousin" value="{$strSubmitName}" readonly>
  47 + <INPUT type="button" name="sousin_sentaku" value="送信先の選択をする" onClick="JavaScript:Select();">
  48 + <hr>
  49 + <input type="radio" name="radSendPtn" value="2" onClick="send_change();" {$radSend[1]}><FONT size="2">{$strDisp_Name[1]}配信</FONT><br>
  50 + {$strGP}
  51 + </TD>
  52 + </TR>
  53 + <TR>
  54 + <TD bgcolor="#FFCC99">
  55 + <B><FONT size="2" color=#FF0000></FONT><FONT size="2">送信先機種</FONT></B>
  56 + </TD>
  57 + <TD>
  58 + <FONT size="2">
  59 + <input name="SendType" type="radio" value="0" {$radSendType[0]}>両方 
  60 + <input name="SendType" type="radio" value="1" {$radSendType[1]}>携帯のみ 
  61 + <input name="SendType" type="radio" value="2" {$radSendType[2]}>PCのみ 
  62 + </FONT>
  63 + </TD>
  64 + </TR>
  65 + <TR>
  66 + <TD bgcolor="#FFCC99">
  67 + <B><FONT size="2" color=#FF0000></FONT><FONT size="2">{$strDisp_Name[2]}</FONT></B>
  68 + </TD>
  69 + <TD>
  70 + <INPUT size="30" maxlength="28" type="text" name="kenmei" value="{$TITLE}">
  71 + <input type="checkbox" name="tei" {$rad_tei}><FONT size=2><B>定型文有り</B></FONT>
  72 + </TD>
  73 + </TR>
  74 + <TR>
  75 + <TD bgcolor="#FFCC99">
  76 + <B><FONT size="2" color=#FF0000></FONT><FONT size="2" class="space">本文</FONT></B>
  77 + </TD>
  78 + <TD>
  79 + <TEXTAREA rows="10" cols="60" name="text">{$MAIL_TEXT}</TEXTAREA>
  80 + <BR>
  81 + </TD>
  82 + </TR>
  83 + <TR>
  84 + <TD bgcolor="#FFCC99">
  85 + <B><FONT size="2" color=#FF0000></FONT><FONT size="2">候補日時</FONT></B>
  86 + </TD>
  87 + <TD>
  88 + <FONT size="2">候補数 </FONT>
  89 + <select name="kouho" onChange="kouhoChange();">
  90 + {$optKouho}
  91 + </select>
  92 + <BR>
  93 + <FONT size="2">希望日時無しの選択肢</FONT>
  94 + <input type="text" name="noAnswer" size="60" maxlength="30" value="{$noAnswer}">
  95 + {section name=idx loop=$kouhoData}
  96 + <div id="div_k{$kouhoData[idx][0]}">
  97 + <hr>
  98 + <table>
  99 + <tr>
  100 + <td rowspan="2" width="80">
  101 + <FONT size="2">第 {$kouhoData[idx][0]} 候補 </FONT>
  102 + </td>
  103 + <td>
  104 + <FONT size="2">
  105 + 開始日時
  106 + <INPUT size="5" maxlength="4" type="text" name="kouhoS_yyyy{$kouhoData[idx][0]}" Value="{$kouhoData[idx][1]}" id="kouhoS_yyyy{$kouhoData[idx][0]}" >
  107 + <select name="kouhoS_mm{$kouhoData[idx][0]}" id="kouhoS_mm{$kouhoData[idx][0]}" onchange="JavaScript:DayMax('S', '{$kouhoData[idx][0]}');">
  108 + {$kouhoData[idx][2]}
  109 + </select>
  110 + <select name="kouhoS_dd{$kouhoData[idx][0]}" id="kouhoS_dd{$kouhoData[idx][0]}">
  111 + {$kouhoData[idx][3]}
  112 + </select>
  113 + <select name="kouhoS_hh{$kouhoData[idx][0]}" id="kouhoS_hh{$kouhoData[idx][0]}">
  114 + {$kouhoData[idx][4]}
  115 + </select>
  116 + <select name="kouhoS_ii{$kouhoData[idx][0]}" id="kouhoS_ii{$kouhoData[idx][0]}">
  117 + {$kouhoData[idx][5]}
  118 + </select>
  119 + <!--カレンダー-->
  120 + <a href="javascript:calS{$kouhoData[idx][0]}.write();">
  121 + <img id="dateLinkS{$kouhoData[idx][0]}" src="./img/cl001.gif" alt="日付選択" border="0" style="vertical-align:middle;margin:5px"/>
  122 + </a>
  123 + <input type="hidden" name="colnameS{$kouhoData[idx][0]}" value="">
  124 + <div id="calidS{$kouhoData[idx][0]}"></div>
  125 + </FONT>
  126 + </td>
  127 + </tr>
  128 + <tr>
  129 + <td>
  130 + <FONT size="2">
  131 + 終了日時
  132 + <INPUT size="5" maxlength="4" type="text" name="kouhoE_yyyy{$kouhoData[idx][0]}" Value="{$kouhoData[idx][6]}" id="kouhoE_yyyy{$kouhoData[idx][0]}">
  133 + <select name="kouhoE_mm{$kouhoData[idx][0]}" id="kouhoE_mm{$kouhoData[idx][0]}" onchange="JavaScript:DayMax('E', '{$kouhoData[idx][0]}');">
  134 + {$kouhoData[idx][7]}
  135 + </select>
  136 + <select name="kouhoE_dd{$kouhoData[idx][0]}" id="kouhoE_dd{$kouhoData[idx][0]}">
  137 + {$kouhoData[idx][8]}
  138 + </select>
  139 + <select name="kouhoE_hh{$kouhoData[idx][0]}" id="kouhoE_hh{$kouhoData[idx][0]}">
  140 + {$kouhoData[idx][9]}
  141 + </select>
  142 + <select name="kouhoE_ii{$kouhoData[idx][0]}" id="kouhoE_ii{$kouhoData[idx][0]}">
  143 + {$kouhoData[idx][10]}
  144 + </select>
  145 + <!--カレンダー-->
  146 + <a href="javascript:calE{$kouhoData[idx][0]}.write();">
  147 + <img id="dateLinkE{$kouhoData[idx][0]}" src="./img/cl001.gif" alt="日付選択" border="0" style="vertical-align:middle;margin:5px"/>
  148 + </a>
  149 + <input type="hidden" name="colnameE{$kouhoData[idx][0]}" value="">
  150 + <div id="calidE{$kouhoData[idx][0]}"></div>
  151 + </FONT>
  152 + </td>
  153 + </tr>
  154 + </table>
  155 + </div>
  156 + {/section}
  157 + </TD>
  158 + </TR>
  159 + <TR>
  160 + <TD bgcolor="#FFCC99">
  161 + <B><FONT size="2">回答期限</FONT><FONT size="2" color=#FF0000></FONT></B>
  162 + </TD>
  163 + <TD>
  164 + <FONT size="2">
  165 + <INPUT size="5" maxlength="4" type="text" name="limit_yyyy" Value="{$limit_yyyy}">
  166 + <SELECT name="limit_mm" onchange="JavaScript:DayMax5(limit_yyyy.value,limit_mm.value,0,0);">
  167 + {$opt_limit_mm}
  168 + </SELECT>
  169 + <SELECT name="limit_dd">
  170 + {$opt_limit_dd}
  171 + </SELECT>
  172 + <SELECT name="limit_time_hh">
  173 + {$opt_limit_time_hh}
  174 + </SELECT>
  175 + <SELECT name="limit_time_mm">
  176 + {$opt_limit_time_mm}
  177 + </SELECT>分 
  178 + <!--カレンダー-->
  179 + <a href="javascript:cal0.write();">
  180 + <img id="dateLink0" src="./img/cl001.gif" alt="日付選択" border="0" style="vertical-align:middle;margin:5px"/>
  181 + </a>
  182 + <input type="hidden" name="colname0" value="{$calYMD0}">
  183 + <div id="calid0"></div>
  184 + </TD>
  185 + </TR>
  186 + <TR>
  187 + <TD bgcolor="#FFCC99"><B><FONT size="2" color=#FF0000></FONT><FONT size="2">閲覧状況の公開</FONT></B></TD>
  188 + <TD>
  189 + <FONT size="2">
  190 + <input name="view_flg" type="radio" value="0" {$rad_view_flg[0]}>公開しない 
  191 + <input name="view_flg" type="radio" value="1" {$rad_view_flg[1]}>公開する 
  192 + </FONT>
  193 + </TD>
  194 + </TR>
  195 +</TABLE>
  196 +</div>
  197 +
  198 +<INPUT type="hidden" name="alarm_flg" value="{$alarm_flg}">
  199 +<INPUT type="hidden" name="alarm_yyyy" value="{$alarm_yyyy}">
  200 +<INPUT type="hidden" name="alarm_mm" value="{$alarm_mm}">
  201 +<INPUT type="hidden" name="alarm_dd" value="{$alarm_dd}">
  202 +<INPUT type="hidden" name="alarm_hh" value="{$alarm_hh}">
  203 +<INPUT type="hidden" name="alarm_time_mm" value="{$alarm_time_mm}">
  204 +<INPUT type="hidden" name="alarm_id" value="{$alarm_id}">
  205 +
  206 +<INPUT type="hidden" name="Send_User" value="{$Send_User}">
  207 +<INPUT type="hidden" name="userCNT" value="{$userCNT}">
  208 +<INPUT type="hidden" name="group_id" value="{$group_id}">
  209 +
  210 +{$strPtnCode}
  211 +<INPUT type="hidden" name="pattern_flg" value="">
  212 +
  213 +<div align="center">
  214 +<p><FONT size="2"><B>
  215 +↓情報を配信する場合はこのボタンを押してください↓<br>
  216 +</B></FONT>
  217 +<INPUT type="button" name="submit_btn" value="配信" onClick="JavaScript:haisin({$PHP_POST_DB_FLG},'{$strDisp_Name[1]}','{$strDisp_Name[2]}')" style="padding:4px 20px 4px 20px; ">
  218 +</p>
  219 +<hr>
  220 +<INPUT type="button" name="back" value="メニューへ戻る" onClick="JavaScript:menuBack();">
  221 +</div>
  222 +<!-- フッター表示 -->
  223 +{include file='footer.tpl'}
  224 +
  225 +</CENTER>
  226 +</form>
  227 +</BODY>
  228 +</HTML>
\ No newline at end of file
... ...
... ... @@ -324,7 +324,7 @@ if($PHP_POST_DB_FLG==6){
324 324 //echo $_SESSION["PHP_POST_SYAIN_CD"]."<hr />";
325 325 //echo $Max_id."<hr />";
326 326
327   -exec('/usr/bin/php -f /home/webusr/WWW/mail_ni_pon_v2/SEND3010_EXE.php '.$_SESSION["PHP_POST_DB_NAME"].' '.$_SESSION["PHP_POST_SYAIN_CD"].' '.$Max_mail.' > /dev/null &');
  327 +exec('/usr/bin/php -f ./SEND3010_EXE.php '.$_SESSION["PHP_POST_DB_NAME"].' '.$_SESSION["PHP_POST_SYAIN_CD"].' '.$Max_mail.' > /dev/null &');
328 328
329 329 ?>
330 330 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
... ...
... ... @@ -25,9 +25,9 @@ $bccMax = 10;
25 25 //***** 送信間隔(秒) *****//
26 26 $sendWait = 1;
27 27
28   -include("/home/webusr/WWW/mail_ni_pon_v2/include/dbcon.inc");
29   -include("/home/webusr/WWW/mail_ni_pon_v2/include/getDomain.inc");
30   -include("/home/webusr/WWW/mail_ni_pon_v2/include/jcode.phps");
  28 +include("./include/dbcon.inc");
  29 +include("./include/getDomain.inc");
  30 +include("./include/jcode.phps");
31 31
32 32 //***** 管理者アドレス,名前 *****//
33 33 $strSQL = "SELECT ";
... ...
1 1 <?PHP
2 2
3 3 // ポイントを加算減算する
4   -$hostname="localhost";
  4 +$hostname="172.31.18.14";
5 5 $database="post_kanri";
6   -if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  6 +if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
7 7 print "Error : connect to ${hostname}<br>";
8 8 exit;
9 9 }
... ...
... ... @@ -3,10 +3,10 @@
3 3 // ポイントを一括加算減算する
4 4 //
5 5
6   - $hostname="localhost";
  6 + $hostname="172.31.18.14";
7 7 $database="post_kanri";
8 8
9   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  9 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
10 10 print "Error : connect to ${hostname}<br>";
11 11 exit;
12 12 }
... ...
... ... @@ -8,10 +8,10 @@
8 8 //*
9 9 //*****************************************************************************
10 10
11   - $hostname="localhost";
  11 + $hostname="172.31.18.14";
12 12 $database="post_kanri";
13 13
14   - if( !$pg_con=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  14 + if( !$pg_con=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
15 15 print "Error : connect to ${hostname}<br>";
16 16 exit;
17 17 }
... ...
... ... @@ -8,10 +8,10 @@
8 8 //*
9 9 //*****************************************************************************
10 10
11   - $hostname="localhost";
  11 + $hostname="172.31.18.14";
12 12 $database=$db_name;
13 13
14   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  14 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
15 15 print "Error : connect to ${hostname}<br>";
16 16 exit;
17 17 }
... ...
... ... @@ -83,7 +83,7 @@ A:hover {color:"#EE2255";text-decoration:underline;}
83 83 <H1 align=center><img src="../admin/img/title_logo.gif" alt="め〜るNiポン"></H1><CENTER>
84 84 <input type="button" onClick="location.href('insert/input.php')" value="新規登録">
85 85    
86   -<input type="button" onClick="location.href('send_mail.php')" value="お知らせメール送信">
  86 +<!--<input type="button" onClick="location.href('send_mail.php')" value="お知らせメール送信"> -->
87 87 <br><br>
88 88 <TABLE border="1" bordercolor="#008080" width="100%">
89 89 <TR>
... ...
... ... @@ -5,10 +5,10 @@ include("../include/jcode.phps");
5 5 // ポイントを加算減算する
6 6 //
7 7
8   - $hostname="localhost";
  8 + $hostname="172.31.18.14";
9 9 $database="post_kanri";
10 10
11   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  11 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
12 12 print "Error : connect to ${hostname}<br>";
13 13 exit;
14 14 }
... ...
... ... @@ -3,10 +3,10 @@
3 3 // ポイントを一括加算減算する
4 4 //
5 5
6   - $hostname="localhost";
  6 + $hostname="172.31.18.14";
7 7 $database="post_kanri";
8 8
9   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  9 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
10 10 print "Error : connect to ${hostname}<br>";
11 11 exit;
12 12 }
... ...
... ... @@ -12,14 +12,14 @@ header("Content-type: text/html; charset=EUC-JP");
12 12 //* インクルードファイル
13 13 //***************************
14 14
15   -include("/var/www/html/mail_ni_pon_v2/include/getWeekDay.inc");
16   -include("/var/www/html/mail_ni_pon_v2/include/getDomain.inc");
17   -include("/var/www/html/mail_ni_pon_v2/include/jcode.phps");
18   -include("/var/www/html/mail_ni_pon_v2/include/dbcon2.inc");
19   -include("/var/www/html/mail_ni_pon_v2/include/mime.php");
  15 +include("../include/getWeekDay.inc");
  16 +include("../include/getDomain.inc");
  17 +include("../include/jcode.phps");
  18 +include("../include/dbcon2.inc");
  19 +include("../include/mime.php");
20 20
21 21 //メール文章
22   -include("/var/www/html/mail_ni_pon_v2/include/mtcnews.inc");
  22 +include("../include/mtcnews.inc");
23 23
24 24 //mtcnews.incから取得
25 25 $Comment_tel = jcodeconvert($Mail_Keitai, 1, 3);
... ... @@ -68,7 +68,7 @@ $strSQL .= " user_name ";
68 68 $strSQL .= "FROM ";
69 69 $strSQL .= " mst_kanri ";
70 70 $strSQL .= "WHERE ";
71   -$strSQL .= " (kanriflg = 1 or kanriflg = 6 or kanriflg = 7 or kanriflg = 9) AND ";
  71 +$strSQL .= " (kanriflg = '1' or kanriflg = '6' or kanriflg = '7' or kanriflg = '9') AND ";
72 72 $strSQL .= " userflg = 0 ";
73 73 $strSQL .= "GROUP BY ";
74 74 $strSQL .= " db_name , ";
... ... @@ -107,7 +107,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) {
107 107 $PHP_POST_DB_NAME=$strDB_Name[$intDb_Idx];
108 108 $db_angou=$strAngou[$intDb_Idx];
109 109 $PHP_POST_DB_USER_NAME = $strUser_Name[$intDb_Idx];
110   - include("/home/webusr/WWW/mail_ni_pon/include/dbcon.inc");
  110 + include("../include/dbcon.inc");
111 111
112 112 //アラーム情報を取得
113 113 $strSQL = "SELECT " .
... ... @@ -242,7 +242,12 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) {
242 242 $strMail_Date = $strMonth . "月" . $strDay . "日(" .
243 243 jcodeconvert(getWeekDay($strYear , $strMonth , $strDay), 0, 3) . ")";
244 244 $strComment = $PHP_POST_DB_USER_NAME."の皆様(".$strToName."様)へ\n\n".$Naiyou[$i] . "\n" .
245   - "http://www.mtc-sv.jp/mail_ni_pon_v2/USER0000.php?m=" . $Angou_id[$i] .
  245 + if($_SERVER["ENV"] == "test"){
  246 + "https://etc.media-tek.jp/mail_ni_pon_v2/USER0000.php?m=" . $Angou_id[$i] .
  247 + }
  248 + if($_SERVER["ENV"] == "production"){
  249 + "http://www.mtc-sv.jp/mail_ni_pon_v2/USER0000.php?m=" . $Angou_id[$i] .
  250 + }
246 251 "&s=" . $Angou . "&d=" . $db_angou . "\n\n";
247 252
248 253 $strComment = jcodeconvert($strComment, 1, 3);
... ... @@ -304,7 +309,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) {
304 309 $PHP_POST_DB_NAME=$strDB_Name[$intDb_Idx];
305 310 $db_angou=$strAngou[$intDb_Idx];
306 311 $PHP_POST_DB_USER_NAME = $strUser_Name[$intDb_Idx];
307   - include("/home/webusr/WWW/mail_ni_pon/include/dbcon.inc");
  312 + include("../include/dbcon.inc");
308 313
309 314 //既読・未読情報を取得
310 315 $strSQL = "SELECT " .
... ... @@ -420,7 +425,12 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) {
420 425 $strSubject = "=?iso-2022-jp?B?" . base64_encode(jcodeconvert($Subject_name, 0, 3)) . "?=";
421 426
422 427 $strComment = $PHP_POST_DB_USER_NAME."の皆様(".$strToName."様)へ\n\n"."下記のアドレスからメール内容を確認してください。\n" .
423   - "http://www.mtc-sv.jp/mail_ni_pon_v2/USER0000.php?m=" . $Auto_Angou_id[$i] .
  428 + if($_SERVER["ENV"] == "test"){
  429 + "https://etc.media-tek.jp/mail_ni_pon_v2/USER0000.php?m=" . $Auto_Angou_id[$i] .
  430 + }
  431 + if($_SERVER["ENV"] == "production"){
  432 + "http://www.mtc-sv.jp/mail_ni_pon_v2/USER0000.php?m=" . $Auto_Angou_id[$i] .
  433 + }
424 434 "&s=" . $Angou . "&d=" . $db_angou . "\n\n";
425 435 $strComment = jcodeconvert($strComment, 1, 3);
426 436 $Header1 = "";
... ... @@ -481,7 +491,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) {
481 491 $PHP_POST_DB_NAME=$strDB_Name[$intDb_Idx];
482 492 $db_angou=$strAngou[$intDb_Idx];
483 493 $PHP_POST_DB_USER_NAME = $strUser_Name[$intDb_Idx];
484   - include("/home/webusr/WWW/mail_ni_pon/include/dbcon.inc");
  494 + include("../include/dbcon.inc");
485 495
486 496 //配信予定を取得
487 497 $strSQL = "SELECT " .
... ... @@ -595,7 +605,13 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) {
595 605 $Subject_name .= $Auto_Kenmai[$i];
596 606 $strSubject = "=?iso-2022-jp?B?" . base64_encode(jcodeconvert($Subject_name, 0, 3)) . "?=";
597 607 $strComment = $PHP_POST_DB_USER_NAME."の皆様(".$strToName."様)へ\n\n"."下記のアドレスからメール内容を確認してください。\n" .
598   - "http://www.mtc-sv.jp/mail_ni_pon_v2/USER0000.php?m=" . $Auto_Angou_id[$i] .
  608 +
  609 + if($_SERVER["ENV"] == "test"){
  610 + "https://etc.media-tek.jp/mail_ni_pon_v2/USER0000.php?m=" . $Auto_Angou_id[$i] .
  611 + }
  612 + if($_SERVER["ENV"] == "production"){
  613 + "http://www.mtc-sv.jp/mail_ni_pon_v2/USER0000.php?m=" . $Auto_Angou_id[$i] .
  614 + }
599 615 "&s=" . $Angou . "&d=" . $db_angou . "\n\n";
600 616
601 617 $strComment = jcodeconvert($strComment, 1, 3);
... ...
... ... @@ -8,10 +8,10 @@
8 8 //*
9 9 //*****************************************************************************
10 10
11   - $hostname="localhost";
  11 + $hostname="172.31.18.14";
12 12 $database=$PHP_POST_DB_NAME;
13 13
14   - if( !$pg_con=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  14 + if( !$pg_con=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
15 15 print "Error : connect to ${hostname}<br>";
16 16 exit;
17 17 }
... ...
... ... @@ -8,10 +8,10 @@
8 8 //*
9 9 //*****************************************************************************
10 10
11   - $hostname="localhost";
  11 + $hostname="172.31.18.14";
12 12 $database="post_kanri";
13 13
14   - if( !$pg_con=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  14 + if( !$pg_con=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
15 15 print "Error : connect to ${hostname}<br>";
16 16 exit;
17 17 }
... ...
... ... @@ -7,9 +7,13 @@
7 7 //*****************************************************************************
8 8
9 9 //バージョン2
10   -//$PONV2_URL_HEAD = "https://www.mtc-sv.jp/mail_ni_pon_v2/";
11   -$PONV2_URL_HEAD = "http://www.mtc-sv.jp/mail_ni_pon_v2/";
12   -
  10 +//$PONV2_URL_HEAD = "https://www.mtc-sv.jp/mail_ni_pon_v2/"
  11 +if($_SERVER["ENV"] == "test"){
  12 + $PONV2_URL_HEAD = "https://etc.media-tek.jp/mail_ni_pon_v2/";
  13 +}
  14 +if($_SERVER["ENV"] == "production"){
  15 + $PONV2_URL_HEAD = "https://www.mtc-sv.jp/mail_ni_pon_v2/";
  16 +}
13 17
14 18 $PONV2_URL_HEAD_M = "http://180.222.178.5/mail_ni_pon_v2/";
15 19
... ...
... ... @@ -34,10 +34,10 @@ $arNews[1]='東日本大震災・石巻市への支援金を受付いたしております。 ⇒ <a href="h
34 34 // 戻り値 合計ポイント
35 35 function get_point_total($user_id)
36 36 {
37   - $hostname="localhost";
  37 + $hostname="172.31.18.14";
38 38 $database="post_kanri";
39 39
40   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") )
  40 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") )
41 41 {
42 42 print "Error : connect to ${hostname}<br>";
43 43 exit;
... ... @@ -162,4 +162,4 @@ document.onclick=function()
162 162
163 163
164 164
165   -</div>
\ No newline at end of file
  165 +</div>
... ...
... ... @@ -36,10 +36,10 @@ $o_smarty->assign('MtcNews' , $arNews[$news_no]);
36 36 // 合計ポイントを取得する
37 37 // 戻り値 合計ポイント
38 38 function get_point_total($user_id){
39   - $hostname="localhost";
  39 + $hostname="172.31.18.14";
40 40 $database="post_kanri";
41 41
42   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ){
  42 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ){
43 43 print "Error : connect to ${hostname}<br>";
44 44 exit;
45 45 }
... ...
... ... @@ -7,10 +7,10 @@ function func_LogInput($user_id,$logFrom,$logTo,$logType,$logDate,$intCountLog){
7 7
8 8 $res = "True";
9 9
10   - $hostname="localhost";
  10 + $hostname="172.31.18.14";
11 11 $database="post_kanri";
12 12
13   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  13 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
14 14 print "Error : connect to ${hostname}<br>";
15 15 exit;
16 16 }
... ...
... ... @@ -7,10 +7,10 @@ function func_point_decrement($user_id,$value,$flg){
7 7
8 8 $res = "True";
9 9
10   - $hostname="localhost";
  10 + $hostname="172.31.18.14";
11 11 $database="post_kanri";
12 12
13   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  13 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
14 14 print "Error : connect to ${hostname}<br>";
15 15 exit;
16 16 }
... ...
... ... @@ -8,10 +8,10 @@
8 8 //*
9 9 //*****************************************************************************
10 10
11   - $hostname="localhost";
  11 + $hostname="172.31.18.14";
12 12 $database=$strDb_name;
13 13
14   - if( !$pg_con=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  14 + if( !$pg_con=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
15 15 print "Error : connect to ${hostname}<br>";
16 16 exit;
17 17 }
... ...
... ... @@ -29,10 +29,10 @@ $stDisp_Name = mb_convert_encoding($objData->disp_name, "EUC-JP", "ASCII,JIS,UTF
29 29 // 戻り値 合計ポイント
30 30 function get_point_total($user_id){
31 31
32   - $hostname="localhost";
  32 + $hostname="172.31.18.14";
33 33 $database="post_kanri";
34 34
35   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  35 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
36 36 print "Error : connect to ${hostname}<br>";
37 37 exit;
38 38 }
... ... @@ -120,4 +120,4 @@ list($Point,$max_point) = get_point_total($dkey);
120 120 </FORM>
121 121 </CENTER>
122 122 </BODY>
123   -</HTML>
\ No newline at end of file
  123 +</HTML>
... ...
... ... @@ -15,10 +15,10 @@ header("Content-type: text/html; charset=Shift_JIS");
15 15 // 戻り値 合計ポイント
16 16 function get_point_total($user_id){
17 17
18   - $hostname="localhost";
  18 + $hostname="172.31.18.14";
19 19 $database="post_kanri";
20 20
21   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  21 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
22 22 print "Error : connect to ${hostname}<br>";
23 23 exit;
24 24 }
... ...
... ... @@ -13,10 +13,10 @@
13 13 // 戻り値 合計ポイント
14 14 function get_point_total($user_id){
15 15
16   - $hostname="localhost";
  16 + $hostname="172.31.18.14";
17 17 $database="post_kanri";
18 18
19   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  19 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
20 20 print "Error : connect to ${hostname}<br>";
21 21 exit;
22 22 }
... ... @@ -996,4 +996,4 @@ $strYear = substr($strSysDate, 0, 4);
996 996 <font color="#666666">Copyright (C) 2004 Media Tech Inc. All rights reserved.</font>
997 997 </CENTER>
998 998 </BODY>
999   -</HTML>
\ No newline at end of file
  999 +</HTML>
... ...
... ... @@ -8,10 +8,10 @@
8 8 //*
9 9 //*****************************************************************************
10 10
11   - $hostname="localhost";
  11 + $hostname="172.31.18.14";
12 12 $database=$PHP_POST_DB_NAME;
13 13
14   - if( !$pg_con=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  14 + if( !$pg_con=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
15 15 print "Error : connect to ${hostname}<br>";
16 16 exit;
17 17 }
... ...
... ... @@ -8,10 +8,10 @@
8 8 //*
9 9 //*****************************************************************************
10 10
11   - $hostname="localhost";
  11 + $hostname="172.31.18.14";
12 12 $database="post_kanri";
13 13
14   - if( !$pg_con=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  14 + if( !$pg_con=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
15 15 print "Error : connect to ${hostname}<br>";
16 16 exit;
17 17 }
... ...
... ... @@ -8,7 +8,12 @@
8 8 function getDomain(){
9 9
10 10 //$strDomain = "125.206.112.127";
11   - $strDomain = "www.mtc-sv.jp";
  11 + if ($_SERVER["ENV"] == test){
  12 + $strDomain = "etc.media-tek.jp";
  13 + }
  14 + if ($_SERVER["ENV"] == production){
  15 + $strDomain = "www.mtc-sv.jp";
  16 + }
12 17
13 18 return $strDomain;
14 19 }
... ...
... ... @@ -7,7 +7,7 @@
7 7 //*****************************************************************************
8 8 function getDomain(){
9 9
10   - $strDomain = "180.222.178.5";
  10 + $strDomain = "172.31.16.115";
11 11 //$strDomain = "www.mtc-sv.jp";
12 12
13 13 return $strDomain;
... ...
... ... @@ -15,10 +15,10 @@ header("Content-type: text/html; charset=Shift_JIS");
15 15 // 戻り値 合計ポイント
16 16 function get_point_total($user_id){
17 17
18   - $hostname="localhost";
  18 + $hostname="172.31.18.14";
19 19 $database="post_kanri";
20 20
21   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  21 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
22 22 print "Error : connect to ${hostname}<br>";
23 23 exit;
24 24 }
... ...
... ... @@ -14,10 +14,10 @@
14 14 // 戻り値 合計ポイント
15 15 function get_point_total($user_id){
16 16
17   - $hostname="localhost";
  17 + $hostname="172.31.18.14";
18 18 $database="post_kanri";
19 19
20   - if( !$pg_con2=pg_connect("host=$hostname dbname=$database user=pgsqladmin password=pgsqladmin") ) {
  20 + if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
21 21 print "Error : connect to ${hostname}<br>";
22 22 exit;
23 23 }
... ... @@ -1830,4 +1830,4 @@ $strYear = substr($strSysDate, 0, 4);
1830 1830 </CENTER>
1831 1831 </BODY>
1832 1832
1833   -</HTML>
\ No newline at end of file
  1833 +</HTML>
... ...
... ... @@ -59,8 +59,12 @@ if (pg_numrows($objRecSet) == 1 && $err_flg ==0) {
59 59 echo("SQL実行に失敗しました(SELECT)");
60 60 exit;
61 61 }
62   -
63   - header("Location:https://www.mtc-sv.jp/mail_ni_pon_v2/keitai/admin/simple_index.php?dkey=".$PHP_POST_DB_ANGOU."&PHP_SYAIN_CD=".$PHP_SYAIN_CD."&PHP_DB_NAME=".$PHP_DB_NAME."&PHP_POST_DB_FLG=".$PHP_POST_DB_FLG."&PHP_POST_DB_USER_NAME=".$PHP_POST_DB_USER_NAME);
  62 + if($_SERVER["ENV"] == "test"){
  63 + header("Location:https://etc.media-tek.jp/mail_ni_pon_v2/keitai/admin/simple_index.php?dkey=".$PHP_POST_DB_ANGOU."&PHP_SYAIN_CD=".$PHP_SYAIN_CD."&PHP_DB_NAME=".$PHP_DB_NAME."&PHP_POST_DB_FLG=".$PHP_POST_DB_FLG."&PHP_POST_DB_USER_NAME=".$PHP_POST_DB_USER_NAME);
  64 + }
  65 + if($_SERVER["ENV"] == "production"){
  66 + header("Location:https://www.mtc-sv.jp/mail_ni_pon_v2/keitai/admin/simple_index.php?dkey=".$PHP_POST_DB_ANGOU."&PHP_SYAIN_CD=".$PHP_SYAIN_CD."&PHP_DB_NAME=".$PHP_DB_NAME."&PHP_POST_DB_FLG=".$PHP_POST_DB_FLG."&PHP_POST_DB_USER_NAME=".$PHP_POST_DB_USER_NAME);
  67 + }
64 68 }else{
65 69 ?>
66 70 <FORM>
... ...
... ... @@ -40,7 +40,7 @@ function chk(){
40 40 function go_crdt(){
41 41 window.open("","MtcAspSettlement","width=900,height=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
42 42 document.frm.target = "MtcAspSettlement";
43   - document.frm.action = "https://www.mtc-sv.jp/pay/srvc1000.php";
  43 + document.frm.action = "https://etc.media-tek.jp/pay/srvc1000.php";
44 44 document.frm.method="POST"
45 45 document.frm.submit();
46 46 }
... ... @@ -146,4 +146,4 @@ function go_crdt(){
146 146 {include file='footer.tpl'}
147 147 </FORM>
148 148 </BODY>
149   -</HTML>
\ No newline at end of file
  149 +</HTML>
... ...
Please register or login to post a comment