OSDN Git Service

modified up/reg pages
authorwatanaby <watanaby@users.sourceforge.net>
Fri, 27 Mar 2015 01:53:33 +0000 (10:53 +0900)
committerwatanaby <watanaby@users.sourceforge.net>
Fri, 27 Mar 2015 01:53:33 +0000 (10:53 +0900)
doc/Changes.html
html/en/macreg.html
html/en/macupdate.html
html/ja/macreg.html
html/ja/macupdate.html
mngsrc/cgi.c

index 6695988..d0c3b0f 100644 (file)
@@ -245,7 +245,11 @@ OpengateM History</H3>
        </DD>
        <DT>Ver.0.9.4 at 2015.3.26
        </DT><DD>
-       Modified update page(opengatemup). Reduced emails(opengatemmail).
+       Modified description of update page (opengatemup). Reduced emails(opengatemmail).
+       </DD>
+       <DT>Ver.0.9.5 at 2015.3.28
+       </DT><DD>
+       Modified description of update and registration pages (opengatemup/mown/mreg).
        </DD>
 </DL>
 
index 10e385f..af9f795 100644 (file)
 
 <ol>
 <li>After registration, you can use network without password in this
-month (next month, when registered in the latter half of the month).</li>
-<li>Before the limit date, mail will be sent to the above mail
-address.</li> 
-<li>Please enter the name of your device in the above yellow
-area(e.g., iPadX, X-01A, TabletAZ).</li>
-<li>You can register 5 terminals.</li>
-<li>After registration, exit this browser to reset authentication state.</li>
+month (next month, when registered in the latter half of the
+month).</li> 
+<li>Before the limit date, a warning mail will be sent to
+the above mail address. If the mail address has an error, you can not
+receive the mail. Please check the address and correct it. Or if you
+don't need the mail, delete it.</li> 
+<li>Please enter the name of your
+device in the above yellow area(e.g., iPadX, X-01A, TabletAZ).</li>
+<li>You can register %%MAXDEVICES%% devices.</li> 
+<li>After
+registration, exit this browser to reset authentication state.</li>
 </ol>
 
 <p><font size=+1>Registered Terminals</font></p>
index a038ff7..c09337a 100644 (file)
@@ -65,9 +65,12 @@ Select <strong>Delete</strong> to delete the registration. If you
 may use this terminal in the future, please use "Pause".
 </li>
 <li>
-The status "I" indicates that the device is set as Inactive by some
+The status <strong>I</strong> indicates that the device is set as Inactive by some
 reason. Please contact to the administrator.
 </li>
+<li>
+The <strong>Device Name</strong> and <strong>Mail Address</strong> can be modified by clicking them.
+</li>
 </ul>
 
 <p><font size="5"> usage log </font><font size="3">(To prevent hijacking, please confirm your log.)</font>
index 73f1357..7ed7dff 100644 (file)
 
 <ol>
 <li>端末を登録すると今月末(月の後半登録では翌月末)までパスワード入力なしで利用できます。</li>
-<li>期限前には、上記メールアドレスにメールが届きます。</li> 
+<li>期限前には、上記メールアドレスに警告メールが届きます。設定が間違っ
+ていると届きませんので、確認して正しいアドレスに修正してください。メー
+ルが不要ならば削除してください。</li> 
 <li>機器名には端末を識別できる名前を入れてください。
 漢字は不可です(例:iPadX, X-01A, TabletAZ)。 </li>
-<li>登録は一人当り5台までです。</li>
+<li>登録は一人当り%%MAXDEVICES%%台までです。</li>
 <li>登録が終ったら認証状態をリセットするためにブラウザを終了して下さい。
 </li>
 </ol>
index da26d98..8290a9a 100644 (file)
@@ -36,7 +36,7 @@ action="%%CGINAME%%?lang=ja&redirectedurl=%%REDIRECTEDURL%%">
     <td>削除</td>
     <td>MACアドレス</td>
     <td>機器名</td>
-    <td>メール</td>
+    <td>メールアドレス</td>
     <td>登録日時</td>
     <td>期限日時</td>
     <td>状態</td>
@@ -57,8 +57,8 @@ action="%%CGINAME%%?lang=ja&redirectedurl=%%REDIRECTEDURL%%">
 <li><strong>「更新」</strong>をチェックすると、機器の登録を更新して利用期限を延長します。</li>
 <li><strong>「休止」</strong>をチェックすると、利用不可にします。再び利用するときには更新処理をしてください。</li>
 <li><strong>「削除」</strong>をチェックすると、機器の登録を削除します。再び利用する可能性があるときは、休止を利用下さい。</li>
-<li>状態が"I"となっている機器は無効とされています。理由は管理者に問い合わせ下さい。</li>
-</ul>
+<li>「状態」が<strong> I </strong>となっている機器は無効とされています。理由は管理者に問い合わせ下さい。</li>
+<li><strong>機器名</strong>と<strong>メールアドレス</strong>は、クリックして変更できます。</li></ul>
 
 <p><font size="5">利用履歴</font><font size="3">(不正利用を防ぐため、妥当か確認して下さい。)</font>
 <span style="color:blue;text-decoration:underline;" onclick="toggleDisplay('help2')"> help </span>
index 553bf4b..f0ef5e6 100644 (file)
@@ -569,7 +569,10 @@ int putRegisterPageToClient(char *language, char* macAddress, char* deviceName,
   char cookie[SIDMAXLN];
   char* regCgi="";
   char* regDoc="";
+  char* maxDevicesStr;
 
+  /* get Maximum count of devices for an user from conf file */
+  maxDevicesStr=GetConfValue("MaxDevices");
 
   /* setup cgi and doc */
   if(ownReg){
@@ -614,6 +617,7 @@ int putRegisterPageToClient(char *language, char* macAddress, char* deviceName,
     HtmlReplace(buff, "%%MAILADDR%%", mailAddress);
     HtmlReplace(buff, "%%USERID%%", userId);
     HtmlReplace(buff, "%%REDIRECTEDURL%%", redirectedUrl);
+    HtmlReplace(buff, "%%MAXDEVICES%%", maxDevicesStr);
 
     if(strstr(buff, "%%MACREGLIST%%")!=NULL){
       PutMacRegListToClient(userId, extraId);