当前位置: 首页>>代码示例>>PHP>>正文


PHP conv_subject函数代码示例

本文整理汇总了PHP中conv_subject函数的典型用法代码示例。如果您正苦于以下问题:PHP conv_subject函数的具体用法?PHP conv_subject怎么用?PHP conv_subject使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了conv_subject函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_list

function get_list($write_row, $board, $skin_url, $subject_len = 40)
{
    global $g5, $config;
    global $qstr, $page;
    //$t = get_microtime();
    // 배열전체를 복사
    $list = $write_row;
    unset($write_row);
    $board_notice = array_map('trim', explode(',', $board['bo_notice']));
    $list['is_notice'] = in_array($list['wr_id'], $board_notice);
    if ($subject_len) {
        $list['subject'] = conv_subject($list['wr_subject'], $subject_len, '…');
    } else {
        $list['subject'] = conv_subject($list['wr_subject'], $board['bo_subject_len'], '…');
    }
    // 목록에서 내용 미리보기 사용한 게시판만 내용을 변환함 (속도 향상) : kkal3(커피)님께서 알려주셨습니다.
    if ($board['bo_use_list_content']) {
        $html = 0;
        if (strstr($list['wr_option'], 'html1')) {
            $html = 1;
        } else {
            if (strstr($list['wr_option'], 'html2')) {
                $html = 2;
            }
        }
        $list['content'] = conv_content($list['wr_content'], $html);
    }
    $list['comment_cnt'] = '';
    if ($list['wr_comment']) {
        $list['comment_cnt'] = "<span class=\"cnt_cmt\">" . $list['wr_comment'] . "</span>";
    }
    // 당일인 경우 시간으로 표시함
    $list['datetime'] = substr($list['wr_datetime'], 0, 10);
    $list['datetime2'] = $list['wr_datetime'];
    if ($list['datetime'] == G5_TIME_YMD) {
        $list['datetime2'] = substr($list['datetime2'], 11, 5);
    } else {
        $list['datetime2'] = substr($list['datetime2'], 5, 5);
    }
    // 4.1
    $list['last'] = substr($list['wr_last'], 0, 10);
    $list['last2'] = $list['wr_last'];
    if ($list['last'] == G5_TIME_YMD) {
        $list['last2'] = substr($list['last2'], 11, 5);
    } else {
        $list['last2'] = substr($list['last2'], 5, 5);
    }
    $list['wr_homepage'] = get_text(addslashes($list['wr_homepage']));
    $tmp_name = get_text(cut_str($list['wr_name'], $config['cf_cut_name']));
    // 설정된 자리수 만큼만 이름 출력
    if ($board['bo_use_sideview']) {
        $list['name'] = get_sideview($list['mb_id'], $tmp_name, $list['wr_email'], $list['wr_homepage']);
    } else {
        $list['name'] = '<span class="' . ($list['mb_id'] ? 'sv_member' : 'sv_guest') . '">' . $tmp_name . '</span>';
    }
    $reply = $list['wr_reply'];
    $list['reply'] = strlen($reply) * 10;
    $list['icon_reply'] = '';
    if ($list['reply']) {
        $list['icon_reply'] = '<img src="' . $skin_url . '/img/icon_reply.gif" style="margin-left:' . $list['reply'] . 'px;" alt="답변글">';
    }
    $list['icon_link'] = '';
    if ($list['wr_link1'] || $list['wr_link2']) {
        $list['icon_link'] = '<img src="' . $skin_url . '/img/icon_link.gif" alt="관련링크">';
    }
    // 분류명 링크
    $list['ca_name_href'] = G5_BBS_URL . '/board.php?bo_table=' . $board['bo_table'] . '&amp;sca=' . urlencode($list['ca_name']);
    $list['href'] = G5_BBS_URL . '/board.php?bo_table=' . $board['bo_table'] . '&amp;wr_id=' . $list['wr_id'] . $qstr;
    $list['comment_href'] = $list['href'];
    $list['icon_new'] = '';
    if ($board['bo_new'] && $list['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $board['bo_new'] * 3600)) {
        $list['icon_new'] = '<img src="' . $skin_url . '/img/icon_new.gif" alt="새글">';
    }
    $list['icon_hot'] = '';
    if ($board['bo_hot'] && $list['wr_hit'] >= $board['bo_hot']) {
        $list['icon_hot'] = '<img src="' . $skin_url . '/img/icon_hot.gif" alt="인기글">';
    }
    $list['icon_secret'] = '';
    if (strstr($list['wr_option'], 'secret')) {
        $list['icon_secret'] = '<img src="' . $skin_url . '/img/icon_secret.gif" alt="비밀글">';
    }
    // 링크
    for ($i = 1; $i <= G5_LINK_COUNT; $i++) {
        $list['link'][$i] = set_http(get_text($list["wr_link{$i}"]));
        $list['link_href'][$i] = G5_BBS_URL . '/link.php?bo_table=' . $board['bo_table'] . '&amp;wr_id=' . $list['wr_id'] . '&amp;no=' . $i . $qstr;
        $list['link_hit'][$i] = (int) $list["wr_link{$i}_hit"];
    }
    // 가변 파일
    if ($board['bo_use_list_file'] || $list['wr_file'] && $subject_len == 255) {
        $list['file'] = get_file($board['bo_table'], $list['wr_id']);
    } else {
        $list['file']['count'] = $list['wr_file'];
    }
    if ($list['file']['count']) {
        $list['icon_file'] = '<img src="' . $skin_url . '/img/icon_file.gif" alt="첨부파일">';
    }
    return $list;
}
开发者ID:sungkyuchun,项目名称:gnuboard5,代码行数:98,代码来源:common.lib.php

示例2: get_name_title

 }
 $ca_color_style = '';
 if ($ca_color) {
     $ca_color_style = " style='color:#{$ca_color}' ";
 }
 // 댓글감춤
 if ($list[$i][wr_comment_hide]) {
     $list[$i][comment_cnt] = 0;
 }
 // 호칭
 $list[$i][name] = get_name_title($list[$i][name], $list[$i][wr_name]);
 $list[$i][name] = mw_sideview($list[$i][name]);
 $list[$i]['subject'] = $list[$i]['wr_subject'];
 $list[$i]['subject'] = mw_reg_str($list[$i]['subject']);
 $list[$i]['subject'] = bc_code($list[$i]['subject'], 0);
 $list[$i]['subject'] = conv_subject($list[$i]['subject'], $board['bo_subject_len'], "…");
 if (strstr($sfl, 'subject')) {
     $list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
 }
 // 멤버쉽 아이콘
 if (function_exists("mw_cash_membership_icon") && $list[$i][mb_id] != $config[cf_admin]) {
     if (!in_array($list[$i][mb_id], $mw_membership)) {
         $mw_membership[] = $list[$i][mb_id];
         $mw_membership_icon[$list[$i][mb_id]] = mw_cash_membership_icon($list[$i][mb_id]);
         $list[$i][name] = $mw_membership_icon[$list[$i][mb_id]] . $list[$i][name];
     } else {
         $list[$i][name] = $mw_membership_icon[$list[$i][mb_id]] . $list[$i][name];
     }
     $list_run_time = mw_time_log($list_run_time, "[list] mw_cash_membership_icon()");
 }
 // 익명
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:31,代码来源:list.skin.php

