Esempio n. 1
0
    <input type="hidden" name="bo_table" value="<?php 
echo $bo_table;
?>
"/>
    <input type="hidden" name="wr_id" value="<?php 
echo $wr_id;
?>
"/>
    <textarea name="me_memo" style="width:100%; height:70px">아래 프로그램을 다운로드 받으신 분께 전송하는 쪽지입니다.

  제목 : <?php 
echo get_text($write[wr_subject]);
?>

  주소 : <?php 
echo mw_seo_url($bo_table, $wr_id);
?>
</textarea>
    <input type="submit" value="전송"/>
    </form>
</div>

<!--
<input type="button" value="목     록" onclick="location.href='mw.download.log.php?bo_table=<?php 
echo $bo_table;
?>
&wr_id=<?php 
echo $wr_id;
?>
&<?php 
echo $qstr;
Esempio n. 2
0
function mw_latest_comment($limit = 5)
{
    global $g5;
    global $member;
    ob_start();
    echo "<div class=\"latest_comment\">\n";
    echo "<h2><a href=\"" . G5_BBS_URL . "/new.php\">최신댓글</a></h2>\n";
    echo "<ul>\n";
    $board_list = array();
    $sql = "select bo_table from {$g5['board_table']} where bo_use_search = '1' and bo_list_level <= {$member['mb_level']} ";
    $qry = sql_query($sql);
    while ($row = sql_fetch_array($qry)) {
        $board_list[] = $row['bo_table'];
    }
    $board_list = implode("','", $board_list);
    $sql = " select * from {$g5['board_new_table']} ";
    $sql .= "  where bo_table in ('{$board_list}') ";
    $sql .= "    and wr_id != wr_parent ";
    $sql .= "    and mb_id != '@lucky-writing' ";
    $sql .= "  order by bn_datetime desc limit {$limit}";
    $qry = sql_query($sql);
    $c = 0;
    while ($row = sql_fetch_array($qry)) {
        if (function_exists("mw_seo_url")) {
            $href = mw_seo_url($row['bo_table'], $row['wr_parent'], "#c_" . $row['wr_id']);
        } else {
            $href = G5_BBS_URL . "/board.php?bo_table={$row['bo_table']}&wr_id={$row['wr_parent']}#c_{$row['wr_id']}";
        }
        $sql = " select wr_option, wr_content, wr_comment, mb_id ";
        $sql .= "   from {$g5['write_prefix']}{$row['bo_table']} ";
        $sql .= "  where wr_id = '{$row['wr_id']}' ";
        $ro2 = sql_fetch($sql);
        $ro3 = sql_fetch("select bo_subject, bo_new from {$g5['board_table']} where bo_table = '{$row['bo_table']}' ");
        $content = $ro2['wr_content'];
        $content = htmlspecialchars($content);
        $content = cut_str($content, 100);
        //$content = addslashes($content);
        $class = "";
        if ($ro3['bo_new'] && $row['bn_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $ro3['bo_new'] * 3600)) {
            $class .= " new ";
        }
        if (strstr($ro2['wr_option'], 'secret')) {
            $class .= "secret";
            $content = "비밀글입니다.";
        }
        echo "<li class=\"{$class}\">";
        echo "<a href=\"{$href}\">";
        echo "{$content}";
        echo "</a>";
        echo "</li>\n";
        ++$c;
    }
    for ($i = $c; $i < $limit; ++$i) {
        echo "<li>&nbsp;</li>";
    }
    echo "</ul>";
    echo "</div>";
    return ob_get_clean();
}
Esempio n. 3
0
            $next = sql_fetch($sql);
        }
    }
    // 이전글 링크
    $prev_href = "";
    if ($prev['wr_id']) {
        $prev_wr_subject = get_text(cut_str($prev['wr_subject'], 255));
        //$prev_href = "./board.php?bo_table={$board['bo_table']}&wr_id={$prev['wr_id']}&page=$page" . $qstr;
        $prev_href = mw_seo_url($board['bo_table'], $prev['wr_id'], "&page={$page}" . $qstr);
    }
    // 다음글 링크
    $next_href = "";
    if ($next['wr_id']) {
        $next_wr_subject = get_text(cut_str($next['wr_subject'], 255));
        //$next_href = "./board.php?bo_table={$board['bo_table']}&wr_id={$next['wr_id']}&page=$page" . $qstr;
        $next_href = mw_seo_url($board['bo_table'], $next['wr_id'], "&page={$page}" . $qstr);
    }
    $basic_run_time = mw_time_log($basic_run_time, "[basic] 1:1");
}
// 썸네일 경로
$file_path = "{$g4['path']}/data/file/{$board['bo_table']}";
$thumb_path = "{$file_path}/thumbnail";
$thumb2_path = "{$file_path}/thumbnail2";
$thumb3_path = "{$file_path}/thumbnail3";
$thumb4_path = "{$file_path}/thumbnail4";
$thumb5_path = "{$file_path}/thumbnail5";
mw_mkdir($file_path);
mw_mkdir($thumb_path);
mw_mkdir($thumb2_path);
mw_mkdir($thumb3_path);
mw_mkdir($thumb4_path);
Esempio n. 4
0
function mw_moa_row($row)
{
    global $g4, $mw_moa_table, $mw_moa_path, $member, $comment_image_path, $mw, $now_path;
    $comment_image_path_now = str_replace($g4['path'], $now_path, $comment_image_path);
    $mw_moa_path_now = str_replace($g4['path'], $now_path, $mw_moa_path);
    if ($row['wr_mb_id'] == '@anonymous') {
        $wr_mb = '익명';
    } else {
        $mb = get_member($row['wr_mb_id'], "mb_id, mb_name, mb_nick, mb_email, mb_homepage");
        $wr_mb = $mb['mb_nick'];
    }
    if ($row['re_mb_id'] == '@anonymous') {
        $re_mb = '익명';
    } else {
        $mb = get_member($row['re_mb_id'], "mb_id, mb_name, mb_nick, mb_email, mb_homepage");
        $re_mb = $mb['mb_nick'];
    }
    if ($row['wr_mb_id'] == $row['re_mb_id'] and $row['wr_mb_id'] == '@anonymous') {
        $name = "<span class='name'>익명</span>";
    } elseif ($row['wr_mb_id'] == $member['mb_id']) {
        $name = "<span class='name'>회원</span>님";
    } elseif ($row['wr_mb_id'] == $row['re_mb_id']) {
        $name = "<span class='name'>본인</span>";
    } else {
        $name = "<span class='name'>{$wr_mb}</span>님";
    }
    if ($row['mo_work'] == 'r') {
        $row['href'] = "{$g4['url']}/{$g4['bbs']}/board.php?bo_table={$row['bo_table']}&wr_id={$row['wr_id']}";
        if (function_exists("mw_seo_url")) {
            $row['href'] = mw_seo_url($row['bo_table'], $row['wr_id']);
        }
        $row['msg'] = "<span class='name'>{$re_mb}</span> 회원님이 {$name}의 게시물에 답글을 남겼습니다.";
    } elseif ($row['mo_work'] == 'c') {
        $row['href'] = "{$g4['url']}/{$g4['bbs']}/board.php?bo_table={$row['bo_table']}&wr_id={$row['wr_parent']}#c_{$row['wr_id']}";
        if (function_exists("mw_seo_url")) {
            $row['href'] = mw_seo_url($row['bo_table'], $row['wr_parent'], "#c_" . $row['wr_id']);
        }
        $row['msg'] = "<span class='name'>{$re_mb}</span> 회원님이 {$name}의 게시물에 댓글을 남겼습니다.";
    } elseif ($row['mo_work'] == 'm') {
        $row['href'] = "{$g4['url']}/{$g4['bbs']}/board.php?bo_table={$row['bo_table']}&wr_id={$row['wr_parent']}";
        if (function_exists("mw_seo_url")) {
            $row['href'] = mw_seo_url($row['bo_table'], $row['wr_parent']);
        }
        if ($row['wr_parent'] != $row['wr_id']) {
            $row['href'] .= "#c_" . $row['wr_id'];
        }
        $row['msg'] = "<span class='name'>{$re_mb}</span> 님이 회원님을 언급하셨습니다.";
    } elseif ($row['mo_work'] == 'a') {
        $row['href'] = "{$g4['url']}/{$g4['bbs']}/board.php?bo_table={$row['bo_table']}&wr_id={$row['wr_parent']}";
        if (function_exists("mw_seo_url")) {
            $row['href'] = mw_seo_url($row['bo_table'], $row['wr_parent']);
        }
        if ($row['wr_parent'] != $row['wr_id']) {
            $row['href'] .= "#c_" . $row['wr_id'];
        }
        $row['msg'] = "<span class='name'>{$re_mb}</span> 님이 회원님의 답변을 채택했습니다.";
    }
    // 그룹별 서브도메인 접속
    if (function_exists("mw_sub_domain_url")) {
        $board = sql_fetch("select * from {$g4['board_table']} where bo_table = '{$row['bo_table']}'");
        $group = sql_fetch("select * from {$g4['group_table']} where gr_id = '{$board['gr_id']}'");
        if ($group['gr_sub_domain'] && !$mw['config']['cf_sub_domain_off']) {
            $row['href'] = mw_sub_domain_url($group['gr_sub_domain'], $row['href']);
        }
    }
    $second = strtotime($g4['time_ymdhis']) - strtotime($row['mo_datetime']);
    $day = floor($second / 86400);
    $hour = floor($second / 3600);
    $minute = floor($second / 60);
    if ($day) {
        $time = "약 {$day}일 전";
    } elseif ($hour) {
        $time = "약 {$hour}시간 전";
    } elseif ($minute) {
        $time = "약 {$minute}분 전";
    } elseif ($second) {
        $time = "약 {$second}초 전";
    }
    $row['time'] = $time;
    $is_comment_image = false;
    $comment_image = "{$mw_moa_path_now}/img/noimage.gif";
    if ($row['re_mb_id'] && file_exists("{$comment_image_path}/{$row['re_mb_id']}")) {
        $comment_image = "{$comment_image_path_now}/{$row['re_mb_id']}";
        $is_comment_image = true;
    }
    $row['comment_image'] = $comment_image;
    return $row;
}
Esempio n. 5
0
<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
if (defined("_MW_MOBILE_")) {
    return;
}
$pc_url = get_device_change_url();
if ($mw['config']['cf_seo_url']) {
    $pc_url = mw_seo_url($bo_table, $wr_id, '&device=pc', false);
}
?>
<div style="clear:both;"></div>
</div> <!-- mw_mobile -->

