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


PHP mcmessage函数代码示例

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


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

示例1: unset

                }
            }
            unset($a_field);
            if (empty($fcatalog['nodurat'])) {
                foreach (array('startdate', 'enddate') as $var) {
                    $farchiveadd[$var] = trim($farchiveadd[$var]);
                    $farchiveadd[$var] = !isdate($farchiveadd[$var]) ? 0 : strtotime($farchiveadd[$var]);
                    $sqlcommon .= ",{$var}='" . max(0, intval($farchiveadd[$var])) . "'";
                }
            }
            $db->query("INSERT INTO {$tblprefix}farchives SET " . $sqlcommon);
            if (!($aid = $db->insert_id())) {
                $c_upload->closure(1);
                mcmessage('msgsaveerr', axaction(2, M_REFERER));
            } else {
                $c_upload->closure(1, $aid, 'farchives');
                $sqlcustom = "aid={$aid}" . ($sqlcustom ? ',' . $sqlcustom : '');
                $db->query("INSERT INTO {$tblprefix}farchives_{$chid} SET " . $sqlcustom);
                $aedit = new cls_farcedit();
                $aedit->set_aid($aid);
                $fcatalog['autocheck'] && $aedit->arc_check(1, 0);
                $aedit->updatedb();
                unset($aedit);
            }
            $c_upload->saveuptotal(1);
            mcmessage('freeinfoaddfinish', axaction(10, $forward));
        }
    } else {
        include M_ROOT . $fcatalog['ucadd'];
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:farchiveadd.inc.php

示例2: stripslashes

                            $email = stripslashes($memcertnew[$k]);
                            $confirm = random(6);
                            $certdata['codes'][$k] = array('e' => 0, 'v' => $confirm);
                        }
                        if (!empty($flags[$k])) {
                            unset($certdata['flags'][$k]);
                        }
                    }
                }
            }
            $db->query("INSERT INTO {$tblprefix}mcrecords(mid,mname,mcid,needtime,certdata)" . " VALUES({$memberid},'" . addslashes($curuser->info['mname']) . "','{$mcid}',{$timestamp}," . "'" . addslashes(serialize($certdata)) . "')");
            if ($crid = $db->insert_id()) {
                if (empty($email)) {
                    mcmessage('memcert_upload_ok', M_REFERER);
                } else {
                    mailto($email, 'memcert_subject', 'memcert_content', array('mid' => $curuser->info['mid'], 'mname' => $curuser->info['mname'], 'url' => "{$cms_abs}tools/memactive.php?action=memcert&crid={$crid}&confirm={$confirm}"));
                    mcmessage('memcert_email_sent', M_REFERER);
                }
            } else {
                mcmessage('memcert_upload_bad', M_REFERER);
            }
        }
        break;
    case 'delete':
        if ($db->query("DELETE FROM {$tblprefix}mcrecords WHERE crid='{$crid}' AND mid={$memberid} AND checktime=0")) {
            mcmessage('memcert_delete_ok', M_REFERER);
        } else {
            mcmessage('memcert_delete_bad', M_REFERER);
        }
        break;
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:memcerts.inc.php

