本文整理汇总了PHP中upload_icon_banner函数的典型用法代码示例。如果您正苦于以下问题:PHP upload_icon_banner函数的具体用法?PHP upload_icon_banner怎么用?PHP upload_icon_banner使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了upload_icon_banner函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
$default_creditspolicy = array('post' => 0, 'reply' => 0, 'digest' => 0, 'postattach' => 0, 'getattach' => 0, 'tradefinished' => 0, 'joinpoll' => 0);
$levelnew['creditspolicy'] = empty($levelnew['creditspolicy']) ? $default_creditspolicy : array_merge($default_creditspolicy, $levelnew['creditspolicy']);
$dataarr['creditspolicy'] = serialize($levelnew['creditspolicy']);
$default_postpolicy = array('alloweditpost' => 0, 'recyclebin' => 0, 'allowsmilies' => 0, 'allowhtml' => 0, 'allowbbcode' => 0, 'allowanonymous' => 0, 'jammer' => 0, 'allowimgcode' => 0, 'allowmediacode' => 0);
$levelnew['postpolicy'] = array_merge($default_postpolicy, $levelnew['postpolicy']);
$levelnew['postpolicy']['allowpostspecial'] = bindec(intval($levelnew['postpolicy']['allowpostspecial'][6]) . intval($levelnew['postpolicy']['allowpostspecial'][5]) . intval($levelnew['postpolicy']['allowpostspecial'][4]) . intval($levelnew['postpolicy']['allowpostspecial'][3]) . intval($levelnew['postpolicy']['allowpostspecial'][2]) . intval($levelnew['postpolicy']['allowpostspecial'][1]));
$dataarr['postpolicy'] = serialize($levelnew['postpolicy']);
$dataarr['specialswitch']['membermaximum'] = intval($dataarr['specialswitch']['membermaximum']);
$dataarr['specialswitch'] = serialize($_GET['specialswitchnew']);
if ($_GET['deleteicon']) {
@unlink($_G['setting']['attachurl'] . 'common/' . $grouplevel['icon']);
$dataarr['icon'] = '';
} else {
if ($_FILES['iconnew']) {
$data = array('extid' => "{$levelid}");
$dataarr['icon'] = upload_icon_banner($data, $_FILES['iconnew'], 'grouplevel_icon');
} else {
$dataarr['icon'] = $_GET['iconnew'];
}
}
C::t('forum_grouplevel')->update($levelid, $dataarr);
updatecache('grouplevels');
cpmsg('groups_setting_succeed', 'action=group&operation=level&levelid=' . $levelid, 'succeed');
}
}
} elseif ($operation == 'mergetype') {
require_once libfile('function/group');
loadcache('grouptype');
$fid = $_GET['fid'];
$sourcetype = C::t('forum_forum')->fetch_info_by_fid($fid);
$firstgroup = $_G['cache']['grouptype']['first'];
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:31,代码来源:admincp_group.php
示例2: cpmsg
$result = DB::fetch_first("SELECT * FROM " . DB::table('sanree_brand_slide') . ' where id=3');
if ($result) {
DB::update('sanree_brand_slide', $setarr, "ID=3");
} else {
$setarr['ID'] = $_G['sr_type'];
DB::insert('sanree_brand_slide', $setarr);
}
cpmsg($langs['succeed'], "action=plugins&operation=config&act=" . $act . "&identifier=sanree_brand&pmod=admincp", 'succeed');
return;
}
$tmpstr = '';
for ($j = 1; $j < 6; $j++) {
if ($_FILES['pic' . $j]) {
if ($_FILES['LinkFaceCH']['error'] == 0) {
$data = array('extid' => $j);
$setarr['pic' . $j] = upload_icon_banner($data, $_FILES['pic' . $j], 'slide');
}
} else {
$setarr['pic' . $j] = $_G['sr_pic' . $j];
}
$setarr['movie' . $j] = $_G['sr_movie' . $j];
if (!empty($setarr['pic' . $j])) {
$picurl = fiximage($setarr['pic' . $j]);
$link = $setarr['movie' . $j];
$tmp = '<track><title></title><creator></creator>';
$tmp .= '<location>' . $picurl . '</location>';
$tmp .= '<info>' . $link . '</info></track>' . "\r\n";
$tmpstr .= $tmp;
}
}
$type = intval($_G['sr_type']);
开发者ID:herosrx,项目名称:shops,代码行数:31,代码来源:sanree_brand_slide.php
示例3: getverifyicon
function getverifyicon($iconkey = 'iconnew', $vid = 1, $extstr = 'verify_icon')
{
global $_G, $_FILES;
if ($_FILES[$iconkey]) {
$data = array('extid' => "{$vid}");
$iconnew = upload_icon_banner($data, $_FILES[$iconkey], $extstr);
} else {
$iconnew = $_GET['' . $iconkey];
}
return $iconnew;
}
开发者ID:tianyunchong,项目名称:php,代码行数:11,代码来源:admincp_verify.php
示例4: intval
$forumarr['fup'] = intval($_G['gp_fup']);
}
}
if ($forumarr) {
DB::update('forum_forum', $forumarr, array('fid' => $_G['fid']));
if ($forumarr['fup']) {
DB::query("UPDATE " . DB::table('forum_forumfield') . " SET groupnum=groupnum+'1' WHERE fid='{$forumarr['fup']}'");
DB::query("UPDATE " . DB::table('forum_forumfield') . " SET groupnum=groupnum+'-1' WHERE fid='" . $_G['forum']['fup'] . "'");
require_once libfile('function/cache');
updatecache('grouptype');
}
}
$iconsql = '';
$deletebanner = $_G['gp_deletebanner'];
$iconnew = upload_icon_banner($_G['forum'], $_FILES['iconnew'], 'icon');
$bannernew = upload_icon_banner($_G['forum'], $_FILES['bannernew'], 'banner');
if ($iconnew) {
$iconsql .= ", icon='{$iconnew}'";
$group_recommend = unserialize($_G['setting']['group_recommend']);
if ($group_recommend[$_G['fid']]) {
$group_recommend[$_G['fid']]['icon'] = get_groupimg($iconnew);
DB::query("UPDATE " . DB::table('common_setting') . " SET svalue = '" . serialize($group_recommend) . "' WHERE skey = 'group_recommend' LIMIT 1");
include libfile('function/cache');
updatecache('setting');
}
}
if ($bannernew && empty($deletebanner)) {
$iconsql .= ", banner='{$bannernew}'";
} elseif ($deletebanner) {
$iconsql .= ", banner=''";
@unlink($_G['forum']['banner']);
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:forum_group.php
示例5: serialize
$forum['extra']['iconwidth'] = '';
}
}
$extranew = serialize($forum['extra']);
$forumfielddata = array_merge($forumfielddata, array('description' => $descriptionnew, 'password' => $_GET['passwordnew'], 'redirect' => $_GET['redirectnew'], 'rules' => $rulesnew, 'attachextensions' => $_GET['attachextensionsnew'], 'modrecommend' => $modrecommendnew && is_array($modrecommendnew) ? serialize($modrecommendnew) : '', 'seotitle' => $_GET['seotitlenew'], 'keywords' => $_GET['keywordsnew'], 'seodescription' => $_GET['seodescriptionnew'], 'threadplugin' => $threadpluginnew, 'extra' => $extranew, 'commentitem' => $_GET['commentitemnew'], 'formulaperm' => $_GET['formulapermnew'], 'picstyle' => $_GET['picstylenew'], 'widthauto' => $_GET['widthautonew'], 'noantitheft' => intval($_GET['noantitheftnew']), 'noforumhidewater' => intval($_GET['noforumhidewaternew']), 'noforumrecommend' => intval($_GET['noforumrecommendnew']), 'price' => intval($_GET['pricenew'])));
if (!$multiset) {
if ($_GET['delreplybg']) {
$valueparse = parse_url($_GET['replybgnew']);
if (!isset($valueparse['host']) && file_exists($_G['setting']['attachurl'] . 'common/' . $_GET['replybgnew'])) {
@unlink($_G['setting']['attachurl'] . 'common/' . $_GET['replybgnew']);
}
$_GET['replybgnew'] = '';
}
if ($_FILES['replybgnew']) {
$data = array('fid' => "{$fid}");
$replybgnew = upload_icon_banner($data, $_FILES['replybgnew'], 'replybg');
} else {
$replybgnew = $_GET['replybgnew'];
}
$forumfielddata = array_merge($forumfielddata, array('viewperm' => $_GET['viewpermnew'], 'postperm' => $_GET['postpermnew'], 'replyperm' => $_GET['replypermnew'], 'getattachperm' => $_GET['getattachpermnew'], 'postattachperm' => $_GET['postattachpermnew'], 'postimageperm' => $_GET['postimagepermnew'], 'relatedgroup' => $_GET['relatedgroupnew'], 'spviewperm' => implode("\t", $_GET['spviewpermnew']), 'replybg' => $replybgnew));
}
if ($forumfielddata) {
C::t('forum_forumfield')->update($fid, $forumfielddata);
}
if ($pluginsetting) {
foreach ($_GET['pluginnew'] as $pluginvarid => $value) {
$pluginvars[$pluginvarid][$fid] = $value;
}
}
if ($modrecommendnew && !$modrecommendnew['sort']) {
require_once libfile('function/forumlist');
开发者ID:tang86,项目名称:discuz-utf8,代码行数:31,代码来源:admincp_forums.php
示例6: showsetting
}
showsetting('setting_functions_activity_field', $varname, $verifyarr['field'], 'omcheckbox');
showsubmit('verifysubmit');
showtablefooter();
showformfooter();
} else {
foreach ($_G['setting']['verify'] as $key => $value) {
$_G['setting']['verify'][$key]['icon'] = str_replace($_G['setting']['attachurl'] . 'common/', '', $value['icon']);
}
$verifynew = getgpc('verify');
if ($verifynew['available'] == 1 && !trim($verifynew['title'])) {
cpmsg('members_verify_update_title_error', '', 'error');
}
if ($_FILES['iconnew']) {
$data = array('extid' => "{$vid}");
$iconnew = upload_icon_banner($data, $_FILES['iconnew'], 'verify_icon');
} else {
$iconnew = $_G['gp_iconnew'];
}
$verifynew['icon'] = $iconnew;
if ($_G['gp_deleteicon']) {
$valueparse = parse_url($verifyarr['icon']);
if (!isset($valueparse['host']) && preg_match('/^' . preg_quote($_G['setting']['attachurl'] . 'common/', '/') . '/', $verifyarr['icon'])) {
@unlink($verifyarr['icon']);
}
$verifynew['icon'] = '';
}
if (!empty($verifynew['field']['residecity'])) {
$verifynew['field']['resideprovince'] = 'resideprovince';
$verifynew['field']['residedist'] = 'residedist';
$verifynew['field']['residecommunity'] = 'residecommunity';
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_verify.php
示例7: intval
$exemptnewbin = intval($_GET['exemptnew'][$i]) . $exemptnewbin;
}
$exemptnew = bindec($exemptnewbin);
$tradesticknew = $_GET['tradesticknew'] > 0 ? intval($_GET['tradesticknew']) : 0;
$maxinvitedaynew = $_GET['maxinvitedaynew'] > 0 ? intval($_GET['maxinvitedaynew']) : 10;
$maxattachsizenew = $_GET['maxattachsizenew'] > 0 ? intval($_GET['maxattachsizenew'] * 1024) : 0;
$maximagesizenew = $_GET['maximagesizenew'] > 0 ? intval($_GET['maximagesizenew'] * 1024) : 0;
$maxsizeperdaynew = $_GET['maxsizeperdaynew'] > 0 ? intval($_GET['maxsizeperdaynew'] * 1024) : 0;
$maxattachnumnew = $_GET['maxattachnumnew'] > 0 ? intval($_GET['maxattachnumnew']) : 0;
$allowrecommendnew = $_GET['allowrecommendnew'] > 0 ? intval($_GET['allowrecommendnew']) : 0;
$dataarr = array('grouptitle' => $_GET['grouptitlenew'], 'radminid' => $radminidnew, 'allowvisit' => $_GET['allowvisitnew'], 'allowsendpm' => $_GET['allowsendpmnew'], 'maxinvitenum' => $_GET['maxinvitenumnew'], 'maxinviteday' => $maxinvitedaynew, 'allowinvite' => $_GET['allowinvitenew'], 'allowmailinvite' => $_GET['allowmailinvitenew'], 'inviteprice' => $_GET['invitepricenew']);
if (!$multiset) {
$dataarr['system'] = $systemnew;
if ($_FILES['iconnew']) {
$data = array('extid' => "{$_GET['id']}");
$iconnew = upload_icon_banner($data, $_FILES['iconnew'], 'usergroup_icon');
} else {
$iconnew = $_GET['iconnew'];
}
if ($iconnew) {
$dataarr['icon'] = $iconnew;
}
if ($_GET['deleteicon']) {
$valueparse = parse_url($group['icon']);
if (!isset($valueparse['host'])) {
$group['icon'] = str_replace(array('..', '//'), array('', '/'), $group['icon']);
@unlink($_G['setting']['attachurl'] . 'common/' . $group['icon']);
}
$dataarr['icon'] = '';
}
}
开发者ID:torrent520,项目名称:torrent520.github.io,代码行数:31,代码来源:admincp_usergroups.php
示例8: upload_icon_banner
$bannernew = upload_icon_banner($forum, $_FILES['bannernew'], 'banner');
} else {
$bannernew = $_G['gp_bannernew'];
}
if ($bannernew) {
$forumfielddata['banner'] = $bannernew;
}
if ($_G['gp_deletebanner'] && $forum['banner']) {
$valueparse = parse_url($forum['banner']);
if (!isset($valueparse['host'])) {
@unlink($_G['setting']['attachurl'] . 'common/' . $forum['banner']);
}
$forumfielddata['banner'] = '';
}
if ($_FILES['iconnew']) {
$iconnew = upload_icon_banner($forum, $_FILES['iconnew'], 'icon');
} else {
$iconnew = $_G['gp_iconnew'];
}
if ($iconnew) {
$forumfielddata['icon'] = $iconnew;
}
if ($_G['gp_deleteicon']) {
$valueparse = parse_url($forum['icon']);
if (!isset($valueparse['host'])) {
@unlink($_G['setting']['attachurl'] . 'common/' . $forum['icon']);
}
$forumfielddata['icon'] = '';
}
}
$forumfielddata = array_merge($forumfielddata, array('description' => $descriptionnew, 'password' => $_G['gp_passwordnew'], 'redirect' => $_G['gp_redirectnew'], 'rules' => $rulesnew, 'attachextensions' => $_G['gp_attachextensionsnew'], 'modrecommend' => $modrecommendnew, 'keywords' => $_G['gp_keywordsnew'], 'threadplugin' => $threadpluginnew, 'extra' => $extranew, 'commentitem' => $_G['gp_commentitemnew'], 'formulaperm' => $_G['gp_formulapermnew']));
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:31,代码来源:admincp_forums.php
示例9: floatval
if (isset($settingnew['sessionclose'])) {
$settingnew['sessionclose'] = $settingnew['sessionclose'] ? true : false;
}
if (isset($settingnew['onlineguestsmultiple'])) {
$settingnew['onlineguestsmultiple'] = floatval($settingnew['onlineguestsmultiple']);
}
if ($_GET['delglobalreplybg']) {
$valueparse = parse_url($setting['globalreplybg']);
if (!isset($valueparse['host']) && file_exists($_G['setting']['attachurl'] . 'common/' . $setting['globalreplybg'])) {
@unlink($_G['setting']['attachurl'] . 'common/' . $setting['globalreplybg']);
}
$_GET['globalreplybg'] = '';
}
if ($_FILES['globalreplybg']) {
$data = array('extid' => 'globalreplybg');
$settingnew['globalreplybg'] = upload_icon_banner($data, $_FILES['globalreplybg'], 'globalreplybg');
} else {
$settingnew['globalreplybg'] = $_GET['globalreplybg'];
}
$updatecache = FALSE;
$settings = array();
foreach ($settingnew as $key => $val) {
if ($setting[$key] != $val) {
$updatecache = TRUE;
if (in_array($key, array('newbiespan', 'topicperpage', 'postperpage', 'hottopic', 'starthreshold', 'delayviewcount', 'attachexpire', 'visitedforums', 'maxsigrows', 'timeoffset', 'statscachelife', 'pvfrequence', 'oltimespan', 'seccodestatus', 'maxprice', 'rssttl', 'maxonlines', 'floodctrl', 'regctrl', 'regfloodctrl', 'searchctrl', 'extcredits1', 'extcredits2', 'extcredits3', 'extcredits4', 'extcredits5', 'extcredits6', 'extcredits7', 'extcredits8', 'transfermincredits', 'exchangemincredits', 'maxincperthread', 'maxchargespan', 'maxspm', 'maxsearchresults', 'maxsmilies', 'threadmaxpages', 'maxpostsize', 'minpostsize', 'sendmailday', 'maxpolloptions', 'karmaratelimit', 'losslessdel', 'smcols', 'allowdomain', 'feedday', 'feedmaxnum', 'feedhotday', 'feedhotmin', 'feedtargetblank', 'updatestat', 'namechange', 'namecheck', 'networkpage', 'maxreward', 'groupnum', 'starlevelnum', 'friendgroupnum', 'pollforumid', 'tradeforumid', 'rewardforumid', 'activityforumid', 'debateforumid', 'maxpage', 'starcredit', 'topcachetime', 'newspacevideophoto', 'newspacerealname', 'newspaceavatar', 'newspacenum', 'shownewuser', 'feedhotnum', 'showallfriendnum', 'feedread', 'need_friendnum', 'need_avatar', 'uniqueemail', 'need_email', 'allowquickviewprofile', 'preventrefresh', 'jscachelife', 'maxmodworksmonths', 'maxonlinelist'))) {
$val = (double) $val;
}
if ($key == 'privacy') {
foreach ($val['view'] as $var => $value) {
$val['view'][$var] = intval($value);
}
开发者ID:KKRainbow,项目名称:discuz-x32-php7,代码行数:31,代码来源:admincp_setting.php
示例10: upload_icon_banner
$setarr['recommendimg'] = upload_icon_banner($data, $_FILES['recommendimg'], 'brand_recommendimg');
} else {
$setarr['recommendimg'] = $_G['sr_recommendimg'];
}
}
if ($_G['sr_deletelogo2']) {
$result = C::t('#sanree_brand#sanree_brand_businesses')->getusername_by_bid($bid);
$valueparse = parse_url($result['banner']);
if (!isset($valueparse['host'])) {
$result['banner'] && @unlink($_G['setting']['attachurl'] . 'common/' . $result['banner']);
}
$setarr['banner'] = '';
} else {
if ($_FILES['banner']) {
$data = array('extid' => $bid);
$setarr['banner'] = upload_icon_banner($data, $_FILES['banner'], 'brand_banner');
} else {
$setarr['banner'] = $_G['sr_banner'];
}
}
if ($_G['sr_deletelogo3']) {
$result = C::t('#sanree_brand#sanree_brand_businesses')->getusername_by_bid($bid);
$valueparse = parse_url($result['weixinimg']);
if (!isset($valueparse['host'])) {
$result['weixinimg'] && @unlink($_G['setting']['attachurl'] . 'category/' . $result['weixinimg']);
}
$setarr['weixinimg'] = '';
} else {
if ($_FILES['weixinimg']) {
$data = array('extid' => $bid);
$post = myupload_icon_banner($bid, $data, $_FILES['weixinimg'], $uid);
开发者ID:herosrx,项目名称:shops,代码行数:31,代码来源:sanree_brand_businesseslist.php
示例11: array
@unlink($_G['setting']['attachurl'] . 'common/' . $result['smallicons']);
}
$setarr['smallicons'] = '';
}
DB::update('sanree_brand_group', $setarr, "groupid=" . $groupid);
} else {
if ($_FILES['grouplogo']) {
$data = array('extid' => TIMESTAMP);
$grouplogo = upload_icon_banner($data, $_FILES['grouplogo'], '');
} else {
$grouplogo = $_G['sr_grouplogo'];
}
$setarr['grouplogo'] = $grouplogo;
if ($_FILES['smallicons']) {
$data = array('extid' => TIMESTAMP);
$smallicons = upload_icon_banner($data, $_FILES['smallicons'], '');
} else {
$smallicons = $_G['sr_smallicons'];
}
$setarr['smallicons'] = $smallicons;
DB::insert('sanree_brand_group', $setarr);
}
if (C::t('#sanree_brand#sanree_brand_group_module')->count_by_where(' AND groupid=' . $groupid) > 0) {
C::t('#sanree_brand#sanree_brand_group_module')->update_by_groupid($groupid, $_G['sr_module']);
} else {
$addarray = array();
$addarray = $_G['sr_module'];
$addarray[groupid] = $groupid;
C::t('#sanree_brand#sanree_brand_group_module')->insert($addarray);
}
cpmsg($langs['succeed'], 'action=plugins&operation=config&act=group&identifier=sanree_brand&pmod=admincp&page=' . $page, 'succeed');
开发者ID:herosrx,项目名称:shops,代码行数:31,代码来源:sanree_brand_group.php
示例12: showsetting
showsetting('category_usergroups_recommenddayper', 'recommenddaypernew', $usergroup['recommenddayper'], 'text');
showsetting('category_usergroups_highlightdayper', 'highlightdaypernew', $usergroup['highlightdayper'], 'text');
}
showsubmit('groupsubmit', 'submit');
showtablefooter();
showformfooter();
} else {
if ($_FILES['iconnew']) {
$data = array('extid' => 'category_' . $usergroup['gid']);
$groupdata['icon'] = upload_icon_banner($data, $_FILES['iconnew'], '');
} else {
$groupdata['icon'] = $_G['gp_iconnew'];
}
if ($_FILES['bannernew']) {
$data = array('extid' => 'category_' . $usergroup['gid']);
$groupdata['banner'] = upload_icon_banner($data, $_FILES['bannernew'], '');
} else {
$groupdata['banner'] = $_G['gp_bannernew'];
}
if ($_G['gp_manageusernamenew']) {
$manageuid = DB::result_first("SELECT uid FROM " . DB::table('common_member') . " WHERE username='{$_G['gp_manageusernamenew']}'");
if (empty($manageuid)) {
cpmsg(cplang('not_exists_manager'), '', 'error');
}
$usergroupid = DB::result_first("SELECT groupid FROM " . DB::table('category_' . $do . '_member') . " WHERE uid='{$manageuid}'");
if (!empty($usergroupid) && $usergroupid != $groupid) {
cpmsg(cplang('manager_not_group'), '', 'error');
}
}
$_G['gp_allowpostnew'] = $_G['gp_postdaypernew'] && empty($_G['gp_allowpostnew']) ? 1 : $_G['gp_allowpostnew'];
$_G['gp_allowpushnew'] = $_G['gp_pushdaypernew'] && empty($_G['gp_allowpushnew']) ? 1 : $_G['gp_allowpushnew'];
开发者ID:pan289091315,项目名称:Discuz,代码行数:31,代码来源:admincp_category.php
示例13: srupdategroup
function srupdategroup($lastdata)
{
global $_G;
$lastdata['jointypenew'] = intval($lastdata['jointype']);
$lastdata['fupnew'] = intval($lastdata['fup']);
$lastdata['gviewpermnew'] = intval($lastdata['gviewperm']);
$lastdata['descriptionnew'] = dhtmlspecialchars(censor(trim($lastdata['descriptionnew'])));
$lastdata['namenew'] = dhtmlspecialchars(censor(trim($lastdata['name'])));
$icondata = array();
$fid = $lastdata['fid'];
$group = C::t('#sanree_brand#forum_forum')->fetch_info_by_fid($lastdata['fid']);
$iconnew = upload_icon_banner($group, $_FILES['iconnew'], 'icon');
$bannernew = upload_icon_banner($group, $_FILES['bannernew'], 'banner');
if ($iconnew) {
$icondata['icon'] = $iconnew;
}
if ($bannernew) {
$icondata['banner'] = $bannernew;
}
if ($lastdata['deleteicon']) {
@unlink($_G['setting']['attachurl'] . 'group/' . $group['icon']);
$icondata['icon'] = '';
}
if ($lastdata['deletebanner']) {
@unlink($_G['setting']['attachurl'] . 'group/' . $group['banner']);
$icondata['banner'] = '';
}
$groupdata = array_merge($icondata, array('description' => $lastdata['descriptionnew'], 'gviewperm' => $lastdata['gviewpermnew'], 'jointype' => $lastdata['jointypenew']));
C::t('#sanree_brand#forum_forumfield')->update($fid, $groupdata);
$setarr = array();
if ($lastdata['fupnew']) {
$setarr['fup'] = $lastdata['fupnew'];
}
if ($lastdata['namenew'] && $lastdata['namenew'] != $group['name'] && C::t('#sanree_brand#forum_forum')->fetch_fid_by_name($lastdata['namenew'])) {
return;
}
$setarr['name'] = $lastdata['namenew'];
C::t('#sanree_brand#forum_forum')->update($fid, $setarr);
if (!empty($lastdata['fupnew']) && $lastdata['fupnew'] != $group['fup']) {
C::t('#sanree_brand#forum_forumfield')->update_groupnum($lastdata['fupnew'], 1);
C::t('#sanree_brand#forum_forumfield')->update_groupnum($group['fup'], -1);
require_once libfile('function/cache');
updatecache('grouptype');
}
}
开发者ID:herosrx,项目名称:shops,代码行数:45,代码来源:function_core.php
注:本文中的upload_icon_banner函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论