ÀϹÝÀûÀ¸·Î ¾Æ¿ô·Î±×ÀÎ(¿ÜºÎ·Î±×ÀÎ) ´ÜÃß´Â Çì´õ ÆÄÀÏ¿¡ ³Ö¾î¼ ¸ðµç ÆäÀÌÁö·ÎºÎÅÍ ÀÎŬ·çµå ÇÏ´Â ½ÄÀ¸·Î ¸¸µì´Ï´Ù. DzÅÍ ÆÄÀÏ¿¡ ³ÖÀ¸¸é Á¦·Îº¸µåÀÇ ¹ö±× ¶§¹®¿¡ º¯¼ö°¡ Àü´ÞÀÌ ¾È µÇ´Â ¹®Á¦Á¡ÀÌ ÀÖ½À´Ï´Ù. ¿©±â¿¡¼´Â ´ÙÀ½°ú °°ÀÌ °¡Á¤ÇÕ´Ï´Ù.
¨ç Á¦·Îº¸µå´Â bbs ¶ó´Â À̸§ÀÇ µð·ºÅ丮¿¡ ¼³Ä¡µÇ¾î ÀÖ´Ù.
¨è Çì´õÆÄÀÏÀÇ À̸§Àº header.php À̸ç main À̶ó´Â µð·ºÅ丮¿¡ µé¾î ÀÖ´Ù.
¸¸¾à DzÅÍ ÆÄÀÏ¿¡ ¾Æ¿ô·Î±×ÀÎÀ» ³ÖÀ¸½Ã°Ú´Ù¸é ¹Ýµå½Ã
´ÙÀ½ ¸µÅ©¸¦ Âü°íÇϽñ⠹ٶø´Ï´Ù.
1) ´ÙÀ½°ú °°Àº ³»¿ëÀÇ ÆÄÀÏÀ» ¸¸µé°í À̸§À» login.php ·Î ÇÏ¿© main À̶ó´Â µð·ºÅ丮¿¡ ÀúÀåÇÕ´Ï´Ù.
<?php
$_zb_url = "Á¦·Îº¸µå°¡ ¼³Ä¡µÈ url/";
$_zb_path = "Á¦·Îº¸µå°¡ ¼³Ä¡µÈ Àý´ë°æ·Î/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<title>·Î±×ÀÎ</title>
<script>
function loading() {
document.zb_login.foxlogin.value='1';
document.zb_login.user_id.focus();
}
</script>
</head>
<body onload="loading();">
<?php print_outlogin("¾Æ¿ô·Î±×ÀνºÅ²À̸§", ±×·ì¹øÈ£, Çã¿ë·¹º§) ?>
</body>
</html>
2) Á¦·Îº¸µå µð·ºÅ丮ÀÇ login_check.php ÆÄÀÏÀ» ¿¾îº¸¸é 42ÇàÂë¿¡¼ ´ÙÀ½°ú °°Àº ºÎºÐÀ» ãÀ» ¼ö ÀÖ½À´Ï´Ù.
// ·Î±×ÀÎ ÈÄ ÆäÀÌÁö À̵¿
$s_url=urldecode($s_url);
if(!$s_url&&$id) $s_url="zboard.php?id=$id";
if($s_url) movepage($s_url);
elseif($id) movepage("zboard.php?id=$id&page=$page&page_num=$page_num&select_arrange=$select_arrange&desc=$des&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&category=$category&no=$no");
elseif($group[join_return_url]) movepage($group[join_return_url]);
elseif($referer) movepage($referer);
else echo"<script>history.go(-2);</script>";
ÀÌ°ÍÀ» ´ÙÀ½°ú °°ÀÌ Ãß°¡ÇØ ÁֽʽÿÀ.
if($foxlogin=="1") {
echo ("
<script>
opener.focus(); //ºÎ¸ðâ Æ÷Ä¿½º
opener.history.go(0); //ºÎ¸ðâ ¸®Ç÷¡½¬
window.close(); //â´Ý±â
</script>
");
} else {
// ·Î±×ÀÎ ÈÄ ÆäÀÌÁö À̵¿
$s_url=urldecode($s_url);
if(!$s_url&&$id) $s_url="zboard.php?id=$id";
if($s_url) movepage($s_url);
elseif($id) movepage("zboard.php?id=$id&page=$page&page_num=$page_num&select_arrange=$select_arrange&desc=$des&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&category=$category&no=$no");
elseif($group[join_return_url]) movepage($group[join_return_url]);
elseif($referer) movepage($referer);
else echo"<script>history.go(-2);</script>";
} // ¡ç ÀÌ°Å »©¸ÔÁö ¸» °Í~!
3) ´ÙÀ½Àº ¾Æ¿ô·Î±×ÀÎ ½ºÅ²À» ¼öÁ¤ÇÒ Â÷·ÊÀÔ´Ï´Ù. À§¿¡¼ »¡°²°Ô Ç¥½ÃµÈ ºÎºÐ ±â¾ï³ª½Ã³ª¿ä? ±× ½ºÅ²À» ¼öÁ¤ÇØ¾ß ÇÕ´Ï´Ù. ¾Æ¿ô·Î±×ÀÎ ½ºÅ²Àº
bbs/outlogin_skin/½ºÅ²À̸§
ÀÌ °æ·Î·Î ã¾Æ°¡½Ã¸é µË´Ï´Ù. ÀÌ ¾Æ¿ô·Î±×ÀÎ ½ºÅ² µð·ºÅ丮 ¾È¿¡ µé¾î°¡ º¸¸é login.html À̶ó´Â ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù. °Å±â¿¡ ´ÙÀ½°ú °°Àº ºÎºÐÀÌ ÀÖ½À´Ï´Ù.
<input type=hidden name=s_url value="[s_url]">
±× ¾Æ·¡¿¡ ´ÙÀ½°ú °°ÀÌ ÇÑ ÁÙ Ãß°¡ÇØÁÖ¼¼¿ä.
<input type=hidden name=s_url value="[s_url]">
<input type='hidden' name='foxlogin'>
4) ¸Ç óÀ½¿¡ ¾ð±ÞµÇ¾ú´ø header.php ¸¦ ²Ù¹Ð ½Ã°£ÀÔ´Ï´Ù. ¾Æ¿ô·Î±×ÀÎÀ» »ç¿ëÇϱâ À§Çؼ´Â ´ç¿¬È÷
<?php
$_zb_url = "Á¦·Îº¸µå°¡ ¼³Ä¡µÈ url/";
$_zb_path = "Á¦·Îº¸µå°¡ ¼³Ä¡µÈ Àý´ë°æ·Î/";
include $_zb_path."outlogin.php";
?>
ÀÌ ¼Ò½º¸¦ ³Ö¾î¾ß°ÚÁÒ. ÆÄÀÏ ¸Ç À§¿¡, ÇÑ ¹ø¸¸ Àû¾îÁÖ½Ã¸é µË´Ï´Ù.
±×¸®°í Æ˾÷·Î±×ÀÎ ´ÜÃ߸¦ ³ÖÀ» °÷¿¡ ´ÙÀ½ ¼Ò½º¸¦ »ðÀÔÇÕ´Ï´Ù.
<?php
if(!$member[no]) {
echo "<a href='javascript:;' onClick=\"window.open('login.php','login','width=300,height=250');\">Login</a> ";
echo "<a href='javascript:;' onclick=\"window.open('../bbs/member_join.php?group_no=1','zbMemberJoin','width=560,height=590,toolbars=no,resizable=yes,scrollbars=yes')\">Join</a>";
} else {
print_outlogin("¾Æ¿ô·Î±×ÀνºÅ²À̸§", ±×·ì¹øÈ£, Çã¿ë·¹º§);
}
?>
»ìÆ캾½Ã´Ù.
¨ç °æ·Î¿¡ ÁÖÀÇÇϼ¼¿ä. login.php´Â header.php¿Í °°Àº µð·ºÅ丮(main)¿¡ ÀúÀåÇÏ´Â °ÍÀ¸·Î °¡Á¤Ç߱⠶§¹®¿¡ º°µµÀÇ °æ·Î¸¦ Àû¾îÁÖÁö ¾Ê¾Ò½À´Ï´Ù. ¹Ý¸é member_join.php´Â bbs µð·ºÅ丮¿¡ ÀÖ´Â Á¦·Îº¸µå ÆÄÀÏÀ̹ǷΠ°æ·Î°¡ Á¶±Ý ±æ¾îÁ³½À´Ï´Ù. ÆäÀÌÁö°¡ ¾È¶á´Ù´Â ¿¡·¯°¡ ³ª¸é ÀÏ´Ü °æ·Î°¡ ¸Â´ÂÁöºÎÅÍ ÀǽÉÇغ¸¼¼¿ä.
¨è Æ˾÷âÀÇ Å©±â´Â ¾Ë¾Æ¼ Á¶ÀýÇÏ½Ã¸é µË´Ï´Ù. (width, height)
¨é group_no=1 Àº ȸ¿ø°¡ÀԽà ¾î´À ±×·ìÀ¸·Î °¡ÀÔÇÒ °Å³Ä ÇÏ´Â °ÅÁÒ. ´ëºÎºÐ 1¹øÀÌÁö¸¸ Ȥ½Ã ¶Ç ¸ð¸£´Ï ¸»¾¸ µå¸®´Â °Ì´Ï´Ù.
¨ê print_outlogin ºÎºÐÀº À§¿¡¼ Àû¾îÁ̴ּø °Å¶û ¶È°°ÀÌ Àû¾îÁÖ½Ã¸é µË´Ï´Ù.
¨ë Login, JoinÀ̶ó´Â ´Ü¾î´Â ÃëÇâ¿¡ ¸Â°Ô ¹Ù²ãÁÖ½Ã¸é µË´Ï´Ù. ¿¹¸¦ µé¾î, '·Î±×ÀÎ', '°¡ÀÔÇϱâ' ÀÌ·¸°Ô¿ä.