Esempio n. 1
0
     showtablefooter();
     showformfooter();
 } else {
     foreach ($_G['setting']['verify'] as $key => $value) {
         $_G['setting']['verify'][$key]['icon'] = str_replace($_G['setting']['attachurl'] . 'common/', '', $value['icon']);
         $_G['setting']['verify'][$key]['unverifyicon'] = str_replace($_G['setting']['attachurl'] . 'common/', '', $value['unverifyicon']);
     }
     $verifynew = getgpc('verify');
     if ($vid == 6 || $vid == 7) {
         $verifynew['title'] = $_G['setting']['verify'][$vid]['title'];
     }
     if ($verifynew['available'] == 1 && !trim($verifynew['title'])) {
         cpmsg('members_verify_update_title_error', '', 'error');
     }
     $verifynew['icon'] = getverifyicon('iconnew', $vid);
     $verifynew['unverifyicon'] = getverifyicon('unverifyiconnew', $vid, 'unverify_icon');
     if ($_GET['deleteicon']) {
         $verifynew['icon'] = delverifyicon($verifyarr['icon']);
     }
     if ($_GET['delunverifyicon']) {
         $verifynew['unverifyicon'] = delverifyicon($verifyarr['unverifyicon']);
     }
     if (!empty($verifynew['field']['residecity'])) {
         $verifynew['field']['resideprovince'] = 'resideprovince';
         $verifynew['field']['residedist'] = 'residedist';
         $verifynew['field']['residecommunity'] = 'residecommunity';
     }
     if (!empty($verifynew['field']['birthday'])) {
         $verifynew['field']['birthyear'] = 'birthyear';
         $verifynew['field']['birthmonth'] = 'birthmonth';
     }
Esempio n. 2
0
     $_G['setting']['verify'][$key]['unverifyicon'] = str_replace($_G['setting']['attachurl'], '', $value['unverifyicon']);
 }
 $verifynew = getgpc('verify');
 $verifynew['readonly'] = $_G['setting']['verify'][$vid]['readonly'];
 if ($vid == 1) {
     $verifynew['title'] = $_G['setting']['verify'][$vid]['title'];
 }
 if ($verifynew['available'] == 1 && !trim($verifynew['title'])) {
     showmessage('认证名称不能为空', dreferer());
 }
 if ($icon = getverifyicon('iconnew', 'common/verify/' . $vid . '/verify_icon.jpg')) {
     $verifynew['icon'] = $icon;
 } else {
     $verifynew['icon'] = $_G['setting']['verify'][$vid]['icon'];
 }
 if ($uicon = getverifyicon('unverifyiconnew', 'common/verify/' . $vid . '/unverify_icon.jpg')) {
     $verifynew['unverifyicon'] = $uicon;
 } else {
     $verifynew['unverifyicon'] = $_G['setting']['verify'][$vid]['unverifyicon'];
 }
 if ($_GET['deleteicon']) {
     $verifynew['icon'] = delverifyicon($verifyarr['icon']);
 }
 if ($_GET['delunverifyicon']) {
     $verifynew['unverifyicon'] = delverifyicon($verifyarr['unverifyicon']);
 }
 if (!empty($verifynew['field']['birthday'])) {
     $verifynew['field']['birthyear'] = 'birthyear';
     $verifynew['field']['birthmonth'] = 'birthmonth';
 }
 $verifynew['groupid'] = !empty($verifynew['groupid']) && is_array($verifynew['groupid']) ? $verifynew['groupid'] : array();