📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
themes
/
default
📝
forgot_password.php.bak
← Geri Dön
<?php m_header(); ?> <main class="main pages"> <div class="page-header breadcrumb-wrap"> <div class="container"> <div class="breadcrumb"> <a href="<?php echo m_permalink('home'); ?>" title="<?php echo LG_HOME; ?>"><i class="fi-rs-home mr-5"></i><?php echo LG_HOME; ?></a> <span></span> <?php echo LG_FORGOT_PASSWORD; ?> </div> </div> </div> <div class="page-content pt-20 pb-20"> <div class="container"> <div class="bg-white rounded shadow-sm overflow-hidden mt-2"> <div class="p-3 bg-light"> <h6 class="m-0 text-dark d-flex align-items-center"><?php echo LG_FORGOT_PASSWORD; ?></h6> </div> <div class="p-3"> <?php email_send("can@moyo.com.tr", "test", "test5"); if($_POST) { $informations = $db->table('customers')->where('email','=',m_u_p('email'))->get(); $info = $informations['data'][0]; $name = $info['name'].' '.$info['lastname']; if($informations['total_count']=='1' and $info['status']=='1') { $hash = md5(time().'-'.$info['id'].'-'.$info['email']); $link = m_permalink('renew_password',$hash); email_send($info['email'],LG_FORGOT_PASSWORD,email_forgot_password($name,$link)); $data = [ 'password_hash' => $hash ]; $query = $db->table('customers')->where('id','=',$info['id'])->update($data); $state='ok'; $result= m_alert(LG_SUCCESS,LG_SEND_RESET_PASSWORD_LINK_TRANSACTION); } else { $result= m_alert(LG_ERROR,LG_INVALID_LOGIN); } } ?> <?php if($state=='ok') { echo $result; } else { echo $result; ?> <form action="" method="post" autocomplete="off"> <div class="form-group"> <label><?php echo LG_YOUR_EMAIL; ?></label> <input type="email" class="form-control" name="email" required> </div> <button type="submit" class="btn btn-sm btn-success btn-block"><i class="fa fa-check"></i> <?php echo LG_SEND_PASSWORD_LINK; ?></button> </form> <?php } ?> </div> </div> </div> </div> </div> </main> <?php m_footer(); ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula