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

PHP getDbDelete函数代码示例

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

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



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

示例1: checkAdmin

<?php

if (!defined('__KIMS__')) {
    exit;
}
checkAdmin(0);
getDbDelete($table['s_popup'], 'uid=' . $uid);
getLink('reload', 'parent.', $alert, $history);
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:8,代码来源:a.deletepopup.php


示例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) {
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.multi_delete.php


示例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('&amp;', ' ', 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]';
?>

开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:29,代码来源:a.comment_delete.php


示例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'");
     }
 }
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:a.write_h.php


示例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('&amp;', ' ', 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.', '', '');
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:a.multi_delete.php


示例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.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:16,代码来源:a.friend_unfollow.php


示例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)', '');
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.add_package.php


示例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.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:17,代码来源:a.mobile.php


示例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.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:21,代码来源:a.delete.php


示例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.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:21,代码来源:a.deletepage.php


示例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.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:16,代码来源:a.point_multi_delete.php


示例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'");
开发者ID:eosliebe,项目名称:rb,代码行数:31,代码来源:main.php


示例13: DeletePlace

function DeletePlace($R)
{
    global $table;
    getDbDelete($table['s_place'], 'parent=' . $R['uid']);
}
开发者ID:kieregh,项目名称:test_comment,代码行数:5,代码来源:action.func.php


示例14: checkAdmin

<?php

if (!defined('__KIMS__')) {
    exit;
}
checkAdmin(0);
getDbDelete($table['s_mbrgroup'], 'uid=' . $uid);
getLink('reload', 'parent.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:8,代码来源:a.sosok_delete.php


示例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);
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.module_delete.php


示例16: getLink

<?php

if (!defined('__KIMS__')) {
    exit;
}
if (!$my['uid'] || $category < 1) {
    getLink('', '', _LANG('a0001', 'mediaset'), '');
}
$_CT = getUidData($table['s_uploadcat'], $category);
if (!$_CT['uid']) {
    getLink('', '', _LANG('a0001', 'mediaset'), '');
}
if ($my['uid'] != $_CT['mbruid']) {
    getLink('', '', _LANG('a1001', 'mediaset'), '');
}
getDbDelete($table['s_uploadcat'], 'uid=' . $_CT['uid']);
getDbUpdate($table['s_uploadcat'], 'r_num=r_num+' . $_CT['r_num'], "mbruid=" . $my['uid'] . " and type=" . $ablum_type . " and name='trash'");
getDbUpdate($table['s_upload'], 'category=-1', 'category=' . $_CT['uid']);
getLink('reload', 'parent.', '', '');
开发者ID:hanacody,项目名称:rb2,代码行数:19,代码来源:a.category_delete.php


示例17: checkAdmin

<?php

if (!defined('__KIMS__')) {
    exit;
}
checkAdmin(0);
foreach ($object_members as $val) {
    getDbDelete($table[$m . 'object'], 'uid=' . $val);
}
getLink('reload', 'parent.', '', '');
开发者ID:kieregh,项目名称:test_comment,代码行数:10,代码来源:a.multi_delete.php


示例18: checkAdmin

<?php

if (!defined('__KIMS__')) {
    exit;
}
checkAdmin(0);
if ($deltype == 'all') {
    getDbDelete($table['s_notice'], 'mbruid=' . $my['uid']);
    getDbUpdate($table['s_mbrdata'], 'num_notice=0', 'memberuid=' . $my['uid']);
} else {
    if ($deltype == 'read') {
        getDbDelete($table['s_notice'], 'mbruid=' . $my['uid'] . " and d_read<>''");
        getDbUpdate($table['s_mbrdata'], 'num_notice=' . getDbRows($table['s_notice'], 'mbruid=' . $my['uid'] . " and d_read=''"), 'memberuid=' . $my['uid']);
    } else {
        // 관리자모드 선택삭제
        foreach ($noti_members as $val) {
            $NT = getDbData($table['s_notice'], "uid='" . $val . "'", 'uid,mbruid,d_read');
            getDbDelete($table['s_notice'], "uid='" . $NT['uid'] . "'");
            if (!$NT['d_read']) {
                getDbUpdate($table['s_mbrdata'], 'num_notice=' . getDbRows($table['s_notice'], 'mbruid=' . $NT['mbruid'] . " and d_read=''"), 'memberuid=' . $NT['mbruid']);
            }
        }
    }
}
getLink('reload', 'parent.', '', '');
开发者ID:hanacody,项目名称:rb2,代码行数:25,代码来源:a.multi_delete.php


示例19: getDbDelete

                    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['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']);
    }
}
getDbDelete($table[$m . 'idx'], 'bbs=' . $R['uid']);
getDbDelete($table[$m . 'data'], 'bbs=' . $R['uid']);
getDbDelete($table[$m . 'list'], 'uid=' . $R['uid']);
unlink($g['dir_module'] . 'var/var.' . $R['id'] . '.php');
if ($R['imghead'] && is_file($g['dir_module'] . 'var/files/' . $R['imghead'])) {
    unlink($g['dir_module'] . 'var/files/' . $R['imghead']);
}
if ($R['imgfoot'] && is_file($g['dir_module'] . 'var/files/' . $R['imgfoot'])) {
    unlink($g['dir_module'] . 'var/files/' . $R['imgfoot']);
}
$mfile = $g['dir_module'] . 'var/code/' . $R['id'];
if (is_file($mfile . '.header.php')) {
    unlink($mfile . '.header.php');
}
if (is_file($mfile . '.footer.php')) {
    unlink($mfile . '.footer.php');
}
getLink('reload', 'parent.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:a.deletebbs.php


示例20: getLink

}
if (!$my['uid']) {
    getLink('', '', _LANG('block', 'notification'), '');
}
if ($deltype == 'delete_all') {
    getDbDelete($table['s_notice'], 'mbruid=' . $my['uid']);
    getDbUpdate($table['s_mbrdata'], 'num_notice=0', 'memberuid=' . $my['uid']);
} else {
    if ($deltype == 'delete_read') {
        getDbDelete($table['s_notice'], 'mbruid=' . $my['uid'] . " and d_read<>''");
        getDbUpdate($table['s_mbrdata'], 'num_notice=' . getDbRows($table['s_notice'], 'mbruid=' . $my['uid'] . " and d_read=''"), 'memberuid=' . $my['uid']);
    } else {
        if ($deltype == 'delete_select') {
            foreach ($noti_members as $val) {
                $exp = explode('|', $val);
                getDbDelete($table['s_notice'], "uid='" . $exp[0] . "' and mbruid=" . $my['uid']);
            }
            getDbUpdate($table['s_mbrdata'], 'num_notice=' . getDbRows($table['s_notice'], 'mbruid=' . $my['uid'] . " and d_read=''"), 'memberuid=' . $my['uid']);
        } else {
            if ($deltype == 'cut_member') {
                $NT_DATA = explode('|', $my['noticeconf']);
                $nt_members = $NT_DATA[4];
                foreach ($noti_members as $val) {
                    $exp = explode('|', $val);
                    if (!$exp[1]) {
                        continue;
                    }
                    if ($exp[1] == $my['uid']) {
                        $isMe = true;
                        continue;
                    }
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.multi_delete_user.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getDbInsert函数代码示例发布时间:2022-05-15
下一篇:
PHP getDbData函数代码示例发布时间: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