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; }
echo "</script>"; } else { if ($p_cmd == 'query') { $ret = $db->search($p_key, $p_val); output_acc_table($ret); } else { if ($p_cmd == 'update') { if ($p_key == 'signdate' || $p_key == 'random2') { $db->unlock($p_sid); } if ($p_key == 'signdate') { $db->refresh_signup_date($p_sid); } else { if ($p_key == 'passwd' || $p_key == 'random1' || $p_key == 'random2' || $p_key == 'locked' || $p_key == 'info') { print 'update -> ' . $p_key . ' | ' . $p_val . ' <br>'; $db->update($p_sid, $p_key, $p_val); } else { print 'p_key is error <br>'; } } showTitle('done'); } else { if ($p_cmd == 'quick') { $ret = array(); if ($p_key == '0black') { $ret = $db->search_0_black(); } else { if ($p_key == '1black') { $ret = $db->search_1_black(); } else { if ($p_key == '2black') {