本文整理汇总了PHP中getDbDelete函数的典型用法代码示例。如果您正苦于以下问题:PHP getDbDelete函数的具体用法?PHP getDbDelete怎么用?PHP getDbDelete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getDbDelete函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
getDbDelete($table['s_popup'], 'uid=' . $uid);
getLink('reload', 'parent.', $alert, $history);
示例2: getuFileType
function getuFileType($R)
{
if ($R['type'] == 2 || $R['type'] == -1) {
return 1;
}
if ($R['type'] == 5 || $R['type'] == 0) {
return 2;
}
return 0;
}
include $g['dir_module'] . 'var/var.php';
$_MEMBERS = array();
foreach ($upfile_members as $val) {
$R = getUidData($table['s_upload'], $val);
if ($R['uid']) {
getDbDelete($table['s_upload'], 'uid=' . $R['uid']);
if ($R['type'] > 0) {
if ($R['fserver'] && $R['url'] == $d['mediaset']['ftp_urlpath']) {
$FTP_CONNECT = ftp_connect($d['mediaset']['ftp_host'], $d['mediaset']['ftp_port']);
$FTP_CRESULT = ftp_login($FTP_CONNECT, $d['mediaset']['ftp_user'], $d['mediaset']['ftp_pass']);
if (!$FTP_CONNECT) {
continue;
}
if (!$FTP_CRESULT) {
continue;
}
if ($d['mediaset']['ftp_pasv']) {
ftp_pasv($FTP_CONNECT, true);
}
ftp_delete($FTP_CONNECT, $d['mediaset']['ftp_folder'] . $R['folder'] . '/' . $R['tmpname']);
if ($R['type'] == 2) {
示例3: unlink
//if($U['type']==2) unlink($g['path_file'].$U['folder'].'/'.$U['thumbname']);
unlink('./modules/bbs/upload/' . $U['folder'] . '/' . $U['tmpname']);
if ($U['type'] == 2) {
unlink('./modules/bbs/upload/' . $U['folder'] . '/' . $U['thumbname']);
}
}
}
}
}
//한줄의견삭제
if ($R['oneline']) {
$_ONELINE = getDbSelect($table['s_oneline'], 'parent=' . $R['uid'], '*');
while ($_O = db_fetch_array($_ONELINE)) {
getDbUpdate($table['s_numinfo'], 'oneline=oneline-1', "date='" . substr($_O['d_regis'], 0, 8) . "' and site=" . $_O['site']);
if ($_O['point'] && $_O['mbruid']) {
getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $_O['mbruid'] . "','0','-" . $_O['point'] . "','한줄의견삭제(" . getStrCut(str_replace('&', ' ', strip_tags($_O['content'])), 15, '') . ")환원','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point-' . $_O['point'], 'memberuid=' . $_O['mbruid']);
}
}
getDbDelete($table['s_oneline'], 'parent=' . $R['uid']);
}
getDbDelete($table['s_comment'], 'uid=' . $R['uid']);
getDbUpdate($table['s_numinfo'], 'comment=comment-1', "date='" . substr($R['d_regis'], 0, 8) . "' and site=" . $R['site']);
if ($R['point'] && $R['mbruid']) {
getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $R['mbruid'] . "','0','-" . $R['point'] . "','댓글삭제(" . getStrCut($R['subject'], 15, '') . ")환원','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point-' . $R['point'], 'memberuid=' . $R['mbruid']);
}
echo '[RESULT:ok:RESULT]';
?>
示例4: array
$_tagarr1 = array();
$_tagarr2 = explode(',', $tag);
$_tagdate = $date['today'];
if ($R['uid'] && $reply != 'Y') {
$_tagdate = substr($R['d_regis'], 0, 8);
$_tagarr1 = explode(',', $R['tag']);
foreach ($_tagarr1 as $_t) {
if (!$_t || in_array($_t, $_tagarr2)) {
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']);
}
}
}
}
foreach ($_tagarr2 as $_t) {
if (!$_t || in_array($_t, $_tagarr1)) {
continue;
}
$_TAG = getDbData($table['s_tag'], 'site=' . $s . " and date='" . $_tagdate . "' and keyword='" . $_t . "'", '*');
if ($_TAG['uid']) {
getDbUpdate($table['s_tag'], 'hit=hit+1', 'uid=' . $_TAG['uid']);
} else {
getDbInsert($table['s_tag'], 'site,date,keyword,hit', "'" . $s . "','" . $_tagdate . "','" . $_t . "','1'");
}
}
示例5: ftp_close
ftp_close($FTP_CONNECT);
} else {
unlink($g['path_file'] . $U['folder'] . '/' . $U['tmpname']);
if ($U['type'] == 2) {
unlink($g['path_file'] . $U['folder'] . '/' . $U['thumbname']);
}
}
}
}
}
//한줄의견삭제
if ($R['oneline']) {
$_ONELINE = getDbSelect($table['s_oneline'], 'parent=' . $R['uid'], '*');
while ($_O = db_fetch_array($_ONELINE)) {
getDbUpdate($table['s_numinfo'], 'oneline=oneline-1', "date='" . substr($_O['d_regis'], 0, 8) . "' and site=" . $_O['site']);
if ($_O['point'] && $_O['mbruid']) {
getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $_O['mbruid'] . "','0','-" . $_O['point'] . "','한줄의견삭제(" . getStrCut(str_replace('&', ' ', strip_tags($_O['content'])), 15, '') . ")환원','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point-' . $_O['point'], 'memberuid=' . $_O['mbruid']);
}
}
getDbDelete($table['s_oneline'], 'parent=' . $R['uid']);
}
getDbDelete($table['s_comment'], 'uid=' . $R['uid']);
getDbDelete($table['s_xtralog'], "module='" . $m . "' and parent='" . $R['uid'] . "'");
getDbUpdate($table['s_numinfo'], 'comment=comment-1', "date='" . substr($R['d_regis'], 0, 8) . "' and site=" . $R['site']);
if ($R['point'] && $R['mbruid']) {
getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $R['mbruid'] . "','0','-" . $R['point'] . "','댓글삭제(" . getStrCut($R['subject'], 15, '') . ")환원','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point-' . $R['point'], 'memberuid=' . $R['mbruid']);
}
}
getLink('reload', 'parent.', '', '');
示例6: getLink
<?php
if (!defined('__KIMS__')) {
exit;
}
if (!$my['uid']) {
getLink('', '', '정상적인 접근이 아닙니다.', '');
}
foreach ($members as $val) {
$R = getUidData($table['s_friend'], $val);
getDbDelete($table['s_friend'], 'uid=' . $R['uid'] . ' and my_mbruid=' . $my['uid']);
if ($R['rel']) {
getDbUpdate($table['s_friend'], 'rel=0', 'my_mbruid=' . $R['by_mbruid'] . ' and by_mbruid=' . $R['my_mbruid']);
}
}
getLink('reload', 'parent.', '', '');
示例7: getDbDelete
@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=' . $S['uid']);
db_query("OPTIMIZE TABLE " . $table['s_menu'], $DB_CONNECT);
db_query("OPTIMIZE TABLE " . $table['s_seo'], $DB_CONNECT);
DirDelete($g['path_page'] . $S['id'] . '-menus');
}
//기존페이지삭제
if ($ACT_DP) {
$_PAGES = getDbSelect($table['s_page'], 'site=' . $S['uid'] . ' order by uid asc', '*');
while ($_P = db_fetch_array($_PAGES)) {
getDbDelete($table['s_seo'], 'rel=2 and parent=' . $_P['uid']);
}
getDbDelete($table['s_page'], 'site=' . $S['uid']);
db_query("OPTIMIZE TABLE " . $table['s_page'], $DB_CONNECT);
db_query("OPTIMIZE TABLE " . $table['s_seo'], $DB_CONNECT);
DirDelete($g['path_page'] . $S['id'] . '-pages');
}
@rename($g['path_tmp'] . 'app/' . $package_folder . '/pages/' . $d['package']['siteid'] . '-menus', $g['path_tmp'] . 'app/' . $package_folder . '/pages/' . $S['id'] . '-menus');
@rename($g['path_tmp'] . 'app/' . $package_folder . '/pages/' . $d['package']['siteid'] . '-pages', $g['path_tmp'] . 'app/' . $package_folder . '/pages/' . $S['id'] . '-pages');
} else {
$MAXC = getDbCnt($table['s_site'], 'max(gid)', '');
$gid = $MAXC + 1;
$name = 'SITE ' . $gid;
$id = 's' . date('His');
$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 . "','{subject} | {site}','0','glyphicon glyphicon-home','" . $d['package']['layout'] . "','0','" . $d['package']['layout_mobile'] . "','0','','1','','nic','0','0','0','1','',''";
getDbInsert($table['s_site'], $QKEY, $QVAL);
$LASTUID = getDbCnt($table['s_site'], 'max(uid)', '');
示例8: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
$agentlist = trim($agentlist);
$QKEY = "usemobile,startsite,startdomain";
$QVAL = "'{$usemobile}','{$startsite}','{$startdomain}'";
getDbDelete($table['s_mobile'], '');
getDbInsert($table['s_mobile'], $QKEY, $QVAL);
$mfile = $g['path_var'] . 'mobile.agent.txt';
$fp = fopen($mfile, 'w');
fwrite($fp, $agentlist);
fclose($fp);
@chmod($mfile, 0707);
getLink('reload', 'parent.', '', '');
示例9: getLink
<?php
if (!defined('__KIMS__')) {
exit;
}
if (!$my['admin']) {
getLink('', '', '권한이 없습니다.', '');
}
$R = getUidData($table['s_trackback'], $uid);
if (!$R['uid']) {
getLink(RW(0), '', '', '');
}
$cyncArr = getArrayString($R['cync']);
getDbDelete($table['s_trackback'], 'uid=' . $R['uid']);
if ($R['type'] == 1) {
getDbUpdate($table[$cyncArr['data'][0] . 'data'], 'trackback=trackback-1', 'uid=' . $cyncArr['data'][1]);
getDbUpdate($table['s_numinfo'], 'rcvtrack=rcvtrack-1', "date='" . substr($R['d_regis'], 0, 8) . "' and site=" . $R['site']);
} else {
getDbUpdate($table['s_numinfo'], 'sndtrack=sndtrack-1', "date='" . substr($R['d_regis'], 0, 8) . "' and site=" . $R['site']);
}
getLink('reload', 'parent.', '', '');
示例10: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
$R = getUidData($table['s_page'], $uid);
getDbDelete($table['s_page'], 'uid=' . $R['uid']);
unlink($g['path_page'] . $R['id'] . '.php');
unlink($g['path_page'] . $R['id'] . '.widget.php');
@unlink($g['path_page'] . $R['id'] . '.mobile.php');
@unlink($g['path_page'] . $R['id'] . '.css');
@unlink($g['path_page'] . $R['id'] . '.js');
@unlink($g['path_page'] . $R['id'] . '.txt');
@unlink($g['path_page'] . $R['id'] . '.cache');
@unlink($g['path_page'] . $R['id'] . '.mobile.cache');
if ($_HS['startpage'] && $_HS['startpage'] == $R['uid']) {
getDbUpdate($table['s_site'], 'startpage=0', 'uid=' . $s);
}
db_query("OPTIMIZE TABLE " . $table['s_page'], $DB_CONNECT);
getLink('reload', 'parent.', '', '');
示例11: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
$pointType = $pointType ? $pointType : 'point';
foreach ($point_members as $val) {
$P = getUidData($table['s_' . $pointType], $val);
if (!$P['uid']) {
continue;
}
getDbDelete($table['s_' . $pointType], 'uid=' . $P['uid']);
//getDbUpdate($table['s_mbrdata'],$pointType.'='.$pointType.'-'.$P['price'],'memberuid='.$P['my_mbruid']);
}
getLink('reload', 'parent.', '', '');
示例12: getDbInsert
getDbInsert($table['s_inkey'], 'site,date,keyword,hit', "'" . $s . "','" . $date['today'] . "','" . $_keyword . "','1'");
}
}
} else {
$_referer = $referer ? urldecode($referer) : $_SERVER['HTTP_REFERER'];
$_sengine = getSearchEngine($_referer);
$_outkeyw = getKeyword($_referer);
$_browser = getBrowzer($g['agent']);
$_QKEY = 'site,mbruid,ip,referer,agent,d_regis';
$_QVAL = "'" . $s . "','" . $my['uid'] . "','" . $g['ip'] . "','" . $_referer . "','" . $g['agent'] . "','" . $date['totime'] . "'";
getDbInsert($table['s_referer'], $_QKEY, $_QVAL);
$_REFCNT = getDbRows($table['s_referer'], '');
if ($_REFCNT > 1000000) {
$_REFOVER = getDbArray($table['s_referer'], '', '*', 'uid', 'asc', $_REFCNT - 1000000, 1);
while ($_REFK = db_fetch_array($_REFOVER)) {
getDbDelete($table['s_referer'], $_REFK['uid']);
}
}
if ($_outkeyw) {
$_OUTKEY = getDbData($table['s_outkey'], 'site=' . $s . " and date='" . $date['today'] . "' and keyword='" . $_outkeyw . "'", '*');
if ($_OUTKEY['uid']) {
getDbUpdate($table['s_outkey'], $_sengine . '=' . $_sengine . '+1,total=total+1', 'uid=' . $_OUTKEY['uid']);
} else {
getDbInsert($table['s_outkey'], 'site,date,keyword,' . $_sengine . ',total', "'" . $s . "','" . $date['today'] . "','" . $_outkeyw . "','1','1'");
}
}
$_ISBROWER = getDbData($table['s_browser'], 'site=' . $s . " and date='" . $date['today'] . "' and browser='" . $_browser . "'", '*');
if ($_ISBROWER['uid']) {
getDbUpdate($table['s_browser'], 'hit=hit+1', 'uid=' . $_ISBROWER['uid']);
} else {
getDbInsert($table['s_browser'], 'site,date,browser,hit', "'" . $s . "','" . $date['today'] . "','" . $_browser . "','1'");
示例13: DeletePlace
function DeletePlace($R)
{
global $table;
getDbDelete($table['s_place'], 'parent=' . $R['uid']);
}
示例14: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
getDbDelete($table['s_mbrgroup'], 'uid=' . $uid);
getLink('reload', 'parent.', '', '');
示例15: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
$R = getDbData($table['s_module'], "id='" . $moduleid . "'", '*');
if (!$R['id']) {
getLink('', '', '존재하지 않는 모듈입니다.', '');
}
if ($R['system']) {
getLink('', '', '시스템모듈은 삭제할 수 없습니다.', '');
}
getDbDelete($table['s_module'], "id='" . $moduleid . "'");
include_once $g['path_core'] . 'function/dir.func.php';
$table_db = $g['path_module'] . $moduleid . '/_setting/db.table.php.done';
$_tmptfile = $g['path_var'] . 'table.info.php';
if (is_file($table_db)) {
$module = $moduleid;
$_table = $table;
$table = array();
include_once $table_db;
$fp = fopen($_tmptfile, 'w');
fwrite($fp, "<?php\n");
foreach ($_table as $key => $val) {
if (!$table[$key]) {
fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
}
}
fwrite($fp, "?>");
fclose($fp);