그누4에서 길호쳇 p2p 설치 문제

· 20년 전 · 1649
현재 길호쳇은 그누3만 지원 되고 있습니다만 그누4에 적용하다 보니 어렵습니다.
길호쳇에 질문을 올려지만 답이 없어서..

그누3과 4는 url 호출방법(?)이 틀려서 에러가 나는것 같습니다.
아래부분을 수정하면 될것은 생각이 드는데.
어렵네요..


config.php
====================================================================================
$mainurl = 'http://'.$_SERVER[HTTP_HOST].dirname($_SERVER[PHP_SELF]).'/?doc='.$doc.'&';


index.php
============================================================================
// Init
$create_href = $mainurl . 'mode=create';
$list_href = $mainurl . 'mode=list';
// $join_href = $mainurl . 'mode=join'; list.php 에서 손보게 됨으로 뺏음
$room_href = $mainurl . 'mode=room';

$chgroom_href = $CHATPATH .'chgroom.php';
$user_href = $CHATPATH .'user.php';

$skinurl = $_mypath . 'skin/' . $skinname; // 내부 스킨 주소(PHP)
$skindir = $CHATPATH. 'skin/' . $skinname; // 외부 스킨 주소(웹페이지)

if(!$mode)$mode='list';


// Not Login
if(!$UID & $mode!='list'){ ?><script>alert('로그인을 하십시오');history.go(-1);</script><? exit; }

switch($mode){
case 'room' : include $_mypath.'room.php'; break;
case 'join' : include $_mypath.'room.php'; break;
case 'list' : include $_mypath.'list.php'; break;
case 'create' : include $_mypath.'create.php'; break;
}
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
20년 전 조회 1,608
20년 전 조회 1,653
20년 전 조회 1,684
20년 전 조회 1,828
20년 전 조회 2,781
20년 전 조회 2,479
20년 전 조회 2,054
20년 전 조회 2,082
20년 전 조회 2,006
20년 전 조회 1,650
20년 전 조회 1,598
20년 전 조회 1,578
20년 전 조회 1,604
20년 전 조회 1,705
20년 전 조회 2,342
20년 전 조회 1,787
20년 전 조회 2,303
20년 전 조회 1,877
20년 전 조회 1,550
20년 전 조회 2,720