½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 156 | Á¶È¸¼ö 4,796 | µî·ÏÀÏ 2005-03-26 18:27:22

´Ð³×ÀÓ

namdengi

À̸ÞÀÏ

namdengi@empal.com

Á¦¸ñ

ÇÁ·¹ÀÓ¹®¼­ »õ·Î °íħ ½Ã ÇöÀçÆäÀÌÁö À¯ÁöÇÏ´Â ¹æ¹ý
³»¿ë

¾Æ·¡¿Í °°ÀÌ frame ¹®¼­ htmlÀ» ³ÖÀº index.cgi ÆÄÀÏÀ» °¡¸®ÄÑ Áּż­ °¨»çÈ÷ »ç¿ëÇÏ°í ÀÖ½À´Ï´Ù.
±×·±µ¥ index.cgi¸¦ ÅëÇÏ¿© ÇÁ·¹ÀÓ ¹®¼­°¡ ¿­·ÈÀ» ¶§ »õ·Î °íħÀ» Çϸé frame src°ªÀÇ ÆäÀÌÁö·Î À̵¿À» ÇÕ´Ï´Ù. ÀÌ°ÍÀ» src °ªÀÇ ÆäÀÌÁö°¡ ¾Æ´Ñ ÇöÀç º¸°í ÀÖ´Â ÆäÀÌÁö¸¦ À¯ÁöÇÏ´Â ¹æ¹ýÀ» ¾Ë°í ½Í½À´Ï´Ù.

ÀÎÅͳÝÀ» ã¾Æº¸´Ï±î ÇÁ·¹ÀÓÀ» ¼³Á¤ÇÏ´Â ÆÄÀÏ ¸Ç À§ÂÊ¿¡ ´ÙÀ½ php ¼Ò½º¸¦ ³ÖÀ¸¶ó°í µÇ¾î ÀÖ´øµ¥ cgi ÆÄÀÏ¿¡¼­ ¾²´Â ¹æ¹ýÀ» °¡¸®ÄÑ ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.
<?
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: "$LastModified"");
?>


################ ¾Æ            ·¡  ####################

   $web001="aaaa.com";
   $web002="bbbb.com";

if ($ENV{'SERVER_NAME'}=~/$web001/) {
   print "Content-type:text/html\n\n";
   &aaaa_PRINT;
   exit;
}

elsif ($ENV{'SERVER_NAME'}=~/$web002/) {
   print "Content-type:text/html\n\n";
   # Bsite HTML PRINT
   &bbbb_PRINT;
   exit;
}

else {
   print "Content-type:text/html\n\n";
   &cccc_PRINT;
   exit;
}

sub aaaa_PRINT{
print <<END_LINE;

<HTML>
<HEAD>
</HEAD>
<FRAMESET ROWS="1*">
 <FRAME NAME="main" SRC="./aaaa.cgi">
<NOFRAMES>
<BODY>
</BODY>
</NOFRAMES>

</FRAMESET>
</HTML>

END_LINE
exit;
}

sub bbbb_PRINT{
print <<END_LINE;

<HTML>
<HEAD>
<TITLE>bbbb</TITLE>
</HEAD>
<FRAMESET ROWS="1*">
     <FRAME NAME="main" SRC="./bbbb.cgi">
</FRAMESET>
</HTML>

END_LINE
exit;
}

sub cccc_PRINT{
print <<END_LINE;

<HTML>
<HEAD>
<TITLE>cccc</TITLE>
</HEAD>
<FRAMESET ROWS="1*">
     <FRAME NAME="main" SRC="./cccc.cgi">
</FRAMESET>
</HTML>

END_LINE
exit;
}

 

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û ÆäÀÌÁö°¡ ¾È³ª¿Í¿ä. 2005-03-26 10:12:34
´ÙÀ½°Ô½Ã±Û Online ÅõÇ¥¿¡¼­ ±â°£¼³Á¤ ¹æ¹ý?? 2005-04-01 21:17:55