• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getDbCnt函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: ResizeWidth

             $thumbFile = $savePath3 . '/' . $thumbname;
             ResizeWidth($saveFile, $thumbFile, 150);
             @chmod($thumbFile, 0707);
             $IM = getimagesize($saveFile);
             $width = $IM[0];
             $height = $IM[1];
         }
         @chmod($saveFile, 0707);
     }
     $mingid = getDbCnt($table['bbsupload'], 'min(gid)', '');
     $gid = $mingid ? $mingid - 1 : 100000000;
     $QKEY = "gid,hidden,tmpcode,site,mbruid,type,ext,fserver,url,folder,name,tmpname,thumbname,size,width,height,caption,down,d_regis,d_update,cync";
     $QVAL = "'{$gid}','{$hidden}','{$tmpcode}','{$s}','{$mbruid}','{$type}','{$fileExt}','{$fserver}','{$url}','{$folder}','{$name}','{$tmpname}','{$thumbname}','{$size}','{$width}','{$height}','{$caption}','{$down}','{$d_regis}','{$d_update}','{$cync}'";
     getDbInsert($table['bbsupload'], $QKEY, $QVAL);
     getDbUpdate($table['s_numinfo'], 'upload=upload+1', "date='" . $date['today'] . "' and site=" . $s);
     $lastuid = getDbCnt($table['bbsupload'], 'max(uid)', '');
     $sourcePath = './modules/bbs' . str_replace('..', '', $savePath3);
     // 소스에 보여주는 패스트 -- 상대경로를  제거한다.
     $code = '100';
     $src = $sourcePath . '/' . $tmpname;
     $result = array($code, $src, $lastuid);
     // 이미지 path 및 이미지 uid 값
     echo json_encode($result);
     // 최종적으로 에디터에 넘어가는 값
 } else {
     $code = '200';
     $msg = '업로드금지 확장자입니다.';
     $result = array($code, $msg);
     echo json_encode($result);
     // 최종적으로 에디터에 넘어가는 값
 }
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:a.upload.php


示例2: _LANG

)';
	<?php 
        if ($_nowPer > 99) {
            ?>
	parent.gridProgress();
	<?php 
        }
        ?>
	</script>
	<?php 
    }
} 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) {
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.upload_vod.php


示例3: file

     $_page = file('./_package/dump_page.dat');
     foreach ($_page as $_val) {
         if (!trim($_val)) {
             continue;
         }
         $_r = explode("\t", $_val);
         $_p = getDbData($table['s_page'], "id='" . $_r[3] . "'", 'uid');
         if ($_p['uid']) {
             getDbUpdate($table['s_page'], "pagetype='" . $_r[0] . "',ismain='" . $_r[1] . "',mobile='" . $_r[2] . "',id='" . $_r[3] . "',category='" . $_r[4] . "',name='" . $_r[5] . "',layout='" . $_r[6] . "',joint='" . $_r[7] . "',sosokmenu='" . $_r[8] . "'", 'uid=' . $_p['uid']);
         } else {
             getDbInsert($table['s_page'], 'pagetype,ismain,mobile,id,category,name,layout,joint,sosokmenu', "'" . $_r[0] . "','" . $_r[1] . "','" . $_r[2] . "','" . $_r[3] . "','" . $_r[4] . "','" . $_r[5] . "','" . $_r[6] . "','" . $_r[7] . "','" . $_r[8] . "'");
         }
     }
 }
 if ($aply_bbs == '1') {
     $maxgid = getDbCnt($table['bbslist'], 'max(gid)', '');
     $_bbs = file('./_package/dump_bbs.dat');
     foreach ($_bbs as $_val) {
         if (!trim($_val)) {
             continue;
         }
         $_r = explode("\t", $_val);
         $_p = getDbData($table['bbslist'], "id='" . $_r[0] . "'", 'uid');
         if ($_p['uid']) {
             continue;
         }
         $maxgid++;
         getDbInsert($table['bbslist'], 'gid,id,name,category,imghead,imgfoot,puthead,putfoot', "'" . $maxgid . "','" . $_r[0] . "','" . $_r[1] . "','" . $_r[2] . "','" . $_r[3] . "','" . $_r[4] . "','" . $_r[5] . "','" . $_r[6] . "'");
     }
 }
 DirCopy('./_package/rb', './');
开发者ID:eosliebe,项目名称:rb,代码行数:31,代码来源:a.package_upload.php


