回首頁'); } $sql='SELECT * FROM '.TBL_MGR_STUDENTS.' WHERE reset_pwd_hashkey="'.$hashkey.'"'; $row = $wpdb->get_row($sql); if(!$row or empty($row->hashkey_datetime) or substr(now(),0,10)>substr($row->hashkey_datetime,0,10)){ die('連結已過期失效. 回首頁.'); } $msg=''; if($_POST){ extract($_POST); if(!$newpwd or !$newpwd2){ $msg='*請輸入密碼'; }elseif($newpwd!==$newpwd2){ $msg='*新密碼輸入兩次不一致'; }else{ MgrStudents::reset_pwd($row->school_no, $newpwd); $msg='*重設密碼成功,請登入。'; } } ?> Logo '.$msg.'' : '';?>

請輸入重設後的密碼兩次

請輸入重設後的密碼:
請再輸入一次重設後的密碼: