<DD>\r
Add favicon.ico installation.\r
</DD>\r
+<DT>\r
+Ver.1.4.19 at 2007.5.23</DT>\r
+<DD>\r
+Modify control of favicon.ico.\r
+</DD>\r
\r
</DL>\r
<b>Please see CVS in SourceForge.net to check the file difference between versions.</b>\r
<html>
<head>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Opengatemain</title>
</head>
<html>
<head>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Opengatemain</title>
</head>
<html>
<head>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Opengatemain</title>
</head>
<HTML>
+<link rel="shortcut icon" href="/opengate/favicon.ico" type="image/x-icon">
+<link rel="icon" href="/opengate/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<HEAD>
<TITLE>Opengatemain</TITLE>
<HTML>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<HEAD>
<TITLE>Opengatedeny</TITLE>
<HTML>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<HEAD>
<TITLE>Opengatedeny</TITLE>
<html>
<head>
-<link rel="shortcut icon" href="http://%%OPENGATESERVERNAME%%/favicon.ico" type="image/x-icon">
-<link rel="icon" href="http://%%OPENGATESERVERNAME%%/favicon.ico" type="image/x-icon">
+<link rel="shortcut icon" href="http://%%OPENGATESERVERNAME%%%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="http://%%OPENGATESERVERNAME%%%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>Http Keep-Alive</title>
window.open("%%STARTURL%%","window1");
applet =' <applet code="Opengate.class" archive="Opengate.jar" ';
- applet +=' codebase="%%OPENGATEDIR%%" width="600" height="30" > ';
+ applet +=' codebase="http://%%OPENGATESERVERNAME%%%%OPENGATEDIR%%" width="600" height="30" > ';
applet +=' <param name=port value="%%OPENGATEPORT%%"> ';
applet +=' <param name=user value="%%USERID%%"> ';
applet +=' <param name=sessionid value="%%SESSIONID%%"> ';
<HTML>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<HEAD>
<hr>
+<b>Please set the following value when the network is closed unexpectedly.</b><br>
Required Usage Duration:
<INPUT TYPE="TEXT" SIZE="3" NAME="duration">
minutes(range: 1-%%DURATIONMAX%% minutes).
-Please set the value when the network is closed unexpectedly.
If set, the network can be used for the duration.
In this case, to avoid hijacking, click the TERMINATE link
on the accept page at premature usage end.
<HTML>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<HEAD>
</TABLE>
<hr>
+<b>Please set the following value when the network is closed unexpectedly.</b><br>
Required Usage Duration:
<INPUT TYPE="TEXT" SIZE="3" NAME="duration">
minutes(range: 1-%%DURATIONMAX%% minutes).
-Please set the value when the network is closed unexpectedly.
If set, the network can be used for the duration.
In this case, to avoid hijacking, click the TERMINATE link
on the accept page at premature usage end.
<HTML>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-2022-jp">
<HEAD>
<TITLE>OpengateRetry</TITLE>
<html>
<head>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-2022-jp">
<title>Opengatemain</title>
</head>
<html>
<head>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-2022-jp">
<title>Opengatemain</title>
</head>
<html>
<head>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-2022-jp">
<title>Opengatemain</title>
</head>
<HTML>
+<link rel="shortcut icon" href="/opengate/favicon.ico" type="image/x-icon">
+<link rel="icon" href="/opengate/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-2022-jp">
<HEAD>
<TITLE>Opengatemain</TITLE>
<HTML>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-2022-jp">
<HEAD>
<TITLE>Opengatedeny</TITLE>
<HTML>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-2022-jp">
<HEAD>
<TITLE>Opengatedeny</TITLE>
<html>
<head>
-<link rel="shortcut icon" href="http://%%OPENGATESERVERNAME%%/favicon.ico" type="image/x-icon">
-<link rel="icon" href="http://%%OPENGATESERVERNAME%%/favicon.ico" type="image/x-icon">
+<link rel="shortcut icon" href="http://%%OPENGATESERVERNAME%%%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="http://%%OPENGATESERVERNAME%%%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-2022-jp">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>Http Keep-Alive</title>
window.open("%%STARTURL%%","window1");
applet =' <applet code="Opengate.class" archive="Opengate.jar" ';
- applet +=' codebase="%%OPENGATEDIR%%" width="600" height="30" > ';
+ applet +=' codebase="http://%%OPENGATESERVERNAME%%%%OPENGATEDIR%%" width="600" height="30" > ';
applet +=' <param name=port value="%%OPENGATEPORT%%"> ';
applet +=' <param name=user value="%%USERID%%"> ';
applet +=' <param name=sessionid value="%%SESSIONID%%"> ';
<html>
<head>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-2022-jp">
<meta http-equiv="Pragma" content="no-cache">
</table>
<hr>
+<b>\e$B0J2<$OFMA3$N@ZCG$,5/$3$k>l9g$K@_Dj$7$F2<$5$$!#\e(B</b><br>
\e$BI,MW$H$9$kMxMQ7QB3;~4V!'\e(B <input type="TEXT" size="3" name="duration">
\e$BJ,\e(B(\e$B;XDj2DG=!'\e(B1\e$B!A\e(B%%DURATIONMAX%%\e$BJ,\e(B)\e$B!#\e(B
-\e$B$3$NCM$OFMA3$N@ZCG$,5/$3$k>l9g$K@_Dj$7$F2<$5$$!#\e(B
+
\e$B$3$N;~4V$@$1%M%C%H%o!<%/$r3+J|$7$^$9!#$3$N>l9g!"IT@5MxMQ$rKI$0$?$a$K!"\e(B
\e$B;XDj$7$?;~4V$h$jA0$KMxMQ$r=*$k$K$O!"5v2D%Z!<%8$K$"$k!VMxMQCfCG!W$N\e(B
\e$B%j%s%/$r%/%j%C%/$7$F2<$5$$!#\e(B
<html>
<head>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=iso-2022-jp">
<meta http-equiv="Pragma" content="no-cache">
</TABLE>
<hr>
+<b>\e$B$3$NCM$OFMA3$N@ZCG$,5/$3$k>l9g$K@_Dj$7$F2<$5$$!#\e(B</b><br>
\e$BI,MW$H$9$kMxMQ7QB3;~4V!'\e(B <input type="TEXT" size="3" name="duration">
\e$BJ,\e(B(\e$B;XDj2DG=!'\e(B1\e$B!A\e(B%%DURATIONMAX%%\e$BJ,\e(B)\e$B!#\e(B
-\e$B$3$NCM$OFMA3$N@ZCG$,5/$3$k>l9g$K@_Dj$7$F2<$5$$!#\e(B
\e$B$3$N;~4V$@$1%M%C%H%o!<%/$r3+J|$7$^$9!#$3$N>l9g!"IT@5MxMQ$rKI$0$?$a$K!"\e(B
\e$B;XDj$7$?;~4V$h$jA0$KMxMQ$r=*$k$K$O!"5v2D%Z!<%8$K$"$k!VMxMQCfCG!W$N\e(B
\e$B%j%s%/$r%/%j%C%/$7$F2<$5$$!#\e(B
<HTML>
+<link rel="shortcut icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
+<link rel="icon" href="%%OPENGATEDIR%%/favicon.ico" type="image/x-icon">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-2022-jp">
<HEAD>
<TITLE>OpengateRetry</TITLE>
.endif
mv ${INSTALLDOCPATH}/index.html.var ${DOCUMENTROOT}/index.html.var
#
- # Replace favicon.ico
-.if exists(${DOCUMENTROOT}/favicon.ico) && !exists(${DOCUMENTROOT}/favicon.ico.original)
+ # Remove favicon.ico
+.if exists(${DOCUMENTROOT}/favicon.ico)
mv ${DOCUMENTROOT}/favicon.ico ${DOCUMENTROOT}/favicon.ico.original
.endif
- mv ${INSTALLDOCPATH}/favicon.ico ${DOCUMENTROOT}/favicon.ico
#
# Remove index.html
.if exists(${DOCUMENTROOT}/index.html) && !exists(${DOCUMENTROOT}/index.html.original)
char denydoc[BUFFMAXLN];
char authCgiUrl[BUFFMAXLN];
char encodeAddr[ADDRMAXLN];
+ char opengateDir[BUFFMAXLN];
/* keyword pairs */
/* the left key is replaced by the right value */
struct html_key keys[]=
{
+ {"%%OPENGATEDIR%%", opengateDir},
{"%%AUTHCGIURL%%", authCgiUrl},
{"%%ADDR4%%", encodeAddr},
{"",""} /* DON'T REMOVE THIS LINE */
GetConfValue("OpengateDir"),
GetConfValue("AuthCgi"));
+ /* create opengate dir */
+ snprintf(opengateDir, BUFFMAXLN, GetConfValue("OpengateDir"));
+
/* create encoded addr4 */
if(AddrEncode(encodeAddr, clientAddr4)==1){
encodeAddr[0]='\0';
char retrydoc[BUFFMAXLN];
char externalUrl[BUFFMAXLN];
char authCgiUrl[BUFFMAXLN];
+ char opengateDir[BUFFMAXLN];
/* keyword pairs */
/* the left key is replaced by the right value */
struct html_key keys[]=
{
+ {"%%OPENGATEDIR%%", opengateDir},
{"%%EXTERNALURL%%", externalUrl},
{"%%AUTHCGIURL%%", authCgiUrl},
{"",""} /* DON'T REMOVE THIS LINE */
};
+
+ /* create opengate Dir */
+ snprintf(opengateDir, BUFFMAXLN, GetConfValue("OpengateDir"));
/* create external URL string */
strncpy(externalUrl, GetConfValue("ExternalUrl"), BUFFMAXLN);
snprintf(authCgiUrl, BUFFMAXLN, "%s%s%s/%s",
GetConfValue("OpengateServerName"),
GetConfValue("CgiDir"),
- GetConfValue("OpengateDir"),
+ opengateDir,
GetConfValue("AuthCgi"));
/* make read in path to the retry document */
snprintf(retrydoc, BUFFMAXLN, "%s%s/%s/%s",GetConfValue("DocumentRoot"),
- GetConfValue("OpengateDir"),lang,GetConfValue("RetryDoc"));
+ opengateDir,lang,GetConfValue("RetryDoc"));
/* replace keyword and send out the file */
printf("Content-type: text/html\r\n\r\n\r\n");
char *startPageUrl=GetConfValue("StartPage/Url");
int startPageType=atoi(GetConfValue("StartPage/Type"));
char *opengateDir=GetConfValue("OpengateDir");
+ char *opengateServerName=GetConfValue("OpengateServerName");
/* select proper accept doc */
switch(toupper(*GetConfValue("WatchMode"))){
/* if positive value is set in duration, TIME watch mode is selected */
if(durationEntered) acceptDoc=GetConfValue("AcceptDocTime");
-
/* create path to acceptdoc */
snprintf(acceptdoc, BUFFMAXLN, "%s%s/%s/%s",GetConfValue("DocumentRoot"),
GetConfValue("OpengateDir"),language,acceptDoc);
}
/* replace mark */
+ htmlReplace(buff, "%%OPENGATESERVERNAME%%", opengateServerName);
htmlReplace(buff, "%%OPENGATEDIR%%", opengateDir);
htmlReplace(buff, "%%OPENGATEPORT%%", portStr);
htmlReplace(buff, "%%DURATION%%", durationStr);
char authCgiUrl[BUFFMAXLN]; /* url of opengateauth.cgi */
char mainCgiUrl[BUFFMAXLN]; /* url of opengatesrv.cgi */
char durationMax[WORDMAXLN]; /* usage duration maximum */
+ char opengateServerName[BUFFMAXLN]; /* opengate server domain name */
+ char opengateDir[BUFFMAXLN]; /* opengate doc directory in httpd doc */
/* keyword pairs */
/* the left key is replaced by the right value */
struct html_key keys[]=
{
+ {"%%OPENGATESERVERNAME%%", opengateServerName},
+ {"%%OPENGATEDIR%%", opengateDir},
{"%%AUTHCGIURL%%", authCgiUrl},
{"%%CGIURL%%", mainCgiUrl},
{"%%ADDR4%%", clientAddr},
if(debug>1) err_msg("DEBUG: started");
+ snprintf(opengateServerName,BUFFMAXLN,GetConfValue("OpengateServerName"));
+ snprintf(opengateDir,BUFFMAXLN,GetConfValue("OpengateDir"));
+
/* create URL string */
snprintf(authCgiUrl, BUFFMAXLN, "%s%s%s/%s",
- GetConfValue("OpengateServerName"),
+ opengateServerName,
GetConfValue("CgiDir"),
- GetConfValue("OpengateDir"),
+ opengateDir,
GetConfValue("AuthCgi"));
snprintf(mainCgiUrl, BUFFMAXLN, "%s%s%s/%s",
- GetConfValue("OpengateServerName"),
+ opengateServerName,
GetConfValue("CgiDir"),
- GetConfValue("OpengateDir"),
+ opengateDir,
GetConfValue("MainCgi"));
/* setup usage duration maximum and default (saved as seconds) */
/* construct html file path */
sprintf(htmlFile, "%s%s/%s/", GetConfValue("DocumentRoot"),
- GetConfValue("OpengateDir"), lang);
+ opengateDir, lang);
/* ssl or non-ssl file */
if(!isNull(getenv("SERVER_PORT"))
if(debug>1) err_msg("DEBUG: started");
+ /* favicon.ico request is ignored */
+ if(strcmp(getenv("REQUEST_URI"), "/favicon.ico")==0){
+ PutClientMsg("");
+ return 0;
+ }
+
/* create authcgi URL string */
snprintf(authCgiUrl, BUFFMAXLN, "%s%s%s/%s",
GetConfValue("OpengateServerName"),
{
char buff[BUFFMAXLN]; /* read in buffer */
FILE *fp;
- char opengateServerName[BUFFMAXLN];
+
char httpKeepDoc[BUFFMAXLN];
char httpHelloUrl[BUFFMAXLN];
char terminateUrl[BUFFMAXLN];
char md5JsUrl[BUFFMAXLN];
char *startPageUrl=GetConfValue("StartPage/Url");
int startPageType=atoi(GetConfValue("StartPage/Type"));
- char opengateDir[BUFFMAXLN];
char portStr[WORDMAXLN];
+ char *opengateServerName=GetConfValue("OpengateServerName");
+ char *opengateDir=GetConfValue("OpengateDir");
- /* create opengate server name string */
- snprintf(opengateServerName, BUFFMAXLN,
- "%s",GetConfValue("OpengateServerName"));
/* create path to accept2 doc */
snprintf(acceptDoc2Url, BUFFMAXLN,
- "http://%s%s/%s/%s",GetConfValue("OpengateServerName"),
- GetConfValue("OpengateDir"),language,GetConfValue("AcceptDoc2"));
+ "http://%s%s/%s/%s",opengateServerName,
+ opengateDir,language,GetConfValue("AcceptDoc2"));
/* create terminate url [http://<servaddr>:<port>/terminate-<pid>] */
snprintf(terminateUrl, BUFFMAXLN, "http://%s:%d/terminate-%d",
- GetConfValue("OpengateServerName"), port, getpid());
+ opengateServerName, port, getpid());
/* create httphello url [http://<servaddr>:<port>/hello] */
snprintf(httpHelloUrl, BUFFMAXLN, "http://%s:%d/hello",
- GetConfValue("OpengateServerName"), port);
+ opengateServerName, port);
/* create httpkeep.js url[http://<serveraddr>/opengate/httpkeep.js] */
snprintf(httpkeepJsUrl, BUFFMAXLN, "http://%s%s/%s",
- GetConfValue("OpengateServerName"),
- GetConfValue("OpengateDir"),GetConfValue("HttpKeepJS"));
+ opengateServerName,
+ opengateDir,GetConfValue("HttpKeepJS"));
/* create md5.js url[http://<serveraddr>/opengate/md5.js] */
snprintf(md5JsUrl, BUFFMAXLN, "http://%s%s/%s",
- GetConfValue("OpengateServerName"),
- GetConfValue("OpengateDir"),GetConfValue("Md5JS"));
+ opengateServerName,
+ opengateDir,GetConfValue("Md5JS"));
/* create path to httpkeep doc */
snprintf(httpKeepDoc,BUFFMAXLN, "%s%s/%s/%s",GetConfValue("DocumentRoot"),
- GetConfValue("OpengateDir"),language,GetConfValue("HttpKeepDoc"));
+ opengateDir,language,GetConfValue("HttpKeepDoc"));
/* create port string */
snprintf(portStr, WORDMAXLN, "%d", port);
- /* create absolute url to opengateDir[http://<serveraddr>/opengate] */
- snprintf(opengateDir, BUFFMAXLN, "http://%s%s",
- GetConfValue("OpengateServerName"), GetConfValue("OpengateDir"));
-
/* open httpkeepdoc */
if((fp=fopen(httpKeepDoc, "r"))==NULL){
err_msg("ERR at %s#%d: cannot open %s",__FILE__,__LINE__,httpKeepDoc);