- 本人確認 >
- パスワード表示
require_once ("common.php"); try{ $data = rhePDO($_REQUEST); foreach($data as $column=>$val){ ${$column} = $val; } if(!funcPdoConnect($conn_id , $conn_id_com)){ throw new Exception("PDO::error:".$conn_id->errorCode().":".$conn_id->errorInfo()); } //秘密の質問読み込み funcPdoClear($arrNm,$arrVal,$arrType); $strQuery = "select * from m_secret where del_dt is NULL"; if(!$st=funcPdoSelect($conn_id,$strQuery,$arrNm,$arrVal,$arrType)){ throw new Exception("PDO::error:".$conn_id->errorCode().":".$conn_id->errorInfo()); } while($w=$st->fetch()){ $secret[]=$w; } session_start(); $token = md5(uniqid(mt_rand(), true)); $_SESSION['token'] = $token; session_write_close(); } catch (Exception $e){ $msg="エラー発生:" . $e->getMessage(); if($comDEBUG)echo $msg; } ?>