示例3: isset

                        $a_field->init();
                        $a_field->field = $v;
                        if (!noedit($k, !$curuser->pmbypmids('field', $v['pmid']))) {
                            $a_field->oldvalue = isset($oldrow[$k]) ? $oldrow[$k] : '';
                            $a_field->deal('offernew');
                            if (!empty($a_field->error)) {
                                $c_upload->rollback();
                                mcmessage($a_field->error, M_REFERER);
                            }
                            $uedit->updatefield($k, $a_field->newvalue);
                            if ($arr = multi_val_arr($a_field->newvalue, $v)) {
                                foreach ($arr as $x => $y) {
                                    $uedit->updatefield($k . '_' . $x, $y);
                                }
                            }
                        }
                    }
                }
            }
            unset($a_field);
            $c_upload->closure(1, $cid, 'offers');
            $c_upload->saveuptotal(1);
            $uedit->updatedb();
            mcmessage('offerupdatesucce', axaction(6, M_REFERER));
        }
    } else {
        include M_ROOT . $u_tplname;
    }
} else {
    include M_ROOT . $commu['umdetail'];
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:offer.inc.php

示例4: tabheader

    tabheader(lang('consultbasemessage'), 'fconsult', "?action=fconsult&aid={$aid}{$forwardstr}", 2, 1, 0, 1);
    trbasic(lang('consulttitle'), '', $fcatalog['title'] . '&nbsp; -&nbsp; ' . $aedit->archive['subject'] . "&nbsp;&nbsp;<a href=\"?action=farchive&aid=" . $aedit->archive['aid'] . "\" onclick=\"return floatwin('open_consult',this)\">>>" . lang('detail') . "</a>", '');
    trbasic(lang('addtime'), '', date("{$dateformat} {$timeformat}", $aedit->archive['createdate']), '');
    trbasic(lang('qstate'), '', @$qstatearr[$aedit->archive['qstate']], '');
    tabfooter();
    tabheader(lang('consultcommulist'));
    $query = $db->query("SELECT * FROM {$tblprefix}consults WHERE aid='{$aid}' ORDER BY cid");
    while ($item = $db->fetch_array($query)) {
        $cid = $item['cid'];
        trbasic('<b>' . $item['mname'] . '</b>&nbsp; &nbsp; ' . (empty($item['reply']) ? lang('consult') : lang('reply')) . '&nbsp; :<br>' . date("{$dateformat} {$timeformat}", $item['createdate']), '', '<br>' . $item['content'] . '<br>&nbsp;', '');
    }
    tabfooter();
    if ($aedit->archive['qstate'] != 'close') {
        tabheader(lang('continueconsult'), 'fconsultadd', '?action=consult&aid=' . $aid . '&forward=' . rawurlencode($forward));
        trbasic(lang('consultcontent'), 'contentadd', '', 'btextarea');
        tabfooter('bfconsultadd');
    } else {
        tabheader(lang('continueconsult'));
        trbasic(lang('consultcontent'), '', lang('overconsult'), '');
        tabfooter();
    }
} else {
    $aedit->archive['qstate'] == 'close' && mcmessage('thconiteclo', axaction(2, M_REFERER));
    $contentadd = empty($contentadd) ? '' : trim($contentadd);
    empty($contentadd) && mcmessage('datamissing', axaction(2, M_REFERER));
    $fcatalog['culength'] && ($contentadd = cutstr($contentadd, $fcatalog['culength']));
    $contentadd = mnl2br(mhtmlspecialchars($contentadd));
    $db->query("INSERT INTO {$tblprefix}consults SET\n\t\t\t\t aid='{$aid}', \n\t\t\t\t content='{$contentadd}', \n\t\t\t\t mid='{$memberid}', \n\t\t\t\t mname='" . $curuser->info['mname'] . "', \n\t\t\t\t createdate='{$timestamp}'\n\t\t\t\t ");
    $db->query("UPDATE {$tblprefix}farchives SET qstate='new',updatedate='{$timestamp}' WHERE aid='{$aid}'");
    mcmessage('addconsultsucceed', axaction(6, "?action=fconsult&aid={$aid}"));
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:fconsult.inc.php

示例5: count

                }
                if (in_array('edit', $u_lists)) {
                    $itemstr .= "<td class=\"item\">{$editstr}</td>\n";
                }
                $itemstr .= "</tr>\n";
            }
            $counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
            $multi = multi($counts, $mrowpp, $page, "?action=farchives{$filterstr}");
            echo $itemstr;
            tabfooter();
            echo $multi;
            echo "<br><br><input class=\"btn\" type=\"submit\" name=\"barcsedit\" id=\"barcsedit\" value=\"" . lang('delete') . "\">";
            m_guide(@$u_guide);
        } else {
            include M_ROOT . $u_tplname;
        }
    } else {
        if (empty($selectid)) {
            mcmessage('mselectmes', "?action=farchives{$filterstr}&page={$page}");
        }
        $aedit = new cls_farcedit();
        foreach ($selectid as $aid) {
            $aedit->set_aid($aid);
            $aedit->arc_delete(1);
        }
        unset($aedit, $arc);
        mcmessage('messagefinish', "?action=farchives{$filterstr}&page={$page}");
    }
} else {
    include M_ROOT . $u_tplname;
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:farchives.inc.php

示例6: while

            $query = $db->query("SELECT cu.*,cu.createdate AS ucreatedate,a.sid,a.createdate,a.caid,a.chid,a.customurl,a.subject AS asubject {$fromsql} {$wheresql} ORDER BY cu.updatedate DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
            $pagetmp--;
        } while (!$db->num_rows($query) && $pagetmp);
        $itemstr = '';
        while ($item = $db->fetch_array($query)) {
            $aid = $item['aid'];
            $cid = $item['cid'];
            $arcurl = view_arcurl($item);
            $updatedate = date("{$dateformat}", $item['updatedate']);
            $catalogstr = @$catalogs[$item['caid']]['title'];
            $channelstr = @$channels[$item['chid']]['cname'];
            $editstr = "<a href=\"?action=report&aid={$item['aid']}&cid={$cid}{$forwardstr}\">" . lang('edit') . "</a>";
            $itemstr .= "<tr><td align=\"center\" class=\"item1\" width=\"30\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$cid}]\" value=\"{$cid}\"></td>\n" . "<td class=\"item2\"><a href=\"{$arcurl}\" target=\"_blank\">" . mhtmlspecialchars($item['asubject']) . "</td>\n" . "<td align=\"center\" class=\"item1\">{$item['mname']}</td>\n" . "<td align=\"center\" class=\"item2\">{$catalogstr}</td>\n" . "<td align=\"center\" class=\"item1\">{$channelstr}</td>\n" . "<td align=\"center\" class=\"item2\" width=\"70\">{$updatedate}</td>\n" . "<td align=\"center\" class=\"item1\" width=\"30\">{$editstr}</td></tr>\n";
        }
        $counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
        $multi = multi($counts, $mrowpp, $page, "?action=reports&aid={$aid}");
        tabheader(lang('reportlist'), 'arcsedit', "?action=reports&aid={$aid}&page={$page}", 8);
        trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('reportobject'), lang('member'), lang('catalog'), lang('channel'), lang('updatedate'), lang('edit')));
        echo $itemstr;
        tabfooter();
        echo $multi;
        tabfooter('breportsedit', lang('delete'));
    } else {
        if (empty($selectid)) {
            mcmessage('confirmselectreport', "?action=reports&aid={$aid}&page={$page}{$filterstr}");
        }
        $db->query("UPDATE {$tblprefix}archives_sub SET reports=GREATEST(0,reports-" . count($selectid) . ") WHERE aid='{$aid}'");
        $db->query("DELETE FROM {$tblprefix}reports WHERE cid " . multi_str($selectid), 'UNBUFFERED');
        mcmessage('reportsucceed', $forward);
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:reports.inc.php

示例7: foreach

    $fields =& $initfields;
    foreach ($fields as $k => $field) {
        if ($field['available'] && $field['issearch']) {
            $a_field->init(1);
            $a_field->field = $field;
            $a_field->trsearch();
        }
    }
    unset($a_field);
}
mtrbasic(lang('indays'), 'indays', $indays);
mtrbasic(lang('outdays'), 'outdays', $outdays);
mtabfooter('searchsubmit', lang('search'));
if (submitcheck('searchsubmit')) {
    if ($search_repeat) {
        empty($m_cookie['08cms_search_time']) ? msetcookie('08cms_search_time', '1', $search_repeat) : mcmessage('searchoverquick');
    }
    $pagetmp = $page;
    do {
        $query = $db->query("SELECT a.* {$fromstr} {$wherestr} {$orderstr} LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
        $pagetmp--;
    } while (!$db->num_rows($query) && $pagetmp);
    $itemarchive = '';
    $no = $pagetmp * $mrowpp;
    while ($archive = $db->fetch_array($query)) {
        $no++;
        $archive['arcurl'] = view_arcurl($archive);
        $archive['subject'] = "<a href=\"{$archive['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($archive['subject']) . "</a>";
        $archive['catalog'] = $catalogs[$archive['caid']]['title'];
        $archive['createdate'] = date("{$dateformat} {$timeformat}", $archive['createdate']);
        $itemarchive .= "<tr><td class=\"item\" width=\"40\">{$no}</td>\n" . "<td class=\"item2\">{$archive['subject']}</td>\n" . "<td align=\"center\" class=\"item\">{$archive['catalog']}</td>\n" . "<td align=\"center\" class=\"item\">{$archive['mname']}</td>\n" . "<td align=\"center\" class=\"item\" width=\"110\">{$archive['createdate']}</td></tr>\n";
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:search.inc.php

示例8: pay_base

        $poid = $pays[$paynew['poid']];
        $pay = new pay_base($paynew['poid']);
        $pay->account = $poid[0];
        $pay->keyt = $poid[1];
        $paynew['poid'] == 'alipay' && ($pay->partner = $poid[2]);
        $pay->by = 'pays';
        $pay->dataok = 1;
        $pay->order_id = $pid;
        $pay->status = 0;
        $pay->totalfee = $paynew['amount'];
        $pay->send($ordersn, lang('account_plaza', $hostname), '');
    } else {
        mcmessage('systemerror');
    }
} elseif ($deal == 'receive') {
    empty($pid) && mcmessage('confirmchoosepays');
    if (!($item = $db->fetch_one("SELECT * FROM {$tblprefix}pays WHERE pid={$pid}"))) {
        mcmessage('choosepayrecord');
    }
    $flagarr = array(0 => lang('member cash pay saving succeed !'), 2 => lang('from online pay interface goback pay failed message'), 3 => lang('pay mount and record not same , please wait administrator deal !'), 4 => lang('arrived pay record , please dont repeat operate'), 5 => lang('cash arrived , member currency auto saving not succeed , please notice administrator !'), 6 => lang('cash arrived , auto saving function closed , please wait administrator check !'));
    tabheader(lang('online pay message look'));
    trbasic(lang('pay result state'), '', $flagarr[$flag], '');
    trbasic(lang('pay amount ( rmbi )'), '', $item['amount'], '');
    trbasic(lang('handfee ( rmbi )'), '', $item['handfee'], '');
    trbasic(lang('pay interface'), '', $item['poid'] ? $poids[$item['poid']] : '-', '');
    trbasic(lang('pay orders idsn'), '', $item['ordersn'] ? $item['ordersn'] : '-', '');
    trbasic(lang('message send time'), '', date("{$dateformat} {$timeformat}", $item['senddate']), '');
    trbasic(lang('cash arrive time'), '', $item['receivedate'] ? date("{$dateformat} {$timeformat}", $item['receivedate']) : '-', '');
    trbasic(lang('currency saving time'), '', $item['transdate'] ? date("{$dateformat} {$timeformat}", $item['transdate']) : '-', '');
    tabfooter();
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:payonline.inc.php

示例9: unset

        }
        unset($a_field);
        $omchid = $curuser->info['mchid'];
        //原模型
        if ($mproject['autocheck']) {
            $curuser->updatefield('mchid', $mchid, 'main');
            //在更新会员资料之前一定要将原模型表中的记录删除,插入新模型表中的记录。
            $db->query("DELETE FROM {$tblprefix}members_{$omchid} WHERE mid='{$memberid}'");
            $db->query("INSERT INTO {$tblprefix}members_{$mchid} SET mid='{$memberid}'");
            $curuser->gtidbymchid();
            //检查因模型改变是否有不生效会员组
            $curuser->updatedb();
            if ($isold) {
                $db->query("UPDATE {$tblprefix}mtrans SET toid='{$mchid}',fromid='{$omchid}',contentarr='',remark='',reply='',checked='1' WHERE mid='{$memberid}' AND checked='0'");
            } else {
                $db->query("INSERT INTO {$tblprefix}mtrans SET mid='{$memberid}',mname='" . $curuser->info['mname'] . "',toid='{$mchid}',fromid='{$omchid}',contentarr='',remark='',checked='1',createdate='{$timestamp}'");
            }
        } else {
            $mtran['remark'] = trim($mtran['remark']);
            $mtran['contentarr'] = empty($minfosnew) ? '' : addslashes(serialize($minfosnew));
            if ($isold) {
                $db->query("UPDATE {$tblprefix}mtrans SET fromid='{$omchid}',toid='{$mchid}',contentarr='{$mtran['contentarr']}',remark='{$mtran['remark']}' WHERE mid='{$memberid}' AND checked='0'");
            } else {
                $db->query("INSERT INTO {$tblprefix}mtrans SET mid='{$memberid}',mname='" . $curuser->info['mname'] . "',fromid='{$omchid}',toid='{$mchid}',contentarr='{$mtran['contentarr']}',remark='{$mtran['remark']}',checked='0',createdate='{$timestamp}'");
            }
        }
        $c_upload->closure(1, $memberid, 'members');
        $c_upload->saveuptotal(1);
        mcmessage($mproject['autocheck'] ? 'membertypealter' : 'waitcheck', "?action=mtrans");
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mtrans.inc.php

示例10: mcmessage

            mcmessage('safecodeerr');
        }
        $mname = trim($mname);
        $email = trim($email);
        if (strlen($mname) < 3 || strlen($mname) > 15) {
            mcmessage('membernamelenillegal');
        }
        $guestexp = '\\xA1\\xA1|^Guest|^\\xD3\\xCE\\xBF\\xCD|\\xB9\\x43\\xAB\\xC8';
        if (preg_match("/^\\s*\$|^c:\\con\\con\$|[%,\\*\"\\s\t\\<\\>\\&]|{$guestexp}/is", $mname)) {
            mcmessage('membercnameillegal');
        }
        if (!$email || !isemail($email)) {
            mcmessage('emailillegal');
        }
        $cmember = $db->fetch_one("SELECT mid,mname,email FROM {$tblprefix}members WHERE mname='{$mname}' AND email='{$email}'");
        if (!$cmember) {
            mcmessage('nomemberemail');
        }
        $actuser = new cls_userinfo();
        $actuser->activeuser($cmember['mid']);
        if ($actuser->isadmin()) {
            mcmessage('mastercannotuse');
        }
        unset($actuser);
        $confirmid = random(6);
        $confirmstr = "{$timestamp}\t1\t{$confirmid}";
        $db->query("UPDATE {$tblprefix}members_sub SET confirmstr='{$confirmstr}' WHERE mid='{$cmember['mid']}'");
        mailto("{$mname} <{$email}>", 'member_getpwd_subject', 'member_getpwd_content', array('mid' => $cmember['mid'], 'mname' => $mname, 'url' => "{$cms_abs}tools/lostpwd.php?action=getpwd&mid={$cmember['mid']}&id={$confirmid}", 'onlineip' => $onlineip));
        mcmessage('lostpwd_send', $forward);
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:lostpwd.php

