当前位置: 首页>>代码示例>>PHP>>正文


PHP callback_js函数代码示例

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


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

示例1: lang

                    $share['title_template'] = lang('spacecp', 'share_image');
                    break;
                case 'article':
                    $feed_hash_data = 'articleid' . $share['itemid'];
                    $share['title_template'] = lang('spacecp', 'share_article');
                    break;
                case 'link':
                    $feed_hash_data = '';
                    break;
            }
            feed_add('share', '{actor} ' . $share['title_template'], array('hash_data' => $feed_hash_data), $share['body_template'], dunserialize($share['body_data']), $share['body_general'], array($share['image']), array($share['image_link']), '', '', '', 0, 0, '', $share['uid'], $share['username']);
        }
        updatemoderate('sid', $moderation['validate'], 2);
    }
    if (!empty($moderation['delete'])) {
        require libfile('function/delete');
        $shares = deleteshares($moderation['delete']);
        $deletes = count($shares);
        updatemoderate('sid', $moderation['delete'], 2);
    }
    if ($ignore_sids = dimplode($moderation['ignore'])) {
        $ignores = C::t('home_share')->update($moderation['ignore'], array('status' => 2));
        updatemoderate('sid', $moderation['ignore'], 1);
    }
    if ($_GET['fast']) {
        echo callback_js($_GET['sid']);
        exit;
    } else {
        cpmsg('moderate_shares_succeed', "action=moderate&operation=shares&page={$page}&filter={$filter}&dateline={$_GET['dateline']}&username={$_GET['username']}&keyword={$_GET['keyword']}&tpp={$_GET['tpp']}&showcensor={$showcensor}", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'deletes' => $deletes));
    }
}
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:moderate_share.php

示例2: array

            $moderate[$act][] = $blogid;
        }
    }
    if ($validate_blogids = dimplode($moderate['validate'])) {
        DB::update('home_blog', array('status' => '0'), "blogid IN ({$validate_blogids})");
        $validates = DB::affected_rows();
        $query_t = DB::query("SELECT uid, COUNT(blogid) AS count\r\n\t\t\tFROM " . DB::table('home_blog') . "\r\n\t\t\tWHERE blogid IN ({$validate_blogids})\r\n\t\t\tGROUP BY uid");
        while ($blog_user = DB::fetch($query_t)) {
            $credit_times = $blog_user['count'];
            updatecreditbyaction('publishblog', $blog_user['uid'], array('blogs' => 1), '', $credit_times);
        }
        updatemoderate('blogid', $moderate['validate'], 2);
    }
    if ($moderate['delete']) {
        require_once libfile('function/delete');
        $delete_blogs = deleteblogs($moderate['delete']);
        $deletes = count($delete_blogs);
        updatemoderate('blogid', $moderate['delete'], 2);
    }
    if ($ignore_blogids = dimplode($moderate['ignore'])) {
        DB::update('home_blog', array('status' => '2'), "blogid IN ({$ignore_blogids})");
        $ignores = DB::affected_rows();
        updatemoderate('blogid', $moderate['ignore'], 1);
    }
    if ($_G['gp_fast']) {
        echo callback_js($_G['gp_blogid']);
        exit;
    } else {
        cpmsg('moderate_blogs_succeed', "action=moderate&operation=blogs&page={$page}&filter={$filter}&dateline={$_G['gp_dateline']}&username={$_G['gp_username']}&title={$_G['gp_title']}&tpp={$_G['gp_tpp']}&showcensor={$showcensor}", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'recycles' => $recycles, 'deletes' => $deletes));
    }
}
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:moderate_blog.php

示例3: array

            $pm = 'pm_' . $thread['tid'];
            if (isset($_G['gp_' . $pm]) && $_G['gp_' . $pm] != '' && $thread['authorid']) {
                $pmlist[] = array('action' => 'modthreads_validate', 'notevar' => array('tid' => $thread['tid'], 'threadsubject' => $thread['subject'], 'reason' => dhtmlspecialchars($_G['gp_' . $pm])), 'authorid' => $thread['authorid']);
            }
        }
        if ($tids) {
            $tidstr = dimplode($tids);
            $validates = DB::query("UPDATE " . DB::table(getposttable()) . " SET status='4' WHERE tid IN ({$tidstr}) AND status='0' AND invisible='-2'");
            updatepost(array('invisible' => '0'), "tid IN ({$tidstr}) AND first='1'");
            DB::query("UPDATE " . DB::table('forum_thread') . " SET displayorder='0', moderated='1' WHERE tid IN ({$tidstr})");
            $validates = DB::affected_rows();
            foreach (array_unique($forums) as $fid) {
                updateforumcount($fid);
            }
            updatemodworks('MOD', $validates);
            updatemodlog($tidstr, 'MOD');
            updatemoderate('tid', $tids, 2);
        }
    }
    if ($pmlist) {
        foreach ($pmlist as $pm) {
            notification_add($pm['authorid'], 'system', $pm['action'], $pm['notevar'], 1);
        }
    }
    if ($_G['gp_fast']) {
        echo callback_js($_G['gp_tid']);
        exit;
    } else {
        cpmsg('moderate_threads_succeed', "action=moderate&operation=threads&page={$page}&filter={$filter}&modfid={$modfid}", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'recycles' => $recycles, 'deletes' => $deletes));
    }
}
开发者ID:dalinhuang,项目名称:hlwbbsvincent,代码行数:31,代码来源:moderate_thread.php

