[GNU] [그누] 로그인 새창으로 띄우기
  
 작성자 :
작성일 : 2007-11-08     조회 : 2,030  

index.php

<?
if (!$member[mb_id]) {
echo "(<a href='#' onclick=\"javascript:window.open('{$g4[path]}/open_login.php','open_login','width=400,height=300,top=50,left=5,scrollbars=yes,resizable=yes')\"><font color=#ff9000><b>새창으로 로그인하기</b></font></a>)";
}
?>



open_login.php

<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "새창에서 로그인하기";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>

<? if ($member[mb_id]) { ?>
<script language="JavaScript">
opener.location.reload();
window.close();
</script>
<? } ?>

<table width="97%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="97%">
<?=outlogin("basic");?></td>
</tr>
</table>

<?
include_once("$g4[path]/tail.sub.php");
?>