Ejemplo n.º 1
0
$html = $html ? $html : 'TEXT';
$tag = trim($tag);
$d_regis = $date['totime'];
$d_comment = '';
$ip = $_SERVER['REMOTE_ADDR'];
$agent = $_SERVER['HTTP_USER_AGENT'];
$upload = $upfiles;
$adddata = trim($adddata);
$hidden = $hidden ? intval($hidden) : 0;
$notice = $notice ? intval($notice) : 0;
$display = $d['bbs']['display'] || $hidepost || $hidden ? 0 : 1;
$parentmbr = 0;
$point1 = trim($d['bbs']['point1']);
$point2 = trim($d['bbs']['point2']);
$point3 = $point3 ? filterstr(trim($point3)) : 0;
$point4 = $point4 ? filterstr(trim($point4)) : 0;
if ($d['bbs']['badword_action']) {
    $badwordarr = explode(',', $d['bbs']['badword']);
    $badwordlen = count($badwordarr);
    for ($i = 0; $i < $badwordlen; $i++) {
        if (!$badwordarr[$i]) {
            continue;
        }
        if (strstr($subject, $badwordarr[$i]) || strstr($content, $badwordarr[$i])) {
            if ($d['bbs']['badword_action'] == 1) {
                getLink('', '', '등록이 제한된 단어를 사용하셨습니다.', '');
            } else {
                $badescape = strCopy($badwordarr[$i], $d['bbs']['badword_escape']);
                $content = str_replace($badwordarr[$i], $badescape, $content);
                $subject = str_replace($badwordarr[$i], $badescape, $subject);
            }
Ejemplo n.º 2
0
<div class="widget_tab02">
	<ul class="tab">
	<?php 
$unique = filterstr(microtime());
?>
	<?php 
for ($j = 1; $j <= $wdgvar['tabnum']; $j++) {
    ?>
	<li id="tabtitle<?php 
    echo $j;
    ?>
_<?php 
    echo $unique;
    ?>
"<?php 
    if ($j == 1) {
        ?>
 class="on"<?php 
    }
    ?>
 onclick="tabClick02(<?php 
    echo $wdgvar['tabnum'];
    ?>
,<?php 
    echo $j;
    ?>
,'<?php 
    echo $unique;
    ?>
');"><a><?php 
Ejemplo n.º 3
0
function getTreeMenu($conf, $code, $depth, $parent, $tmpcode)
{
    $ctype = $conf['ctype'] ? $conf['ctype'] : 'uid';
    $id = 'tree_' . filterstr(microtime());
    $tree = '<div class="rb-tree"><ul id="' . $id . '">';
    $CD = getDbSelect($conf['table'], ($conf['site'] ? 'site=' . $conf['site'] . ' and ' : '') . 'depth=' . ($depth + 1) . ' and parent=' . $parent . ($conf['dispHidden'] ? ' and hidden=0' : '') . ($conf['mobile'] ? ' and mobile=1' : '') . ' order by gid asc', '*');
    $_i = 0;
    while ($C = db_fetch_array($CD)) {
        $rcode = $tmpcode ? $tmpcode . '/' . $C[$ctype] : $C[$ctype];
        $t_arr = explode('/', $code);
        $t1_arr = explode('/', $rcode);
        $topen = in_array($t1_arr[count($t1_arr) - 1], $t_arr) ? true : false;
        $tree .= '<li>';
        if ($C['is_child']) {
            $tree .= '<a data-toggle="collapse" href="#' . $id . '-' . $_i . '-' . $C['uid'] . '" class="rb-branch' . ($conf['allOpen'] || $topen ? '' : ' collapsed') . '"></a>';
            if ($conf['userMenu'] == 'link') {
                $tree .= '<a href="' . RW('c=' . $rcode) . '"><span' . ($code == $rcode ? ' class="rb-active"' : '') . '>';
            } else {
                if ($conf['userMenu'] == 'bookmark') {
                    $tree .= '<a data-scroll href="#rb-tree-menu-' . $C['id'] . '"><span' . ($code == $rcode ? ' class="rb-active"' : '') . '>';
                } else {
                    $tree .= '<a href="' . $conf['link'] . $C['uid'] . '&amp;code=' . $rcode . ($conf['bookmark'] ? '#' . $conf['bookmark'] : '') . '"><span' . ($code == $rcode ? ' class="rb-active"' : '') . '>';
                }
            }
            if ($conf['dispCheckbox']) {
                $tree .= '<input type="checkbox" name="tree_members[]" value="' . $C['uid'] . '">';
            }
            if ($C['hidden']) {
                $tree .= '<u title="' . _LANG('fs002', 'admin') . '" data-tooltip="tooltip">';
            }
            $tree .= $C['name'];
            if ($C['hidden']) {
                $tree .= '</span>';
            }
            $tree .= '</u></a>';
            if ($conf['dispNum'] && $C['num']) {
                $tree .= ' <small>(' . $C['num'] . ')</small>';
            }
            if (!$conf['hideIcon']) {
                //if($C['mobile']) $tree.= '<i class="glyphicon glyphicon-phone" title="'._LANG('fs005','admin').'" data-tooltip="tooltip"></i>&nbsp;';
                if ($C['target']) {
                    $tree .= '<i class="glyphicon glyphicon-new-window" title="' . _LANG('fs004', 'admin') . '" data-tooltip="tooltip"></i>&nbsp;';
                }
                if ($C['reject']) {
                    $tree .= '<i class="glyphicon glyphicon-ban-circle" title="' . _LANG('fs003', 'admin') . '" data-tooltip="tooltip"></i>';
                }
            }
            $tree .= '<ul id="' . $id . '-' . $_i . '-' . $C['uid'] . '" class="collapse' . ($conf['allOpen'] || $topen ? ' in' : '') . '">';
            $tree .= getTreeMenu($conf, $code, $C['depth'], $C['uid'], $rcode);
            $tree .= '</ul>';
        } else {
            $tree .= '<a href="#." class="rb-leaf"></a>';
            if ($conf['userMenu'] == 'link') {
                $tree .= '<a href="' . RW('c=' . $rcode) . '"><span' . ($code == $rcode ? ' class="rb-active"' : '') . '>';
            } else {
                if ($conf['userMenu'] == 'bookmark') {
                    $tree .= '<a data-scroll href="#rb-tree-menu' . $C['id'] . '"><span' . ($code == $rcode ? ' class="rb-active"' : '') . '>';
                } else {
                    $tree .= '<a href="' . $conf['link'] . $C['uid'] . '&amp;code=' . $rcode . ($conf['bookmark'] ? '#' . $conf['bookmark'] : '') . '"><span' . ($code == $rcode ? ' class="rb-active"' : '') . '>';
                }
            }
            if ($conf['dispCheckbox']) {
                $tree .= '<input type="checkbox" name="tree_members[]" value="' . $C['uid'] . '">';
            }
            if ($C['hidden']) {
                $tree .= '<u title="' . _LANG('fs002', 'admin') . '" data-tooltip="tooltip">';
            }
            $tree .= $C['name'];
            if ($C['hidden']) {
                $tree .= '</u>';
            }
            $tree .= '</span></a>';
            if ($conf['dispNum'] && $C['num']) {
                $tree .= ' <small>(' . $C['num'] . ')</small>';
            }
            if (!$conf['hideIcon']) {
                //if($C['mobile']) $tree.= '<i class="glyphicon glyphicon-phone" title="'._LANG('fs005','admin').'" data-tooltip="tooltip"></i>&nbsp;';
                if ($C['target']) {
                    $tree .= '<i class="glyphicon glyphicon-new-window" title="' . _LANG('fs004', 'admin') . '" data-tooltip="tooltip"></i>&nbsp;';
                }
                if ($C['reject']) {
                    $tree .= '<i class="glyphicon glyphicon-ban-circle" title="' . _LANG('fs003', 'admin') . '" data-tooltip="tooltip"></i>';
                }
            }
        }
        $tree .= '</li>';
        $_i++;
    }
    $tree .= '</ul></div>';
    return $tree;
}
Ejemplo n.º 4
0
<?php

include_once $g['path_core'] . 'function/search.func.php';
$wdgvar['t1'] = 7;
$wdgvar['t2'] = 0;
$wdgvar['limit'] = 10;
$d_regis1 = date('Ymd', mktime(0, 0, 0, substr($date['today'], 4, 2), substr($date['today'], 6, 2) - $wdgvar['t1'], substr($date['today'], 0, 4)));
$d_regis2 = date('Ymd', mktime(0, 0, 0, substr($date['today'], 4, 2), substr($date['today'], 6, 2) - $wdgvar['t2'], substr($date['today'], 0, 4)));
$WHEREIS1 = 'where date between ' . $d_regis1 . ' and ' . $d_regis2 . ' and site=' . $s;
$MBRQUE1 = db_query('SELECT *,sum(hit) as total FROM ' . $table['s_inkey'] . ' ' . $WHEREIS1 . ' group by keyword order by total desc LIMIT 0,' . $wdgvar['limit'], $DB_CONNECT);
$WHEREIS2 = "where date='" . $date['today'] . "' and site=" . $s;
$MBRQUE2 = db_query('SELECT *,sum(hit) as total FROM ' . $table['s_inkey'] . ' ' . $WHEREIS2 . ' group by keyword order by total desc LIMIT 0,' . $wdgvar['limit'], $DB_CONNECT);
$tabsid = 'tab' . filterstr(microtime());
$g['img_widget'] = $g['s'] . '/widgets/' . $wdgvar['widget_id'] . '/image';
?>

<div class="widget_search01">

	<ul class="tab">
	<li id="<?php 
echo $tabsid;
?>
0" class="split on" onclick="searchTab(0,'<?php 
echo $tabsid;
?>
');">주간 검색어 <img src="<?php 
echo $g['img_widget'];
?>
/arr_01.gif" id="<?php 
echo $tabsid;
?>
Ejemplo n.º 5
0
function getTreeMenu($conf, $cat, $code, $depth, $parent, $tmpcode)
{
    $id = 'tree_' . filterstr(microtime());
    $tree = '<div class="rb-tree"><ul id="' . $id . '">';
    $CD = getDbSelect($conf['table'], ($conf['site'] ? 'site=' . $conf['site'] . ' and ' : '') . 'depth=' . ($depth + 1) . ' and parent=' . $parent . ($conf['dispHidden'] ? ' and hidden=0' : '') . ' order by gid asc', '*');
    $_i = 0;
    while ($C = db_fetch_array($CD)) {
        $rcode = $tmpcode ? $tmpcode . '/' . $C['uid'] : $C['uid'];
        $topen = $rcode == substr($code, 0, strlen($rcode)) ? true : false;
        $tree .= '<li>';
        if ($C['isson']) {
            $tree .= '<a data-toggle="collapse" href="#' . $id . '-' . $_i . '-' . $C['uid'] . '" class="rb-branch' . ($conf['allOpen'] || $topen ? '' : ' collapsed') . '"></a>';
            $tree .= '<a href="' . $conf['link'] . $C['uid'] . '&amp;code=' . $rcode . ($conf['bookmark'] ? '#' . $conf['bookmark'] : '') . '"><span' . ($code == $rcode ? ' class="rb-active"' : '') . '>';
            if ($conf['dispCheckbox']) {
                $tree .= '<input type="checkbox" name="tree_members[]" value="' . $C['uid'] . '">';
            }
            $tree .= $C['name'] . '</span></a>';
            if ($conf['dispNum'] && $C['num']) {
                $tree .= ' <small>(' . $C['num'] . ')</small>';
            }
            if ($C['mobile']) {
                $tree .= '<i class="glyphicon glyphicon-phone" title="모바일"></i>';
            }
            if ($C['hidden']) {
                $tree .= '<i class="glyphicon glyphicon-eye-close" title="숨김"></i>';
            }
            if ($C['reject']) {
                $tree .= '<i class="glyphicon glyphicon-ban-circle" title="차단"></i>';
            }
            $tree .= '<ul id="' . $id . '-' . $_i . '-' . $C['uid'] . '" class="collapse' . ($conf['allOpen'] || $topen ? ' in' : '') . '">';
            $tree .= getTreeMenu($conf, $cat, $code, $C['depth'], $C['uid'], $rcode);
            $tree .= '</ul>';
        } else {
            $tree .= '<a href="#." class="rb-leaf"></a>';
            $tree .= '<a href="' . $conf['link'] . $C['uid'] . '&amp;code=' . $rcode . ($conf['bookmark'] ? '#' . $conf['bookmark'] : '') . '"><span' . ($code == $rcode ? ' class="rb-active"' : '') . '>';
            if ($conf['dispCheckbox']) {
                $tree .= '<input type="checkbox" name="tree_members[]" value="' . $C['uid'] . '">';
            }
            $tree .= $C['name'] . '</span></a>';
            if ($conf['dispNum'] && $C['num']) {
                $tree .= ' <small>(' . $C['num'] . ')</small>';
            }
            if ($C['mobile']) {
                $tree .= '<i class="glyphicon glyphicon-phone" title="모바일"></i>';
            }
            if ($C['hidden']) {
                $tree .= '<i class="glyphicon glyphicon-eye-close" title="숨김"></i>';
            }
            if ($C['reject']) {
                $tree .= '<i class="glyphicon glyphicon-ban-circle" title="차단"></i>';
            }
        }
        $tree .= '</li>';
        $_i++;
    }
    $tree .= '</ul></div>';
    return $tree;
}