示例#1
0
$p = $p ? $p : 1;
?>
<div id="smsWrap">
	<table id="history">
	<thead>
		<tr>
			<th scope="col" width="40">구분</th>
			<th scope="col" width="60">전송시간</th>
			<th scope="col">내용</th>
			<th scope="col" width="80">전화번호</th>
			<th scope="col" width="50">작성자</th>
		</tr>
	</thead>
	<tbody>
	<?php 
$cntHistory = getDbRows($table['smshistory'], "");
?>
	<?php 
$tpage = ceil($cntHistory / $recnum);
?>
	<?php 
$resHistory = getDbArray($table['smshistory'], "", "*", "idx", "desc", $recnum, $p);
?>
		
	<?php 
while ($infoHistory = db_fetch_array($resHistory)) {
    ?>
	<?php 
    $cpnumber = substr($infoHistory['cp'], 0, 3) . "-" . substr($infoHistory['cp'], 3, 4) . "-" . substr($infoHistory['cp'], 7, 4);
    ?>
	<?php 
示例#2
0
}
if ($notice) {
    $_WHERE .= ' and notice=1';
}
if ($hidden) {
    $_WHERE .= ' and hidden=1';
}
if ($where && $keyw) {
    if (strstr('[name][nic][id][ip]', $where)) {
        $_WHERE .= " and " . $where . "='" . $keyw . "'";
    } else {
        $_WHERE .= getSearchSql($where, $keyw, $ikeyword, 'or');
    }
}
$RCD = getDbArray($table[$module . 'data'], $_WHERE, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table[$module . 'data'], $_WHERE);
$TPG = getTotalPage($NUM, $recnum);
?>

<div id="bbslist">



	<div class="sbox">
		<form name="procForm" action="<?php 
echo $g['s'];
?>
/" method="get">
		<input type="hidden" name="r" value="<?php 
echo $r;
?>
示例#3
0
文件: edit.all.php 项目: eosliebe/rb








