예제 #1
0
파일: resetpwd.php 프로젝트: kpli/AigisDmm
 function reset()
 {
     //print 'into reset progress'.'<br>';
     $this->wait();
     $viewret = $this->view();
     if ($viewret == '') {
         return '';
     }
     //print $viewret.'<br>';
     $pageRet = $this->net_c->get($viewret);
     $rid = $this->parseRidValue($pageRet);
     if ($rid == '') {
         return '';
     }
     $str = null;
     $strPol = "abcdefghijklmnopqrstuvwxyz0123456789";
     $max = strlen($strPol) - 1;
     for ($i = 0; $i < 10; $i++) {
         $str .= $strPol[rand(0, $max)];
     }
     $this->password = $str;
     $data = array('password' => $this->password, 'password_confirm' => $this->password, 'rid' => $rid);
     //print $this->mailaddr.'<br>';
     //print $this->password.'<br>';
     //print $rid.'<br>';
     //print $data.'<br>';
     require_once 'idd.php';
     $db = new IdoDB();
     $db->update($this->mailaddr, 'passwd', $this->password);
     $this->net_c->post('https://www.dmm.co.jp/my/-/passwordreminder/complete/', $data);
     return $this->password;
 }
예제 #2
0
파일: ido.php 프로젝트: kpli/AigisDmm
        $params[$item[0]] = $item[1];
    }
    return $params;
}
$p_cmd = $arr_query['cmd'];
$p_sid = $arr_query['sid'];
$p_pwd = $arr_query['pwd'];
$p_key = $arr_query['key'];
$p_val = $arr_query['val'];
//if ($p_cmd != 'play'){
//    print 'cmd => '.$p_cmd.'<br>';
//    print 'sid => '.$p_sid.'<br>';
//    print 'key => '.$p_key.'<br>';
//    print 'val => '.$p_val.'<br>';
//}
$db = new IdoDB();
if ($p_cmd == 'play') {
    $ret = array('empty', 'err.html');
    $lg = new Logic();
    if ($p_key == 'regist') {
        $ret = $lg->autoRun();
    } else {
        if ($p_key == 'second') {
            $ret = $lg->playSecond();
        } else {
            if ($p_key == 'signup') {
                $ret = $lg->playSignup();
            } else {
                if ($p_key == 'login') {
                    $ret = $lg->login($p_sid, $p_pwd);
                } else {