示例4: getDbInsert

    $QVAL = "'{$Ugid}','{$id}','{$name}','{$category}','0','','" . $date['totime'] . "','{$imghead}','{$imgfoot}','{$puthead}','{$putfoot}','{$addinfo}','{$writecode}'";
    getDbInsert($table[$m . 'list'], $QKEY, $QVAL);
    $mfile = $g['dir_module'] . 'var/code/' . $id;
    if (trim($codhead)) {
        $fp = fopen($mfile . '.header.php', 'w');
        fwrite($fp, trim(stripslashes($codhead)));
        fclose($fp);
        @chmod($mfile . '.header.php', 0707);
    }
    if (trim($codfoot)) {
        $fp = fopen($mfile . '.footer.php', 'w');
        fwrite($fp, trim(stripslashes($codfoot)));
        fclose($fp);
        @chmod($mfile . '.footer.php', 0707);
    }
    $backUrl = $g['s'] . '/?r=' . $r . '&m=admin&module=' . $m . '&front=makebbs&iframe=Y&uid=' . getDbCnt($table[$m . 'list'], 'max(uid)', '');
}
$fdset = array('layout', 'skin', 'm_skin', 'c_skin', 'c_mskin', 'c_hidden', 'c_open', 'perm_g_list', 'perm_g_view', 'perm_g_write', 'perm_g_down', 'perm_l_list', 'perm_l_view', 'perm_l_write', 'perm_l_down', 'admin', 'hitcount', 'recnum', 'sbjcut', 'newtime', 'rss', 'sosokmenu', 'point1', 'point2', 'point3', 'display', 'hidelist', 'snsconnect');
$gfile = $g['dir_module'] . 'var/var.' . $id . '.php';
$fp = fopen($gfile, 'w');
fwrite($fp, "<?php\n");
foreach ($fdset as $val) {
    fwrite($fp, "\$d['bbs']['" . $val . "'] = \"" . trim(${$val}) . "\";\n");
}
fwrite($fp, "?>");
fclose($fp);
@chmod($gfile, 0707);
if ($bid) {
    $msg = '게시판 설정이 수정되었습니다. ';
} else {
    $msg = '새 게시판이 만들어졌습니다';
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:a.makebbs.php


示例5: substr

if ($R['tag']) {
    $_tagdate = substr($R['d_regis'], 0, 8);
    $_tagarr1 = explode(',', $R['tag']);
    foreach ($_tagarr1 as $_t) {
        if (!$_t) {
            continue;
        }
        $_TAG = getDbData($table['s_tag'], "site=" . $R['site'] . " and date='" . $_tagdate . "' and keyword='" . $_t . "'", '*');
        if ($_TAG['uid']) {
            if ($_TAG['hit'] > 1) {
                getDbUpdate($table['s_tag'], 'hit=hit-1', 'uid=' . $_TAG['uid']);
            } else {
                getDbDelete($table['s_tag'], 'uid=' . $_TAG['uid']);
            }
        }
    }
}
getDbUpdate($table[$m . 'month'], 'num=num-1', "date='" . substr($R['d_regis'], 0, 6) . "' and site=" . $R['site'] . ' and bbs=' . $R['bbs']);
getDbUpdate($table[$m . 'day'], 'num=num-1', "date='" . substr($R['d_regis'], 0, 8) . "' and site=" . $R['site'] . ' and bbs=' . $R['bbs']);
getDbDelete($table[$m . 'idx'], 'gid=' . $R['gid']);
getDbDelete($table[$m . 'data'], 'uid=' . $R['uid']);
getDbUpdate($table[$m . 'list'], 'num_r=num_r-1', 'uid=' . $R['bbs']);
if ($cuid) {
    getDbUpdate($table['s_menu'], "num='" . getDbCnt($table[$m . 'month'], 'sum(num)', 'site=' . $s . ' and bbs=' . $R['bbs']) . "'", 'uid=' . $cuid);
}
getDbDelete($table['s_trackback'], "parent='" . $R['bbsid'] . $R['uid'] . "'");
if ($R['point1'] && $R['mbruid']) {
    getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $R['mbruid'] . "','0','-" . $R['point1'] . "','게시물삭제(" . getStrCut($R['subject'], 15, '') . ")환원','" . $date['totime'] . "'");
    getDbUpdate($table['s_mbrdata'], 'point=point-' . $R['point1'], 'memberuid=' . $R['mbruid']);
}
getLink($backUrl, 'parent.', $alert, $history);
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:a.delete.php


