인기검색어 스킨 및 lib
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
include_once("$g4['path']/lib/mailer.lib.php");
|
include_once($g4['path'].'/lib/mailer.lib.php');
|
||||||
|
|
||||||
if ($member[mb_id])
|
if ($member[mb_id])
|
||||||
{
|
{
|
||||||
@ -22,24 +22,24 @@ if (!($key && $key == $_POST[wr_key])) {
|
|||||||
|
|
||||||
$email = trim($_POST['mb_email']);
|
$email = trim($_POST['mb_email']);
|
||||||
|
|
||||||
if (!$email)
|
if (!$email)
|
||||||
alert_close('메일주소 오류입니다.');
|
alert_close('메일주소 오류입니다.');
|
||||||
|
|
||||||
$sql = " select count(*) as cnt from {$g4[member_table]} where mb_email = '{$email}' ";
|
$sql = " select count(*) as cnt from {$g4[member_table]} where mb_email = '{$email}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row[cnt] > 1)
|
if ($row[cnt] > 1)
|
||||||
alert('동일한 메일주소가 2개 이상 존재합니다.'.PHP_EOL.PHP_EOL.'관리자에게 문의하여 주십시오.');
|
alert('동일한 메일주소가 2개 이상 존재합니다.\n\n관리자에게 문의하여 주십시오.');
|
||||||
|
|
||||||
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4[member_table]} where mb_email = '{$email}' ";
|
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4[member_table]} where mb_email = '{$email}' ";
|
||||||
$mb = sql_fetch($sql);
|
$mb = sql_fetch($sql);
|
||||||
if (!$mb[mb_id])
|
if (!$mb[mb_id])
|
||||||
alert('존재하지 않는 회원입니다.');
|
alert('존재하지 않는 회원입니다.');
|
||||||
else if (is_admin($mb[mb_id]))
|
else if (is_admin($mb[mb_id]))
|
||||||
alert('관리자 아이디는 접근 불가합니다.');
|
alert('관리자 아이디는 접근 불가합니다.');
|
||||||
|
|
||||||
// 난수 발생
|
// 난수 발생
|
||||||
srand(time());
|
srand(time());
|
||||||
$randval = rand(4, 6);
|
$randval = rand(4, 6);
|
||||||
|
|
||||||
$change_password = substr(md5(get_microtime()), 0, $randval);
|
$change_password = substr(md5(get_microtime()), 0, $randval);
|
||||||
|
|
||||||
@ -86,5 +86,5 @@ $content .= '</div>';
|
|||||||
$admin = get_admin('super');
|
$admin = get_admin('super');
|
||||||
mailer($admin[mb_nick], $admin[mb_email], $mb[mb_email], $subject, $content, 1);
|
mailer($admin[mb_nick], $admin[mb_email], $mb[mb_email], $subject, $content, 1);
|
||||||
|
|
||||||
alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.'.PHP_EOL.PHP_EOL.'메일을 확인하여 주십시오.');
|
alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\n\n메일을 확인하여 주십시오.');
|
||||||
?>
|
?>
|
||||||
1
head.php
1
head.php
@ -47,6 +47,7 @@ if ($config['cf_title'] == $g4['title']) $g4['title'] = '';
|
|||||||
<?=outlogin('neo'); // 외부 로그인 ?>
|
<?=outlogin('neo'); // 외부 로그인 ?>
|
||||||
<?=poll('neo'); // 설문조사 ?>
|
<?=poll('neo'); // 설문조사 ?>
|
||||||
<?=visit('neo'); // 방문자수 ?>
|
<?=visit('neo'); // 방문자수 ?>
|
||||||
|
<?=popular('neo'); // 방문자수 ?>
|
||||||
<?=connect(); // 현재 접속자수 ?>
|
<?=connect(); // 현재 접속자수 ?>
|
||||||
|
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
|
|||||||
@ -11,7 +11,7 @@ if ($g4['is_cheditor5'])
|
|||||||
global $g4;
|
global $g4;
|
||||||
|
|
||||||
return "
|
return "
|
||||||
<script type='text/javascript'>
|
<script>
|
||||||
var ed_{$id} = new cheditor('ed_{$id}');
|
var ed_{$id} = new cheditor('ed_{$id}');
|
||||||
ed_{$id}.config.editorHeight = '{$height}';
|
ed_{$id}.config.editorHeight = '{$height}';
|
||||||
ed_{$id}.config.editorWidth = '{$width}';
|
ed_{$id}.config.editorWidth = '{$width}';
|
||||||
@ -26,7 +26,7 @@ else
|
|||||||
global $g4;
|
global $g4;
|
||||||
|
|
||||||
return "
|
return "
|
||||||
<script type='text/javascript'>
|
<script>
|
||||||
var ed_{$id} = new cheditor('ed_{$id}');
|
var ed_{$id} = new cheditor('ed_{$id}');
|
||||||
ed_{$id}.config.editorHeight = '{$height}';
|
ed_{$id}.config.editorHeight = '{$height}';
|
||||||
ed_{$id}.config.editorWidth = '{$width}';
|
ed_{$id}.config.editorWidth = '{$width}';
|
||||||
@ -44,7 +44,7 @@ function cheditor2($id, $content='')
|
|||||||
|
|
||||||
return "
|
return "
|
||||||
<textarea name='{$id}' id='tx_{$id}' style='display:none;'>{$content}</textarea>
|
<textarea name='{$id}' id='tx_{$id}' style='display:none;'>{$content}</textarea>
|
||||||
<script type='text/javascript'>
|
<script>
|
||||||
ed_{$id}.run();
|
ed_{$id}.run();
|
||||||
</script>";
|
</script>";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -207,7 +207,7 @@ function get_file($bo_table, $wr_id)
|
|||||||
while ($row = sql_fetch_array($result))
|
while ($row = sql_fetch_array($result))
|
||||||
{
|
{
|
||||||
$no = $row['bf_no'];
|
$no = $row['bf_no'];
|
||||||
$file[$no]['href'] = "./download.php?bo_table=$bo_table&wr_id=$wr_id&no=$no" . $qstr;
|
$file[$no]['href'] = "./download.php?bo_table=$bo_table&wr_id=$wr_id&no=$no" . $qstr;
|
||||||
$file[$no]['download'] = $row['bf_download'];
|
$file[$no]['download'] = $row['bf_download'];
|
||||||
// 4.00.11 - 파일 path 추가
|
// 4.00.11 - 파일 path 추가
|
||||||
$file[$no]['path'] = $g4['path'].'/data/file/'.$bo_table;
|
$file[$no]['path'] = $g4['path'].'/data/file/'.$bo_table;
|
||||||
@ -334,7 +334,7 @@ function get_list($write_row, $board, $skin_path, $subject_len=40)
|
|||||||
$list['ca_name_href'] = $g4['bbs_path'].'/board.php?bo_table='.$board['bo_table'].'&sca='.urlencode($list['ca_name']);
|
$list['ca_name_href'] = $g4['bbs_path'].'/board.php?bo_table='.$board['bo_table'].'&sca='.urlencode($list['ca_name']);
|
||||||
|
|
||||||
$list['href'] = $g4['bbs_path'].'/board.php?bo_table='.$board['bo_table'].'&wr_id='.$list['wr_id'].$qstr;
|
$list['href'] = $g4['bbs_path'].'/board.php?bo_table='.$board['bo_table'].'&wr_id='.$list['wr_id'].$qstr;
|
||||||
//$list['href'] = "$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id=$list[wr_id]";
|
//$list['href'] = "$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id=$list[wr_id]";
|
||||||
if ($board['bo_use_comment'])
|
if ($board['bo_use_comment'])
|
||||||
$list['comment_href'] = "javascript:win_comment('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list['wr_id']}&cwin=1');";
|
$list['comment_href'] = "javascript:win_comment('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list['wr_id']}&cwin=1');";
|
||||||
else
|
else
|
||||||
|
|||||||
@ -29,11 +29,11 @@ function send_trackback($tb_url, $url, $title, $blog_name, $excerpt)
|
|||||||
$title = strip_tags($title);
|
$title = strip_tags($title);
|
||||||
$excerpt = strip_tags($excerpt);
|
$excerpt = strip_tags($excerpt);
|
||||||
|
|
||||||
$tmp_data = "url=".rawurlencode($url)."&title=".rawurlencode($title)."&blog_name=".rawurlencode($blog_name)."&excerpt=".rawurlencode($excerpt);
|
$tmp_data = "url=".rawurlencode($url)."&title=".rawurlencode($title)."&blog_name=".rawurlencode($blog_name)."&excerpt=".rawurlencode($excerpt);
|
||||||
|
|
||||||
//주소 처리
|
//주소 처리
|
||||||
$uinfo = parse_url($tb_url);
|
$uinfo = parse_url($tb_url);
|
||||||
if($uinfo['query']) $tmp_data .= "&".$uinfo['query'];
|
if($uinfo['query']) $tmp_data .= "&".$uinfo['query'];
|
||||||
if(!$uinfo['port']) $uinfo['port'] = "80";
|
if(!$uinfo['port']) $uinfo['port'] = "80";
|
||||||
|
|
||||||
//최종 전송 자료
|
//최종 전송 자료
|
||||||
|
|||||||
@ -1,9 +1,12 @@
|
|||||||
<?
|
<?
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
인기검색어 :
|
|
||||||
<?
|
<section>
|
||||||
for ($i=0; $i<count($list); $i++) {
|
<h2>인기검색어</h2>
|
||||||
echo "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."'>{$list[$i][pp_word]}</a> ";
|
<ul>
|
||||||
}
|
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||||
?>
|
<li><a href="<?=$g4[bbs_path]?>/search.php?sfl=wr_subject&sop=and&stx=<?=urlencode($list[$i][pp_word])?>"><?=$list[$i][pp_word]?></a></li>
|
||||||
|
<? } ?>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
Reference in New Issue
Block a user