📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
system
📝
uye-paneli.ocmod.xml
← Geri Dön
<?xml version="1.0" encoding="UTF-8"?> <modification> <name>Üye Hesabım Sayfası</name> <version>2.0</version> <code>account-dashboard-pro</code> <author>Artı360</author> <file path="admin/language/*/common/column_left.php"> <operation error="skip"> <search><![CDATA[// Text]]></search> <add position="before"><![CDATA[ $_['text_accountdashboardpro'] = 'Üye Hesabım Sayfası PRO'; ]]></add> </operation> </file> <file path="admin/language/*/common/menu.php"> <operation error="skip"> <search><![CDATA[// Text]]></search> <add position="before"><![CDATA[ $_['text_accountdashboardpro'] = 'Üye Hesabım Sayfası'; ]]></add> </operation> </file> <file path="admin/controller/common/menu.php"> <operation error="skip"> <search><![CDATA[$data['home']]]></search> <add position="before"><![CDATA[ $data['text_accountdashboardpro'] = $this->language->get('text_accountdashboardpro'); $data['accountdashboardpro'] = $this->url->link('accountdashboard/accountdashboardpro', 'token=' . $this->session->data['token'], true); ]]> </add> </operation> </file> <file path="admin/view/template/common/menu.tpl"> <operation error="skip"> <search><![CDATA[<li><a href="<?php echo $banner; ?>"><?php echo $text_banner; ?></a></li>]]></search> <add position="before"><![CDATA[ <li><a href="<?php echo $accountdashboardpro; ?>"><?php echo $text_accountdashboardpro; ?></a></li> ]]></add> </operation> </file> <file path="admin/view/template/common/header.twig"> <operation error="skip"> <search><![CDATA[<script type="text/javascript" src="view/javascript/bootstrap/js/bootstrap.min.js"></script>]]></search> <add position="before"><![CDATA[ <script type="text/javascript" src="view/javascript/jquery/jquery-ui/pagejquery-ui.js"></script> ]]></add> </operation> </file> <file path="catalog/controller/account/account.php"> <operation error="skip"> <search><![CDATA[unset($this->session->data['success']);]]></search> <add position="before"><![CDATA[ $this->session->data['cisuccess'] = $this->session->data['success']; ]]></add> </operation> </file> <file path="catalog/controller/account/edit.php"> <operation error="skip"> <search><![CDATA[if (isset($this->request->post['firstname'])) {]]></search> <add position="before"><![CDATA[ $data['entry_image'] = $this->language->get('entry_image'); $data['button_image'] = $this->language->get('button_image'); $data['button_clear'] = $this->language->get('button_clear'); $this->load->model('tool/image'); if (isset($this->request->post['profile_picture'])) { $data['profile_picture'] = $this->request->post['profile_picture']; } elseif (!empty($customer_info)) { $data['profile_picture'] = isset($customer_info['profile_picture']) ? $customer_info['profile_picture'] : ''; } else { $data['profile_picture'] = ''; } if (is_file(DIR_IMAGE . $data['profile_picture'])) { $data['profile_picture_thumb'] = $this->model_tool_image->resize($data['profile_picture'], 125, 125); } else { $data['profile_picture_thumb'] = $this->model_tool_image->resize('no_image.png', 125, 125); } $data['placeholder'] = $this->model_tool_image->resize('no_image.png', 125, 125); $data['accountdashboardpro_status'] = $this->config->get('accountdashboardpro_status'); $data['picture_status'] = $this->config->get('accountdashboardpro_customer_picture_status'); ]]></add> </operation> </file> <file path="catalog/language/*/account/edit.php"> <operation error="skip"> <search><![CDATA[// Text]]></search> <add position="before"><![CDATA[ $_['entry_image'] = 'Profil Resmi'; $_['button_image'] = 'Seçiniz'; $_['button_clear'] = 'Temizle'; ]]></add> </operation> </file> <file path="catalog/model/account/customer.php"> <operation error="skip"> <search><![CDATA[public function editCustomer($customer_id, $data) {]]></search> <add position="after"><![CDATA[ if(isset($data['profile_picture'])) { $query = $this->db->query("SHOW COLUMNS FROM `" . DB_PREFIX . "customer` WHERE `Field` = 'profile_picture'"); if(!$query->num_rows) { $this->db->query("ALTER TABLE `" . DB_PREFIX . "customer` ADD `profile_picture` TEXT NOT NULL AFTER `store_id`"); } $this->db->query("UPDATE " . DB_PREFIX . "customer SET profile_picture = '" . $this->db->escape($data['profile_picture']) . "' WHERE customer_id = '" . (int)$customer_id . "'"); } ]]></add> </operation> </file> <file path="catalog/view/theme/*/template/account/edit.twig"> <operation error="skip"> <search><![CDATA[<legend>{{ text_your_details }}</legend>]]></search> <add position="after"><![CDATA[ {% if accountdashboardpro_status and picture_status %} <div class="form-group"> <label class="col-sm-2 control-label" for="input-image">{{ entry_image }}</label> <div class="col-sm-10"> <div class="p-image"> <img src="{{ profile_picture_thumb }}" alt="{{ button_image }}" /> </div> <br/> <button type="button" id="button-image" data-loading-text="{{ text_loading }}" class="btn btn-primary">{{ button_image }}</button> <button type="button" id="button-clear" class="btn btn-danger">{{ button_clear }}</button> <input type="hidden" name="profile_picture" value="{{ profile_picture }}" id="input-image" /> </div> </div> {% endif %} ]]></add> </operation> <operation error="skip"> <search><![CDATA[{{ footer }}]]></search> <add position="before"><![CDATA[ <script type="text/javascript"><!-- $('button[id^=\'button-image\']').on('click', function() { var node = this; $('#form-image').remove(); $('body').prepend('<form enctype="multipart/form-data" id="form-image" style="display: none;"><input type="file" name="profile_picture" /></form>'); $('#form-image input[name=\'profile_picture\']').trigger('click'); if (typeof timer != 'undefined') { clearInterval(timer); } timer = setInterval(function() { if ($('#form-image input[name=\'profile_picture\']').val() != '') { clearInterval(timer); $.ajax({ url: 'index.php?route=accountdashboard/uploadimage', type: 'post', dataType: 'json', data: new FormData($('#form-image')[0]), cache: false, contentType: false, processData: false, beforeSend: function() { $(node).button('loading'); }, complete: function() { $(node).button('reset'); }, success: function(json) { $('.text-danger').remove(); if (json['error']) { $(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>'); } if (json['success']) { // alert(json['success']); $(node).parent().find('input').val(json['profile_picture']); $('.p-image img').attr('src', json['profile_picture_thumb']); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } }, 500); }); $('#button-clear').click(function() { $('input[name=\'profile_picture\']').val(''); $('.p-image img').attr('src', '{{ placeholder }}'); }); //--></script> ]]></add> </operation> </file> <file path="catalog/view/theme/fastor/template/account/edit.tpl"> <operation error="skip"> <search><![CDATA[<legend><?php echo $text_your_details; ?></legend>]]></search> <add position="after"><![CDATA[ <?php ?> <?php if($accountdashboardpro_status && $picture_status) { ?> <div class="form-group"> <label class="col-sm-2 control-label" for="input-image"><?php echo $entry_image; ?></label> <div class="col-sm-10"> <div class="p-image"> <img src="<?php echo $profile_picture_thumb; ?>" alt="<?php echo $button_image; ?>" /> </div> <br/> <button type="button" id="button-image" data-loading-text="<?php echo $text_loading; ?>" class="btn btn-primary"><?php echo $button_image; ?></button> <button type="button" id="button-clear" class="btn btn-danger"><?php echo $button_clear; ?></button> <input type="hidden" name="profile_picture" value="<?php echo $profile_picture; ?>" id="input-image" /> </div> </div> <?php } ?> <?php ?> ]]></add> </operation> <operation error="skip"> <search position="before"><![CDATA[<?php echo $footer; ?>]]></search> <add><![CDATA[ <?php ?> <script type="text/javascript"><!-- $('button[id^=\'button-image\']').on('click', function() { var node = this; $('#form-image').remove(); $('body').prepend('<form enctype="multipart/form-data" id="form-image" style="display: none;"><input type="file" name="profile_picture" /></form>'); $('#form-image input[name=\'profile_picture\']').trigger('click'); if (typeof timer != 'undefined') { clearInterval(timer); } timer = setInterval(function() { if ($('#form-image input[name=\'profile_picture\']').val() != '') { clearInterval(timer); $.ajax({ url: 'index.php?route=accountdashboard/uploadimage', type: 'post', dataType: 'json', data: new FormData($('#form-image')[0]), cache: false, contentType: false, processData: false, beforeSend: function() { $(node).button('loading'); }, complete: function() { $(node).button('reset'); }, success: function(json) { $('.text-danger').remove(); if (json['error']) { $(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>'); } if (json['success']) { // alert(json['success']); $(node).parent().find('input').val(json['profile_picture']); $('.p-image img').attr('src', json['profile_picture_thumb']); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } }, 500); }); $('#button-clear').click(function() { $('input[name=\'profile_picture\']').val(''); $('.p-image img').attr('src', '<?php echo $placeholder; ?>'); }); //--></script> <?php ?> ]]></add> </operation> </file> <file path="catalog/controller/account/account.php"> <operation error="skip"> <search><![CDATA[public function index() {]]></search> <add position="after"><![CDATA[ /* ************************* ** CI Dashbaord Starts ** ************************* */ if($this->config->get('accountdashboardpro_status')) { return new Action('accountdashboard/accountdashboardpro'); } /* ************************* ** CI Dashbaord Ends **** ************************* */ ]]></add> </operation> </file> </modification>
💾 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