示例6: getUidData

}
if ($uid) {
    $R = getUidData($table['s_oneline'], $uid);
    if (!$R['uid']) {
        echo '[RESULT:존재하지 않는 한줄의견입니다. :RESULT]';
    }
    if (!$my['admin'] && $my['uid'] != $R['mbruid']) {
        echo '[RESULT:정상적인 접근이 아닙니다.:RESULT]';
    }
    $QVAL = "hidden='{$hidden}',content='{$content}',html='{$html}',d_modify='{$d_regis}',adddata='{$adddata}'";
    getDbUpdate($table['s_oneline'], $QVAL, 'uid=' . $R['uid']);
} else {
    //댓글의 부모글에 한줄의견 수량 추가
    $sync_arr = explode('|', $R['sync']);
    $feed_table = $sync_arr[0];
    $feed_uid = $sync_arr[1];
    getDbUpdate($feed_table, 'oneline=oneline+1', 'uid=' . $feed_uid);
    $maxuid = getDbCnt($table['s_oneline'], 'max(uid)', '');
    $uid = $maxuid ? $maxuid + 1 : 1;
    $QKEY = "uid,site,parent,parentmbr,hidden,name,nic,mbruid,id,content,html,report,point,d_regis,d_modify,ip,agent,adddata";
    $QVAL = "'{$uid}','{$s}','{$parent}','{$parentmbr}','{$hidden}','{$name}','{$nic}','{$mbruid}','{$id}','{$content}','{$html}','{$report}','{$point}','{$d_regis}','{$d_modify}','{$ip}','{$agent}','{$adddata}'";
    getDbInsert($table['s_oneline'], $QKEY, $QVAL);
    getDbUpdate($table['s_comment'], "oneline=oneline+1,d_oneline='" . $d_regis . "'", 'uid=' . $parent);
    getDbUpdate($table['s_numinfo'], 'oneline=oneline+1', "date='" . $date['today'] . "' and site=" . $s);
    if ($point && $my['uid']) {
        getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $my['uid'] . "','0','" . $point . "','한줄의견(" . getStrCut(str_replace('&amp;', ' ', strip_tags($content)), 15, '') . ")포인트','" . $date['totime'] . "'");
        getDbUpdate($table['s_mbrdata'], 'point=point+' . $point, 'memberuid=' . $my['uid']);
    }
}
echo '[RESULT:ok:RESULT]';
exit;
开发者ID:kieregh,项目名称:test_comment,代码行数:31,代码来源:a.oneline_regis.php