<div id="mw_mobile_tail">
    <a href="<?php 
echo G5_URL;
?>
/" class="btn btn-primary btn-sm"><?php 
echo $config['cf_title'];
?>
</a>
    <a href="<?php 
echo $pc_url;
?>
" class="btn btn-primary btn-sm">PC버전</a>

    <?php 
Esempio n. 6
0
        $.get("<?php 
echo $board_skin_path;
?>
/mw.proc/mw.jump.update.php", {
            "bo_table":"<?php 
echo $bo_table;
?>
",
            "wr_id":"<?php 
echo $wr_id;
?>
",
            "t":t
        },
        function (str) {
            if (str == "ok") {
                location.href = "<?php 
echo mw_seo_url($bo_table, $wr_id, "&page=1");
?>
";
            }
            else {
                alert(str);
            }
        });
    });
});
</script>

Esempio n. 7
0
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
include_once "_common.php";
include_once "{$board_skin_path}/mw.lib/mw.skin.basic.lib.php";
header("Content-Type: text/html; charset={$g4['charset']}");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0");
// rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate");
// HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0");
// HTTP/1.1
header("Pragma: no-cache");
// HTTP/1.0
$comment_url = mw_seo_url($bo_table, $write['wr_parent'], '#c_' . $write['wr_id']);
if ($mw_basic[cf_umz]) {
    $umz = $write[wr_umz];
    if (!$umz) {
        //$comment_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$write[wr_parent]#c_".$write[wr_id];
        $umz = umz_get_url($comment_url);
        sql_query("update {$write_table} set wr_umz = '{$umz}' where wr_id = '{$write[wr_id]}'");
    }
    $comment_url = $umz;
}
$board_skin_path = substr($board_skin_path, 9, strlen($board_skin_path));
?>