示例3: conv_subject

<?php

include_once './_common.php';
$html_title = '링크 &gt; ' . 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]));
开发者ID:davis00,项目名称:test,代码行数:22,代码来源:link.php

示例4: sql_query

    $list[$i] = $row;
    $loop =& $list[$i]['data'];
    if (!$orderby) {
        $orderby = " bn_datetime desc ";
    }
    $sql2 = "select * from {$g5['eyoom_new']} where bo_table='{$row['bo_table']}' and wr_id = wr_parent order by {$orderby} limit 7";
    $res = sql_query($sql2, false);
    for ($k = 0; $row2 = sql_fetch_array($res); $k++) {
        $loop[$k] = $row2;
        // new 표시
        if ($row2['bn_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - 24 * 3600)) {
            $loop[$k]['new'] = true;
        }
        if (!$row2['wr_subject']) {
            $loop[$k]['wr_subject'] = conv_subject($row2['wr_content'], 30, '…');
            $loop[$k]['href'] = G5_BBS_URL . "/board.php?bo_table={$row2['bo_table']}&amp;wr_id={$row2['wr_id']}#c_{$row['wr_id']}";
        } else {
            $loop[$k]['wr_subject'] = conv_subject($row2['wr_subject'], 30, '…');
            $loop[$k]['wr_content'] = conv_subject($row2['wr_content'], 30, '…');
            $loop[$k]['href'] = G5_BBS_URL . "/board.php?bo_table={$row2['bo_table']}&amp;wr_id={$row2['wr_parent']}";
        }
        $loop[$k]['datetime'] = $row2['bn_datetime'];
    }
}
// Template define
$tpl->define_template('board', $eyoom['board_skin'], 'group.skin.html');
// Template assign
@(include EYOOM_INC_PATH . '/tpl.assign.php');
$tpl->print_($tpl_name);
// 이윰 테일 디자인 출력
@(include_once EYOOM_PATH . '/tail.php');
开发者ID:l2zeo,项目名称:eyoom_builder-1,代码行数:31,代码来源:group.php

