📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
adminco
/
inc
📝
account.php
← Geri Dön
<?php if(!defined('ADMIN_INCLUDED')) { exit; } ?> <?php $informations = $db->table('admins')->where('id','=',m_admin('id'))->get(); if($informations['total_count']==0) { m_redirect(ADMIN_URL); } $info = $informations['data'][0]; ?> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <a href="<?php echo ADMIN_URL; ?>/index.php?page=account" class="menu_link"><h4 class="mb-sm-0 font-size-18"><?php echo LGA_ACCOUNT_SETTINGS; ?></h4></a> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="<?php echo ADMIN_URL; ?>"><?php echo LGA_HOME; ?></a></li> <li class="breadcrumb-item active"><?php echo LGA_ACCOUNT_SETTINGS; ?></li> </ol> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo LGA_ACCOUNT_SETTINGS; ?></h4> </div> <div class="card-body p-4"> <?php if(m_p_check()) { if(DEMO) { echo m_admin_alert(LGA_ERROR,LGA_DEMO_ERROR); } else { if(m_a_p('password')=='') { $password = $info['password']; } else { $password = m_password(m_a_p('password')); } $data = [ 'name' => m_a_p('name'), 'lastname' => m_a_p('lastname'), 'email' => m_a_p('email'), 'password' => $password ]; $query = $db->table('admins')->where('id','=',m_admin('id'))->update($data); if($query) { echo m_admin_alert(LGA_SUCCESS,LGA_TRANSACTION_SUCCESS); } else { echo m_admin_alert(LGA_ERROR,LGA_TRANSACTION_ERROR); } $informations = $db->table('admins')->where('id','=',m_admin('id'))->get(); $info = $informations['data'][0]; } } ?> <form action="" method="post" enctype="multipart/form-data"> <div class="mb-3"> <label class="form-label"><?php echo LGA_NAME; ?></label> <input class="form-control" type="text" name="name" value="<?php echo $info['name']; ?>" required> </div> <div class="mb-3"> <label class="form-label"><?php echo LGA_LASTNAME; ?></label> <input class="form-control" type="text" name="lastname" value="<?php echo $info['lastname']; ?>" required> </div> <div class="mb-3"> <label class="form-label"><?php echo LGA_EMAIL; ?></label> <input class="form-control" type="text" name="email" value="<?php echo $info['email']; ?>" required> </div> <div class="mb-3"> <label class="form-label"><?php echo LGA_PASSWORD; ?></label> <input class="form-control" type="password" name="password" value="<?php echo $info['page_sef']; ?>" required> </div> <button type="submit" class="btn btn-success waves-effect btn-label waves-light"><i class="bx bx-check-double label-icon"></i> <?php echo LGA_SAVE; ?></button> </form> </div> </div> </div> </div> </div>
💾 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