示例4: array

} else {
    $moderation = array('validate' => array(), 'delete' => array(), 'ignore' => array());
    $validates = $deletes = $ignores = 0;
    if (is_array($moderate)) {
        foreach ($moderate as $picid => $act) {
            $moderation[$act][] = $picid;
        }
    }
    if ($validate_picids = dimplode($moderation['validate'])) {
        DB::update('home_pic', array('status' => '0'), "picid IN ({$validate_picids})");
        $validates = DB::affected_rows();
        updatemoderate('picid', $moderation['validate'], 2);
    }
    if (!empty($moderation['delete'])) {
        require_once libfile('function/delete');
        $pics = deletepics($moderation['delete']);
        $deletes = count($pics);
        updatemoderate('picid', $moderation['delete'], 2);
    }
    if ($ignore_picids = dimplode($moderation['ignore'])) {
        DB::update('home_pic', array('status' => '2'), "picid IN ({$ignore_picids})");
        $ignores = DB::affected_rows();
        updatemoderate('picid', $moderation['ignore'], 1);
    }
    if ($_G['gp_fast']) {
        echo callback_js($_G['gp_picid']);
        exit;
    } else {
        cpmsg('moderate_pictures_succeed', "action=moderate&operation=pictures&page={$page}&filter={$filter}&dateline={$_G['gp_dateline']}&username={$_G['gp_username']}&title={$_G['gp_title']}&tpp={$_G['gp_tpp']}&showcensor={$showcensor}", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'recycles' => $recycles, 'deletes' => $deletes));
    }
}
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:moderate_picture.php

示例5: foreach

    if (is_array($moderate)) {
        foreach ($moderate as $blogid => $act) {
            $moderate[$act][] = $blogid;
        }
    }
    if ($moderate['validate']) {
        $validates = C::t('home_blog')->update($moderate['validate'], array('status' => '0'));
        $query_t = C::t('home_blog')->count_uid_by_blogid($moderate['validate']);
        foreach ($query_t as $blog_user) {
            $credit_times = $blog_user['count'];
            updatecreditbyaction('publishblog', $blog_user['uid'], array('blogs' => 1), '', $credit_times);
        }
        updatemoderate('blogid', $moderate['validate'], 2);
    }
    if ($moderate['delete']) {
        require_once libfile('function/delete');
        $delete_blogs = deleteblogs($moderate['delete']);
        $deletes = count($delete_blogs);
        updatemoderate('blogid', $moderate['delete'], 2);
    }
    if ($moderate['ignore']) {
        $ignores = C::t('home_blog')->update($moderate['ignore'], array('status' => '2'));
        updatemoderate('blogid', $moderate['ignore'], 1);
    }
    if ($_GET['fast']) {
        echo callback_js($_GET['blogid']);
        exit;
    } else {
        cpmsg('moderate_blogs_succeed', "action=moderate&operation=blogs&page={$page}&filter={$filter}&dateline={$_GET['dateline']}&username={$_GET['username']}&title={$_GET['title']}&tpp={$_GET['tpp']}&showcensor={$showcensor}", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'recycles' => $recycles, 'deletes' => $deletes));
    }
}
开发者ID:softhui,项目名称:discuz,代码行数:31,代码来源:moderate_blog.php

