📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
firmarehberiv1.demodesign.com.tr
/
user
📝
profil-ayarlarim.php
← Geri Dön
<?php @$page = 'profil-ayarlarim'; require_once('../header.php'); require_once("../include/class.upload.php"); /*************************************************************************************************************************/ if(isset($_POST['kaydet']) && user_login_check($db) == true){ $image = new Upload($_FILES['yazar_resim']); if ( $image->uploaded ) { $image->file_new_name_body = seo($_POST['uye_adi_soyadi']); $image->allowed = array('image/jpeg','image/jpg','image/gif','image/png'); $image->mime_check = true; $image->no_script = true; $image->image_resize = true; $image->image_ratio_crop = true; $image->image_y = 250; $image->image_x = 250; $image->Process( '../uploads/kullanici/'.date("Y").'/'.date("m").'' ); if (!file_exists('../uploads/kullanici/'.date("Y").'/'.date("m").'/index.html')) { touch('../uploads/kullanici/'.date("Y").'/'.date("m").'/index.html'); } } if(!$csrf->check_valid('post')) { $bilgi = bilgi('danger','Token hatası oluştu, lütfen sayfayı yenileyerek tekrar deneyin.'); }else if(empty(guvenlik($_POST['uye_adi_soyadi'])) || empty(guvenlik($_POST['uye_mail'])) || empty(guvenlik($_POST['uye_gsm'])) || empty(guvenlik($_POST['uye_fat_adresi'])) || empty(guvenlik($_POST['uye_il'])) || empty(guvenlik($_POST['uye_ilce']))){ $bilgi = bilgi('danger','Geçersiz alan hatası oluştu, lütfen eksik bilgi bırakmadan tekrar deneyin.'); }else{ $data = [ 'uye_adi_soyadi' => guvenlik($_POST['uye_adi_soyadi']), 'uye_mail' => guvenlik($_POST['uye_mail']), 'uye_sabit_no' => guvenlik($_POST['uye_sabit']), 'uye_gsm' => guvenlik($_POST['uye_gsm']), 'uye_adres' => guvenlik($_POST['uye_fat_adresi']), 'uye_il' => guvenlik($_POST['uye_il']), 'uye_ilce' => guvenlik($_POST['uye_ilce']) ]; $isle = $db->table('dbo_kullanici')->where('UyeID','=',$uyeid)->update($data); /*********************************************************************************************/ if(!empty($image->file_dst_name) && !empty($_FILES['yazar_resim']) && uye_bilgi('uye_tipi',$uyeid) == 'Yazar'){ $resup = [ 'uye_resim' => date("Y").'/'.date("m").'/'.$image->file_dst_name ]; $logo = $db->table('dbo_kullanici')->where('UyeID','=',$uyeid)->update($resup); } /*********************************************************************************************/ if($isle || $logo){ $bilgi = alert('success','Profiliniz güncellendi.','user/profil-ayarlarim.html',4); }else{ $bilgi = bilgi('danger','Profiliniz güncellenemedi, lütfen daha sonra tekrar deneyin.'); } } } ?> <title>Profil İşlemleri</title> <link rel="stylesheet" href="<?=$site?>/css/select2.min.css" rel="stylesheet" /> <link rel="stylesheet" href="<?=$site?>/js/summernote/summernote.css"/> <link rel="stylesheet" href="<?=$site?>/js/summernote/editor.min.css"> <!--Breadcrumb--> <section> <div class="bannerimg cover-image bg-background3" data-image-src="assets/images/banners/banner2.jpg"> <div class="header-text mb-0"> <div class="container"> <div class="text-center text-white "> <h1 class="">Profil İşlemleri</h1> <ol class="breadcrumb text-center"> <li class="breadcrumb-item"><a href="user/panelim.html">Panelim</a></li> <li class="breadcrumb-item active text-white" aria-current="page">Profil İşlemleri</li> </ol> </div> </div> </div> </div> </section> <!--Breadcrumb--> <!--User Dashboard--> <section class="sptb"> <div class="container"> <div class="row"> <div class="col-xl-3 col-lg-12 col-md-12"> <?php require_once('user-left.php'); ?> </div> <div class="col-xl-9 col-lg-12 col-md-12"> <div class="card mb-0"> <div class="card-header"> <h3 class="card-title">Profil İşlemleri</h3> </div> <div class="card-body"> <?=@$bilgi?> <form method="post" action="user/profil-ayarlarim.html" class="form-validator"> <div class="row"> <div class="col-md-12"> <div class="input-container" style="clear:both; margin-bottom:22px;"> <label class="rl-label required">Adınız & Soyadınız</label> <input type="text" name="uye_adi_soyadi" class="form-control" value="<?=uye_bilgi('uye_adi_soyadi',$uyeid)?>" required /> </div> </div> <div class="col-md-12"> <div class="input-container" style="clear:both; margin-bottom:22px;"> <label class="rl-label required">E-Posta Adresiniz</label> <input type="email" name="uye_mail" class="form-control" value="<?=uye_bilgi('uye_mail',$uyeid)?>" required /> </div> </div> <div class="col-md-6"> <div class="input-container" style="clear:both; margin-bottom:22px;"> <label class="rl-label required">Gsm Numaranız</label> <input type="number" name="uye_gsm" class="form-control" value="<?=uye_bilgi('uye_gsm',$uyeid)?>" maxlength="11" required /> </div> </div> <div class="col-md-6"> <div class="input-container" style="clear:both; margin-bottom:22px;"> <label class="rl-label">Sabit Numaranız (Opsiyonel)</label> <input type="number" name="uye_sabit" class="form-control" value="<?=uye_bilgi('uye_sabit_no',$uyeid)?>" maxlength="11" /> </div> </div> <div class="col-md-6"> <div class="input-container" style="clear:both; margin-bottom:22px;"> <label class="rl-label required">Şehir</label> <select id="il" name="uye_il" type="text" class="form-control" required style="height:40px; border-radius:0px;"> <option value="">Şehir Seçin.</option> <?php $sehir = $db->table('dbo_il')->select('*')->orderBy('il_id')->getAll(); foreach($sehir as $sehirget){ ?> <option value="<?=$sehirget->il_id?>" <?php if(uye_bilgi('uye_il',$uyeid) == $sehirget->il_id){ echo "selected"; }?>><?=$sehirget->il_ad?></option> <?php } ?> </select> </div> </div> <div class="col-md-6"> <div class="input-container" style="clear:both; margin-bottom:22px;"> <label class="rl-label required">İlçe</label> <select id="ilce" name="uye_ilce" type="text" class="form-control" required style="height:40px; border-radius:0px;"> <option value="">Önce Şehir Seçin.</option> </select> </div> </div> <?php if(uye_bilgi('uye_tipi',$uyeid) == 'Yazar'){ ?> <div class="col-md-12"> <div class="input-container" style="clear:both; margin-bottom:22px;"> <label class="form-label">Yazar Resim</label> <input type="file" name="yazar_resim" size="50" class="form-control btn btn-primary"/> </div> </div> <?php } ?> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script src="<?=$site?>/js/selectchained.js"></script> <script> $("#ilce").remoteChained("#il", "<?=$site?>/ajax/il-ilce.html?ilce=<?=uye_bilgi('uye_ilce',$uyeid)?>"); </script> <div class="col-md-12"> <div class="input-container" style="clear:both; margin-bottom:22px;"> <label class="rl-label required">Fatura Adresi</label> <textarea name="uye_fat_adresi" rows="5" class="form-control"><?=uye_bilgi('uye_adres',$uyeid)?></textarea> </div> </div> <div class="clearfix"></div> <div class="col-md-6"> <div class="input-container" style="clear:both;"> <input type="submit" name="kaydet" class="btn btn-primary" style="font-size:16px; padding:15px; width:100%; line-height:0px; cursor:pointer;" value="Bilgileri Kaydet"> </div> </div> <div class="col-md-6"> <div class="input-container" style="clear:both;"> <a href="user/sifre-islem.html" class="btn btn-warning" style="font-size:16px; padding:15px; width:100%; line-height:0px; cursor:pointer;">Şifremi Değiştirmek İstiyorum</a> </div> </div> </div> </div> <input type="hidden" name="<?=$token_id?>" value="<?=$token_value?>" /> </form> </div> </div> </div> </div> </div> </section> <!--/User Dashboard--> <?php require_once('../footer.php'); ?> <script src="<?=$site?>/js/select2.min.js"></script> <script src="https://maps.googleapis.com/maps/api/js?key=<?=ayar('googlemap_key')?>&libraries=places"></script> <script src='<?=$site?>/js/gmap.js'></script> <script src="<?=$site?>/js/summernote/summernote.min.js"></script> <script src="<?=$site?>/js/summernote/lang/summernote-tr-TR.js"></script> <script> $(document).ready(function () { var $summernote = $('#summernote').summernote({ height: 200, toolbar: [ ['fontsize', []], ], lang: 'tr-TR', callbacks: { onImageUpload: function (files) { sendFile($summernote, files[0]); } } }); }); </script> <script> $(document).ready(function() { $('.js-example-basic-multiple').select2(); }); </script> <script type="text/javascript"> $(document).ready(function() { var arr = new Array(); $(".kategoriler").change(function() { $(this).find("option:selected") if ($(this).find("option:selected").length > 2) { $(this).find("option").removeAttr("selected"); $(this).val(arr); } else { arr = new Array(); $(this).find("option:selected").each(function(index, item) { arr.push($(item).val()); }); } }); }); </script> <script type="text/javascript"> $(document).ready(function() { var inputs = 1; $('#btnAdd').click(function() { $('.btnDel:disabled').removeAttr('disabled'); var c = $('.opt-form:first').clone(true); c.children(':text').attr('name','input'+ (++inputs) ); $('.opt-form:last').after(c); }); $('.btnDel').click(function() { if (confirm('Alan Silinsinmi?')) { --inputs; $(this).closest('.opt-form').remove(); $('.btnDel').attr('disabled',($('.opt-form').length < 2)); } }); }); </script>
💾 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