묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
쪽지창을 메인으로 돌리려면....
2003.01.08 23:37
우선 읽어주셔서 감사합니다.
다름이 아니라 쪽지창을 새창으로 띄우지 않고 메인으로 돌리려면 어디를 고쳐야하나여?
세이클럽의 쪽지창처럼 말이요...
가입화면을 메인으로 돌리는것처럼 outkogin.php를 수정해야하나요.....?
아웃로긴.php를 올려봅니다.
보시구 말슴좀 해주세여~ 어렵네여 ㅡㅡa
// 회원 정보가 있는지 없는지를 체크해서 해당 스킨 파일을 읽음
if(!$member[no]) {
$f = fopen($_zb_path."script/outlogin_script.php",r);
$_outlogin_script = fread($f, filesize($_zb_path."script/outlogin_script.php"));
fclose($f);
$f = fopen($_zb_path."outlogin_skin/$skinname/login.html",r);
$_outlogin_data = fread($f, filesize($_zb_path."outlogin_skin/$skinname/login.html"));
fclose($f);
$login_img = $_zb_url."outlogin_skin/$skinname/images/i_login.gif";
$join_img = $_zb_url."outlogin_skin/$skinname/images/i_join.gif";
$help_img = $_zb_url."outlogin_skin/$skinname/images/i_help.gif";
$_outlogin_data = str_replace("[action]", $_zb_url."login_check.php",$_outlogin_data);
$s_url = $REQUEST_URI;
if($id&&!eregi($id, $s_url)) {
if(eregi("?",$s_url)) $s_url = $s_url . "&id=$id";
else $s_url = $s_url . "?id=$id";
}
$_outlogin_data = str_replace("[s_url]", urlencode($s_url),$_outlogin_data);
$aUrl = "?group_no=".$group_no;
$_outlogin_data = str_replace("[member_join]", "<a href=http://주소/zboard/member_join.php><img src=$join_img border=0></a>",$_outlogin_data);
$_outlogin_data = str_replace("[login]", "<input type=image src=$login_img border=0>",$_outlogin_data);
$_outlogin_data = str_replace("[lost_id]", "<a href=# onclick='window.open("".$_zb_url."lostid.php","lost_id","width=400,height=200,toolbars=no,autoscrollbars=no")'><img src=$help_img border=0></a>",$_outlogin_data);
$_outlogin_data = str_replace("[total_member_connect]",number_format($total_member_connect),$_outlogin_data);
$_outlogin_data = str_replace("[total_guest_connect]",number_format($total_guest_connect),$_outlogin_data);
$_outlogin_data = str_replace("[total_connect]",number_format($total_member_connect+$total_guest_connect),$_outlogin_data);
$_outlogin_data = str_replace("[dir]",$_zb_url."outlogin_skin/$skinname/images/",$_outlogin_data);
if($group_no) {
$_outlogin_data = str_replace("</form>","<input type=hidden name=group_no value='$group_no'></form>",$_outlogin_data);
}
print $_outlogin_script."n";
print $_outlogin_data."n";
} else {
$f = fopen($_zb_path."outlogin_skin/$skinname/logged.html",r);
$_outlogin_data = fread($f, filesize($_zb_path."outlogin_skin/$skinname/logged.html"));
fclose($f);
$memo_on_img = $_zb_url."outlogin_skin/$skinname/images/i_memo_on.gif";
$memo_off_img = $_zb_url."outlogin_skin/$skinname/images/i_memo_off.gif";
$logout_img = $_zb_url."outlogin_skin/$skinname/images/i_logout.gif";
$info_img = $_zb_url."outlogin_skin/$skinname/images/i_info.gif";
$admin_img = $_zb_url."outlogin_skin/$skinname/images/i_admin.gif";
$memo_swf = $_zb_url."outlogin_skin/$skinname/images/i_memo.swf";
if($member[new_memo]) {
$memo_on_image = "<img src=$memo_on_img border=0 align=absmiddle> ";
$memo_on_sound_out ="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='0' height='0'><param name=menu value=false><param name=wmode value=transparent><param name=movie value='$memo_swf'><param name=quality value=low><param name='LOOP' value='false'><embed src='$memo_swf' quality=low pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='0' height='0' loop='false' wmode=transparent menu='false'></embed></object>";
} else {
$memo_on_image = "<img src=$memo_off_img border=0 align=absmiddle> ";
}
$_outlogin_data = str_replace("[memo]",$memo_on_image,$_outlogin_data);
$_outlogin_data = str_replace("[name]",$a_member_memo."<b>".del_html($member[name])."</b></a>",$_outlogin_data);
$_outlogin_data = str_replace("[logout]",$a_logout."<img src=$logout_img border=0></a>",$_outlogin_data);
$_outlogin_data = str_replace("[info]",$a_member_modify."<img src=$info_img border=0></a>",$_outlogin_data);
if($member[is_admin]==1||$member[is_admin]==2) $_outlogin_data = str_replace("[admin]","<a href=".$_zb_url."admin.php target=blank><img src=$admin_img border=0></a>",$_outlogin_data);
else $_outlogin_data = str_replace("[admin]","",$_outlogin_data);
$_outlogin_data = str_replace("[join_date]",date("Y/m/d",$member[reg_date]),$_outlogin_data);
$_outlogin_data = str_replace("[level]",$member[level],$_outlogin_data);
$_outlogin_data = str_replace("[point]",number_format($member[point1]*10+$member[point2]),$_outlogin_data);
$_outlogin_data = str_replace("[write_num]",number_format($member[point1]),$_outlogin_data);
$_outlogin_data = str_replace("[write_comment]",number_format($member[point2]),$_outlogin_data);
$_outlogin_data = str_replace("[total_member_connect]",number_format($total_member_connect),$_outlogin_data);
$_outlogin_data = str_replace("[total_guest_connect]",number_format($total_guest_connect),$_outlogin_data);
$_outlogin_data = str_replace("[total_connect]",number_format($total_member_connect+$total_guest_connect),$_outlogin_data);
$_outlogin_data = str_replace("[dir]",$_zb_url."outlogin_skin/$skinname/images/",$_outlogin_data);
print $_outlogin_data.$memo_on_sound_out ."n";
}
$a_member_join = "<Zeroboard";
$a_member_modify = "<Zeroboard";
$a_member_memo = "<Zeroboard";
$member_memo_icon = "<Zeroboard";
$memo_on_sound = "";
$a_logout = "<Zeroboard";
$a_login = "<Zeroboard";
}
그럼 답변 기다리게씀니다.
다름이 아니라 쪽지창을 새창으로 띄우지 않고 메인으로 돌리려면 어디를 고쳐야하나여?
세이클럽의 쪽지창처럼 말이요...
가입화면을 메인으로 돌리는것처럼 outkogin.php를 수정해야하나요.....?
아웃로긴.php를 올려봅니다.
보시구 말슴좀 해주세여~ 어렵네여 ㅡㅡa
// 회원 정보가 있는지 없는지를 체크해서 해당 스킨 파일을 읽음
if(!$member[no]) {
$f = fopen($_zb_path."script/outlogin_script.php",r);
$_outlogin_script = fread($f, filesize($_zb_path."script/outlogin_script.php"));
fclose($f);
$f = fopen($_zb_path."outlogin_skin/$skinname/login.html",r);
$_outlogin_data = fread($f, filesize($_zb_path."outlogin_skin/$skinname/login.html"));
fclose($f);
$login_img = $_zb_url."outlogin_skin/$skinname/images/i_login.gif";
$join_img = $_zb_url."outlogin_skin/$skinname/images/i_join.gif";
$help_img = $_zb_url."outlogin_skin/$skinname/images/i_help.gif";
$_outlogin_data = str_replace("[action]", $_zb_url."login_check.php",$_outlogin_data);
$s_url = $REQUEST_URI;
if($id&&!eregi($id, $s_url)) {
if(eregi("?",$s_url)) $s_url = $s_url . "&id=$id";
else $s_url = $s_url . "?id=$id";
}
$_outlogin_data = str_replace("[s_url]", urlencode($s_url),$_outlogin_data);
$aUrl = "?group_no=".$group_no;
$_outlogin_data = str_replace("[member_join]", "<a href=http://주소/zboard/member_join.php><img src=$join_img border=0></a>",$_outlogin_data);
$_outlogin_data = str_replace("[login]", "<input type=image src=$login_img border=0>",$_outlogin_data);
$_outlogin_data = str_replace("[lost_id]", "<a href=# onclick='window.open("".$_zb_url."lostid.php","lost_id","width=400,height=200,toolbars=no,autoscrollbars=no")'><img src=$help_img border=0></a>",$_outlogin_data);
$_outlogin_data = str_replace("[total_member_connect]",number_format($total_member_connect),$_outlogin_data);
$_outlogin_data = str_replace("[total_guest_connect]",number_format($total_guest_connect),$_outlogin_data);
$_outlogin_data = str_replace("[total_connect]",number_format($total_member_connect+$total_guest_connect),$_outlogin_data);
$_outlogin_data = str_replace("[dir]",$_zb_url."outlogin_skin/$skinname/images/",$_outlogin_data);
if($group_no) {
$_outlogin_data = str_replace("</form>","<input type=hidden name=group_no value='$group_no'></form>",$_outlogin_data);
}
print $_outlogin_script."n";
print $_outlogin_data."n";
} else {
$f = fopen($_zb_path."outlogin_skin/$skinname/logged.html",r);
$_outlogin_data = fread($f, filesize($_zb_path."outlogin_skin/$skinname/logged.html"));
fclose($f);
$memo_on_img = $_zb_url."outlogin_skin/$skinname/images/i_memo_on.gif";
$memo_off_img = $_zb_url."outlogin_skin/$skinname/images/i_memo_off.gif";
$logout_img = $_zb_url."outlogin_skin/$skinname/images/i_logout.gif";
$info_img = $_zb_url."outlogin_skin/$skinname/images/i_info.gif";
$admin_img = $_zb_url."outlogin_skin/$skinname/images/i_admin.gif";
$memo_swf = $_zb_url."outlogin_skin/$skinname/images/i_memo.swf";
if($member[new_memo]) {
$memo_on_image = "<img src=$memo_on_img border=0 align=absmiddle> ";
$memo_on_sound_out ="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='0' height='0'><param name=menu value=false><param name=wmode value=transparent><param name=movie value='$memo_swf'><param name=quality value=low><param name='LOOP' value='false'><embed src='$memo_swf' quality=low pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='0' height='0' loop='false' wmode=transparent menu='false'></embed></object>";
} else {
$memo_on_image = "<img src=$memo_off_img border=0 align=absmiddle> ";
}
$_outlogin_data = str_replace("[memo]",$memo_on_image,$_outlogin_data);
$_outlogin_data = str_replace("[name]",$a_member_memo."<b>".del_html($member[name])."</b></a>",$_outlogin_data);
$_outlogin_data = str_replace("[logout]",$a_logout."<img src=$logout_img border=0></a>",$_outlogin_data);
$_outlogin_data = str_replace("[info]",$a_member_modify."<img src=$info_img border=0></a>",$_outlogin_data);
if($member[is_admin]==1||$member[is_admin]==2) $_outlogin_data = str_replace("[admin]","<a href=".$_zb_url."admin.php target=blank><img src=$admin_img border=0></a>",$_outlogin_data);
else $_outlogin_data = str_replace("[admin]","",$_outlogin_data);
$_outlogin_data = str_replace("[join_date]",date("Y/m/d",$member[reg_date]),$_outlogin_data);
$_outlogin_data = str_replace("[level]",$member[level],$_outlogin_data);
$_outlogin_data = str_replace("[point]",number_format($member[point1]*10+$member[point2]),$_outlogin_data);
$_outlogin_data = str_replace("[write_num]",number_format($member[point1]),$_outlogin_data);
$_outlogin_data = str_replace("[write_comment]",number_format($member[point2]),$_outlogin_data);
$_outlogin_data = str_replace("[total_member_connect]",number_format($total_member_connect),$_outlogin_data);
$_outlogin_data = str_replace("[total_guest_connect]",number_format($total_guest_connect),$_outlogin_data);
$_outlogin_data = str_replace("[total_connect]",number_format($total_member_connect+$total_guest_connect),$_outlogin_data);
$_outlogin_data = str_replace("[dir]",$_zb_url."outlogin_skin/$skinname/images/",$_outlogin_data);
print $_outlogin_data.$memo_on_sound_out ."n";
}
$a_member_join = "<Zeroboard";
$a_member_modify = "<Zeroboard";
$a_member_memo = "<Zeroboard";
$member_memo_icon = "<Zeroboard";
$memo_on_sound = "";
$a_logout = "<Zeroboard";
$a_login = "<Zeroboard";
}
그럼 답변 기다리게씀니다.