示例6: array

            $moderation[$act][] = $picid;
        }
    }
    if ($moderation['validate']) {
        $validates = C::t('home_pic')->update($moderation['validate'], array('status' => '0'));
        $albumincrease = array();
        foreach (C::t('home_pic')->fetch_all($moderation['validate']) as $pics) {
            $albumincrease[$pics['albumid']]++;
        }
        foreach ($albumincrease as $albumid => $albuminc) {
            C::t('home_album')->update_num_by_albumid($albumid, $albuminc);
        }
        updatemoderate('picid', $moderation['validate'], 2);
    }
    if (!empty($moderation['delete'])) {
        require_once libfile('function/delete');
        $pics = deletepics($moderation['delete']);
        $deletes = count($pics);
        updatemoderate('picid', $moderation['delete'], 2);
    }
    if ($moderation['ignore']) {
        $ignores = C::t('home_pic')->update($moderation['ignore'], array('status' => '2'));
        updatemoderate('picid', $moderation['ignore'], 1);
    }
    if ($_GET['fast']) {
        echo callback_js($_GET['picid']);
        exit;
    } else {
        cpmsg('moderate_pictures_succeed', "action=moderate&operation=pictures&page={$page}&filter={$filter}&dateline={$_GET['dateline']}&username={$_GET['username']}&title={$_GET['title']}&tpp={$_GET['tpp']}&showcensor={$showcensor}", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'recycles' => $recycles, 'deletes' => $deletes));
    }
}
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:moderate_picture.php

示例7: array

            $moderation[$act][] = $doid;
        }
    }
    if ($validate_doids = dimplode($moderation['validate'])) {
        DB::update('home_doing', array('status' => '0'), "doid IN ({$validate_doids})");
        $query_t = DB::query("SELECT * FROM " . DB::table('home_doing') . " WHERE doid IN ({$validate_doids})");
        while ($doing = DB::fetch($query_t)) {
            $feedarr = array('appid' => '', 'icon' => 'doing', 'uid' => $doing['uid'], 'username' => $doing['username'], 'dateline' => $doing['dateline'], 'title_template' => lang('feed', 'feed_doing_title'), 'title_data' => daddslashes(serialize(dstripslashes(array('message' => $doing['message'])))), 'body_template' => '', 'body_data' => '', 'id' => $doing['doid'], 'idtype' => 'doid');
            DB::insert('home_feed', $feedarr);
        }
        $validates = DB::affected_rows();
        updatemoderate('doid', $moderation['validate'], 2);
    }
    if (!empty($moderation['delete'])) {
        require_once libfile('function/delete');
        $doings = deletedoings($moderation['delete']);
        $deletes = count($doings);
        updatemoderate('doid', $moderation['delete'], 2);
    }
    if ($ignore_doids = dimplode($moderation['ignore'])) {
        DB::update('home_doing', array('status' => '2'), "doid IN ({$ignore_doids})");
        $ignores = DB::affected_rows();
        updatemoderate('doid', $moderation['ignore'], 1);
    }
    if ($_G['gp_fast']) {
        echo callback_js($_G['gp_doid']);
        exit;
    } else {
        cpmsg('moderate_doings_succeed', "action=moderate&operation=doings&page={$page}&filter={$filter}&dateline={$_G['gp_dateline']}&username={$_G['gp_username']}&keyword={$_G['gp_keyword']}&tpp={$_G['gp_tpp']}&showcensor={$showcensor}", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'deletes' => $deletes));
    }
}
开发者ID:pan289091315,项目名称:Discuz,代码行数:31,代码来源:moderate_doing.php

示例8: array

            $moderation[$act][] = $doid;
        }
    }
    if ($moderation['validate']) {
        C::t('home_doing')->update($moderation['validate'], array('status' => '0'));
        $query_t = C::t('home_doing')->fetch_all($moderation['validate']);
        if (helper_access::check_module('feed')) {
            foreach ($query_t as $doing) {
                $feedarr = array('appid' => '', 'icon' => 'doing', 'uid' => $doing['uid'], 'username' => $doing['username'], 'dateline' => $doing['dateline'], 'title_template' => lang('feed', 'feed_doing_title'), 'title_data' => serialize(array('message' => $doing['message'])), 'body_template' => '', 'body_data' => '', 'id' => $doing['doid'], 'idtype' => 'doid');
                $validates += C::t('home_feed')->insert($feedarr);
            }
        }
        updatemoderate('doid', $moderation['validate'], 2);
    }
    if (!empty($moderation['delete'])) {
        require_once libfile('function/delete');
        $doings = deletedoings($moderation['delete']);
        $deletes = count($doings);
        updatemoderate('doid', $moderation['delete'], 2);
    }
    if ($moderation['ignore']) {
        $ignores = C::t('home_doing')->update($moderation['ignore'], array('status' => '2'));
        updatemoderate('doid', $moderation['ignore'], 1);
    }
    if ($_GET['fast']) {
        echo callback_js($_GET['doid']);
        exit;
    } else {
        cpmsg('moderate_doings_succeed', "action=moderate&operation=doings&page={$page}&filter={$filter}&dateline={$_GET['dateline']}&username={$_GET['username']}&keyword={$_GET['keyword']}&tpp={$_GET['tpp']}&showcensor={$showcensor}", 'succeed', array('validates' => $validates, 'ignores' => $ignores, 'deletes' => $deletes));
    }
}
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:moderate_doing.php


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