示例7: db_query

        db_query("OPTIMIZE TABLE " . $table[$m . 'idx'], $DB_CONNECT);
        db_query("OPTIMIZE TABLE " . $table[$m . 'data'], $DB_CONNECT);
        db_query("OPTIMIZE TABLE " . $table[$m . 'month'], $DB_CONNECT);
        db_query("OPTIMIZE TABLE " . $table[$m . 'day'], $DB_CONNECT);
    }
}
$NOWUID = $LASTUID ? $LASTUID : $R['uid'];
if ($trackback) {
    $trackback = trim($trackback);
    $compaurl = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '/' . $m . '/' . $NOWUID;
    if ($trackback != $compaurl) {
        include_once $g['path_core'] . 'function/trackback.func.php';
        $orignurl = 'http://' . $_SERVER['HTTP_HOST'] . str_replace('index.php', '?m=', $_SERVER['SCRIPT_NAME']) . $m . '&bid=' . $bbsid . '&uid=' . $NOWUID;
        $result = putTrackback($trackback, $orignurl, getUTFtoKR(strip_tags($subject)), getUTFtoKR(${$_HS['nametype']}), getUTFtoKR(strip_tags($content)), 0);
        if ($result) {
            $minuid = getDbCnt($table['s_trackback'], 'min(uid)', '');
            $trackuid = $minuid ? $minuid - 1 : 100000000;
            $cync = '[' . $m . '][' . $NOWUID . '][m:' . $m . ',bid:' . $bbsid . ',uid:' . $NOWUID . ']';
            $QKEY = "uid,site,type,parent,parentmbr,url,name,subject,content,d_regis,d_modify,cync";
            $QVAL = "'{$trackuid}','{$s}','2','" . $m . $NOWUID . "','{$mbruid}','{$trackback}','','','','{$d_regis}','','{$cync}'";
            getDbInsert($table['s_trackback'], $QKEY, $QVAL);
            getDbUpdate($table['s_numinfo'], 'sndtrack=sndtrack+1', "date='" . $date['today'] . "' and site=" . $s);
            if ($trackuid == 100000000) {
                db_query("OPTIMIZE TABLE " . $table['s_trackback'], $DB_CONNECT);
            }
        }
    }
}
if ($tag || $R['tag']) {
    $_tagarr1 = array();
    $_tagarr2 = explode(',', $tag);
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:a.write_h.php


示例8: date

<div class="archiv">
<div class="tt">포스트현황</div>
<ul>
<?php 
for ($i = 0; $i < 12; $i++) {
    $_month = date('Ym', mktime(0, 0, 0, substr($date['today'], 4, 2) - $i, substr($date['today'], 6, 2), $date['year']));
    $_num = getDbCnt($table['bbsmonth'], 'sum(num)', "date='" . $_month . "' and site=" . $s);
    ?>
<li>
<a href="<?php 
    echo $g['s'];
    ?>
/?r=<?php 
    echo $r;
    ?>
&amp;m=bbs&amp;where=term&amp;keyword=<?php 
    echo $_month;
    ?>
"><?php 
    echo getDateFormat($_month, 'Y M');
    ?>
</a>
<span>(<?php 
    echo $_num;
    ?>
)</span>
</li>
<?php 
}
?>
</ul>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:archiv.php


示例9: _LANG

    ?>

			<a href="<?php 
    echo $g['base_href'];
    ?>
&album=trash" class="list-group-item<?php 
    if ($album == 'trash') {
        ?>
 active<?php 
    }
    ?>
"><?php 
    echo _LANG('m0002', 'mediaset');
    ?>
<span class="badge"><?php 
    echo getDbCnt($table['s_uploadcat'], 'sum(r_num)', 'mbruid=' . $my['uid'] . " and type=1 and name='trash'");
    ?>
</span></a>
		</div>
		<div class="list-group">
			<form action="<?php 
    echo $g['s'];
    ?>
/" method="post" target="_upload_iframe_" onsubmit="return AddAlbumRcheck(this);">
			<input type="hidden" name="r" value="<?php 
    echo $r;
    ?>
">
			<input type="hidden" name="m" value="<?php 
    echo $m;
    ?>
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:modal.photo.media.php


示例10: strtolower

     $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);
         @chmod($saveFile, 0707);
         ${'img' . $imgset[$i]} = $userimg;
     }
 }
 $Ugid = getDbCnt($table[$m . 'list'], 'max(gid)', '') + 1;
 $QKEY = "gid,id,name,category,num_r,d_last,d_regis,imghead,imgfoot,puthead,putfoot,addinfo,writecode";
 $QVAL = "'{$Ugid}','{$id}','{$name}','{$category}','0','','" . $date['totime'] . "','{$imghead}','{$imgfoot}','{$puthead}','{$putfoot}','{$addinfo}','{$writecode}'";
 getDbInsert($table[$m . 'list'], $QKEY, $QVAL);
 $mfile = $g['dir_module'] . 'var/code/' . $id;
 if (trim($codhead)) {
     $fp = fopen($mfile . '.header.php', 'w');
     fwrite($fp, trim(stripslashes($codhead)));
     fclose($fp);
     @chmod($mfile . '.header.php', 0707);
 }
 if (trim($codfoot)) {
     $fp = fopen($mfile . '.footer.php', 'w');
     fwrite($fp, trim(stripslashes($codfoot)));
     fclose($fp);
     @chmod($mfile . '.footer.php', 0707);
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:a.makebbs.php


示例11: getLink

        if ($backgo == 'admin') {
            getLink($g['s'] . '/?r=' . $id . '&m=' . $backgo . '&module=' . $m, 'parent.', '', '');
        } else {
            getLink($g['s'] . '/?r=' . $id . '&system=edit.all&type=site', 'parent.', '', '');
        }
    } else {
        if ($iframe == 'Y') {
            getLink('reload', 'parent.parent.', '', '');
        } else {
            getLink('reload', 'parent.', '', '');
        }
    }
} else {
    $ISID = getDbData($Table['s_site'], "id='" . $id . "'", '*');
    if ($ISID['uid']) {
        getLink('', '', '이미 동일한 명칭의 계정아이디가 존재합니다.', '');
    }
    $MAXC = getDbCnt($table['s_site'], 'max(gid)', '');
    $gid = $MAXC + 1;
    $QKEY = "gid,id,name,title,titlefix,icon,layout,startpage,m_layout,m_startpage,lang,open,dtd,nametype,timecal,rewrite,buffer,usescode,headercode,footercode";
    $QVAL = "'{$gid}','{$id}','{$name}','{$title}','{$titlefix}','{$icon}','{$layout}','{$startpage}','{$m_layout}','{$m_startpage}','{$sitelang}','{$open}','{$dtd}','{$nametype}','{$timecal}','{$rewrite}','{$buffer}','{$usescode}','{$headercode}','{$footercode}'";
    getDbInsert($table['s_site'], $QKEY, $QVAL);
    $LASTUID = getDbCnt($table['s_site'], 'max(uid)', '');
    db_query("OPTIMIZE TABLE " . $table['s_site'], $DB_CONNECT);
    $vfile = $g['path_var'] . 'sitephp/' . $LASTUID . '.php';
    $fp = fopen($vfile, 'w');
    fwrite($fp, trim(stripslashes($sitephpcode)));
    fclose($fp);
    @chmod($vfile, 0707);
    getLink('reload', 'parent.', '', '');
}
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:a.regissite.php