<?php 
if ($type == 'menu') {
    ?>

<?php 
    include_once $g['path_core'] . 'function/menu.func.php';
    $ISCAT = getDbRows($table['s_menu'], 'site=' . $s);
    $catcode = '';
    if ($cat) {
        $CINFO = getUidData($table['s_menu'], $cat);
        $ctarr = getMenuCodeToPath($table['s_menu'], $cat, 0);
        $ctnum = count($ctarr);
        for ($i = 0; $i < $ctnum; $i++) {
            $CXA[] = $ctarr[$i]['uid'];
        }
    }
    $is_fcategory = $CINFO['uid'] && $vtype != 'sub';
    $is_regismode = !$CINFO['uid'] || $vtype == 'sub';
    if ($is_regismode) {
        $CINFO['menutype'] = '';
        $CINFO['name'] = '';
        $CINFO['joint'] = '';
示例#4
0
$type = $type ? $type : 'point';
$sort = $sort ? $sort : 'uid';
$orderby = $orderby ? $orderby : 'desc';
$recnum = $recnum && $recnum < 200 ? $recnum : 20;
$sqlque = 'my_mbruid=' . $my['uid'];
if ($price == '1') {
    $sqlque .= ' and price > 0';
}
if ($price == '2') {
    $sqlque .= ' and price < 0';
}
if ($where && $keyword) {
    $sqlque .= getSearchSql($where, $keyword, $ikeyword, 'or');
}
$RCD = getDbArray($table['s_' . $type], $sqlque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_' . $type], $sqlque);
$TPG = getTotalPage($NUM, $recnum);
?>



<div id="pointlist">

	<div class="info">

		<div class="article">
			<span class="tx">
			<a class="<?php 
if ($type == 'point') {
    ?>
b <?php 
示例#5
0
        ?>
			<option value="<?php 
        echo $_catexp[$i];
        ?>
"<?php 
        if ($_catexp[$i] == $cat) {
            ?>
 selected="selected"<?php 
        }
        ?>
>ㆍ<?php 
        echo $_catexp[$i];
        if ($d['theme']['show_catnum']) {
            ?>
(<?php 
            echo getDbRows($table[$m . 'data'], 'site=' . $s . ' and notice=0 and bbs=' . $B['uid'] . " and category='" . $_catexp[$i] . "'");
            ?>
)<?php 
        }
        ?>
</option>
			<?php 
    }
    ?>
			</select>
			<?php 
}
?>
		</div>
		<div class="clear"></div>
	</div>
示例#6
0
<?php

include_once $g['dir_module_skin'] . '_menu.php';
$sort = $sort ? $sort : 'gid';
$orderby = $orderby ? $orderby : 'asc';
$recnum = $recnum && $recnum < 200 ? $recnum : $d['search']['s_num2'];
$bbsque = 'site=' . $s . " and type=2 and ext='jpg' and d_regis > " . $d['search']['date'];
$bbsque .= getSearchSql('name|caption', $keyword, $ikeyword, 'or');
$RCD = getDbArray($table['s_upload'], $bbsque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_upload'], $bbsque);
$TPG = getTotalPage($NUM, $recnum);
?>



<?php 
if ($NUM) {
    ?>
<div id="s_image">

	<div class="subtitle">
		<div class="xleft">이미지(검색결과 <?php 
    echo number_format($NUM);
    ?>
개)</div>
		<div class="xright"><a href="<?php 
    echo $g['url_reset'];
    ?>
">통합검색</a></div>
		<div class="clear"></div>
	</div>
示例#7
0
文件: admin.php 项目: hanacody/rb2
<?php

$R = array();
$mtype = $mtype ? $mtype : 'admin';
$recnum = $recnum ? $recnum : 10;
$sendsql = 'admin=' . ($mtype == 'admin' ? 1 : 0);
$RCD = getDbArray($table['s_mbrdata'], $sendsql, '*', 'memberuid', 'asc', $recnum, $p);
$NUM = getDbRows($table['s_mbrdata'], $sendsql);
$TPG = getTotalPage($NUM, $recnum);
$_authset = array('', _LANG('aa001', 'admin'), _LANG('aa002', 'admin'), _LANG('aa003', 'admin'), _LANG('aa004', 'admin'));
?>


<div id="admin-users">
	<div class="page-header">
		<h4><?php 
echo _LANG('aa005', 'admin');
?>
</h4>
	</div>
	<form name="listForm" action="<?php 
echo $g['s'];
?>
/" method="post" onsubmit="return false;">
	<input type="hidden" name="r" value="<?php 
echo $r;
?>
">
	<input type="hidden" name="m" value="<?php 
echo $module;
?>
示例#8
0
文件: main.php 项目: eosliebe/rb
<?php

$R = array();
$recnum = $recnum ? $recnum : 15;
$sendsql = 'gid';
if ($keyw) {
    $sendsql .= " and (id like '%" . $keyw . "%' or name like '%" . $keyw . "%')";
}
$RCD = getDbArray($table['s_module'], $sendsql, '*', 'gid', 'asc', $recnum, $p);
$NUM = getDbRows($table['s_module'], $sendsql);
$TPG = getTotalPage($NUM, $recnum);
if (!$id) {
    $id = 'site';
}
?>

<div class="row">
	<div class="col-md-5 col-lg-4" id="tab-content-list">
		<div class="panel-group" id="accordion">
			<div class="panel panel-default">
				<div class="panel-heading rb-icon">
					<div class="icon">
						<i class="fa kf kf-module fa-2x"></i>
					</div>
					<h4 class="dropdown panel-title">
						<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapmetane">전체모듈</a>
						<span class="pull-right" style="position:relative;left:-15px;top:3px;">
							<button type="button" class="btn btn-default btn-xs<?php 
if (!$_SESSION['sh_site_page_search']) {
    ?>
 collapsed<?php 
示例#9
0
<?php

$recnum = 10;
$catque = 'uid';
if ($_keyw) {
    $catque .= " and " . $where . " like '" . $_keyw . "%'";
}
$PAGES = getDbArray($table[$smodule . 'list'], $catque, '*', 'gid', 'asc', $recnum, $p);
$NUM = getDbRows($table[$smodule . 'list'], $catque);
$TPG = getTotalPage($NUM, $recnum);
$tdir = $g['path_module'] . $smodule . '/theme/';
?>


<div id="mjointbox">
	<div class="title">
		<form name="bbsSform" class="form-horizontal rb-form" action="<?php 
echo $g['s'];
?>
/" method="get">
		<input type="hidden" name="system" value="<?php 
echo $system;
?>
" />
		<input type="hidden" name="r" value="<?php 
echo $r;
?>
" />
		<input type="hidden" name="iframe" value="<?php 
echo $iframe;
?>
示例#10
0
文件: front.php 项目: hanacody/rb2
    if ($g['mobile'] && $_SESSION['pcmode'] != 'Y') {
        ?>
&amp;front=mobile.shortcut<?php 
    }
    ?>
">
					<strong></i><?php 
    echo $MD[$d['admin']['syslang'] == 'DEFAULT' ? 'id' : 'name'];
    ?>
</strong>
					<small class="text-muted hidden-xs<?php 
    if ($d['admin']['syslang'] == 'english') {
        ?>
 hidden<?php 
    }
    ?>
"><?php 
    echo $MD['name'];
    ?>
</small>
				</a>
				<?php 
    if ($module == 'dashboard' && ($front == 'main' || $front == 'mobile.dashboard')) {
        ?>
				<i class="glyphicon glyphicon-cog rb-modal-dashboard" title="<?php 
        echo _LANG('tf001', 'admin');
        ?>
" data-tooltip="tooltip" data-toggle="modal" data-target="#modal_window"></i>
				<?php 
    }
    ?>
示例#11
0
<?php

include_once $g['dir_module_skin'] . '_menu.php';
$sort = $sort ? $sort : 'gid';
$orderby = $orderby ? $orderby : 'asc';
$recnum = $recnum && $recnum < 200 ? $recnum : $d['search']['s_num2'];
$bbsque = 'site=' . $s . ' and display=1 and d_regis > ' . $d['search']['date'];
if ($bbsuid) {
    $bbsque .= ' and bbs=' . $bbsuid;
}
$bbsque .= getSearchSql('subject|tag', $keyword, $ikeyword, 'or');
$RCD = getDbArray($table['bbsdata'], $bbsque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['bbsdata'], $bbsque);
$TPG = getTotalPage($NUM, $recnum);
?>

<div id="s_post">

	<div class="subtitle">
		<div class="xleft">
		
			<select onchange="goHref('<?php 
echo $g['url_reset'];
?>
post&bbsuid='+this.value);">
			<option value="">&nbsp;+ 게시판(전체)</option>
			<option value="">---------------------</option>
			<?php 
echo $_BBS = getDbArray($table['bbslist'], '', '*', 'gid', 'asc', 0, 1);
?>
			<?php 
示例#12
0
if ($d['member']['form_nic'] && !$check_nic || !$check_email) {
    getLink('', '', '정상적인 접근이 아닙니다.', '');
}
if (strstr(',' . $d['member']['join_cutid'] . ',', ',' . $id . ',') || getDbRows($table['s_mbrid'], "id='" . $id . "'")) {
    getLink('', '', '사용할 수 없는 아이디입니다.', '');
}
if (!$d['member']['join_rejoin']) {
    if (is_file($g['path_tmp'] . 'out/' . $id . '.txt')) {
        getLink('', '', '사용할 수 없는 아이디입니다.', '');
    }
}
if (getDbRows($table['s_mbrdata'], "email='" . $email . "'")) {
    getLink('', '', '이미 존재하는 이메일입니다.', '');
}
if ($d['member']['form_nic']) {
    if (strstr(',' . $d['member']['join_cutnic'] . ',', ',' . $nic . ',') || getDbRows($table['s_mbrdata'], "nic='" . $nic . "'")) {
        getLink('', '', '사용할 수 없는 닉네임입니다.', '');
    }
}
getDbInsert($table['s_mbrid'], 'site,id,pw', "'{$s}','{$id}','" . md5($pw1) . "'");
$memberuid = getDbCnt($table['s_mbrid'], 'max(uid)', '');
$auth = $d['member']['join_auth'];
$sosok = $d['member']['join_group'];
$level = $d['member']['join_level'];
$comp = $d['member']['form_comp'] && $comp ? 1 : 0;
$admin = 0;
$name = trim($name);
$photo = '';
$home = $home ? strstr($home, 'http://') ? str_replace('http://', '', $home) : $home : '';
$birth1 = $birth_1;
$birth2 = $birth_2 . $birth_3;
示例#13
0
$sort = $sort ? $sort : 'uid';
$orderby = $orderby ? $orderby : 'desc';
$recnum = $recnum && $recnum < 200 ? $recnum : 20;
if ($inbox == 3) {
    $sqlque = 'by_mbruid=' . $my['uid'];
} else {
    $sqlque = 'my_mbruid=' . $my['uid'];
    if ($inbox) {
        $sqlque .= " and inbox='" . $inbox . "'";
    }
    if ($where && $keyword) {
        $sqlque .= getSearchSql($where, $keyword, $ikeyword, 'or');
    }
}
$RCD = getDbArray($table['s_paper'], $sqlque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_paper'], $sqlque);
$TPG = getTotalPage($NUM, $recnum);
?>



<div id="paperlist">

	<div class="info">

		<div class="article">
			<?php 
echo number_format($NUM);
?>
개(<?php 
echo $p;
示例#14
0
    $DAT = getDbSelect($table['s_menu'], $subQue, '*');
    while ($R = db_fetch_array($DAT)) {
        getDbDelete($table['s_menu'], 'uid=' . $R['uid']);
        getDbDelete($table['s_seo'], 'rel=1 and parent=' . $R['uid']);
        $_xfile = $g['path_page'] . 'menu/' . sprintf('%05d', $R['uid']);
        unlink($_xfile . '.php');
        unlink($_xfile . '.widget.php');
        @unlink($_xfile . '.mobile.php');
        @unlink($_xfile . '.css');
        @unlink($_xfile . '.js');
        @unlink($_xfile . '.header.php');
        @unlink($_xfile . '.footer.php');
        @unlink($_xfile . '.txt');
        @unlink($_xfile . '.cache');
        @unlink($_xfile . '.widget.cache');
        @unlink($_xfile . '.mobile.cache');
        @unlink($g['path_var'] . 'menu/' . $R['imghead']);
        @unlink($g['path_var'] . 'menu/' . $R['imgfoot']);
    }
    if ($parent) {
        if (!getDbRows($table['s_menu'], 'parent=' . $parent)) {
            getDbUpdate($table['s_menu'], 'isson=0', 'uid=' . $parent);
        }
    }
    db_query("OPTIMIZE TABLE " . $table['s_menu'], $DB_CONNECT);
}
if ($backc == 'user') {
    getLink($g['s'] . '/?r=' . $r . '&iframe=' . $iframe . '&system=edit.all&type=menu&cat=' . $parent, 'parent.', '', '');
} else {
    getLink($g['s'] . '/?r=' . $r . '&m=admin&module=' . $m . '&front=menu&account=' . $account . '&cat=' . $parent, 'parent.', '', '');
}
示例#15
0
            unlink($vfile . '.header.php');
        }
    }
    if (trim($codfoot)) {
        $fp = fopen($vfile . '.footer.php', 'w');
        fwrite($fp, trim(stripslashes($codfoot)));
        fclose($fp);
        @chmod($vfile . '.footer.php', 0707);
    } else {
        if (is_file($vfile . '.footer.php')) {
            unlink($vfile . '.footer.php');
        }
    }
    $backUrl = $g['s'] . '/?r=' . $r . '&m=admin&module=' . $m . '&front=makebbs&iframe=Y&uid=' . $R['uid'];
} else {
    if (getDbRows($table[$m . 'list'], "id='" . $id . "'")) {
        getLink('', '', '이미 같은 아이디의 게시판이 존재합니다.', '');
    }
    $imgset = array('head', 'foot');
    for ($i = 0; $i < 2; $i++) {
        $tmpname = $_FILES['img' . $imgset[$i]]['tmp_name'];
        $realname = $_FILES['img' . $imgset[$i]]['name'];
        $fileExt = strtolower(getExt($realname));
        $fileExt = $fileExt == 'jpeg' ? 'jpg' : $fileExt;
        $userimg = $id . '_' . $imgset[$i] . '.' . $fileExt;
        $saveFile = $g['dir_module'] . 'var/files/' . $userimg;
        if (is_uploaded_file($tmpname)) {
            if (!strstr('[gif][jpg][png][swf]', $fileExt)) {
                getLink('', '', '헤더/풋터파일은 gif/jpg/png/swf 파일만 등록할 수 있습니다.', '');
            }
            move_uploaded_file($tmpname, $saveFile);
示例#16
0
    if (!getDbRows($table[$m . 'month'], "date='" . $date['month'] . "' and site=" . $s . ' and bbs=' . $bbsuid)) {
        getDbInsert($table[$m . 'month'], 'date,site,bbs,num', "'" . $date['month'] . "','" . $s . "','" . $bbsuid . "','0'");
    }
}
if ($uid) {
    $R = getUidData($table[$m . 'data'], $uid);
    if (!$R['uid']) {
        getLink('', '', '존재하지 않는 게시물입니다.', '');
    }
    if ($reply == 'Y') {
        if (!$my['admin'] && !strstr(',' . ($d['bbs']['admin'] ? $d['bbs']['admin'] : '.') . ',', ',' . $my['id'] . ',')) {
            if ($d['bbs']['perm_l_write'] > $my['level'] || strstr($d['bbs']['perm_g_write'], '[' . $my['sosok'] . ']')) {
                getLink('', '', '정상적인 접근이 아닙니다.', '');
            }
        }
        $RNUM = getDbRows($table[$m . 'idx'], 'gid >= ' . $R['gid'] . ' and gid < ' . (intval($R['gid']) + 1));
        if ($RNUM > 98) {
            getLink('', '', '죄송합니다. 더이상 답글을 달 수 없습니다.', '');
        }
        getDbUpdate($table[$m . 'idx'], 'gid=gid+0.01', 'gid > ' . $R['gid'] . ' and gid < ' . (intval($R['gid']) + 1));
        getDbUpdate($table[$m . 'data'], 'gid=gid+0.01', 'gid > ' . $R['gid'] . ' and gid < ' . (intval($R['gid']) + 1));
        if ($R['hidden'] && $hidden) {
            if ($R['mbruid']) {
                $pw = $R['mbruid'];
            } else {
                $pw = $my['uid'] ? $R['pw'] : ($pw == $R['pw'] ? $R['pw'] : md5($pw));
            }
        } else {
            $pw = $pw ? md5($pw) : '';
        }
        $gid = $R['gid'] + 0.01;
示例#17
0
                getLink('reload', 'parent.', '비밀번호가 일치하지 않습니다.', '');
            }
        } else {
            getLink($backUrl . '&mod=delete&uid=' . $R['uid'], 'parent.', '', '');
        }
    }
}
include_once $g['dir_module'] . 'var/var.php';
include_once $g['path_module'] . 'upload/var/var.php';
if ($d['bbs']['commentdel']) {
    if ($R['comment']) {
        getLink('', '', '댓글이 있는 게시물은 삭제할 수 없습니다.', '');
    }
}
if ($d['bbs']['replydel']) {
    if (getDbRows($table[$m . 'data'], 'parent=' . $R['uid'])) {
        getLink('', '', '답변글이 있는 게시물은 삭제할 수 없습니다.', '');
    }
}
//댓글삭제
if ($R['comment']) {
    $CCD = getDbArray($table['s_comment'], "parent='" . $m . $R['uid'] . "'", '*', 'uid', 'asc', 0, 0);
    while ($_C = db_fetch_array($CCD)) {
        if ($_C['upload']) {
            $UPFILES = getArrayString($_C['upload']);
            foreach ($UPFILES['data'] as $_val) {
                $U = getUidData($table['s_upload'], $_val);
                if ($U['uid']) {
                    getDbUpdate($table['s_numinfo'], 'upload=upload-1', "date='" . substr($U['d_regis'], 0, 8) . "' and site=" . $U['site']);
                    getDbDelete($table['s_upload'], 'uid=' . $U['uid']);
                    if ($U['url'] == $d['upload']['ftp_urlpath']) {
示例#18
0
文件: main.php 项目: kieregh/rb1.2
<?php

$sort = $sort ? $sort : 'gid';
$orderby = $orderby ? $orderby : 'asc';
$recnum = $recnum && $recnum < 91 ? $recnum : 30;
$RCD = getDbArray($table['s_module'], '', '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_module'], '');
$TPG = getTotalPage($NUM, $recnum);
if (!$id) {
    $id = 'home';
}
$R = getDbData($table['s_module'], "id='" . $id . "'", '*');
?>

<div id="catebody">
	<div id="category">
		<form name="mform1" action="<?php 
echo $g['s'];
?>
/" method="post" target="_action_frame_<?php 
echo $m;
?>
">
		<input type="hidden" name="r" value="<?php 
echo $r;
?>
" />
		<input type="hidden" name="m" value="<?php 
echo $module;
?>
" />
示例#19
0
    }
} else {
    $upfileNum = 1;
    $name = _LANG('a5002', 'mediaset');
    $fileExt = 'mp4';
    $mingid = getDbCnt($table['s_upload'], 'min(gid)', '');
    $gid = $mingid ? $mingid - 1 : 100000000;
    $QKEY = "gid,pid,category,hidden,tmpcode,site,mbruid,fileonly,type,ext,fserver,url,folder,name,tmpname,thumbname,size,width,height,alt,caption,description,src,linkto,license,down,d_regis,d_update,sync,linkurl";
    $QVAL = "'{$gid}','{$gid}','{$category}','0','{$tmpcode}','{$s}','{$mbruid}','{$_fileonly}','0','{$fileExt}','0','','','{$name}','','','0','0','0','','','','{$src}','0','0','0','{$d_regis}','','',''";
    getDbInsert($table['s_upload'], $QKEY, $QVAL);
    if ($gid == 100000000) {
        db_query("OPTIMIZE TABLE " . $table['s_upload'], $DB_CONNECT);
    }
}
if ($fileonly != 'Y') {
    if (!getDbRows($table['s_uploadcat'], 'mbruid=' . $my['uid'] . ' and type=2')) {
        getDbInsert($table['s_uploadcat'], 'gid,site,mbruid,type,hidden,users,name,r_num,d_regis,d_update', "'0','" . $s . "','" . $my['uid'] . "','2','0','','none','0','" . $date['totime'] . "',''");
        getDbInsert($table['s_uploadcat'], 'gid,site,mbruid,type,hidden,users,name,r_num,d_regis,d_update', "'1','" . $s . "','" . $my['uid'] . "','2','0','','trash','0','" . $date['totime'] . "',''");
    }
    $_tname = 'uid=' . (int) $category;
    if (!$category) {
        $_tname = "name='none'";
    }
    if ($category == -1) {
        $_tname = "name='trash'";
    }
    getDbUpdate($table['s_uploadcat'], 'r_num=r_num+' . $upfileNum, 'mbruid=' . $my['uid'] . ' and type=2 and ' . $_tname);
}
if ($link == 'Y') {
    getLink('reload', 'parent.', '', '');
}
示例#20
0
<?php

include_once $g['dir_module_skin'] . '_menu.php';
$sort = $sort ? $sort : 'uid';
$orderby = $orderby ? $orderby : 'desc';
$recnum = $recnum && $recnum < 200 ? $recnum : 15;
$sqlque = 'mbruid=' . $M['memberuid'];
if ($category) {
    $sqlque .= " and category='" . $category . "'";
}
if ($where && $keyword) {
    $sqlque .= getSearchSql($where, $keyword, $ikeyword, 'or');
}
$RCD = getDbArray($table['s_scrap'], $sqlque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_scrap'], $sqlque);
$TPG = getTotalPage($NUM, $recnum);
?>



<div id="scraplist">

	<div class="info">

		<div class="article">
			<?php 
echo number_format($NUM);
?>
개(<?php 
echo $p;
?>
示例#21
0
if ($R['uid']) {
    getDbDelete($table['s_start'], 'site=' . $R['uid']);
    getDbDelete($table['s_site'], 'uid=' . $R['uid']);
    $_MENUS = getDbSelect($table['s_menu'], 'site=' . $R['uid'] . ' order by gid asc', '*');
    while ($_M = db_fetch_array($_MENUS)) {
        $_xfile = $g['path_page'] . 'menu/' . sprintf('%05d', $_M['uid']);
        unlink($_xfile . '.php');
        unlink($_xfile . '.widget.php');
        @unlink($_xfile . '.mobile.php');
        @unlink($_xfile . '.css');
        @unlink($_xfile . '.js');
        @unlink($_xfile . '.header.php');
        @unlink($_xfile . '.footer.php');
        @unlink($_xfile . '.txt');
        @unlink($_xfile . '.cache');
        @unlink($_xfile . '.widget.cache');
        @unlink($_xfile . '.mobile.cache');
        @unlink($g['path_var'] . 'menu/' . $_M['imghead']);
        @unlink($g['path_var'] . 'menu/' . $_M['imgfoot']);
        getDbDelete($table['s_seo'], 'rel=1 and parent=' . $_M['uid']);
    }
    getDbDelete($table['s_menu'], 'site=' . $R['uid']);
    db_query("OPTIMIZE TABLE " . $table['s_site'], $DB_CONNECT);
    db_query("OPTIMIZE TABLE " . $table['s_menu'], $DB_CONNECT);
    unlink($g['path_var'] . 'sitephp/' . $account . '.php');
}
if (!getDbRows($table['s_site'], '')) {
    getLink($g['s'] . '/', 'parent.parent.', '', '');
} else {
    getLink($g['s'] . '/?m=admin&module=' . $m, 'parent.', '', '');
}
示例#22
0
function getCommentList($theme, $parent, $_where, $recnum, $sort, $orderby1, $orderby2, $cp)
{
    global $g, $table, $_HS, $m, $my;
    include $theme . '_var.php';
    // 설정파일 인클루드
    $g['img_module_skin'] = $theme . 'image/';
    $NCD = array();
    $RCD = array();
    $cp = $cp ? $cp : 1;
    $sort = $sort ? $sort : 'uid';
    $orderby1 = $orderby1 ? $orderby1 : $d['comment']['orderby1'];
    $orderby2 = $orderby2 ? $orderby2 : $d['comment']['orderby2'];
    $recnum = $recnum ? $recnum : $d['comment']['recnum'];
    $cmentque = " and parent='" . str_replace('-', '', $parent) . "'";
    if ($_where) {
        $cmentque .= " and " . $_where;
    }
    $PCD = getDbArray($table['s_comment'], 'notice=1' . $cmentque, '*', $sort, $orderby1, 0, 0);
    $TCD = getDbArray($table['s_comment'], 'notice=0' . $cmentque, '*', $sort, $orderby2, $recnum, $cp);
    $NUM = getDbRows($table['s_comment'], 'notice=0' . $cmentque);
    $TPG = getTotalPage($NUM, $recnum);
    while ($_R = db_fetch_array($PCD)) {
        $NCD[] = $_R;
    }
    while ($_R = db_fetch_array($TCD)) {
        $RCD[] = $_R;
    }
    //echo $cmentque;
    $RCD = $NCD + $RCD;
    $i = 1;
    $namegi = $NUM - $cp * $recnum;
    if ($namegi > 0) {
        $namegi_ment = '총 <span class="text-danger namegi">' . $namegi . '</span> 개의 댓글이 더 있습니다.';
        $btn_more = 'btn-more';
        $is_namegi = 1;
    } else {
        $namegi_ment = '더이상 댓글이 없습니다.';
        $btn_more = 'disabled';
        $is_namegi = 0;
    }
    // 한줄의견 쓰는(현재 로그인한) 사용자 아바타 사진 url 세팅
    if ($my['photo']) {
        $avatar_img = $g['url_root'] . '/_var/avatar/' . $my['photo'];
    } else {
        $avatar_img = $g['url_root'] . '/_var/avatar/0.gif';
    }
    foreach ($RCD as $C) {
        $C['mobile'] = isMobileConnect($C['agent']);
        if ($C['mbruid']) {
            $M = getDbData($table['s_mbrdata'], 'memberuid=' . $C['mbruid'], '*');
        } else {
            $M = array();
        }
        $isSECRETCHECK = true;
        $JN_time = getJNTime($C['d_regis']);
        // 지난시간 얻기 함수 호출
        // 댓글 작성자 아바타 사진 url 세팅
        if ($M['photo']) {
            $avatar_img = $g['url_root'] . '/_var/avatar/' . $M['photo'];
        } else {
            $avatar_img = $g['url_root'] . '/_var/avatar/0.gif';
        }
        echo '
         <section id="pinBoot" class="rb-pinterest-grid">
		   <article class="panel panel-default panel-google-plus comment-list" id="' . $C['uid'] . '-' . $C['score1'] . '-' . $C['oneline'] . '">
             <div  id="cuid-' . $C['uid'] . '">
                 <input type="hidden" name="is_namegi" value="' . $is_namegi . '"/>
                 <input type="hidden" name="TPG" value="' . $TPG . '"/>
                 <input type="hidden" name="theme" class="theme" value="' . $theme . '" />
                 <input type="hidden" name="parent" class="parent" value="' . $parent . '" />
                 <input type="hidden" name="c_content" class="c_content" value="' . htmlspecialchars(getContents($C['content'], $C['html'], $keyword)) . '" />
                 <div class="dropdown">
                     <span class="dropdown-toggle" type="button" data-toggle="dropdown">
                         <span class="[ glyphicon glyphicon-chevron-down ]"></span>
                     </span>
                     <ul class="dropdown-menu" role="menu">
                         <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
                         <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
                         <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
                         <li role="presentation" class="divider"></li>
                         <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
                     </ul>
                 </div>
                 <div class="panel-google-plus-tags">
                     <ul>
                         <li>#자동차</li>
                         <li>#귀성길</li>
                     </ul>
                 </div>
                 <div class="panel-heading">
                     <img class="img-circle pull-left" src="/_core/opensrc/thumb/image.php?width=46&amp;height:46&amp;cropratio=1:1&amp;image=' . $avatar_img . '" alt="' . $M[$_HS['nametype']] . ' 아바타 " />
                     <h3>소비자와 함께</h3>
                     <h5><span>제한적으로 공유함</span> - <span>' . getDateFormat($C['d_regis'], 'Y. m. d') . '</span> </h5>
                 </div>
                 <div class="panel-body">
                     <p>' . getContents($C['content'], $C['html'], $keyword) . '</p>
                 </div>
                 <div class="panel-footer">
                     <button type="button" class="btn btn-default">+1</button>
                     <button type="button" class="btn btn-default">
                         <span class="glyphicon glyphicon-share-alt"></span>
                     </button>
                     <div class="input-placeholder">댓글 추가...</div>
                 </div>
                 <div class="panel-google-plus-comment" id="comments-' . $C['uid'] . '-reply">
                     <input type="hidden" name="parent" value="' . $C['uid'] . '" />
                     <input type="hidden" name="theme" value="' . $theme . '" />
                     <input type="hidden" name="ouid" value="" />
                     <img class="img-circle pull-left" src="/_core/opensrc/thumb/image.php?width=46&amp;height:46&amp;cropratio=1:1&amp;image=' . $avatar_img . '" alt="' . $my[$_HS['nametype']] . ' 아바타 " />
                     <div class="panel-google-plus-textarea">
                         <textarea rows="4"></textarea>
                         <button type="button" class="btn btn-success disabled" id="one-regis-' . $C['uid'] . '">댓글 올리기</button>
                         <button type="reset" class="btn btn-default">취소</button>
                     </div>
                     <div class="clearfix"></div>
                 </div>';
        echo '<div id="oneline-box-' . $C['uid'] . '" class="one-list-wrap">';
        // 한줄 의견 리스트 출력함수 호출
        getOnelineList($theme, $C['uid']);
        echo '</div>';
        // 한 줄 의견 출력 박스
        echo '</div>   
          </article>
          </section>';
        $i++;
    }
    //endforeach
    $R = array();
    // 더보기 버튼 설정시
    if ($d['comment']['show_more']) {
        echo '<button class="text-center btn btn-default btn-block ' . $btn_more . '"><i class="fa fa-sort-desc fa-lg"></i><span class="text-muted small"> 더 보기 ( ' . $namegi_ment . ' ) </span></button>';
    }
}
示例#23
0
include_once $g['path_module'] . $m . '/var/var.php';
if ($cync) {
    $_SESSION[$m . 'cync'] = $cync;
}
if (!$_SESSION[$m . 'cync']) {
    getLink(RW(0), '', '동기화코드가 지정되지 않았습니다.', '');
}
$cyncArr = getArrayString($_SESSION[$m . 'cync']);
$mod = 'main';
$sort = $sort ? $sort : 'uid';
$orderby = $orderby ? $orderby : 'asc';
$recnum = $recnum && $recnum < 200 ? $recnum : $d['trackback']['recnum'];
$cmentque = "parent='" . $cyncArr['data'][0] . $cyncArr['data'][1] . "' and type=1";
$RCD = array();
$TCD = getDbArray($table['s_trackback'], $cmentque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_trackback'], $cmentque);
$TPG = getTotalPage($NUM, $recnum);
while ($_R = db_fetch_array($TCD)) {
    $RCD[] = $_R;
}
if ($g['mobile'] && $_SESSION['pcmode'] != 'Y') {
    $B['skin'] = $d['trackback']['skin_mobile'];
} else {
    $B['skin'] = $skin ? $skin : $d['trackback']['skin_main'];
}
$g['track_reset'] = $c ? $g['s'] . '/?r=' . $r . '&amp;c=' . $c : getLinkFilter($g['s'] . '/?r=' . $r . '&amp;m=' . $m, array('skin', 'iframe'));
$g['track_list'] = $g['track_reset'] . getLinkFilter('', array('p', 'sort', 'orderby', 'recnum', 'where', 'keyword'));
$g['track_action'] = $g['track_list'] . '&amp;a=';
$g['track_delete'] = $g['track_action'] . 'delete&amp;uid=';
$g['dir_module_skin'] = $g['dir_module'] . 'theme/' . $B['skin'] . '/';
$g['url_module_skin'] = $g['url_module'] . '/theme/' . $B['skin'];
示例#24
0
<?php

if (!defined('__KIMS__')) {
    exit;
}
if (!$my['uid']) {
    getLink('', '', '정상적인 접근이 아닙니다.', '');
}
$R = getUidData($table[$m . 'data'], $uid);
if (!$R['uid']) {
    getLink('', '', '삭제되었거나 존재하지 않는 게시물입니다.', '');
}
$B = getUidData($table[$m . 'list'], $R['bbs']);
if (!$B['uid']) {
    getLink('', '', '존재하지 않는 게시판입니다.', '');
}
$mbruid = $my['uid'];
$category = $_HM['name'] ? $_HM['name'] : $B['name'];
$subject = addslashes($R['subject']);
$url = getLinkFilter($g['s'] . '/?' . ($_HS['usescode'] ? 'r=' . $r . '&amp;' : '') . ($c ? 'c=' . $c : 'm=' . $m), array('bid', 'skin', 'iframe'));
$d_regis = $date['totime'];
if (getDbRows($table['s_scrap'], "mbruid=" . $mbruid . " and url='" . $url . "'")) {
    getLink('', '', '이미 스크랩된 게시물입니다.', '');
}
$_QKEY = 'mbruid,category,subject,url,d_regis';
$_QVAL = "'{$mbruid}','{$category}','{$subject}','{$url}','{$d_regis}'";
getDbInsert($table['s_scrap'], $_QKEY, $_QVAL);
getLink('', '', '스크랩 되었습니다.', '');
示例#25
0
文件: friend.php 项目: kieregh/rb1.2
    }
} elseif ($type == 'following') {
    $sqlque = 'my_mbruid=' . $my['uid'];
} else {
    $sqlque = 'my_mbruid=' . $my['uid'] . ' and rel=1';
}
if ($where && $keyword) {
    $sqlque .= getSearchSql($where, $keyword, $ikeyword, 'or');
}
$RCD = getDbArray($table['s_friend'], $sqlque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_friend'], $sqlque);
$TPG = getTotalPage($NUM, $recnum);
$_NUM = array();
$_NUM['follower'] = getDbRows($table['s_friend'], 'by_mbruid=' . $my['uid']);
$_NUM['following'] = getDbRows($table['s_friend'], 'my_mbruid=' . $my['uid']);
$_NUM['friend'] = getDbRows($table['s_friend'], 'my_mbruid=' . $my['uid'] . ' and rel=1');
?>



<div id="friendlist">

	<div class="info">

		<div class="article">
			<a href="<?php 
echo $g['url_page'];
?>
&amp;type=friend"<?php 
if ($type == 'friend') {
    ?>
示例#26
0
$orderby = $orderby ? $orderby : 'asc';
$recnum = $recnum && $recnum < 200 ? $recnum : 20;
$bbsque = 'mbruid=' . $my['uid'] . ' and site=' . $s;
if ($where && $keyword) {
    if (strstr('[name][nic][id][ip]', $where)) {
        $bbsque .= " and " . $where . "='" . $keyword . "'";
    } else {
        if ($where == 'term') {
            $bbsque .= " and d_regis like '" . $keyword . "%'";
        } else {
            $bbsque .= getSearchSql($where, $keyword, $ikeyword, 'or');
        }
    }
}
$RCD = getDbArray($table['s_oneline'], $bbsque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_oneline'], $bbsque);
$TPG = getTotalPage($NUM, $recnum);
?>


<div id="bbslist">

	<div class="info">

		<div class="article">
			<?php 
echo number_format($NUM);
?>
개(<?php 
echo $p;
?>
示例#27
0
';
	parent.document.procForm.check_nic.value = '0';
	parent.submitFlag = false;
	</script>
	<?php 
        }
    } else {
        if ($type == 'email') {
            if (strpos($fvalue, '@') && strpos($fvalue, '.')) {
                if ($my['admin']) {
                    $result = true;
                } else {
                    if ($my['uid']) {
                        $isId = getDbRows($table['s_mbrdata'], "email='" . $fvalue . "' and email <> '" . $my['email'] . "'");
                    } else {
                        $isId = getDbRows($table['s_mbrdata'], "email='" . $fvalue . "'");
                    }
                    if (!$isId) {
                        $result = true;
                    }
                }
            }
            if ($result) {
                ?>
	<script>
	parent.getId('rb-emailcheck').innerHTML = '<i class="fa fa-info-circle fa-lg fa-fw"></i><?php 
                echo _LANG('a1001', 'admin');
                ?>
';
	parent.document.procForm.check_email.value = '1';
	parent.submitFlag = false;
示例#28
0
    $bookmark_rcd = getDbData($table['s_admpage'], 'memberuid=' . $memberuid . " and url='" . $url . "'", 'uid');
    $bookmark_uid = $bookmark_rcd['uid'];
    if (!$bookmark_uid) {
        getLink('', '', '등록되지 않았거나 이미 삭제된 북마크입니다.', '');
    }
    getDbDelete($table['s_admpage'], 'uid=' . $bookmark_uid);
    ?>
	<script>
	parent.getId('_bookmark_star_').className = 'fa fa-lg fa-star-o';
	parent.getId('_bookmark_notyet_').className = 'btn-group btn-group-sm dropdown';
	parent.getId('_bookmark_already_').className = 'btn-group btn-group-sm dropdown hidden';
	parent.getId('_now_bookmark_<?php 
    echo $bookmark_uid;
    ?>
').className = 'list-group-item hidden';
	<?php 
    if (!getDbRows($table['s_admpage'], 'memberuid=' . $my['uid'])) {
        ?>
	parent.getId('_add_bookmark_').innerHTML = '<a class="list-group-item"><i class="fa fa-fw fa-file-text-o"></i>등록된 북마크가 없습니다</a>';
	<?php 
    }
    ?>
	</script>
	<?php 
    exit;
} else {
    foreach ($bookmark_pages as $val) {
        getDbDelete($table['s_admpage'], 'uid=' . $val . ' and memberuid=' . $my['uid']);
    }
    getLink('reload', 'parent.', '', '');
}
示例#29
0
$month1 = $month1 ? $month1 : substr($date['today'], 4, 2);
$day1 = $day1 ? $day1 : 1;
//substr($date['today'],6,2);
$year2 = $year2 ? $year2 : substr($date['today'], 0, 4);
$month2 = $month2 ? $month2 : substr($date['today'], 4, 2);
$day2 = $day2 ? $day2 : substr($date['today'], 6, 2);
$sort = $sort ? $sort : 'uid';
$orderby = $orderby ? $orderby : 'desc';
$recnum = $recnum && $recnum < 200 ? $recnum : 20;
$sqlque = 'mbruid=' . $my['uid'] . ' and site=' . $s;
$sqlque = $sqlque . ' and d_regis > ' . $year1 . sprintf('%02d', $month1) . sprintf('%02d', $day1) . '000000 and d_regis < ' . $year2 . sprintf('%02d', $month2) . sprintf('%02d', $day2) . '240000';
if ($where && $keyword) {
    $sqlque .= getSearchSql($where, $keyword, $ikeyword, 'or');
}
$RCD = getDbArray($table['s_referer'], $sqlque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_referer'], $sqlque);
$TPG = getTotalPage($NUM, $recnum);
?>



<div id="loglist">

	<form name="bbssearchf" action="<?php 
echo $g['s'];
?>
/">
	<input type="hidden" name="r" value="<?php 
echo $r;
?>
" />
示例#30
0
<?php

$recnum = 15;
$catque = $cat ? "category='" . $cat . "'" : '';
$PAGES = getDbArray($table['s_page'], $catque, '*', 'uid', 'asc', $recnum, $p);
$NUM = getDbRows($table['s_page'], $catque);
$TPG = getTotalPage($NUM, $recnum);
if ($uid) {
    $R = getUidData($table['s_page'], $uid);
}
?>


<div id="catebody">
	<div id="category">
		<div class="title">
			<select class="c1" onchange="goHref('<?php 
echo $g['adm_href'];
?>
&amp;cat='+this.value);">
			<option value="">&nbsp;+ 페이지분류</option>
			<option value="">--------------------------------</option>
			<?php 
$_cats = array();
?>
			<?php 
$CATS = db_query("select *,count(*) as cnt from " . $table['s_page'] . " group by category", $DB_CONNECT);
?>
			<?php 
while ($C = db_fetch_array($CATS)) {
    $_cats[] = $C['category'];