겸손한 javascript 로 수정중
This commit is contained in:
@ -218,7 +218,7 @@ function fwrite_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
<? if ($is_guest) { echo chk_captcha(); } ?>
|
||||
<? if ($is_guest) { echo chk_captcha_js(); } ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1,44 +1,16 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($g4['https_url']) {
|
||||
$login_url = $_GET['url'];
|
||||
if ($login_url) {
|
||||
if (preg_match("/^\.\.\//", $url)) {
|
||||
$login_url = urlencode($g4[url]."/".preg_replace("/^\.\.\//", "", $login_url));
|
||||
}
|
||||
else {
|
||||
$purl = parse_url($g4[url]);
|
||||
if ($purl[path]) {
|
||||
$path = urlencode($purl[path]);
|
||||
$urlencode = preg_replace("/".$path."/", "", $urlencode);
|
||||
}
|
||||
$login_url = $g4[url].$urlencode;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$login_url = $g4[url];
|
||||
}
|
||||
}
|
||||
else {
|
||||
$login_url = $urlencode;
|
||||
}
|
||||
|
||||
if ($g4['https_url'])
|
||||
$action_url = "{$g4['https_url']}/$g4[bbs]/login_check.php";
|
||||
else
|
||||
$action_url = "{$g4['bbs_path']}/login_check.php";
|
||||
?>
|
||||
|
||||
<form name="flogin" method="post" action="<?=$action_url?>" onsubmit="return flogin_submit(this);">
|
||||
<form name="flogin" method="post" action="<?=$login_action_url?>" onsubmit="return flogin_submit(this);">
|
||||
<input type="hidden" name="url" value='<?=$login_url?>'>
|
||||
|
||||
<fieldset>
|
||||
<label for="login_mb_id">아이디</label>
|
||||
<input type="text" id="login_mb_id" name="mb_id" maxLength="20" size="15" required>
|
||||
<label for="login_mb_id">회원아이디</label>
|
||||
<input type="text" id="login_mb_id" name="mb_id" maxLength="20" size="15" required title="회원아이디">
|
||||
<label for="login_mb_password">패스워드</label>
|
||||
<input type="password" id="login_mb_password" name="mb_password" maxLength="20" size="15" required>
|
||||
<input type="checkbox" id="login_auto_login" name="auto_login" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false;} }">
|
||||
<input type="password" id="login_mb_password" name="mb_password" maxLength="20" size="15" required title="패스워드">
|
||||
<input type="checkbox" id="login_auto_login" name="auto_login">
|
||||
<label for="login_auto_login">자동로그인</label>
|
||||
<input type="submit" value="로그인">
|
||||
</fieldset>
|
||||
@ -49,14 +21,20 @@ else
|
||||
회원아이디 및 패스워드가 기억 안나실 때는 아이디/패스워드 찾기를 이용하십시오.<br>
|
||||
아직 회원이 아니시라면 회원으로 가입 후 이용해 주십시오.
|
||||
</p>
|
||||
<a href="javascript:;" onclick="win_password_lost();">아이디/패스워드 찾기</a>
|
||||
<a href="<?=$g4['bbs_url']?>/password_lost.php" id="login_password_lost" target="win_password_lost">아이디/패스워드 찾기</a>
|
||||
<a href="./register.php">회원가입</a>
|
||||
</section>
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
document.flogin.mb_id.focus();
|
||||
$(document).ready(function(){
|
||||
$("#login_auto_login").click(function(){
|
||||
if (this.checked) {
|
||||
this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function flogin_submit(f)
|
||||
{
|
||||
|
||||
@ -4,36 +4,24 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<h1>아이디/패스워드 찾기</h1>
|
||||
|
||||
<form name="fpasswordlost" method="post" onsubmit="return fpasswordlost_submit(this);" autocomplete="off">
|
||||
<form name="fpasswordlost" method="post" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" autocomplete="off">
|
||||
<fieldset>
|
||||
<legend>이메일 주소 입력</legend>
|
||||
<p>회원가입 시 등록하신 이메일 주소를 입력해 주시면, 해당 이메일로 아이디와 패스워드 정보를 보내드립니다.</p>
|
||||
<label for="mb_email">이메일 주소</label>
|
||||
<input type="text" id="mb_email" name="mb_email" required size="45">
|
||||
<img id="kcaptcha_image">
|
||||
<input type="text" name="wr_key" size="10" required>
|
||||
<label for="mb_email">E-mail 주소</label>
|
||||
<input type="text" id="mb_email" name="mb_email" class="email" required size="45" title="E-mail 주소">
|
||||
</fieldset>
|
||||
<? echo captcha_html(); ?>
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script src="<?="$g4[path]/js/md5.js"?>"></script>
|
||||
<script src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
|
||||
<script>
|
||||
function fpasswordlost_submit(f)
|
||||
{
|
||||
if (!check_kcaptcha(f.wr_key)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
<?
|
||||
if ($g4[https_url])
|
||||
echo "f.action = '$g4[https_url]/$g4[bbs]/password_lost2.php';";
|
||||
else
|
||||
echo "f.action = './password_lost2.php';";
|
||||
?>
|
||||
<? echo chk_captcha_js(); ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1,52 +1,23 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($g4['https_url']) {
|
||||
$outlogin_url = $_GET['url'];
|
||||
if ($outlogin_url) {
|
||||
if (preg_match("/^\.\.\//", $outlogin_url)) {
|
||||
$outlogin_url = urlencode($g4[url]."/".preg_replace("/^\.\.\//", "", $outlogin_url));
|
||||
}
|
||||
else {
|
||||
$purl = parse_url($g4[url]);
|
||||
if ($purl[path]) {
|
||||
$path = urlencode($purl[path]);
|
||||
$urlencode = preg_replace("/".$path."/", "", $urlencode);
|
||||
}
|
||||
$outlogin_url = $g4[url].$urlencode;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$outlogin_url = $g4[url];
|
||||
}
|
||||
}
|
||||
else {
|
||||
$outlogin_url = $urlencode;
|
||||
}
|
||||
|
||||
|
||||
if ($g4['https_url'])
|
||||
$action_url = "{$g4['https_url']}/$g4[bbs]/login_check.php";
|
||||
else
|
||||
$action_url = "{$g4['bbs_path']}/login_check.php";
|
||||
?>
|
||||
|
||||
<section id="ol_before" class="outlogin">
|
||||
<h2>멤버쉽</h2>
|
||||
<!-- 로그인 전 외부로그인 시작 -->
|
||||
<form name="fhead" method="post" action="<?=$action_url?>" onsubmit="return fhead_submit(this);" autocomplete="off">
|
||||
<!-- 로그인 전 외부로그인 시작 -->
|
||||
<form name="foutlogin" method="post" action="<?=$outlogin_action_url?>" onsubmit="return fhead_submit(this);" autocomplete="off">
|
||||
<fieldset>
|
||||
<input type="hidden" name="url" value="<?=$outlogin_url?>">
|
||||
<label for="ol_mb_id" id="ol_mb_id_label">아이디</label>
|
||||
<input type="text" id="ol_mb_id" name="mb_id" maxlength="20" required>
|
||||
<label for="ol_mb_id" id="ol_mb_id_label">회원아이디</label>
|
||||
<input type="text" id="ol_mb_id" name="mb_id" maxlength="20" required title="회원아이디">
|
||||
<label for="ol_mb_pw" id="ol_mb_pw_label">패스워드</label>
|
||||
<input type="password" id="ol_mb_pw" name="mb_password" maxlength="20">
|
||||
<input type="checkbox" id="auto_login" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }">
|
||||
<input type="password" id="ol_mb_pw" name="mb_password" maxlength="20" required title="패스워드">
|
||||
<input type="checkbox" id="auto_login" name="auto_login" value="1">
|
||||
<label for="auto_login" id="auto_login_label">자동로그인</label>
|
||||
<input type="submit" id="ol_submit" value="로그인">
|
||||
<ul>
|
||||
<li><a href="<?=$g4['bbs_path']?>/register.php">회원가입</a></li>
|
||||
<li><a href="javascript:win_password_lost();">정보찾기</a></li>
|
||||
<li><a href="<?=$g4['bbs_url']?>/register.php">회원가입</a></li>
|
||||
<li><a href="<?=$g4['bbs_url']?>/password_lost.php" id="ol_password_lost">정보찾기</a></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</form>
|
||||
@ -72,6 +43,12 @@ $(document).ready(function(){
|
||||
$this = $(this);
|
||||
if($this.attr('id') == "ol_mb_pw" && $this.attr('value') == "") $omp_label.css('visibility','visible');
|
||||
});
|
||||
|
||||
$("#auto_login").click(function(){
|
||||
if (this.checked) {
|
||||
this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -4,23 +4,22 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
global $is_admin;
|
||||
|
||||
// 투표번호가 넘어오지 않았다면 가장 큰(최근에 등록한) 투표번호를 얻는다
|
||||
if (!$po_id)
|
||||
{
|
||||
$po_id = $config[cf_max_po_id];
|
||||
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' ");
|
||||
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '$po_id' ");
|
||||
?>
|
||||
|
||||
<form name="fpoll" method="post" action="<?=$g4[bbs_path]?>/poll_update.php" onsubmit="return fpoll_submit(this);" target="winPoll">
|
||||
<form name="fpoll" method="post" action="<?=$g4['bbs_url']?>/poll_update.php" onsubmit="return fpoll_submit(this);" target="win_poll">
|
||||
<input type="hidden" name="po_id" value="<?=$po_id?>">
|
||||
<input type="hidden" name="skin_dir" value="<?=$skin_dir?>">
|
||||
<section id="poll">
|
||||
<header>
|
||||
<h2>설문조사</h2>
|
||||
<? if ($is_admin == "super") { ?><a href="<?=$g4[admin_path]?>/poll_form.php?w=u&po_id=<?=$po_id?>">설문조사 관리</a><? } ?>
|
||||
<? if ($is_admin == "super") { ?><a href="<?=$g4['admin_url']?>/poll_form.php?w=u&po_id=<?=$po_id?>">설문조사 관리</a><? } ?>
|
||||
<p><?=$po['po_subject']?></p>
|
||||
</header>
|
||||
<ul>
|
||||
@ -30,7 +29,7 @@ $po = sql_fetch(" select * from $g4[poll_table] where po_id = '$po_id' ");
|
||||
</ul>
|
||||
<footer>
|
||||
<input type="submit" value="투표하기">
|
||||
<a href="javascript:;" onclick="poll_result('<?=$po_id?>');">결과보기</a>
|
||||
<a href="<?="{$g4['bbs_url']}/poll_result.php?po_id={$po_id}&skin_dir={$skin_dir}";?>" target="win_poll">결과보기</a>
|
||||
</footer>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@ -15,11 +15,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<? for ($i=1; $i<=count($list); $i++) { ?>
|
||||
<li>
|
||||
<p>
|
||||
<?=$list[$i][content]?>
|
||||
<span><?=$list[$i][cnt]?>표 <?=number_format($list[$i][rate], 1)?>%</span>
|
||||
<?=$list[$i]['content']?>
|
||||
<span><?=$list[$i]['cnt']?>표 <?=number_format($list[$i]['rate'], 1)?>%</span>
|
||||
</p>
|
||||
<div class="poll_result_graph">
|
||||
<span style="width:<?=number_format($list[$i][rate], 1)?>%"></span>
|
||||
<span style="width:<?=number_format($list[$i]['rate'], 1)?>%"></span>
|
||||
</div>
|
||||
</li>
|
||||
<? } ?>
|
||||
@ -35,17 +35,17 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<? for ($i=0; $i<count($list2); $i++) { ?>
|
||||
<article>
|
||||
<header>
|
||||
<h1><?=$list2[$i][name]?>님의 의견</h1>
|
||||
<span class="poll_datetime"><?=$list2[$i][datetime]?></span>
|
||||
<span class="poll_del"><? if ($list2[$i][del]) { echo $list2[$i][del]."삭제</a>"; } ?></span>
|
||||
<h1><?=$list2[$i]['name']?>님의 의견</h1>
|
||||
<span class="poll_datetime"><?=$list2[$i]['datetime']?></span>
|
||||
<span class="poll_del"><? if ($list2[$i]['del']) { echo $list2[$i]['del']."삭제</a>"; } ?></span>
|
||||
</header>
|
||||
<p>
|
||||
<?=$list2[$i][idea]?>
|
||||
<?=$list2[$i]['idea']?>
|
||||
</p>
|
||||
</article>
|
||||
<? } ?>
|
||||
|
||||
<? if ($member[mb_level] >= $po[po_level]) { ?>
|
||||
<? if ($member['mb_level'] >= $po['po_level']) { ?>
|
||||
<form name="fpollresult" method="post" onsubmit="return fpollresult_submit(this);" autocomplete="off">
|
||||
<input type=hidden name="po_id" value="<?=$po_id?>">
|
||||
<input type=hidden name="w" value="">
|
||||
@ -55,8 +55,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<p><?=$po_etc?></p>
|
||||
<?
|
||||
$comment_size = "";
|
||||
if ($member[mb_id]) { $comment_size = 52; ?>
|
||||
<input type="hidden" name="pc_name" value="<?=cut_str($member[mb_nick],255)?>">
|
||||
if ($is_member) { $comment_size = 52; ?>
|
||||
<input type="hidden" name="pc_name" value="<?=cut_str($member['mb_nick'],255)?>">
|
||||
<? } else { $comment_size = 32; ?>
|
||||
<label for="pc_name">이름</label>
|
||||
<input type='text' id="pc_name" name="pc_name" class="fieldset_input required" size="10" required>
|
||||
@ -81,7 +81,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<section id="poll_result_another">
|
||||
<h2>다른 투표 결과 보기</h2>
|
||||
<ul>
|
||||
<? for ($i=0; $i<count($list3); $i++) { ?><li><a href="./poll_result.php?po_id=<?=$list3[$i][po_id]?>&skin_dir=<?=$skin_dir?>">[<?=$list3[$i][date]?>] <?=$list3[$i][subject]?></a></li><? } ?>
|
||||
<? for ($i=0; $i<count($list3); $i++) { ?><li><a href="./poll_result.php?po_id=<?=$list3[$i]['po_id']?>&skin_dir=<?=$skin_dir?>">[<?=$list3[$i]['date']?>] <?=$list3[$i]['subject']?></a></li><? } ?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user