示例12: ftp_get

                    @unlink($g['path_tmp'] . 'session/' . $U['tmpname']);
                    if ($U['type'] == 2) {
                        ftp_get($FTP_CONNECT, $g['path_tmp'] . 'session/' . $U['thumbname'], $d['upload']['ftp_folder'] . $U['folder'] . '/' . $U['thumbname'], FTP_BINARY);
                        ftp_put($FTP_CONNECT, $d['upload']['ftp_folder'] . $U['folder'] . '/' . $_thumbna, $g['path_tmp'] . 'session/' . $U['thumbname'], FTP_BINARY);
                        @unlink($g['path_tmp'] . 'session/' . $U['thumbname']);
                    }
                    ftp_close($FTP_CONNECT);
                } else {
                    copy($g['path_file'] . $U['folder'] . '/' . $U['tmpname'], $g['path_file'] . $U['folder'] . '/' . $_tmpname);
                    if ($U['type'] == 2) {
                        copy($g['path_file'] . $U['folder'] . '/' . $U['thumbname'], $g['path_file'] . $U['folder'] . '/' . $_thumbna);
                    }
                }
                $upload_mingid = getDbCnt($table['s_upload'], 'min(gid)', '');
                $upload_gid = $upload_mingid ? $upload_mingid - 1 : 100000000;
                $QKEY = "gid,hidden,tmpcode,site,mbruid,type,ext,fserver,url,folder,name,tmpname,thumbname,size,width,height,caption,down,d_regis,d_update,cync";
                $QVAL = "'{$upload_gid}','" . $U['hidden'] . "','','" . $U['site'] . "','" . $U['mbruid'] . "','" . $U['type'] . "','" . $U['ext'] . "','" . $U['fserver'] . "','" . $U['url'] . "',";
                $QVAL .= "'" . $U['folder'] . "','" . addslashes($U['name']) . "','" . $_tmpname . "','" . $_thumbna . "','" . $U['size'] . "','" . $U['width'] . "','" . $U['height'] . "',";
                $QVAL .= "'" . addslashes($U['caption']) . "','" . $U['down'] . "','" . $U['d_regis'] . "','" . $U['d_update'] . "',''";
                getDbInsert($table['s_upload'], $QKEY, $QVAL);
                getDbUpdate($table['s_numinfo'], 'upload=upload+1', "date='" . substr($U['d_regis'], 0, 8) . "' and site=" . $U['site']);
                $tmpupload .= '[' . getDbCnt($table['s_upload'], 'max(uid)', '') . ']';
                $_content1 = str_replace($U['tmpname'], $_tmpname, $_content1);
            }
        }
        getDbUpdate($table[$m . 'data'], "content='" . addslashes($_content1) . "',upload='" . $tmpupload . "'", 'uid=' . $NOWUID);
    }
    $_SESSION['BbsPost' . $type] = str_replace('[' . $R['uid'] . ']', '', $_SESSION['BbsPost' . $type]);
}
$referer = $g['s'] . '/?r=' . $r . '&iframe=Y&m=admin&module=' . $m . '&front=movecopy&type=' . $type;
getLink($referer, 'parent.', '실행되었습니다.', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:a.multi_copy.php


示例13: ResizeWidth

            $thumbFile = $savePath3 . '/' . $thumbname;
            ResizeWidth($saveFile, $thumbFile, 150);
            @chmod($thumbFile, 0707);
            $IM = getimagesize($saveFile);
            $width = $IM[0];
            $height = $IM[1];
        }
        @chmod($saveFile, 0707);
    }
}
$mingid = getDbCnt($table[$m . 'upload'], 'min(gid)', '');
$gid = $mingid ? $mingid - 1 : 100000000;
$QKEY = "gid,hidden,tmpcode,blog,parent,mbruid,type,ext,fserver,url,folder,name,tmpname,thumbname,size,width,height,caption,down,d_regis,d_update";
$QVAL = "'{$gid}','{$hidden}','{$tmpcode}','{$blog}','0','{$mbruid}','{$type}','{$fileExt}','{$fserver}','{$url}','{$folder}','{$name}','{$tmpname}','{$thumbname}','{$size}','{$width}','{$height}','{$caption}','{$down}','{$d_regis}','{$d_update}'";
getDbInsert($table[$m . 'upload'], $QKEY, $QVAL);
if ($gid == 100000000) {
    db_query("OPTIMIZE TABLE " . $table[$m . 'upload'], $DB_CONNECT);
}
if ($upType == 'normal') {
    getLink($g['s'] . '/?r=' . $r . '&m=' . $m . '&blog=' . $blog . '&upload=Y&mod=' . $mod . '&gparam=' . $gparam . ($cupload ? '&cupload=' . $cupload : ''), '', '', '');
}
$lastuid = getDbCnt($table[$m . 'upload'], 'max(uid)', '');
$sourcePath = './modules/' . $m . str_replace('..', '', $savePath3);
// 소스에 보여주는 패스트 -- 상대경로를  제거한다.
$code = '100';
$src = $saveFile;
$result = array($code, $src, $lastuid);
// 이미지 path 및 이미지 uid 값
echo json_encode($result);
// 최종적으로 에디터에 넘어가는 값
exit;
开发者ID:kieregh,项目名称:test_comment,代码行数:31,代码来源:a.ajax_upload.php


