Merge branch 'master' of github.com:gnuboard/g4s
Conflicts: adm/board_list.php bbs/memo.php bbs/memo_form_update.php bbs/memo_view.php head.sub.php
This commit is contained in:
@ -112,15 +112,12 @@ function get_cookie($cookie_name)
|
||||
|
||||
|
||||
// 경고메세지를 경고창으로
|
||||
function alert($msg='', $url='')
|
||||
function alert($msg='', $url='', $error=true)
|
||||
{
|
||||
global $g4, $config, $member;
|
||||
global $is_admin;
|
||||
|
||||
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
|
||||
$msg = str_replace("\\n", "<br>", $msg);
|
||||
|
||||
if (!$url) $url = $_SERVER['HTTP_REFERER'];
|
||||
|
||||
/*
|
||||
//header("Content-Type: text/html; charset=$g4['charset']");
|
||||
@ -154,6 +151,33 @@ function alert_close($msg)
|
||||
exit;
|
||||
}
|
||||
|
||||
// confirm 창
|
||||
function confirm($msg, $url1='', $url2='', $url3='')
|
||||
{
|
||||
global $g4;
|
||||
|
||||
if (!$msg) {
|
||||
$msg = '올바른 방법으로 이용해 주십시오.';
|
||||
alert($msg);
|
||||
}
|
||||
|
||||
if(!trim($url1) || !trim($url2)) {
|
||||
$msg = '$url1 과 $url2 를 지정해 주세요.';
|
||||
alert($msg);
|
||||
}
|
||||
|
||||
if (!$url3) $url3 = $_SERVER['HTTP_REFERER'];
|
||||
|
||||
$msg = str_replace("\\n", "<br>", $msg);
|
||||
|
||||
$header = '';
|
||||
if (isset($g4['title'])) {
|
||||
$header = $g4['title'];
|
||||
}
|
||||
include_once("{$g4['bbs_path']}/confirm.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
// way.co.kr 의 wayboard 참고
|
||||
function url_auto_link($str)
|
||||
|
||||
Reference in New Issue
Block a user