Esempio n. 1
0
                 $js .= sync_weibo('qq', $moduleid, $do->itemid);
             }
             if (isset($post['sync_qzone']) && $post['sync_qzone']) {
                 $js .= sync_weibo('qzone', $moduleid, $do->itemid);
             }
             if ($_userid) {
                 set_cookie('dmsg', $msg);
                 $forward = $MODULE[2]['linkurl'] . $DT['file_my'] . '?mid=' . $mid . '&status=' . $post['status'];
                 $msg = '';
             } else {
                 $forward = $MODULE[2]['linkurl'] . $DT['file_my'] . '?mid=' . $mid . '&action=add';
             }
             $js .= 'window.onload=function(){parent.window.location="' . $forward . '";}';
             dalert($msg, '', $js);
         } else {
             dalert($do->errmsg, '', ($need_captcha ? reload_captcha() : '') . ($need_question ? reload_question() : ''));
         }
     } else {
         foreach ($do->fields as $v) {
             ${$v} = '';
         }
         $content = '';
         $catid = 0;
         $areaid = $cityid;
         $item = array();
     }
     break;
 case 'edit':
     $itemid or message();
     $do->itemid = $itemid;
     $item = $do->get_one();
Esempio n. 2
0
                }
            }
        }
        if ($could_emailcode) {
            $db->query("UPDATE {$DT_PRE}member SET vemail=1 WHERE username='******'");
        }
        if ($could_mobilecode) {
            $db->query("UPDATE {$DT_PRE}member SET vmobile=1 WHERE username='******'");
        }
        if (!get_cookie('bind')) {
            session_destroy();
        }
        $forward = 'goto.php?action=register_success&username='******'&auth=' . encrypt('LOGIN|' . $username . '|' . $post['password'] . '|' . $DT_TIME, DT_KEY . 'LOGIN') . '&forward=' . urlencode($forward);
        dalert('', '', 'parent.window.location="' . $forward . '"');
    } else {
        $reload_captcha = $MOD['captcha_register'] ? reload_captcha() : '';
        $reload_question = $MOD['question_register'] ? reload_question() : '';
        dalert($do->errmsg, '', $reload_captcha . $reload_question);
    }
} else {
    $COM_TYPE = explode('|', $MOD['com_type']);
    $COM_SIZE = explode('|', $MOD['com_size']);
    $COM_MODE = explode('|', $MOD['com_mode']);
    $MONEY_UNIT = explode('|', $MOD['money_unit']);
    $mode_check = dcheckbox($COM_MODE, 'post[mode][]', '', 'onclick="check_mode(this);"', 0);
    $auth = isset($auth) ? rawurldecode($auth) : '';
    $username = $password = $email = $passport = '';
    if ($auth) {
        $auth = decrypt($auth, DT_KEY . 'UC');
        $auth = explode('|', $auth);
        $passport = $auth[0];