示例14: checkAdmin

<?php

if (!defined('__KIMS__')) {
    exit;
}
checkAdmin(0);
$memberuid = $my['uid'];
$url = $g['s'] . '/?r=' . $r . '&m=' . $m . '&module=' . $_addmodule . '&front=' . $_addfront;
if (getDbRows($table['s_admpage'], 'memberuid=' . $memberuid . " and url='" . $url . "'")) {
    getLink('', '', '이미 등록된 페이지입니다.', '');
}
$maxgid = getDbCnt($table['s_admpage'], 'max(gid)', 'memberuid=' . $memberuid);
$MD = getDbData($table['s_module'], "id='" . $_addmodule . "'", '*');
include_once $g['path_module'] . $_addmodule . '/lang.' . $_HS['lang'] . '/admin/_pc/var/var.menu.php';
$gid = $maxgid + 1;
$name = $MD['name'] . '&gt;' . $d['amenu'][$_addfront];
getDbInsert($table['s_admpage'], 'memberuid,gid,name,url', "'{$memberuid}','{$gid}','{$name}','{$url}'");
getLink('reload', 'parent.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:18,代码来源:a.bookmark.php


示例15: getLink

    if (!$my['id'] || $my['id'] != $R['id'] && !$my['admin']) {
        if (!$pw) {
            getLink('', '', '정상적인 접근이 아닙니다.', '');
        } else {
            if ($pw != $R['pw']) {
                getLink('', '', '정상적인 접근이 아닙니다.', '');
            }
        }
    }
    $QVAL = "display='{$display}',hidden='{$hidden}',notice='{$notice}',subject='{$subject}',content='{$content}',html='{$html}',d_modify='{$d_regis}',upload='{$upload}',adddata='{$adddata}'";
    getDbUpdate($table['s_comment'], $QVAL, 'uid=' . $R['uid']);
} else {
    $R = getUidData($table[$m . 'data'], $parent);
    getDbUpdate($table[$m . 'data'], "comment=comment+1,d_comment='" . $date['totime'] . "'", 'uid=' . $R['uid']);
    $cync = '[' . $m . '][' . $R['uid'] . '][uid,comment,oneline,d_comment][' . $table[$m . 'data'] . '][' . $R['mbruid'] . '][m:' . $m . ',bid:' . $R['bbsid'] . ',uid:' . $R['uid'] . ']';
    $minuid = getDbCnt($table['s_comment'], 'min(uid)', '');
    $uid = $minuid ? $minuid - 1 : 1000000000;
    $QKEY = "uid,site,parent,parentmbr,display,hidden,notice,name,nic,mbruid,id,pw,subject,content,html,";
    $QKEY .= "hit,down,oneline,score1,score2,report,point,d_regis,d_modify,d_oneline,upload,ip,agent,sync,sns,adddata";
    $QVAL = "'{$uid}','{$s}','" . $m . $R['uid'] . "','{$parentmbr}','{$display}','{$hidden}','{$notice}','{$name}','{$nic}','{$mbruid}','{$id}','{$pw}','{$subject}','{$content}','{$html}',";
    $QVAL .= "'{$hit}','{$down}','{$oneline}','{$score1}','{$score2}','{$report}','{$point}','{$d_regis}','{$d_modify}','{$d_oneline}','{$upload}','{$ip}','{$agent}','{$cync}','','{$adddata}'";
    getDbInsert($table['s_comment'], $QKEY, $QVAL);
    getDbUpdate($table['s_numinfo'], 'comment=comment+1', "date='" . $date['today'] . "' and site=" . $s);
    if ($point && $my['uid']) {
        getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $my['uid'] . "','0','" . $point . "','댓글(" . getStrCut($subject, 15, '') . ")포인트','" . $date['totime'] . "'");
        getDbUpdate($table['s_mbrdata'], 'point=point+' . $point, 'memberuid=' . $my['uid']);
    }
    $_SESSION['xW'] = $uid;
    if ($snsCallBack && is_file($g['path_module'] . $snsCallBack)) {
        $xcync = $cync . ',CMT:' . $uid;
        $orignSubject = strip_tags($subject);
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:a.comment_regis.php


示例16: getLink

}
if ($use_oneline) {
    if (!$o_table) {
        getLink('', '', '한줄의견 저장 테이블을 입력해주세요. ', '');
    }
}
if ($uid) {
    $R = getUidData($table[$m . 'object'], $uid);
    $QVAL = "name='{$name}',p_theme='{$p_theme}',m_theme='{$m_theme}',use_oneline='{$use_oneline}',p_table='{$p_table}',c_perm_write='{$c_perm_write}',c_table='{$c_table}',";
    $QVAL .= "c_snsconnect='{$c_snsconnect}',c_recnum='{$c_recnum}',c_sort='{$c_sort}',c_orderby='{$c_orderby}',c_point='{$c_point}',c_onelinedel='{$c_onelinedel}',";
    $QVAL .= "o_table='{$o_table}',o_orderby='{$o_orderby}',o_point='{$o_point}',badword='{$badword}',badword_action='{$badword_action}',badword_escape='{$badword_escape}'";
    getDbUpdate($table[$m . 'object'], $QVAL, 'uid=' . $R['uid']);
    $msg = '수정되었습니다.';
    $_link = $g['s'] . '/?r=' . $r . '&m=admin&module=' . $m . '&front=settings&uid=' . $uid;
} else {
    if (!$id) {
        getLink('', '', '오브젝트 아이디를 입력해 주세요.', '');
    }
    if (getDbRows($table[$m . 'object'], "id='" . $id . "'")) {
        getLink('', '', '이미 같은 아이디의 오브젝트가 존재합니다.', '');
    }
    $QKEY = "id,name,p_theme,m_theme,use_oneline,p_table,c_perm_write,c_table,c_snsconnect,c_recnum,c_sort,c_orderby,c_point,c_onelinedel,o_table,";
    $QKEY .= "o_orderby,o_point,badword,badword_action,badword_escape";
    $QVAL = "'{$id}','{$name}','{$p_theme}','{$m_theme}','{$use_oneline}','{$p_table}','{$c_perm_write}','{$c_table}','{$c_snsconnect}','{$c_recnum}','{$c_sort}','{$c_orderby}',";
    $QVAL .= "'{$c_point}','{$c_onelinedel}','{$o_table}','{$o_orderby}','{$o_point}','{$badword}','{$badword_action}','{$badword_escape}'";
    getDbInsert($table[$m . 'object'], $QKEY, $QVAL);
    $LASTUID = getDbCnt($table[$m . 'object'], 'max(uid)', '');
    $msg = '신규 오브젝트가 생성되었습니다.';
    $_link = $g['s'] . '/?r=' . $r . '&m=admin&module=' . $m . '&front=main';
}
getLink($_link, 'parent.', $msg, '');
开发者ID:kieregh,项目名称:test_comment,代码行数:31,代码来源:a.object_setting.php


