本文整理汇总了PHP中set_http函数的典型用法代码示例。如果您正苦于以下问题:PHP set_http函数的具体用法?PHP set_http怎么用?PHP set_http使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_http函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_text
if ($info['screenshot']) {
$screenshot = '<img src="' . $info['screenshot'] . '" alt="' . $name . '">';
} else {
$screenshot = '<img src="' . G5_ADMIN_URL . '/img/theme_img.jpg" alt="">';
}
$name = get_text($info['theme_name']);
if ($info['theme_uri']) {
$name = '<a href="' . set_http($info['theme_uri']) . '" target="_blank" class="thdt_home">' . $name . '</a>';
}
$maker = get_text($info['maker']);
if ($info['maker_uri']) {
$maker = '<a href="' . set_http($info['maker_uri']) . '" target="_blank" class="thdt_home">' . $maker . '</a>';
}
$license = get_text($info['license']);
if ($info['license_uri']) {
$license = '<a href="' . set_http($info['license_uri']) . '" target="_blank" class="thdt_home">' . $license . '</a>';
}
?>
<div id="theme_detail">
<div class="thdt_img"><?php
echo $screenshot;
?>
</div>
<div class="thdt_if">
<h2><?php
echo $name;
?>
</h2>
<table>
<tr>
示例2: implode
// 추출하기
$bo_list = $i > 0 ? implode(',', $bo) : $bo[0];
$result = sql_query(" select * from {$g5['board_new_table']} where wr_id = wr_parent and find_in_set(bo_table, '{$bo_list}') and as_secret <> '1' order by bn_id desc limit 0, {$rss_rows} ", false);
for ($i = 0; $post = sql_fetch_array($result); $i++) {
$tmp_write_table = $g5['write_prefix'] . $post['bo_table'];
$row = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$post['wr_id']}' ", false);
if (strstr($row['wr_option'], 'secret')) {
continue;
}
if ($row['as_shingo'] < 0) {
continue;
}
$board = sql_fetch(" select bo_subject from {$g5['board_table']} where bo_table = '{$post['bo_table']}' ");
// 링크
for ($i = k; $k <= G5_LINK_COUNT; $k++) {
$row['link'][$i] = set_http(get_text($row["wr_link{$k}"]));
}
if (strstr($row['wr_option'], 'html')) {
$html = 1;
} else {
$html = 0;
}
$row['wr_content'] = conv_content($row['wr_content'], $html);
$file = $head_file = $tail_file = '';
if ($row['as_img'] == "2") {
// 본문삽입
$row['wr_content'] = preg_replace_callback("/{이미지\\:([0-9]+)[:]?([^}]*)}/i", "img_insert_content", $row['wr_content']);
} else {
$tmp = get_file($post['bo_table'], $post['wr_id']);
for ($j = 0; $j < count($tmp); $j++) {
if (isset($tmp[$j]['source']) && $tmp[$j]['source'] && $tmp[$j]['view']) {
示例3: preg_replace
if ($mw_basic[cf_attribute] == 'anonymous') {
$ip = "";
} else {
if ($view[wr_anonymous]) {
$ip = "";
} else {
if ($view[mb_id] == $config[cf_admin]) {
$ip = "";
} else {
// 관리자가 아니라면 IP 주소를 감춘후 보여줍니다.
$ip = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $write[wr_ip]);
}
}
}
}
$shorten = set_http("{$g4[url]}/{$g4[bbs]}/board.php?bo_table={$bo_table}&wr_id={$wr_id}");
if ($mw_basic[cf_shorten]) {
$shorten = "{$g4['url']}/{$bo_table}/{$wr_id}";
}
if ($mw['config']['cf_seo_url']) {
$shorten = mw_seo_url($bo_table, $wr_id);
}
$new_time = date("Y-m-d H:i:s", $g4[server_time] - $board[bo_new] * 3600);
$row = sql_fetch(" select count(*) as cnt from {$write_table} where wr_is_comment = 0 and wr_datetime >= '{$new_time}' ");
$new_count = $row[cnt];
// 최고, 그룹관리자라면 글 복사, 이동 가능
$copy_href = $move_href = "";
if ($write[wr_reply] == "" && ($is_admin == "super" || $is_admin == "group")) {
$copy_href = "javascript:window.open('{$board_skin_path}/move.php?sw=copy&bo_table={$bo_table}&wr_id={$wr_id}&page={$page}" . $qstr . "', 'boardcopy', 'left=50, top=50, width=500, height=550, scrollbars=1');";
$move_href = "javascript:window.open('{$board_skin_path}/move.php?sw=move&bo_table={$bo_table}&wr_id={$wr_id}&page={$page}" . $qstr . "', 'boardmove', 'left=50, top=50, width=500, height=550, scrollbars=1');";
}
示例4: set_http
>
<?php
echo $row[content];
?>
</div>
<?php
if ($list[$i][trackback]) {
echo "<p>" . $list[$i][trackback] . "</p>";
}
?>
<?php
if ($mw_basic[cf_source_copy]) {
// 출처 자동 복사
?>
<?php
$copy_url = set_http("{$g4[url]}/{$g4[bbs]}/board.php?bo_table={$bo_table}&wr_id={$wr_id}#c_{$list[$i][wr_id]}");
?>
<script>
AutoSourcing.setString(<?php
echo $list[$i][wr_id];
?>
,
"<?php
echo $config[cf_title];
?>
", "<?php
echo $list[$i][wr_name];
?>
", "<?php
echo $copy_url;
?>
示例5: array
* - 이 저작권 표시사항을 저작권자를 제외한 그 누구도 수정할 수 없습니다.
*/
if (!defined("_GNUBOARD_")) {
exit;
}
// 개별 페이지 접근 불가
// 페이스북 정보
$mw_facebook_config = array();
$mw_facebook_config['appId'] = '';
$mw_facebook_config['secret'] = '';
// 트위터 정보
$mw_twitter_config = array();
$mw_twitter_config['consumer_key'] = '';
$mw_twitter_config['consumer_secret'] = '';
// 트위터 관련 - 수정하지 마세요.
$tmp = parse_url($g4['url']);
$mw_twitter_config['oauth_callback'] = set_http($tmp['host'] . dirname($_SERVER['SCRIPT_NAME']) . "/twitter-login.php");
// 구글정보
$mw_google_config['client_id'] = '';
$mw_google_config['client_secret'] = '';
$mw_google_config['client_domain'] = '';
// 네이버 정보
$mw_naver_config = array();
$mw_naver_config['client_id'] = '';
$mw_naver_config['client_secret'] = '';
$mw_naver_config['callback'] = set_http($tmp['host'] . dirname($_SERVER['SCRIPT_NAME']) . "/naver-login.php");
// 카카오 정보
$mw_kakao_config = array();
$mw_kakao_config['client_id'] = '';
$mw_kakao_config['callback'] = set_http($tmp['host'] . dirname($_SERVER['SCRIPT_NAME']) . "/kakao-login.php");
示例6: alert_close
if (!$member['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id) {
alert_close('자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
}
$mb = apms_member($mb_id);
if (!$mb['mb_id']) {
alert_close('회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.');
}
if (!$mb['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id) {
alert_close('정보공개를 하지 않았습니다.');
}
$mb_nick = apms_sideview($mb['mb_id'], get_text($mb['mb_nick']), $mb['mb_email'], $mb['mb_homepage'], $mb['as_level']);
// 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻
$sql = " select (TO_DAYS('" . G5_TIME_YMDHIS . "') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days ";
$row = sql_fetch($sql);
$mb_reg_after = $row['days'];
$mb_homepage = set_http(get_text(clean_xss_tags($mb['mb_homepage'])));
$mb_profile = $mb['mb_profile'] ? conv_content($mb['mb_profile'], 0) : '';
$mb_signature = $mb['mb_signature'] ? apms_content(conv_content($mb['mb_signature'], 1)) : '';
// Page ID
$pid = $pid ? $pid : '';
$at = apms_page_thema($pid);
if (!defined('THEMA_PATH')) {
include_once G5_LIB_PATH . '/apms.thema.lib.php';
}
$g5['title'] = get_text($mb['mb_nick']) . '님의 자기소개';
include_once G5_PATH . '/head.sub.php';
if (!USE_G5_THEME) {
@(include_once THEMA_PATH . '/head.sub.php');
}
$skin_path = $member_skin_path;
$skin_url = $member_skin_url;
示例7: apiClient
* - 저작권자는 이 프로그램을 사용하므로서 발생하는 모든 문제에 대하여 책임을 지지 않습니다.
* - 이 프로그램을 어떠한 형태로든 재배포 및 공개하는 것을 허락하지 않습니다.
* - 이 저작권 표시사항을 저작권자를 제외한 그 누구도 수정할 수 없습니다.
*/
include_once "_common.php";
include_once "{$g4['path']}/plugin/social-login/_lib.php";
include_once "{$g4['path']}/plugin/social-login/_config.php";
include_once "lib/google/apiClient.php";
include_once "lib/google/contrib/apiOauth2Service.php";
$client = new apiClient();
$client->setApplicationName("Miwit.com Social-login Solution");
// Visit https://code.google.com/apis/console?api=plus to generate your
// oauth2_client_id, oauth2_client_secret, and to register your oauth2_redirect_uri.
$client->setClientId($mw_google_config[client_id]);
$client->setClientSecret($mw_google_config[client_secret]);
$client->setRedirectUri(set_http($mw_google_config[client_domain] . $_SERVER[SCRIPT_NAME]));
//$client->setDeveloperKey('insert_your_developer_key');
$oauth2 = new apiOauth2Service($client);
if (isset($_GET['code'])) {
$client->authenticate();
$_SESSION['token'] = $client->getAccessToken();
$redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
}
if (isset($_SESSION['token'])) {
$client->setAccessToken($_SESSION['token']);
}
if (isset($_REQUEST['logout'])) {
unset($_SESSION['token']);
$client->revokeToken();
}
示例8: get_sideview
function get_sideview($mb_id, $name = '', $email = '', $homepage = '')
{
global $config;
global $g5;
global $bo_table, $sca, $is_admin, $member;
$email = base64_encode($email);
$homepage = set_http(clean_xss_tags($homepage));
$name = preg_replace("/\\'/", "", $name);
$name = preg_replace("/\\'/", "", $name);
$name = preg_replace("/\"/", """, $name);
$title_name = $name;
$tmp_name = "";
if ($mb_id) {
//$tmp_name = "<a href=\"".G5_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"return false;\">$name</a>";
$tmp_name = '<a href="' . G5_BBS_URL . '/profile.php?mb_id=' . $mb_id . '" class="sv_member" title="' . $name . ' 자기소개" target="_blank" onclick="return false;">';
if ($config['cf_use_member_icon']) {
$mb_dir = substr($mb_id, 0, 2);
$icon_file = G5_DATA_PATH . '/member/' . $mb_dir . '/' . $mb_id . '.gif';
if (file_exists($icon_file)) {
$width = $config['cf_member_icon_width'];
$height = $config['cf_member_icon_height'];
$icon_file_url = G5_DATA_URL . '/member/' . $mb_dir . '/' . $mb_id . '.gif';
$tmp_name .= '<img src="' . $icon_file_url . '" width="' . $width . '" height="' . $height . '" alt="">';
if ($config['cf_use_member_icon'] == 2) {
// 회원아이콘+이름
$tmp_name = $tmp_name . ' ' . $name;
}
} else {
$tmp_name = $tmp_name . " " . $name;
}
} else {
$tmp_name = $tmp_name . ' ' . $name;
}
$tmp_name .= '</a>';
$title_mb_id = '[' . $mb_id . ']';
} else {
if (!$bo_table) {
return $name;
}
$tmp_name = '<a href="' . G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&sca=' . $sca . '&sfl=wr_name,1&stx=' . $name . '" title="' . $name . ' 이름으로 검색" class="sv_guest" onclick="return false;">' . $name . '</a>';
$title_mb_id = '[비회원]';
}
$name = get_text($name);
$email = get_text($email);
$homepage = get_text($homepage);
$str = "<span class=\"sv_wrap\">\n";
$str .= $tmp_name . "\n";
$str2 = "<span class=\"sv\">\n";
if ($mb_id) {
$str2 .= "<a href=\"" . G5_BBS_URL . "/memo_form.php?me_recv_mb_id=" . $mb_id . "\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n";
}
if ($email) {
$str2 .= "<a href=\"" . G5_BBS_URL . "/formmail.php?mb_id=" . $mb_id . "&name=" . urlencode($name) . "&email=" . $email . "\" onclick=\"win_email(this.href); return false;\">메일보내기</a>\n";
}
if ($homepage) {
$str2 .= "<a href=\"" . $homepage . "\" target=\"_blank\">홈페이지</a>\n";
}
if ($mb_id) {
$str2 .= "<a href=\"" . G5_BBS_URL . "/profile.php?mb_id=" . $mb_id . "\" onclick=\"win_profile(this.href); return false;\">자기소개</a>\n";
}
if ($bo_table) {
if ($mb_id) {
$str2 .= "<a href=\"" . G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=mb_id,1&stx=" . $mb_id . "\">아이디로 검색</a>\n";
} else {
$str2 .= "<a href=\"" . G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=wr_name,1&stx=" . $name . "\">이름으로 검색</a>\n";
}
}
if ($mb_id) {
$str2 .= "<a href=\"" . G5_BBS_URL . "/new.php?mb_id=" . $mb_id . "\">전체게시물</a>\n";
}
if ($g5['sms5_use_sideview']) {
$mb = get_member($mb_id, " mb_open, mb_sms , mb_hp ");
if ($mb['mb_open'] && $mb['mb_sms'] && $mb['mb_hp']) {
$str2 .= "<a href=\"" . G5_SMS5_URL . "/?mb_id=" . $mb_id . "\" class=\"win_sms5\" target=\"_blank\">문자보내기</a>\n";
}
}
if ($is_admin == "super" && $mb_id) {
$str2 .= "<a href=\"" . G5_ADMIN_URL . "/member_form.php?w=u&mb_id=" . $mb_id . "\" target=\"_blank\">회원정보변경</a>\n";
$str2 .= "<a href=\"" . G5_ADMIN_URL . "/point_list.php?sfl=mb_id&stx=" . $mb_id . "\" target=\"_blank\">포인트내역</a>\n";
}
$str2 .= "</span>\n";
$str .= $str2;
$str .= "\n<noscript class=\"sv_nojs\">" . $str2 . "</noscript>";
$str .= "</span>";
return $str;
}
示例9: sql_fetch
$sql = "select * from {$g4['point_table']} ";
$sql .= " where mb_id = '{$member['mb_id']}' ";
$sql .= " and po_rel_table = '{$bo_table}' ";
$sql .= " and po_rel_id = '{$wr_id}' ";
$sql .= " and po_rel_action = '링크'";
$tmp = sql_fetch($sql);
if (!$tmp && $member[mb_point] + $mw_basic[cf_link_point] < 0) {
$str = "보유하신 포인트(" . number_format($member[mb_point]) . ")가 없거나 모자라서 ";
$str .= "링크이동(" . number_format($mw_basic[cf_link_point]) . ")이 불가합니다.";
$str .= "\\n\\n포인트를 모으신 후 다시 링크를 클릭해 주십시오.";
alert_close($str);
}
if (!$tmp) {
insert_point($member[mb_id], $mw_basic[cf_link_point], "{$board['bo_subject']} {$wr_id} 링크클릭", $bo_table, $wr_id, '링크');
}
}
$sql = " update {$g4[write_prefix]}{$bo_table} set wr_link{$no}_hit = wr_link{$no}_hit + 1 where wr_id = '{$wr_id}' ";
sql_query($sql);
set_session($ss_name, true);
}
if ($mw_basic[cf_link_log]) {
// 링크 기록
$ll_name = $board[bo_use_name] ? $member[mb_name] : $member[mb_nick];
$sql = "insert into {$mw['link_log_table']}\n set bo_table = '{$bo_table}'\n , wr_id = '{$wr_id}'\n , ll_no = '{$no}'\n , mb_id = '{$member['mb_id']}'\n , ll_name = '{$ll_name}'\n , ll_ip = '{$_SERVER['REMOTE_ADDR']}'\n , ll_datetime = '{$g4['time_ymdhis']}'";
$qry = sql_query($sql);
}
$url = set_http($write["wr_link{$no}"]);
if ($mw_basic['cf_hidden_link'] && $write["wr_hidden_link{$no}"]) {
$url = set_http($write["wr_hidden_link{$no}"]);
}
goto_url($url);
示例10: alert_close
<?php
include_once "./_common.php";
if (!$member[mb_id]) {
alert_close("회원만 이용하실 수 있습니다.");
}
if (!$member[mb_open] && $is_admin != "super" && $member[mb_id] != $mb_id) {
alert_close("자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.");
}
$mb = get_member($mb_id);
if (!$mb[mb_id]) {
alert_close("회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.");
}
if (!$mb[mb_open] && $is_admin != "super" && $member[mb_id] != $mb_id) {
alert_close("정보공개를 하지 않았습니다.");
}
$g4[title] = $mb[mb_nick] . "님의 자기소개";
include_once "{$g4['path']}/head.sub.php";
$mb_nick = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage], $mb[mb_open]);
// 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻
$sql = " select (TO_DAYS('{$g4['time_ymdhis']}') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days ";
$row = sql_fetch($sql);
$mb_reg_after = $row[days];
$mb_homepage = set_http($mb[mb_homepage]);
$mb_profile = $mb[mb_profile] ? conv_content($mb[mb_profile], 0) : "소개 내용이 없습니다.";
echo "<script type='text/javascript' src='{$g4['path']}/js/sideview.js'></script>";
$member_skin_path = "{$g4['path']}/skin/member/{$config['cf_member_skin']}";
include_once "{$member_skin_path}/profile.skin.php";
include_once "{$g4['path']}/tail.sub.php";
示例11: eb_nameview
function eb_nameview($skin_dir, $mb_id, $name = '', $email = '', $homepage = '')
{
global $config;
global $g5;
global $bo_table, $sca, $is_admin, $member, $tpl_name, $tpl, $eyoomer;
// 익명일 경우, 네임뷰
if ($mb_id == 'anonymous') {
$is_anonymous = true;
$head['name'] = get_text($name);
} else {
$following = $eyoomer['following'];
if (!$following) {
$following = array();
}
if (in_array($mb_id, $following)) {
$follow = true;
}
$email = base64_encode($email);
$homepage = set_http(clean_xss_tags($homepage));
$name = preg_replace("/\\'/", "", $name);
$name = preg_replace("/\\'/", "", $name);
$name = preg_replace("/\"/", """, $name);
$name = get_text(cut_str($name, $config['cf_cut_name']));
$title_name = $name;
$tmp_name = "";
if ($mb_id) {
$head['link'] = G5_BBS_URL . '/profile.php?mb_id=' . $mb_id;
if ($config['cf_use_member_icon']) {
$mb_dir = substr($mb_id, 0, 2);
$icon_file = G5_DATA_PATH . '/member/' . $mb_dir . '/' . $mb_id . '.gif';
if (file_exists($icon_file)) {
$width = $config['cf_member_icon_width'];
$height = $config['cf_member_icon_height'];
$icon_file_url = G5_DATA_URL . '/member/' . $mb_dir . '/' . $mb_id . '.gif';
$tmp_name .= '<img src="' . $icon_file_url . '" width="' . $width . '" height="' . $height . '" alt="">';
if ($config['cf_use_member_icon'] == 2) {
// 회원아이콘+이름
$tmp_name = $tmp_name . ' ' . $name;
}
} else {
$tmp_name = $tmp_name . " " . $name;
}
} else {
$tmp_name = $tmp_name . ' ' . $name;
}
$head['name'] = $tmp_name;
$head['title'] = '[' . $mb_id . ']';
} else {
if (!$bo_table) {
return $name;
}
$head['link'] = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&sca=' . $sca . '&sfl=wr_name,1&stx=' . $name;
$head['name'] = $name;
$head['title'] = '[비회원]';
}
$name = get_text($name);
$email = get_text($email);
$homepage = get_text($homepage);
if ($mb_id) {
$link['memo'] = G5_BBS_URL . "/memo_form.php?me_recv_mb_id=" . $mb_id;
$link['profile'] = G5_BBS_URL . "/profile.php?mb_id=" . $mb_id;
$link['article'] = G5_BBS_URL . "/new.php?mb_id=" . $mb_id;
$link['userpage'] = G5_URL . "/?" . $mb_id;
}
if ($email) {
$link['email'] = G5_BBS_URL . "/formmail.php?mb_id=" . $mb_id . "&name=" . urlencode($name) . "&email=" . $email;
}
if ($homepage) {
$link['home'] = $homepage;
}
if ($bo_table) {
if ($mb_id) {
$link['sid'] = G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=mb_id,1&stx=" . $mb_id;
} else {
$link['sname'] = G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=wr_name,1&stx=" . $name;
}
}
if ($g5['sms5_use_sideview']) {
$mb = get_member($mb_id, " mb_open, mb_sms , mb_hp ");
if ($mb['mb_open'] && $mb['mb_sms'] && $mb['mb_hp']) {
$link['sms'] = G5_SMS5_URL . "/?mb_id=" . $mb_id;
}
}
if ($is_admin == "super" && $mb_id) {
$link['info'] = G5_ADMIN_URL . "/member_form.php?w=u&mb_id=" . $mb_id;
$link['point'] = G5_ADMIN_URL . "/point_list.php?sfl=mb_id&stx=" . $mb_id;
}
}
$tpl->define(array('pc' => 'skin_pc/nameview/' . $skin_dir . '/nameview.skin.html', 'mo' => 'skin_mo/nameview/' . $skin_dir . '/nameview.skin.html', 'bs' => 'skin_bs/nameview/' . $skin_dir . '/nameview.skin.html'));
$tpl->assign(array("head" => $head, "link" => $link, "mb_id" => $mb_id, "email" => $email, "home" => $homepage, "bo_table" => $bo_table, "g5" => $g5, "is_admin" => $is_admin, "follow" => $follow, "is_anonymous" => $is_anonymous));
$tpl->print_($tpl_name);
}
示例12: get_sideview
function get_sideview($mb_id, $name = '', $email = '', $homepage = '')
{
global $config;
global $g5;
global $bo_table, $sca, $is_admin, $member;
$email = base64_encode($email);
$homepage = set_http(clean_xss_tags($homepage));
$name = preg_replace("/\\'/", "", $name);
$name = preg_replace("/\\'/", "", $name);
$name = preg_replace("/\"/", """, $name);
$title_name = $name;
$tmp_name = "";
if ($mb_id) {
//$tmp_name = "<a href=\"".G5_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"return false;\">$name</a>";
$tmp_name = '<a href="' . G5_BBS_URL . '/profile.php?mb_id=' . $mb_id . '" class="sv_member" title="' . $name . ' 자기소개" target="_blank" onclick="return false;">';
if ($config['cf_use_member_icon']) {
$mb_dir = substr($mb_id, 0, 2);
$icon_file = G5_DATA_PATH . '/member/' . $mb_dir . '/' . $mb_id . '.gif';
if (file_exists($icon_file)) {
$width = $config['cf_member_icon_width'];
$height = $config['cf_member_icon_height'];
$icon_file_url = G5_DATA_URL . '/member/' . $mb_dir . '/' . $mb_id . '.gif';
$tmp_name .= '<img src="' . $icon_file_url . '" width="' . $width . '" height="' . $height . '" alt="" style="float: left; margin: 3px;">';
if ($config['cf_use_member_icon'] == 2) {
// 회원아이콘+이름
$tmp_name = $tmp_name . ' ' . $name;
}
} else {
$tmp_name = $tmp_name . " " . $name;
}
} else {
$tmp_name = $tmp_name . ' ' . $name;
}
$tmp_name .= '</a>';
$title_mb_id = '[' . $mb_id . ']';
} else {
if (!$bo_table) {
return $name;
}
$tmp_name = '<a href="' . G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&sca=' . $sca . '&sfl=wr_name,1&stx=' . $name . '" title="' . $name . '" class="tooltip-top" onclick="return false;">' . $name . '</a>';
$title_mb_id = '[비회원]';
}
$name = get_text($name);
$email = get_text($email);
$homepage = get_text($homepage);
$str = "<span class=\"sv_wrap\">\n";
$str .= "<div class=\"btn-group\">\n\t <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\">\n\t\t\t" . $tmp_name . "\n\t\t\t<span class=\"caret\"></span>\n\t\t\t</button>\n";
$str2 = "<ul class=\"dropdown-menu\" role=\"menu\">\n";
if ($mb_id) {
$str2 .= "<li><a href=\"" . G5_BBS_URL . "/memo_form.php?me_recv_mb_id=" . $mb_id . "\" onclick=\"win_memo(this.href); return false;\"><i class=\"fa fa-envelope-o fa-fw\"></i> 쪽지보내기</a>\n";
}
if ($email) {
$str2 .= "<li><a href=\"" . G5_BBS_URL . "/formmail.php?mb_id=" . $mb_id . "&name=" . urlencode($name) . "&email=" . $email . "\" onclick=\"win_email(this.href); return false;\"><i class=\"fa fa-mail-forward fa-fw\"></i> 메일보내기</a></li>\n";
}
if ($homepage) {
$str2 .= "<li><a href=\"" . $homepage . "\" target=\"_blank\"><i class=\"fa fa-home fa-fw\"></i> 홈페이지</a></li>\n";
}
if ($mb_id) {
$str2 .= "<li><a href=\"" . G5_BBS_URL . "/profile.php?mb_id=" . $mb_id . "\" onclick=\"win_profile(this.href); return false;\"><i class=\"fa fa-child fa-fw\"></i> 자기소개</a></li>\n";
}
if ($bo_table) {
if ($mb_id) {
$str2 .= "<li><a href=\"" . G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=mb_id,1&stx=" . $mb_id . "\"><i class=\"fa fa-paper-plane-o fa-fw\"></i> 아이디로 검색</a></li>\n";
} else {
$str2 .= "<li><a href=\"" . G5_BBS_URL . "/board.php?bo_table=" . $bo_table . "&sca=" . $sca . "&sfl=wr_name,1&stx=" . $name . "\"><i class=\"fa fa-search-plus fa-fw\"></i> 이름으로 검색</a></li>\n";
}
}
if ($mb_id) {
$str2 .= "<li><a href=\"" . G5_BBS_URL . "/new.php?mb_id=" . $mb_id . "\"><i class=\"fa fa-list-alt fa-fw\"></i> 전체게시물</a></li>\n";
}
if ($g5['sms5_use_sideview']) {
$mb = get_member($mb_id, " mb_open, mb_sms , mb_hp ");
if ($mb['mb_open'] && $mb['mb_sms'] && $mb['mb_hp']) {
$str2 .= "<li><a href=\"" . G5_SMS5_URL . "/?mb_id=" . $mb_id . "\" class=\"win_sms5\" target=\"_blank\"><i class=\"fa fa-paper-plane-o fa-fw\"></i> 문자보내기</a></li>\n";
}
}
if ($is_admin == "super" && $mb_id) {
$str2 .= "<li><a href=\"" . G5_ADMIN_URL . "/member_form.php?w=u&mb_id=" . $mb_id . "\" target=\"_blank\"><i class=\"fa fa-user-secret fa-fw\"></i> 회원정보변경</a></li>\n";
$str2 .= "<li><a href=\"" . G5_ADMIN_URL . "/point_list.php?sfl=mb_id&stx=" . $mb_id . "\" target=\"_blank\"><i class=\"fa fa-money fa-fw\"></i> 포인트내역</a></li>\n";
}
$str2 .= "</ul>\n";
$str .= $str2;
$str .= "\n<noscript class=\"sv_nojs\">" . $str2 . "</noscript>";
$str .= "</div></span>";
return $str;
}
示例13: count
// 쪽지
$memo_not_read = 0;
if ($is_member) {
$sql = " select count(*) as cnt ";
$sql .= " from {$g5['memo_table']} ";
$sql .= " where me_recv_mb_id = '{$member['mb_id']}' ";
$sql .= " and substring(me_read_datetime, 1, 1) = '0' ";
$row = sql_fetch($sql);
$memo_not_read = $row['cnt'];
}
// 현재 메뉴 찾기
$my_url = null;
$menu = null;
$is_sidebar = true;
if (strlen($_SERVER["REQUEST_URI"]) > 1) {
$my_url = set_http($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
$sql = " select * from {$g5['menu_table']} where me_use = '1' order by me_order ";
$qry = sql_query($sql);
while ($row = sql_fetch_array($qry)) {
if (strstr($my_url, $row['me_link']) or strstr($my_url, preg_replace("/\\/b\\/([a-zA-Z0-9-_]+)\$/iUs", "/" . G5_BBS_DIR . "/board.php?bo_table=\$1", $row['me_link'])) or strstr($my_url, preg_replace("/\\/b\\/([a-zA-Z0-9-_]+)\$/iUs", "/" . G5_BBS_DIR . "/write.php?bo_table=\$1", $row['me_link'])) or strstr($my_url, str_replace("board.php", "write.php", $row['me_link']))) {
$menu = $row;
//break;
}
//$menu = sql_fetch(" select * from {$g5['menu_table']} where me_link like '{$my_url}%' limit 1");
}
}
$mw5_menu_extend = null;
if ($menu) {
$mw5_menu_extend = sql_fetch("select * from {$mw5['menu_table']} where me_code = '{$menu['me_code']}' ", false);
if ($mw5_menu_extend['me_no_side']) {
$is_sidebar = false;
示例14: conv_subject
<?php
include_once './_common.php';
$html_title = '링크 > ' . conv_subject($write['wr_subject'], 255);
if (!($bo_table && $wr_id && $no)) {
alert_close('값이 제대로 넘어오지 않았습니다.');
}
// SQL Injection 예방
$row = sql_fetch(" select count(*) as cnt from {$g5['write_prefix']}{$bo_table} ", FALSE);
if (!$row['cnt']) {
alert_close('존재하는 게시판이 아닙니다.');
}
if (!$write['wr_link' . $no]) {
alert_close('링크가 없습니다.');
}
$ss_name = 'ss_link_' . $bo_table . '_' . $wr_id . '_' . $no;
if (empty($_SESSION[$ss_name])) {
$sql = " update {$g5['write_prefix']}{$bo_table} set wr_link{$no}_hit = wr_link{$no}_hit + 1 where wr_id = '{$wr_id}' ";
sql_query($sql);
set_session($ss_name, true);
}
goto_url(set_http($write['wr_link' . $no]));
示例15: shop_member_cert_check
include_once G5_LIB_PATH . '/apms.thema.lib.php';
}
// 본인인증, 성인인증체크
$is_cert = false;
if (!$is_admin) {
$is_cert = shop_member_cert_check($it_id, 'item');
if ($is_cert) {
alert($is_cert, G5_SHOP_URL);
}
}
// 등록자 정보
$author_id = $it['pt_id'] ? $it['pt_id'] : $config['cf_admin'];
$author = apms_member($author_id);
$author_photo = $author['photo'];
if ($author['mb_open']) {
$author['homepage'] = set_http(clean_xss_tags($author['mb_homepage']));
$author['email'] = $author['mb_email'];
} else {
$author['email'] = $author['mb_email'] = '';
$author['homepage'] = $author['mb_homepage'] = '';
}
$author['profile'] = $author['mb_profile'] ? conv_content($author['mb_profile'], 0) : '';
$author['signature'] = $author['mb_signature'] ? apms_content(conv_content($author['mb_signature'], 1)) : '';
// 오늘 본 상품 저장 시작
// tv 는 today view 약자
$saved = false;
$tv_idx = (int) get_session("ss_tv_idx");
if ($tv_idx > 0) {
for ($i = 1; $i <= $tv_idx; $i++) {
if (get_session("ss_tv[{$i}]") == $it_id) {
$saved = true;