示例5: cut_str

    echo cut_str($row['bo_subject'], 20);
    ?>
</a></td>
            <td><a href="<?php 
    echo G5_BBS_URL;
    ?>
/board.php?bo_table=<?php 
    echo $row['bo_table'];
    ?>
&amp;wr_id=<?php 
    echo $row2['wr_id'];
    echo $comment_link;
    ?>
"><?php 
    echo $comment;
    echo conv_subject($row2['wr_subject'], 100);
    ?>
</a></td>
            <td class="td_mbname"><div><?php 
    echo $name;
    ?>
</div></td>
            <td class="td_datetime"><?php 
    echo $datetime;
    ?>
</td>
        </tr>

        <?php 
}
if ($i == 0) {
开发者ID:davis00,项目名称:youngcart,代码行数:31,代码来源:index.php

示例6: hyphen_hp_number

if ($iq['iq_hp']) {
    ?>
    <tr>
        <th scope="row">휴대폰</th>
        <td><?php 
    echo hyphen_hp_number($iq['iq_hp']);
    ?>
</td>
    </tr>
    <?php 
}
?>
    <tr>
        <th scope="row"><label for="iq_subject">제목</label></th>
        <td><input type="text" name="iq_subject" value="<?php 
echo conv_subject($iq['iq_subject'], 120);
?>
" id="iq_subject" required class="frm_input required" size="95"></td>
    </tr>
    <tr>
        <th scope="row"><label for="iq_question">질문</label></th>
        <td><?php 
echo editor_html('iq_question', get_text($iq['iq_question'], 0));
?>
</td>
    </tr>
    <tr>
        <th scope="row"><label for="iq_answer">답변</label></th>
        <td><?php 
echo editor_html('iq_answer', get_text($iq['iq_answer'], 0));
?>
开发者ID:davis00,项目名称:youngcart,代码行数:31,代码来源:itemqaform.php

示例7: alert

    } else {
        if ($board[bo_download_level] > 1) {
            // 다운로드 포인트가 음수이고 회원의 포인트가 0 이거나 작다면
            if ($member[mb_point] + $board[bo_download_point] < 0) {
                alert("보유하신 포인트(" . number_format($member[mb_point]) . ")가 없거나 모자라서 다운로드(" . number_format($board[bo_download_point]) . ")가 불가합니다.\\n\\n포인트를 적립하신 후 다시 다운로드 해 주십시오.");
            }
            // 게시물당 한번만 차감하도록 수정
            insert_point($member[mb_id], $board[bo_download_point], "{$board['bo_subject']} {$wr_id} 파일 다운로드", $bo_table, $wr_id, "다운로드");
        }
    }
    // 다운로드 카운트 증가
    $sql = " update {$g4['board_file_table']} set bf_download = bf_download + 1 where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '{$no}' ";
    sql_query($sql);
    set_session($ss_name, TRUE);
}
$g4[title] = "{$group['gr_subject']} > {$board['bo_subject']} > " . conv_subject($write[wr_subject], 255) . " > 다운로드";
if (preg_match("/^utf/i", $g4[charset])) {
    $original = urlencode($file[bf_source]);
} else {
    $original = $file[bf_source];
}
@(include_once "{$board_skin_path}/download.tail.skin.php");
if (preg_match("/msie/i", $_SERVER[HTTP_USER_AGENT]) && preg_match("/5\\.5/", $_SERVER[HTTP_USER_AGENT])) {
    header("content-type: doesn/matter");
    header("content-length: " . filesize("{$filepath}"));
    header("content-disposition: attachment; filename=\"{$original}\"");
    header("content-transfer-encoding: binary");
} else {
    header("content-type: file/unknown");
    header("content-length: " . filesize("{$filepath}"));
    header("content-disposition: attachment; filename=\"{$original}\"");
开发者ID:ragi79,项目名称:g4dtd,代码行数:31,代码来源:download.php

示例8: conv_subject

        <td><img src="<?php 
echo G5_URL;
?>
/shop/img/s_star<?php 
echo $is['is_score'];
?>
.png"> (<?php 
echo $is['is_score'];
?>
점)</td>
    </tr>
    <tr>
        <th scope="row"><label for="is_subject">제목</label></th>
        <td><input type="text" name="is_subject" required class="required frm_input" id="is_subject" size="100"
        value='<?php 
