g5 merge 충돌 수정
This commit is contained in:
@ -169,21 +169,6 @@ function alert_close($msg, $error=true)
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
// 경고메세지 출력후 창을 닫음
|
||||
function alert_login($msg, $url)
|
||||
{
|
||||
global $g5;
|
||||
|
||||
$header = '';
|
||||
if (isset($g5['title'])) {
|
||||
$header = $g5['title'];
|
||||
}
|
||||
include_once(G5_BBS_PATH.'/alert_login.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
// confirm 창
|
||||
function confirm($msg, $url1='', $url2='', $url3='')
|
||||
{
|
||||
@ -1915,7 +1900,7 @@ function abs_ip2long($ip='')
|
||||
|
||||
function get_selected($field, $value)
|
||||
{
|
||||
return ($field==$value) ? ' selected' : '';
|
||||
return ($field==$value) ? ' selected="selected"' : '';
|
||||
}
|
||||
|
||||
|
||||
@ -1948,7 +1933,7 @@ function get_uniqid()
|
||||
sql_query(" LOCK TABLE {$g5['uniqid_table']} WRITE ");
|
||||
while (1) {
|
||||
// 년월일시분초에 100분의 1초 두자리를 추가함 (1/100 초 앞에 자리가 모자르면 0으로 채움)
|
||||
$key = date('YmdHis', time()) . str_pad((int)(microtime()*100), 2, "0", STR_PAD_LEFT);
|
||||
$key = date('ymdHis', time()) . str_pad((int)(microtime()*100), 2, "0", STR_PAD_LEFT);
|
||||
|
||||
$result = sql_query(" insert into {$g5['uniqid_table']} set uq_id = '$key', uq_ip = '{$_SERVER['REMOTE_ADDR']}' ", false);
|
||||
if ($result) break; // 쿼리가 정상이면 빠진다.
|
||||
@ -2225,8 +2210,11 @@ function hyphen_hp_number($hp)
|
||||
function login_url($url='')
|
||||
{
|
||||
if (!$url) $url = G5_URL;
|
||||
//$p = parse_url($url);
|
||||
//return $url.urldecode(preg_replace("/^".urlencode($p['path'])."/", "", urlencode($_SERVER['REQUEST_URI'])));
|
||||
/*
|
||||
$p = parse_url($url);
|
||||
echo urlencode($_SERVER['REQUEST_URI']);
|
||||
return $url.urldecode(preg_replace("/^".urlencode($p['path'])."/", "", urlencode($_SERVER['REQUEST_URI'])));
|
||||
*/
|
||||
return $url;
|
||||
}
|
||||
|
||||
@ -2370,13 +2358,4 @@ function certify_count_check($mb_id, $type)
|
||||
if((int)$row['cnt'] >= (int)$config['cf_cert_limit'])
|
||||
alert_close('오늘 '.$cert.' 본인확인을 '.$row['cnt'].'회 이용하셔서 더 이상 이용할 수 없습니다.');
|
||||
}
|
||||
|
||||
// die 함수를 utf-8 환경에서 사용할 때 한글깨짐방지
|
||||
function die_utf8($msg)
|
||||
{
|
||||
if(!trim($msg))
|
||||
return;
|
||||
|
||||
die('<html><head><head><meta charset="utf-8"></head>'.$msg.'</html>');
|
||||
}
|
||||
?>
|
||||
@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit;
|
||||
// 외부로그인
|
||||
function outlogin($skin_dir='basic')
|
||||
{
|
||||
global $config, $default, $member, $g5, $urlencode, $is_admin, $is_member;
|
||||
global $config, $member, $g5, $urlencode, $is_admin, $is_member;
|
||||
|
||||
if (array_key_exists('mb_nick', $member)) {
|
||||
$nick = cut_str($member['mb_nick'], $config['cf_cut_name']);
|
||||
@ -34,7 +34,7 @@ function outlogin($skin_dir='basic')
|
||||
$is_auth = true;
|
||||
}
|
||||
|
||||
$outlogin_url = login_url($urlencode);
|
||||
$outlogin_url = login_url();
|
||||
$outlogin_action_url = G5_HTTPS_BBS_URL.'/login_check.php';
|
||||
|
||||
ob_start();
|
||||
|
||||
@ -299,7 +299,7 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
|
||||
}
|
||||
|
||||
imagejpeg($dst, $thumb_file, 90);
|
||||
@chmod($thumb_file, G5_FILE_PERMISSION); // 추후 삭제를 위하여 파일모드 변경
|
||||
chmod($thumb_file, G5_FILE_PERMISSION); // 추후 삭제를 위하여 파일모드 변경
|
||||
|
||||
imagedestroy($src);
|
||||
imagedestroy($dst);
|
||||
|
||||
@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit;
|
||||
// 방문자수 출력
|
||||
function visit($skin_dir='basic')
|
||||
{
|
||||
global $config, $g5, $is_admin;
|
||||
global $config, $g5;
|
||||
|
||||
// visit 배열변수에
|
||||
// $visit[1] = 오늘
|
||||
|
||||
Reference in New Issue
Block a user