소스 확인좀요.. 정보
소스 확인좀요..본문
현재 사용중인 소스인데요..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $is_admin;
// 투표번호가 넘어오지 않았다면 가장 큰(최근에 등록한) 투표번호를 얻는다
if (!$po_id)
{
$po_id = $config[cf_max_po_id];
if (!$po_id) return;
}
$po = sql_fetch(" select * from $g4[poll_table] where po_id = '$po_id' ");
if ($po[po_point]) $point = "<span class='point'>($po[po_point] point 적립)</span>";
?>
<style type="text/css">
.mw-poll { border:1px solid #e1e1e1; text-align:left; padding:0 0 10px 0; }
.mw-poll a:hover { text-decoration:underline; }
.mw-poll .subject { background:url(<?=$poll_skin_path?>/img/box-bg.gif); height:24px; margin:0 0 7px 0; }
.mw-poll .subject { font-size:12px; color:#555; font-weight:bold; letter-spacing:-1px; text-decoration:none; text-align:left; }
.mw-poll .subject div { margin:5px 0 0 10px;}
.mw-poll table { margin:0 0 0 5px;}
.mw-poll .question { margin:10px 5px 10px 5px; text-align:left; }
.mw-poll .button { text-align:center; }
.mw-poll .point { font-weight:normal; font-size:11px; color:#888; }
</style>
<div class="mw-poll">
<div style="border:1px solid #fff;">
<form name="fpoll" method="post" action="<?=$g4[bbs_path]?>/poll_update.php" onsubmit="return fpoll_submit(this);" target="winPoll">
<input type="hidden" name="po_id" value="<?=$po_id?>">
<input type="hidden" name="skin_dir" value="<?=$skin_dir?>">
<div class="subject"><div>설문조사 <?=$point?></div></div>
<div class="question"><?=$po[po_subject]?></div>
<table border="0" cellspacing="0" cellpadding="0">
<? for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
<tr>
<td width="10" height="20"><input type="radio" name="gb_poll" value="<?=$i?>" id='gb_poll_<?=$i?>'></td>
<td><label for='gb_poll_<?=$i?>'><?=$po['po_poll'.$i]?></label></td>
</tr>
<? } ?>
</table>
<br/>
<div class="button">
<input type="image" src="<?=$poll_skin_path?>/img/poll_button.gif" width="70" height="25" border="0">
<a href="javascript_:;" onclick="poll_result('<?=$po_id?>');"><img src="<?=$poll_skin_path?>/img/poll_view.gif" width="70" height="25" border="0"></a>
</div>
</form>
</div>
</div>
<script language='JavaScript'>
function fpoll_submit(f)
{
var chk = false;
for (i=0; i<f.gb_poll.length;i ++) {
if (f.gb_poll[i].checked == true) {
chk = f.gb_poll[i].value;
break;
}
}
<?
if ($member[mb_level] < $po[po_level])
echo " alert('권한 $po[po_level] 이상의 회원만 투표에 참여하실 수 있습니다.'); return false; ";
?>
if (!chk) {
alert("항목을 선택하세요");
return false;
}
win_poll();
return true;
}
function poll_result(po_id)
{
<?
if ($member[mb_level] < $po[po_level])
echo " alert('권한 $po[po_level] 이상의 회원만 결과를 보실 수 있습니다.'); return false; ";
?>
win_poll("<?=$g4[bbs_path]?>/poll_result.php?po_id="+po_id+"&skin_dir="+document.fpoll.skin_dir.value);
}
</script>
</div>
<?=connect("inix_connect"); // 접속자 ?>
현재의 아래소스를 추가하고자 합니다다 어떻게 추가하나요?
직접 만들어주시면 감사합니다.
<?
include_once("./_common.php");
//include_once("$g4[path]/lib/latest.lib.php");
//$g4['title'] = "";
//include_once("./_head.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<html>
<head>
<title>
가가라이브 대화방
</title>
<style type="text/css">
<!--
body {
margin-left: 1px;
margin-top: 1px;
margin-right: 1px;
margin-bottom: 1px;
}
-->
</style>
</head>
<body>
<?
if($GLOBALS['userKeyDefined'] != 1) {
$GLOBALS['userKeyDefined'] = 1;
function userKey($user, $roomKey) {
return md5(md5($user . $roomKey) . $roomKey);
}
}
//include_once("./_common.php");
if(true){
$chatroom = "~~pix";
//채팅방 option 주고 싶으면 아래 코맨트 제거 (예로 글씨 크게, 대화방 세로형)
//$chatroom = $chatroom . "&fontlarge=true&position=2";
$roomkey = "a675c0c8acd0d94ef01c798ff3efd2f5";
$gagaadmin = "admin";
$heightz = "100%";
$widthz = "100%";
$gagaadmin = preg_replace('/\s*,\s*/', ',', $gagaadmin);
$gagaadmins = split(',', $gagaadmin);
$userz = $member[mb_id];
$usernickz = $member[mb_nick];
$usernickz = iconv("EUC-KR", "UTF-8", $usernickz);
$userkey = userKey($usernickz, $roomkey);
foreach($gagaadmins as $value) {
if($userz == $value) {
$userkey = userKey(userKey($usernickz, $roomkey), $roomkey);
}
}
$usernickz = urlencode($usernickz);
?>
<center>
<script src="http://www.gagalive.kr/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','<?=$widthz?>','height','<?=$heightz?>','title','가가라이브 대화방','src','http://www.gagalive.kr/livechat1?&chatroom=<?echo $chatroom?>&user=<?echo $usernickz?>&encrypt=<?echo $userkey?>','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://www.gagalive.kr/livechat1?&chatroom=<?echo $chatroom?>&user=<?echo $usernickz?>&encrypt=<?echo $userkey?>' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="<?=$widthz?>" height="<?=$heightz?>" title="가가라이브 대화방">
<param name="movie" value="http://www.gagalive.kr/livechat1.swf?&chatroom=<?echo $chatroom?>&user=<?echo $usernickz?>&encrypt=<?echo $userkey?>">
<param name="quality" value="high">
<embed src="http://www.gagalive.kr/livechat1.swf?&chatroom=<?echo $chatroom?>&user=<?echo $usernickz?>&encrypt=<?echo $userkey?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?=$widthz?>" height="<?=$heightz?>"></embed>
</object></noscript>
</center>
<?
}
?>
</body>
</html>
( 가가라이브 채팅 소스 현재 배추빌더라이트 사용중 )
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $is_admin;
// 투표번호가 넘어오지 않았다면 가장 큰(최근에 등록한) 투표번호를 얻는다
if (!$po_id)
{
$po_id = $config[cf_max_po_id];
if (!$po_id) return;
}
$po = sql_fetch(" select * from $g4[poll_table] where po_id = '$po_id' ");
if ($po[po_point]) $point = "<span class='point'>($po[po_point] point 적립)</span>";
?>
<style type="text/css">
.mw-poll { border:1px solid #e1e1e1; text-align:left; padding:0 0 10px 0; }
.mw-poll a:hover { text-decoration:underline; }
.mw-poll .subject { background:url(<?=$poll_skin_path?>/img/box-bg.gif); height:24px; margin:0 0 7px 0; }
.mw-poll .subject { font-size:12px; color:#555; font-weight:bold; letter-spacing:-1px; text-decoration:none; text-align:left; }
.mw-poll .subject div { margin:5px 0 0 10px;}
.mw-poll table { margin:0 0 0 5px;}
.mw-poll .question { margin:10px 5px 10px 5px; text-align:left; }
.mw-poll .button { text-align:center; }
.mw-poll .point { font-weight:normal; font-size:11px; color:#888; }
</style>
<div class="mw-poll">
<div style="border:1px solid #fff;">
<form name="fpoll" method="post" action="<?=$g4[bbs_path]?>/poll_update.php" onsubmit="return fpoll_submit(this);" target="winPoll">
<input type="hidden" name="po_id" value="<?=$po_id?>">
<input type="hidden" name="skin_dir" value="<?=$skin_dir?>">
<div class="subject"><div>설문조사 <?=$point?></div></div>
<div class="question"><?=$po[po_subject]?></div>
<table border="0" cellspacing="0" cellpadding="0">
<? for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
<tr>
<td width="10" height="20"><input type="radio" name="gb_poll" value="<?=$i?>" id='gb_poll_<?=$i?>'></td>
<td><label for='gb_poll_<?=$i?>'><?=$po['po_poll'.$i]?></label></td>
</tr>
<? } ?>
</table>
<br/>
<div class="button">
<input type="image" src="<?=$poll_skin_path?>/img/poll_button.gif" width="70" height="25" border="0">
<a href="javascript_:;" onclick="poll_result('<?=$po_id?>');"><img src="<?=$poll_skin_path?>/img/poll_view.gif" width="70" height="25" border="0"></a>
</div>
</form>
</div>
</div>
<script language='JavaScript'>
function fpoll_submit(f)
{
var chk = false;
for (i=0; i<f.gb_poll.length;i ++) {
if (f.gb_poll[i].checked == true) {
chk = f.gb_poll[i].value;
break;
}
}
<?
if ($member[mb_level] < $po[po_level])
echo " alert('권한 $po[po_level] 이상의 회원만 투표에 참여하실 수 있습니다.'); return false; ";
?>
if (!chk) {
alert("항목을 선택하세요");
return false;
}
win_poll();
return true;
}
function poll_result(po_id)
{
<?
if ($member[mb_level] < $po[po_level])
echo " alert('권한 $po[po_level] 이상의 회원만 결과를 보실 수 있습니다.'); return false; ";
?>
win_poll("<?=$g4[bbs_path]?>/poll_result.php?po_id="+po_id+"&skin_dir="+document.fpoll.skin_dir.value);
}
</script>
</div>
<?=connect("inix_connect"); // 접속자 ?>
현재의 아래소스를 추가하고자 합니다다 어떻게 추가하나요?
직접 만들어주시면 감사합니다.
<?
include_once("./_common.php");
//include_once("$g4[path]/lib/latest.lib.php");
//$g4['title'] = "";
//include_once("./_head.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<html>
<head>
<title>
가가라이브 대화방
</title>
<style type="text/css">
<!--
body {
margin-left: 1px;
margin-top: 1px;
margin-right: 1px;
margin-bottom: 1px;
}
-->
</style>
</head>
<body>
<?
if($GLOBALS['userKeyDefined'] != 1) {
$GLOBALS['userKeyDefined'] = 1;
function userKey($user, $roomKey) {
return md5(md5($user . $roomKey) . $roomKey);
}
}
//include_once("./_common.php");
if(true){
$chatroom = "~~pix";
//채팅방 option 주고 싶으면 아래 코맨트 제거 (예로 글씨 크게, 대화방 세로형)
//$chatroom = $chatroom . "&fontlarge=true&position=2";
$roomkey = "a675c0c8acd0d94ef01c798ff3efd2f5";
$gagaadmin = "admin";
$heightz = "100%";
$widthz = "100%";
$gagaadmin = preg_replace('/\s*,\s*/', ',', $gagaadmin);
$gagaadmins = split(',', $gagaadmin);
$userz = $member[mb_id];
$usernickz = $member[mb_nick];
$usernickz = iconv("EUC-KR", "UTF-8", $usernickz);
$userkey = userKey($usernickz, $roomkey);
foreach($gagaadmins as $value) {
if($userz == $value) {
$userkey = userKey(userKey($usernickz, $roomkey), $roomkey);
}
}
$usernickz = urlencode($usernickz);
?>
<center>
<script src="http://www.gagalive.kr/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','<?=$widthz?>','height','<?=$heightz?>','title','가가라이브 대화방','src','http://www.gagalive.kr/livechat1?&chatroom=<?echo $chatroom?>&user=<?echo $usernickz?>&encrypt=<?echo $userkey?>','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://www.gagalive.kr/livechat1?&chatroom=<?echo $chatroom?>&user=<?echo $usernickz?>&encrypt=<?echo $userkey?>' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="<?=$widthz?>" height="<?=$heightz?>" title="가가라이브 대화방">
<param name="movie" value="http://www.gagalive.kr/livechat1.swf?&chatroom=<?echo $chatroom?>&user=<?echo $usernickz?>&encrypt=<?echo $userkey?>">
<param name="quality" value="high">
<embed src="http://www.gagalive.kr/livechat1.swf?&chatroom=<?echo $chatroom?>&user=<?echo $usernickz?>&encrypt=<?echo $userkey?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?=$widthz?>" height="<?=$heightz?>"></embed>
</object></noscript>
</center>
<?
}
?>
</body>
</html>
( 가가라이브 채팅 소스 현재 배추빌더라이트 사용중 )
댓글 전체