echo conv_subject($is['is_subject'], 120);
?>
'></td>
    </tr>
    <tr>
        <th scope="row">내용</th>
        <td><?php 
echo editor_html('is_content', get_text($is['is_content'], 0));
?>
</td>
    </tr>
    <tr>
        <th scope="row">확인</th>
        <td>
            <input type="radio" name="is_confirm" value="1" id="is_confirm_yes" <?php 
echo $is_confirm_yes;
开发者ID:ned3y2k,项目名称:youngcart5,代码行数:31,代码来源:itemuseform.php

示例9: mw_latest_mobile

function mw_latest_mobile($skin_dir = "", $bo_tables, $rows = 10, $subject_len = 50, $is_img = 0, $minute = 0)
{
    global $g4, $mw, $mw_mobile;
    if (preg_match('#^theme/(.+)$#', $skin_dir, $match)) {
        if (G5_IS_MOBILE) {
            $latest_skin_path = G5_THEME_MOBILE_PATH . '/' . G5_SKIN_DIR . '/latest/' . $match[1];
            if (!is_dir($latest_skin_path)) {
                $latest_skin_path = G5_THEME_PATH . '/' . G5_SKIN_DIR . '/latest/' . $match[1];
            }
            $latest_skin_url = str_replace(G5_PATH, G5_URL, $latest_skin_path);
        } else {
            $latest_skin_path = G5_THEME_PATH . '/' . G5_SKIN_DIR . '/latest/' . $match[1];
            $latest_skin_url = str_replace(G5_PATH, G5_URL, $latest_skin_path);
        }
        $skin_dir = $match[1];
    } else {
        if (G5_IS_MOBILE) {
            $latest_skin_path = G5_MOBILE_PATH . '/' . G5_SKIN_DIR . '/latest/' . $skin_dir;
            $latest_skin_url = G5_MOBILE_URL . '/' . G5_SKIN_DIR . '/latest/' . $skin_dir;
        } else {
            $latest_skin_path = G5_SKIN_PATH . '/latest/' . $skin_dir;
            $latest_skin_url = G5_SKIN_URL . '/latest/' . $skin_dir;
        }
    }
    $tmp_tables = explode(",", $bo_tables);
    $bo_tables = array();
    for ($i = 0, $j = 0; $i < count($tmp_tables); $i++) {
        $tmp_tables[$i] = trim($tmp_tables[$i]);
        if (!$tmp_tables[$i]) {
            continue;
        }
        $bo_tables[$j++] = $tmp_tables[$i];
    }
    $sql_tables = implode("','", $bo_tables);
    $file_tables = implode("-", $bo_tables);
    $file_tables = str_replace(":rand", "", $file_tables);
    $tab = null;
    $cache_file_tab = $g4['path'] . "/data/mw.cache/latest-mobile-{$file_tables}-list-{$rows}-{$is_img}-{$subject_len}";
    if (function_exists("mw_cache_read")) {
        //$tab = mw_cache_read($cache_file_tab, $minute);
    }
    $table_list = $bo_tables;
    $tmp_list = array();
    for ($i = 0; $i < count($bo_tables); $i++) {
        $tmp = explode(":", $bo_tables[$i]);
        $bo_table = $tmp[0];
        $tmp_list[] = $bo_table;
    }
    $bo_tables = $tmp_list;
    if (!$tab) {
        $tab = array();
        for ($i = 0; $i < count($table_list); $i++) {
            $list = array();
            $file = array();
            $is_rand = false;
            $tmp = explode(":", $table_list[$i]);
            $bo_table = $tmp[0];
            if ($tmp[1] == "rand") {
                $is_rand = true;
            }
            $tmp_write_table = $g4['write_prefix'] . $bo_table;
            $board = sql_fetch("select * from {$g4['board_table']} where bo_table = '{$bo_table}'");
            if ($is_img) {
                $file = mw_mobile_get_thumb($bo_table, $is_img, $is_rand);
                for ($k = 0, $m = count($file); $k < $m; ++$k) {
                    $sql = "select * ";
                    $sql .= "  from {$g4['write_prefix']}{$file[$k]['bo_table']} ";
                    $sql .= " where wr_id = '{$file[$k]['wr_id']}'";
                    $row = sql_fetch($sql);
                    $row['wr_subject'] = mw_counting_str($row['wr_subject']);
                    if (function_exists("mw_get_list")) {
                        $row = mw_get_list($row, $board, $latest_skin_path, $subject_len);
                    } else {
                        $row = get_list($row, $board, $latest_skin_path, $subject_len);
                    }
                    if ($row['wr_view_block']) {
                        $row['wr_subject'] = "보기가 차단된 게시물입니다.";
                    }
                    if ($row['wr_view_block']) {
                        $file[$k]['path'] = $latest_skin_url . "/img/lock.png";
                    }
                    if ($row['icon_secret']) {
                        $file[$k]['path'] = $latest_skin_url . "/img/lock.png";
                    }
                    if ($row['wr_key_password']) {
                        $file[$k]['path'] = $latest_skin_url . "/img/lock.png";
                    }
                    if ($row['wr_singo_lock']) {
                        $file[$k]['path'] = $latest_skin_url . "/img/lock.png";
                    }
                    $file[$k]['subject'] = conv_subject($row['wr_subject'], $subject_len, "…");
                    $file[$k]['wr_comment'] = $row['wr_comment'];
                    $file[$k]['wr_link1'] = $row['wr_link1'];
                }
                if (count($file) < $is_img) {
                    for ($j = count($file); $j < $is_img; $j++) {
                        $file[$j]['path'] = $latest_skin_url . "/img/noimage.gif";
                        $file[$j]['subject'] = "...";
                        $file[$j]['href'] = "#";
                    }
//.........这里部分代码省略.........
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:101,代码来源:mw.latest.mobile.lib.php

示例10: conv_subject

	<input type="hidden" name="ca_id" value="<?php 
echo $ca_id;
?>
">
	<input type="hidden" name="qrows" value="<?php 
echo $qrows;
?>
">
	<input type="hidden" name="page" value="<?php 
echo $page;
?>
">

	<div class="panel panel-default">
		<div class="panel-heading"><h4><i class="fa fa-question-circle fa-lg"></i> <?php 
echo conv_subject($qa['iq_subject'], 120);
?>
</h4></div>
		<div class="panel-body">
			<p class="text-muted">
				<i class="fa fa-user"></i> <?php 
echo $qa['name'];
?>
				<?php 
if ($qa['iq_email']) {
    ?>
					&nbsp; &nbsp;
					<i class="fa fa-envelope"></i> <?php 
    echo get_text($qa['iq_email']);
    ?>
				<?php 
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:itemqansform.skin.php

示例11: strip_tags

        }
    }
    $switcher = $_switcher[$theme];
}
// SNS용 이미지/제목/내용 추가 메타태그
if ($bo_table && $wr_id || $it_id) {
    if ($bo_table && $wr_id) {
        $head_title = strip_tags(conv_subject($write['wr_subject'], 255)) . ' > ' . $board['bo_subject'] . ' | ' . $config['cf_title'];
        $first_image = get_list_thumbnail($bo_table, $wr_id, 600, 0);
        $sns_image = $first_image['src'];
        $target_url = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id;
        $contents = cut_str(trim(str_replace(array("\r\n", "\r", "\n"), '', strip_tags(preg_replace("/\\?/", "", $write['wr_content'])))), 200, '…');
    }
    if ($it_id) {
        $sitem = sql_fetch("select * from {$g5['g5_shop_item_table']} where it_id = '" . $it_id . "'");
        $head_title = strip_tags(conv_subject($sitem['it_name'], 255)) . ' | ' . $config['cf_title'];
        $sns_image = G5_DATA_URL . '/item/' . $sitem['it_img1'];
        $target_url = G5_SHOP_URL . '/item.php?it_id=' . $it_id;
        $contents = cut_str(trim(str_replace(array("\r\n", "\r", "\n"), '', strip_tags(preg_replace("/\\?/", "", $sitem['it_explan'])))), 200, '…');
    }
    $config['cf_add_meta'] .= '
			<meta property="og:id" content="' . G5_URL . '" />
			<meta property="og:url" content="' . $target_url . '" />
			<meta property="og:type" content="article" />
			<meta property="og:title" content="' . preg_replace('/"/', '', $head_title) . '" />
			<meta property="og:site_name" content="' . $config['cf_title'] . '" />
			<meta property="og:description" content="' . $contents . '"/>
			<meta property="og:image" content="' . $sns_image . '" />
		';
}
// Eyoom Core Path
开发者ID:eyoom,项目名称:eyoom_builder,代码行数:31,代码来源:common.php

示例12: alert

        } else {
            if ($is_guest && $board['bo_read_level'] == 1 && $write['wr_ip'] == $_SERVER['REMOTE_ADDR']) {
                // 비회원이면서 읽기레벨이 1이고 등록된 아이피가 같다면 자신의 글이므로 통과
            } else {
                // 글읽기 포인트가 설정되어 있다면
                if ($config['cf_use_point'] && $board['bo_read_point'] && $member['mb_point'] + $board['bo_read_point'] < 0) {
                    alert('보유하신 포인트(' . number_format($member['mb_point']) . ')가 없거나 모자라서 글읽기(' . number_format($board['bo_read_point']) . ')가 불가합니다.\\n\\n포인트를 모으신 후 다시 글읽기 해 주십시오.');
                }
                insert_point($member['mb_id'], $board['bo_read_point'], (G5_IS_MOBILE && $board['bo_mobile_subject'] ? $board['bo_mobile_subject'] : $board['bo_subject']) . ' ' . $wr_id . ' 글읽기', $bo_table, $wr_id, '읽기');
            }
        }
        set_session($ss_name, TRUE);
    }
    $is_seometa = 'view';
    //SEO
    $g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255)) . " > " . (G5_IS_MOBILE && $board['bo_mobile_subject'] ? $board['bo_mobile_subject'] : $board['bo_subject']);
} else {
    if ($member['mb_level'] < $board['bo_list_level']) {
        if ($member['mb_id']) {
            alert('목록을 볼 권한이 없습니다.', G5_URL);
        } else {
            alert('목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?' . $qstr . '&url=' . urlencode(G5_BBS_URL . '/board.php?bo_table=' . $bo_table . ($qstr ? '&amp;' : '')));
        }
    }
    // 본인확인을 사용한다면
    if ($config['cf_cert_use'] && !$is_admin) {
        // 인증된 회원만 가능
        if ($board['bo_use_cert'] != '' && $is_guest) {
            alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id=' . $wr_id . $qstr . '&amp;url=' . urlencode(G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id . $qstr));
        }
        if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) {
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:board.php

示例13: sql_query

if ($page == "") {
    $page = 1;
}
// 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows;
// 시작 열을 구함
$sql = "select *\n        {$sql_common}\n        {$sql_search}\n        {$sql_order}\n        limit {$from_record}, {$rows} ";
$qry = sql_query($sql);
$list = array();
for ($i = 0; $row = sql_fetch_array($qry); ++$i) {
    $list[$i] = mw_moa_row($row);
    $row2 = sql_fetch("select wr_subject from {$g4['write_prefix']}{$row['bo_table']} where wr_id = '{$row['wr_parent']}'", false);
    if (!$row2) {
        $list[$i]['msg'] = "삭제되었습니다.";
    }
    $list[$i]['subject'] = conv_subject($row2['wr_subject'], 30, "…");
    if (function_exists("mw_builder_reg_str")) {
        $list[$i]['subject'] = mw_builder_reg_str($list[$i]['subject']);
    } else {
        if ($member['mb_id']) {
            $list[$i]['subject'] = str_replace("{닉네임}", $member['mb_nick'], $list[$i]['subject']);
            $list[$i]['subject'] = str_replace("{별명}", $member['mb_nick'], $list[$i]['subject']);
        } else {
            $list[$i]['subject'] = str_replace("{닉네임}", "회원", $list[$i]['subject']);
            $list[$i]['subject'] = str_replace("{별명}", "회원", $list[$i]['subject']);
        }
    }
    $board = sql_fetch("select bo_subject from {$g4['board_table']} where bo_table = '{$row['bo_table']}' ");
    $list[$i]['msg'] = preg_replace("/^/", "<span class='board'>{$board['bo_subject']}</span> 게시판에 ", $list[$i]['msg']);
    $list[$i]['msg'] = preg_replace("/게시물에/", "게시물 '<span class='subject'>{$list[$i]['subject']}</span>' 에", $list[$i]['msg']);
}
开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:31,代码来源:index.php

示例14: ceil

if (!$page_rows) {
    $page_rows = $config['cf_page_rows'];
}
$total_page = ceil($total_count / $page_rows);
// 전체 페이지 계산
$from_record = ($page - 1) * $page_rows;
// 시작 열을 구함
$sql = "select * {$sql_common} {$sql_order} limit {$from_record}, {$page_rows}";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $list[$i] = $row;
    if (preg_match('/secret/', $row['wr_option']) && ($is_member && !$is_admin && $member['mb_id'] != $row['mb_id'] || !$is_member)) {
        $list[$i]['wr_subject'] = '비밀글입니다.';
        $list[$i]['wr_content'] = '비밀글입니다.';
    } else {
        $list[$i]['wr_subject'] = conv_subject($row['wr_subject'], 100, '…');
        $list[$i]['wr_content'] = cut_str(stripcslashes($row['wr_content']), 300, '…');
        // 옵션으로 이미지 가져오기
        $latest->img_width = 500;
        $latest->img_height = 0;
        $list[$i]['image'] = $latest->latest_image($row, 'n');
    }
    $list[$i]['href'] = G5_BBS_URL . "/board.php?bo_table={$row['bo_table']}&amp;wr_id={$row['wr_id']}";
    $list[$i]['wr_hit'] = $row['wr_hit'];
    $list[$i]['datetime'] = $row['tw_datetime'];
    $wr_1 = $row['wr_1'];
    // new 표시
    if ($list[$i]['datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - 2 * 3600)) {
        $list[$i]['new'] = true;
    }
    // 레벨정보
开发者ID:eyoom,项目名称:eyoom_builder,代码行数:31,代码来源:index.skin.php

示例15: sql_fetch

        $comment = "[코] ";
        $comment_link = "#c_{$row[wr_id]}";
        $row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' ");
        $row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
        $name = get_sideview($row3['mb_id'], cut_str($row3['wr_name'], $config['cf_cut_name']), $row3['wr_email'], $row3['wr_homepage']);
        // 당일인 경우 시간으로 표시함
        $datetime = substr($row3['wr_datetime'], 0, 10);
        $datetime2 = $row3['wr_datetime'];
        if ($datetime == $g4['time_ymd']) {
            $datetime2 = substr($datetime2, 11, 5);
        } else {
            $datetime2 = substr($datetime2, 5, 5);
        }
    }
    $list = $i % 2;
    echo "\n    <tr class='list{$list} col1 ht center'>\n        <td class='small'><a href='{$g4['bbs_path']}/new.php?gr_id={$row['gr_id']}'>" . cut_str($row['gr_subject'], 10) . "</a></td>\n        <td class='small'><a href='{$g4['bbs_path']}/board.php?bo_table={$row['bo_table']}'>" . cut_str($row['bo_subject'], 20) . "</a></td>\n        <td align='left' style='word-break:break-all;'>&nbsp;<a href='{$g4['bbs_path']}/board.php?bo_table={$row['bo_table']}&amp;wr_id={$row2['wr_id']}{$comment_link}'>{$comment}" . conv_subject($row2['wr_subject'], 100) . "</a></td>\n        <td>{$name}</td>\n        <td>{$datetime}</td>\n    </tr> ";
}
if ($i == 0) {
    echo "<tr><td colspan='{$colspan}' class='nodata'>자료가 없습니다.</td></tr>";
}
echo "</tbody>";
echo "</table>";
?>



<?php 
$sql_common = " from {$g4['point_table']} ";
$sql_search = " where (1) ";
$sql_order = " order by po_id desc ";
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
开发者ID:ragi79,项目名称:g4dtd,代码行数:31,代码来源:index.php


注:本文中的conv_subject函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。