示例11: tabheader

        echo $multi;
        tabheader(lang('operateitem'));
        trbasic(lang('choose_item'), '', "<input class=\"checkbox\" type=\"checkbox\" name=\"frienddeal[delete]\" value=\"1\">&nbsp;" . lang('delete') . $listname . "&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"frienddeal[pass]\" value=\"1\">&nbsp;" . lang('check') . $listname, '');
        tabfooter('bfriendsedit');
    } else {
        if (empty($frienddeal)) {
            mcmessage('selectoperateitem', M_REFERER);
        }
        if (empty($selectid)) {
            mcmessage('chooseoperatemember', M_REFERER);
        }
        if (!empty($frienddeal['delete'])) {
            $db->query("DELETE FROM {$tblprefix}mfriends WHERE cid in (" . join(',', $selectid) . ") AND mid={$memberid}");
        } else {
            if (!empty($frienddeal['pass'])) {
                $db->query("UPDATE {$tblprefix}mfriends SET checked='1' WHERE cid in (" . join(',', $selectid) . ") AND mid={$memberid}");
            }
        }
        mcmessage('friendneedadminok', M_REFERER);
    }
} elseif ($deal == 'delete' && $cid) {
    if (empty($confirm)) {
        mcmessage('delfriendconfirm', '', "<a href=\"?action={$action}&deal={$deal}&cid={$cid}&confirm=1&{$forwardstr}\">", '</a>', "<a href=\"{$forward}\">", '</a>');
    } else {
        $db->query("DELETE FROM {$tblprefix}mfriends WHERE cid={$cid} AND mid={$memberid}");
        mcmessage('succeeddelfriend', $forward, $db->affected_rows());
    }
} elseif ($deal == 'agree' && $cid) {
    $db->query("UPDATE {$tblprefix}mfriends SET checked='1' WHERE cid={$cid} AND mid={$memberid}");
    mcmessage('sagreefriendadd', $forward, $db->affected_rows());
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:amfriends.inc.php

示例12: empty

            }
            if (!empty($arcdeal['delete'])) {
                $uedit->delete(1);
                continue;
            }
            if ($curuser->pmbypmids('cuadd', $uedit->commu['setting']['apmid'])) {
                if (!empty($arcdeal['readd'])) {
                    $uedit->updatefield('refreshdate', $timestamp);
                    $uedit->updatefield('enddate', empty($uedit->commu['setting']['vdays']) ? 0 : $timestamp + 86400 * $uedit->commu['setting']['vdays']);
                }
                if (isset($itemsnew[$cid]['oprice'])) {
                    //更新报价算一次重发
                    $uedit->updatefield('oprice', max(0, round($itemsnew[$cid]['oprice'], 2)));
                    $uedit->updatefield('refreshdate', $timestamp);
                    $uedit->updatefield('enddate', empty($uedit->commu['setting']['vdays']) ? 0 : $timestamp + 86400 * $uedit->commu['setting']['vdays']);
                }
            }
            if (isset($itemsnew[$cid]['storage'])) {
                $uedit->updatefield('storage', max(-1, intval($itemsnew[$cid]['storage'])));
            }
            if (!empty($arcdeal['ucid'])) {
                $uedit->updatefield('ucid', $arcucid);
            }
            $uedit->updatedb();
            $uedit->init();
        }
        mcmessage('offopesucce', "?action=offers{$filterstr}&page={$page}");
    }
} else {
    include M_ROOT . $u_tplname;
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:offers.inc.php

示例13: mcmessage

            include M_ROOT . $u_tplname;
        }
    } else {
        if (empty($arcdeal)) {
            mcmessage('selectopeitem', M_REFERER);
        }
        if (empty($selectid)) {
            mcmessage('conoffer', M_REFERER);
        }
        $uedit = new cls_cuedit();
        foreach ($selectid as $cid) {
            if ($errno = $uedit->read($cid, 'reply')) {
                continue;
            }
            if (!empty($arcdeal['delete'])) {
                $uedit->delete(0);
                continue;
            }
            if (!empty($arcdeal['check'])) {
                $uedit->updatefield('checked', 1);
            } elseif (!empty($arcdeal['uncheck'])) {
                $uedit->updatefield('checked', 0);
            }
            $uedit->updatedb();
            $uedit->init();
        }
        mcmessage('replysetsucceed', "?action=areplys{$filterstr}&page={$page}");
    }
} else {
    include M_ROOT . $u_tplname;
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:areplys.inc.php

示例14: array

        $selectid = array();
        $npage = empty($npage) ? 1 : $npage;
        if (empty($pages)) {
            $itemcount = $db->result_one("SELECT COUNT(*) FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$wheresql}");
            $pages = @ceil($itemcount / $mrowpp);
        }
        if ($npage <= $pages) {
            $fromstr = empty($fromid) ? "" : "s.id<{$fromid}";
            $nwheresql = !$wheresql ? $fromstr ? "WHERE {$fromstr}" : "" : $wheresql . ($fromstr ? " AND " : "") . $fromstr;
            $query = $db->query("SELECT s.id FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$nwheresql} ORDER BY s.id DESC LIMIT 0,{$mrowpp}");
            while ($item = $db->fetch_array($query)) {
                $selectid[] = $item['id'];
            }
        }
    }
    $selectid && $db->query("DELETE FROM {$tblprefix}subscribes WHERE id " . multi_str($selectid), 'UNBUFFERED');
    if (!empty($select_all)) {
        $npage++;
        if ($npage <= $pages) {
            $fromid = min($selectid);
            $transtr = '';
            $transtr .= "&select_all=1";
            $transtr .= "&pages={$pages}";
            $transtr .= "&npage={$npage}";
            $transtr .= "&barcsedit=1";
            $transtr .= "&fromid={$fromid}";
            mcmessage('operating' . "<br>\n\t\t\t\t\t" . lang('all') . " {$pages} " . lang('page0') . "," . lang('dealing') . " {$npage} " . lang('page0') . "<br><br>\n\t\t\t\t\t<a href=\"{$forward}\">>>" . lang('pause') . "</a>", "?action=subscribes{$transtr}&forward=" . urlencode($forward), 500);
        }
    }
    mcmessage('subscribedelsucceed', "?action=subscribes&page={$page}{$filterstr}");
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:subscribes.inc.php

示例15: foreach

            foreach ($fields as $k => $v) {
                if (!$v['isfunc'] && !$v['isadmin']) {
                    $a_field->init();
                    $a_field->field = $v;
                    if ($curuser->pmbypmids('field', $v['pmid'])) {
                        $a_field->oldvalue = '';
                        $a_field->deal('communew');
                        if (!empty($a_field->error)) {
                            $c_upload->rollback();
                            $uedit->delete();
                            mcmessage($a_field->error, axaction(2, M_REFERER));
                        }
                        $uedit->updatefield($k, $a_field->newvalue);
                        if ($arr = multi_val_arr($a_field->newvalue, $v)) {
                            foreach ($arr as $x => $y) {
                                $uedit->updatefield($k . '_' . $x, $y);
                            }
                        }
                    }
                }
            }
            unset($a_field);
            $c_upload->saveuptotal(1);
            $uedit->updatedb();
        }
        $c_upload->closure(1, $cid, 'mflinks');
        mcmessage('submitsucceed', axaction(10, $forward));
    }
} else {
    include M_ROOT . $mcommu['ucadd'];
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:flink.php


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