示例17: fwrite

             fwrite($fp, "<?php\n");
             foreach ($_tmptable2 as $key => $val) {
                 fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
             }
             foreach ($_tmptable1 as $key => $val) {
                 fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
             }
             fwrite($fp, "?>");
             fclose($fp);
             @chmod($_tmptfile, 0707);
         } else {
             if (is_file($table_db . '.done')) {
                 include $table_db . '.done';
             }
         }
         $maxgid = getDbCnt($_tmptable2['s_module'], 'max(gid)', '');
         $QKEY = "gid,system,hidden,mobile,name,id,tblnum,icon,d_regis";
         $QVAL = "'" . ($maxgid + 1) . "','0','0','1','" . getFolderName($g['path_tmp'] . 'app/' . $package_folder . '/modules/' . $module) . "','{$module}','" . count($table) . "','kf-module','" . $date['totime'] . "'";
         getDbInsert($_tmptable2['s_module'], $QKEY, $QVAL);
     }
     closedir($dirh);
 }
 //플러그인설치
 if (is_dir($g['path_tmp'] . 'app/' . $package_folder . '/plugins')) {
     $dirh = opendir($g['path_tmp'] . 'app/' . $package_folder . '/plugins');
     while (false !== ($filename = readdir($dirh))) {
         if ($filename == '.' || $filename == '..') {
             continue;
         }
         if (is_dir($g['path_plugin'] . $filename)) {
             continue;
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.add_package.php


示例18: getDbArray

        }
    }
}
if ($search_travel) {
    $where3 .= " and {$travel} = '{$search_travel}' ";
}
$where2 = $reception_sql . " and display='1'" . $select_admin_sql . $where3;
$NTC = getDbArray($table[$m . 'idx'], $bbsque1, 'gid', 'gid', $orderby, 0, 0);
while ($_R = db_fetch_array($NTC)) {
    $NCD[] = getDbData($table[$m . 'data'], 'gid=' . $_R['gid'], '*');
}
if ($bid == "cus_manager2") {
    $bbsque2 .= $where2;
}
if ($sort == 'gid' && !$where2 && !$cat) {
    $NUM = getDbCnt($table[$m . 'month'], 'sum(num)', $bbsque0) - count($NCD);
    $recnum = 15;
    $TCD = getDbArray($table[$m . 'idx'], $bbsque2, 'gid', $sort, $orderby, $recnum, $p);
    while ($_R = db_fetch_array($TCD)) {
        $RCD[] = getDbData($table[$m . 'data'], 'gid=' . $_R['gid'], '*');
    }
} else {
    if ($cat) {
        $bbsque2 .= " and category='" . $cat . "'";
    }
    if ($where && $keyword) {
        if (strpos('[name][nic][id][ip]', $where)) {
            $bbsque2 .= " and " . $where . "='" . $keyword . "'";
        } else {
            if ($where == 'term') {
                $bbsque2 .= " and d_regis like '" . $keyword . "%'";
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:_list.php


示例19: getDbUpdate

    getDbUpdate($table['s_mbrid'], "pw='" . $newPw . "'", 'uid=' . $uid);
    getDbUpdate($table['s_mbrdata'], "email='{$email}',name='{$name}',nic='{$nic}',photo='{$photo}',tel2='{$tel2}'", 'memberuid=' . $uid);
    if ($my['uid'] == $uid) {
        if ($pw != '') {
            $_SESSION['mbr_pw'] = $newPw;
            $newPw = getCrypt($pw, $_M['d_regis']);
            getDbUpdate($table['s_mbrid'], "pw='" . $newPw . "'", 'uid=' . $uid);
            if ($my['uid'] == $uid) {
                $_SESSION['mbr_pw'] = $newPw;
            }
        }
    }
    getDbUpdate($table['s_mbrdata'], "email='{$email}',name='{$name}',nic='{$nic}',photo='{$photo}',tel2='{$tel2}'", 'memberuid=' . $uid);
} else {
    getDbInsert($table['s_mbrid'], 'site,id,pw', "'{$s}','{$id}','" . getCrypt($pw, $date['totime']) . "'");
    $memberuid = getDbCnt($table['s_mbrid'], 'max(uid)', '');
    $auth = 1;
    $mygroup = 1;
    $level = 1;
    $comp = 0;
    $adm_view = $admin ? '[admin]' : '';
    $home = '';
    $birth1 = 0;
    $birth2 = 0;
    $birthtype = 0;
    $tel1 = $tel2 && substr($tel2, 0, 2) != '01' ? $tel2 : '';
    $tel2 = $tel2 && substr($tel2, 0, 2) == '01' ? $tel2 : '';
    $zip = '';
    $addr0 = '';
    $addr1 = '';
    $addr2 = '';
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.admin_member_add.php


示例20: number_format

		



			
			<div class="counter">
			Total : <?php 
echo number_format(getDbCnt($table['s_counter'], 'sum(hit)', 'site=' . $s));
?>
<br />
			Yesterday : <?php 
echo number_format(getDbCnt($table['s_counter'], 'sum(hit)', 'site=' . $s . " and date='" . getDateCal('Ymd', $date['totime'], -24) . "'"));
?>
<br />
			Today : <?php 
echo number_format(getDbCnt($table['s_counter'], 'sum(hit)', 'site=' . $s . " and date='" . $date['today'] . "'"));
?>
<br />
			</div>


			<div class="rss">
				<img src="<?php 
echo $g['img_core'];
?>
/_public/btn_rss_gray.gif" alt="rss" />
				<a href="<?php 
echo $g['s'];
?>
/?r=<?php 
echo $r;
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:26,代码来源:main.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getDbConnection函数代码示例发布时间:2022-05-15
下一篇:
PHP getDbArray函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap