📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
themes
/
default
📝
renew_password.php
← 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_RENEW_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_RENEW_PASSWORD; ?></h6> </div> <div class="p-3"> <?php $state='no'; if($_POST) { $informations = $db->table('customers')->where('password_hash','=',m_u_g('hash'))->get(); $info = $informations['data'][0]; if($informations['total_count']>0 and m_u_p('password')!='' and m_u_p('password_again')!='') { $state='ok'; $data = [ 'password_hash' => '', 'password' => m_password(m_u_p('password')) ]; $query = $db->table('customers')->where('id','=',$info['id'])->update($data); echo m_alert(LG_SUCCESS,LG_PASSWORD_UPDATED); } else { $state='no'; echo m_alert(LG_ERROR,LG_INVALID_PASSWORD_VERIFY); } } $informations = $db->table('customers')->where('password_hash','=',m_u_g('hash'))->get(); if($informations['total_count']>0 and $state!='ok') { ?> <form action="" method="post" autocomplete="off"> <div class="form-group"> <label><?php echo LG_NEW_PASSWORD; ?></label> <input type="password" class="form-control" name="password" required> </div> <div class="form-group"> <label><?php echo LG_NEW_PASSWORD_VERIFY; ?></label> <input type="password" class="form-control" name="password_again" 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