<table border="0" cellpadding="0" cellspacing="0">
<tr>
    <td>
Esempio n. 8
0
        if ($mw_basic[cf_latest_table]) {
            $tmp = sql_fetch("select bo_subject from {$g4['board_table']} where bo_table = '{$mw_basic['cf_latest_table']}'");
            $bo_subject = $tmp[bo_subject];
        }
        ?>
<div class="mw_basic_view_latest_title">
    <h3>
        <?php 
        echo $view['name'];
        ?>
 님의 <?php 
        echo $bo_subject;
        ?>
 최신글
        <a href="<?php 
        echo mw_seo_url($bo_table, 0, "&sfl=mb_id,1&stx={$write['mb_id']}");
        ?>
" class="more">[더보기]</a>
    </h3>
</div>
<div class="mw_basic_view_latest">
    <ul>
    <?php 
        for ($i = 0; $i < count($latest); $i++) {
            ?>
    <li>
        <a href="<?php 
            echo $latest[$i]['href'];
            ?>
">[<?php 
            echo substr($latest[$i]['wr_datetime'], 0, 10);
Esempio n. 9
0
function mw_seo_bbs_path($path)
{
    global $g4;
    global $bo_table;
    $wr_id = null;
    if (preg_match("/&wr_id=([0-9]+)&/iUs", $path, $mat)) {
        $wr_id = $mat[1];
        $path = str_replace('&wr_id=' . $wr_id, '', $path);
    }
    $path = preg_replace("/&page=[01]?[&\$]?/i", '', $path);
    if (mw_is_mobile_builder()) {
        $path = str_replace('../../plugin/mobile/board.php?bo_table=' . $bo_table, mw_seo_url($bo_table, $wr_id) . '?', $path);
    } else {
        $path = str_replace('../bbs/board.php?bo_table=' . $bo_table, mw_seo_url($bo_table, $wr_id) . '?', $path);
    }
    $path = preg_replace("/\\?\$/", "", $path);
    return $path;
}
Esempio n. 10
0
        $strCallBack = '0000';
    }
    $strData = "[" . cut_str($config['cf_title'], 20) . "]";
    $strData .= "{$board[bo_subject]} 게시판에 {$wr_name} 님이 글을 올리셨습니다.";
    $umz = umz_get_url(mw_seo_url($bo_table, $wr_id));
    if ($umz) {
        sql_query("update {$write_table} set wr_umz = '{$umz}' where wr_id = '{$wr_id}'");
        $strData .= "\n{$umz}";
    }
    include "{$board_skin_path}/mw.proc/mw.proc.sms.php";
    $write_run_time = mw_time_log($write_run_time, "[write] sms");
}
// 글등록 쪽지 알림
if ($w == "" && trim($mw_basic[cf_memo_id])) {
    $me_memo = "{$board[bo_subject]} 게시판에 [{$wr_name}] 님이 글을 올리셨습니다.\n\n";
    $me_memo .= mw_seo_url($bo_table, $wr_id);
    $list = explode(",", $mw_basic[cf_memo_id]);
    for ($i = 0, $m = count($list); $i < $m; $i++) {
        $memo_id = trim($list[$i]);
        if (!$memo_id) {
            continue;
        }
        $tmp_row = sql_fetch(" select max(me_id) as max_me_id from {$g4['memo_table']} ");
        $me_id = $tmp_row[max_me_id] + 1;
        // 쪽지 INSERT
        $sql = " insert into {$g4['memo_table']}\n                        ( me_id, me_recv_mb_id, me_send_mb_id, me_send_datetime, me_memo )\n                 values ( '{$me_id}', '{$memo_id}', '{$member['mb_id']}', '{$g4['time_ymdhis']}', '{$me_memo}' ) ";
        sql_query($sql);
        // 실시간 쪽지 알림 기능
        $sql = " update {$g4['member_table']}\n                    set mb_memo_call = '{$member['mb_id']}'\n                  where mb_id = '{$memo_id}' ";
        sql_query($sql);
    }
Esempio n. 11
0
 $href = mw_seo_url($bo_table, $row['wr_id']);
 echo "<a href=\"{$href}\">";
 echo "<div class=\"item\">";
 //echo "[{$board['bo_subject']}] ";
 echo "{$row['subject']}";
 if ($row['wr_comment']) {
     echo "&nbsp;<span class=\"comment\">+{$row['wr_comment']}</span>";
 }
 echo "</div>\n";
 echo "</a>";
 if (($i + 1) % $block == 0) {
     if ($is_img) {
         echo "<div class=\"thumb\">";
         for ($j = floor($i / $block) * 3, $m = count($file) / ($rows / $block) * (($i + 1) / $block); $j < $m; ++$j) {
             $file[$j][subject] = mw_builder_reg_str($file[$j][subject]);
             $href = mw_seo_url($bo_table, $file[$j]['wr_id']);
             echo "<div class='img'><a href=\"{$href}\"><img src=\"{$file[$j]['path']}\" alt=\"\"></a>";
             echo "<div class='cap'>{$file[$j]['subject']}";
             if ($file[$j]['wr_comment']) {
                 echo "&nbsp;<span class=\"comment\">+{$file[$j]['wr_comment']}</span>";
             }
             echo "</div></div>";
         }
         echo "</div>";
     }
     if ($page % ($rows / $block) == 0) {
         $bo_count++;
     }
     if ($page < $count * ($rows / $block)) {
         echo "</div>";
         echo "<div class=\"swipe-page\" id=\"swipe{$mw_latest_mobile_cnt}-{$page}\" ";
Esempio n. 12
0
    $view = get_view($write, $board, $board_skin_path, 255);
    $view['content'] = conv_content($view['wr_content'], $html);
    $file_viewer = $board_skin_path . '/mw.proc/mw.file.viewer.php';
    if (is_mw_file($file_viewer)) {
        include $file_viewer;
    }
    if (function_exists("mw_path_to_url")) {
        $view['rich_content'] = mw_path_to_url($view['rich_content']);
    }
    $find = array('&amp;', '&nbsp;');
    $replace = array('&', ' ');
    $content = str_replace($find, $replace, $view['rich_content']);
    $row['id'] = $write['wr_id'];
    $row['title'] = htmlspecialchars($write['wr_subject']);
    $row['author'] = htmlspecialchars($write['wr_name']);
    $row['link'] = mw_seo_url($bo_table, $write['wr_id']);
    $row['link'] = str_replace("&", "&amp;", $row['link']);
    $row['pubdate'] = date("c", strtotime($write['wr_datetime']));
    if ($write['wr_last']) {
        $row['pubdate'] = date("c", strtotime($write['wr_last']));
    }
    $row['content'] = $content;
    echo "<item>\n";
    echo "<title><![CDATA[{$row['title']}]]></title>\n";
    echo "<link>" . $row['link'] . "</link>\n";
    echo "<author>{$row['author']}</author>\n";
    echo "<pubDate>" . $row['pubdate'] . "</pubDate>\n";
    echo "<description><![CDATA[" . $row['content'] . "]]></description>\n";
    echo "<category>" . addslashes($write['ca_name']) . "</category>\n";
    echo "</item>\n";
}
Esempio n. 13
0
}
if ($member[mb_level] < $mw_basic[cf_singo_level]) {
    alert_close("죄송합니다.\\n\\n신고 권한이 없습니다.");
}
$sql = "select * from {$mw['singo_log_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and (mb_id = '{$member['mb_id']}' or si_ip = '{$_SERVER['REMOTE_ADDR']}')";
$row = sql_fetch($sql);
if ($row && !$is_admin) {
    alert_close("이미 신고하셨습니다.");
}
if ($mw_basic[cf_singo] == '1') {
    $me_recv_mb_id = $mw_basic[cf_singo_id];
    $comment = "";
    if ($wr_id != $parent_id) {
        $comment = "&_c={$wr_id}#c_{$wr_id}";
    }
    $url = mw_seo_url($bo_table, $parent_id, $comment);
    $me_memo = "게시물 신고가 접수되었습니다.\n\n    분류 : {$category}\n    내용 : {$content}\n\n    주소 : {$url}";
    $tmp_list = explode(",", $me_recv_mb_id);
    $me_recv_mb_id_list = "";
    $msg = "";
    $comma1 = $comma2 = "";
    $mb_list = array();
    $mb_array = array();
    for ($i = 0; $i < count($tmp_list); $i++) {
        $tmp_list[$i] = trim($tmp_list[$i]);
        if (!$tmp_list[$i]) {
            continue;
        }
        $row = get_member($tmp_list[$i]);
        if ($row[mb_id]) {
            $me_recv_mb_id_list .= "{$comma2}{$row['mb_nick']}";
Esempio n. 14
0
    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']);
    }
    $class = '';
    if ($list[$i]['icon_secret']) {
        $class .= " secret";
    }
    if ($list[$i]['icon_new']) {
        $class .= " new";
    }
    if (function_exists("mw_seo_url")) {
        $href = mw_seo_url($bo_table, $list[$i]['wr_id']);
    } else {
        $href = $list[$i]['href'];
    }
    echo "<li class=\"{$class}\">";
    echo "<a href=\"{$href}\">";
    echo '<div class="thumb">' . $img . '</div>';
    echo '<div class="title">' . $list[$i]['subject'] . "";
    echo "<span class=\"comment\">{$list[$i]['comment_cnt']}</span>";
    echo '</div>';
    echo "</a>";
    echo "</li>\n";
}
echo "</ul>";
?>
</div><!--<?php 
Esempio n. 15
0
<tr>
    <td width="100%" align="center" valign="top">
        <!--<input type=image id="btn_submit" src="<?php 
        echo $board_skin_path;
        ?>
/img/btn_save.gif" border=0 accesskey='s'>&nbsp;-->
        <button type="submit" id="btn_submit" class="fa-button" accesskey='s'><i class="fa fa-save"></i> 글저장</button>&nbsp;
        <a href="<?php 
        echo mw_seo_url($bo_table);
        ?>
"><img id="btn_list" src="<?php 
        echo $board_skin_path;
        ?>
/img/btn_list.gif" border=0 width=0 height=0></a>
        <button type="button" onclick="location.href='<?php 
        echo mw_seo_url($bo_table);
        ?>
'" class="fa-button"><i class="fa fa-list"></i> 목록</a></td>
</tr>
</table>
</form>

<?php 
        if ($mw_basic[cf_include_tail] && is_mw_file($mw_basic[cf_include_tail]) && strstr($mw_basic[cf_include_tail_page], '/w/')) {
            include_once $mw_basic[cf_include_tail];
        }
        ?>

</td></tr></table>

<?php 
Esempio n. 16
0
                    } else {
                        continue;
                    }
                } else {
                    continue;
                }
            } else {
                if ($member['mb_id'] && $member['mb_id'] == $write['mb_id']) {
                } else {
                    if ($wr_password && !$write['mb_id'] && sql_password($wr_password) == $write['wr_password']) {
                    } else {
                        continue;
                    }
                }
            }
        }
    }
    // 나머지는 삭제 불가
    if ($opt == 'secret') {
        $sql = " update {$write_table} ";
        $sql .= "    set wr_option = if (wr_option is null, 'secret', concat(wr_option,',secret')) ";
        $sql .= "  where wr_id = '{$write['wr_id']}' ";
    } else {
        $sql = " update {$write_table} ";
        $sql .= "    set wr_option = replace(wr_option, 'secret', '') ";
        $sql .= "  where wr_id = '{$write['wr_id']}' ";
    }
    sql_query($sql);
}
goto_url(mw_seo_url($bo_table, 0, "&page={$page}" . $qstr));
exit;
Esempio n. 17
0
}
if ($prev_href) {
    $prev_href = mw_bbs_path($prev_href);
}
if ($next_href) {
    $next_href = mw_bbs_path($next_href);
}
if ($mw['config']['cf_seo_url']) {
    //$mw_basic['cf_umz'] = null;
    //$mw_basic['cf_shorten'] = 1;
    $list_href = mw_seo_url($bo_table, 0);
    if ($page) {
        $list_href .= '?page=' . $page;
    }
    if ($search_href) {
        $search_href = mw_seo_url($bo_table, 0, "&page={$page}" . $qstr);
    }
    if ($prev_part_href) {
        $prev_part_href = mw_seo_bbs_path($prev_part_href);
    }
    if ($next_part_href) {
        $next_part_href = mw_seo_bbs_path($next_part_href);
    }
    if ($prev_href) {
        $prev_href = mw_seo_bbs_path($prev_href);
    }
    if ($next_href) {
        $next_href = mw_seo_bbs_path($next_href);
    }
}
$rss_href = '';
Esempio n. 18
0
                $view[wr_umz] = $umz;
            }
        }
    } else {
        if (substr(trim($write[wr_umz]), 0, 10) != "http://umz") {
            //$url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id";
            $url = mw_seo_url($bo_table, $wr_id);
            $umz = umz_get_url($url);
            sql_query("update {$write_table} set wr_umz = '{$umz}' where wr_id = '{$wr_id}'");
            $view[wr_umz] = $umz;
        }
    }
}
$view_sns = null;
if ($mw_basic[cf_sns]) {
    $view_url = mw_seo_url($bo_table, $wr_id);
    //$view_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id";
    /*if ($mw_basic[cf_umz] && $view[wr_umz]) $sns_url = $view[wr_umz];
      else if ($mw_basic[cf_shorten]) $sns_url = $shorten;
      else if ($trackback_url) $sns_url = $trackback_url;
      else $sns_url = $view_url;*/
    $sns_url = $view_url;
    $sns_url = trim($sns_url);
    $me2day_url = '';
    //"http://me2day.net/posts/new?new_post[body]=".urlencode(set_utf8($view[wr_subject])." - \"$sns_url\":$sns_url");
    //$twitter_url = "http://twitter.com/home?status=".urlencode(set_utf8($view[wr_subject])." - $sns_url");
    //$twitter_url = "http://twitter.com/?status=".str_replace("+", " ", urlencode(set_utf8($view[wr_subject])." - $sns_url"));
    $twitter_url = "https://twitter.com/intent/tweet?source=webclient&text=" . str_replace("+", " ", urlencode(set_utf8($view[wr_subject]) . " - {$sns_url}"));
    $facebook_url = "http://www.facebook.com/share.php?u=" . urlencode($view_url);
    $yozm_url = '';
    //"http://yozm.daum.net/api/popup/prePost?sourceid=41&link={$sns_url}&prefix=".urlencode(set_utf8($view[wr_subject]));
Esempio n. 19
0
    if (!$mw_basic['cf_default_category']) {
        echo "<li";
        if (!$sca) {
            echo " class='selected'";
        }
        echo "><a href=\"" . mw_seo_url($bo_table) . "\">전체</a></li>";
        ++$i;
        ++$m;
    }
    //for ($m=sizeof($category_list); $i<$m; ++$i) {
    foreach ($category_list as $cate) {
        echo "<li";
        if (urldecode($sca) == $cate) {
            echo " class='selected'";
        }
        echo "><a href=\"" . mw_seo_url($bo_table, 0, "&sca=" . urlencode($cate)) . "\">";
        echo $cate . "</a></li>";
        if ($m >= 10 && $i++ % $l == 0 && $i <= $m) {
            echo "</ul><ul>";
        }
    }
    //$rest = $l-(($i-1)%$l);
    $rest = ceil(($i - 1) / $l) * $l - ($i - 1);
    if ($rest > 0 and $m >= 10) {
        for ($z = 0; $z < $rest; ++$z) {
            echo "<li class='none'>&nbsp;</li>\n";
        }
    }
    ?>
</ul>
</div>