$actuser->updatefield($k . '_' . $x, $y, $v['tbl']); } } } } unset($a_field); if ($enable_uc && $actuser->info['password'] != $minfosnew['password']) { require_once M_ROOT . './include/ucenter/config.inc.php'; require_once M_ROOT . './uc_client/client.php'; if (1 != uc_user_edit($actuser->info['mname'], '', $minfosnew['password'], '', 1)) { amessage('mempassmodfai'); } } $actuser->updatedb(); $c_upload->closure(1, $mid, 'members'); $c_upload->saveuptotal(1); adminlog(lang('detail_edit_member')); amessage('membermodifyfinish', M_REFERER); } } elseif ($action == 'grouptype' && $mid) { if (!submitcheck('bmemberdetail')) { $a_field = new cls_field(); $submitstr = ''; tabheader(lang('usergroup_msg') . ' : [' . $mchannel['cname'] . ']' . $actuser->info['mname'], 'memberdetail', "?entry=member&action=grouptype&mid={$mid}", 4, 1, 1); foreach ($grouptypes as $gtid => $grouptype) { if ($grouptype['mode'] < 2 && !in_array($mchid, explode(',', $grouptype['mchids'])) && ($backamember || $gtid != 2)) { $actuser->info['grouptype' . $gtid . 'date'] = !$actuser->info['grouptype' . $gtid . 'date'] ? '' : date('Y-m-d', $actuser->info['grouptype' . $gtid . 'date']); $ugidsarr = array('0' => lang('release_usergroup')) + ugidsarr($grouptype['gtid'], $mchid); echo "<tr class=\"txt\">\n" . "<td class=\"txtL w15B\">{$grouptype['cname']}</td>\n" . "<td class=\"txtL w35B\"><select style=\"vertical-align: middle;\" name=\"minfosnew[grouptype" . $gtid . "]\">" . makeoption($ugidsarr, $actuser->info['grouptype' . $gtid]) . "</select></td>\n" . "<td class=\"txtL w15B\">" . lang('enddate') . "</td>\n" . "<td class=\"txtL w35B\"><input type=\"text\" size=\"20\" id=\"minfosnew[grouptype" . $gtid . "date]\" name=\"minfosnew[grouptype" . $gtid . "date]\" value=\"" . $actuser->info['grouptype' . $gtid . 'date'] . "\" onclick=\"ShowCalendar(this.id);\"></td>\n" . "</tr>"; } else { $usergroups = read_cache('usergroups', $gtid);
} elseif ($fn) { $ret = $up->local_upload('upload', $lfile); empty($ret['error']) && ($ret['error'] = 0); $ret['error'] || $up->closure(); fckEditor($fn, $ret['error'], $ret['error'] ? '' : tag2atm($ret['remote'])); } else { $ret = $up->local_upload('Filedata', $lfile); if (empty($ret['error'])) { $up->closure(); echo '0|' . tag2atm($ret['remote']); } else { echo $ret['error']; } } if (empty($ret['error'])) { $up->saveuptotal(1); } } else { load_cache('localfiles'); $tmp = array_key_exists($lfile, $localfiles) ? $localfiles[$lfile] : array(); $otype = ''; foreach ($tmp as $v) { if ($v['islocal']) { $otype .= ",\"{$v['extname']}\":[{$v['minisize']},{$v['maxsize']}]"; } } $otype = substr($otype, 1); $pa = array(); if (!empty($player)) { if (in_array($lfile, array('media', 'flash'))) { load_cache('players');