HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dmstechonline/social.dmstech.online/view/Users/my-account.php
<?php 

/* Check the absolute path to the Social Auto Poster directory. */
if ( !defined( 'SAP_APP_PATH' ) ) {
    // If SAP_APP_PATH constant is not defined, perform some action, show an error, or exit the script
    // Or exit the script if required
    exit();
}

global $sap_common;
$SAP_Mingle_Update = new SAP_Mingle_Update();
$license_data = $SAP_Mingle_Update->get_license_data();
if( !$sap_common->sap_is_license_activated() ){
   $redirection_url = '/mingle-update/';
   header('Location: ' . SAP_SITE_URL . $redirection_url );
   die();
}

//Update user profile
if (!empty($_POST['sap_user_update_submit'])) {
    
}
$email = $user_details['email'];
$id = $user_details['id'];

$sap_my_account_tab = isset( $_SESSION['sap_my_account_tab'] ) ? $_SESSION['sap_my_account_tab'] : '';

include 'header.php';
include 'sidebar.php';
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1><?php echo $sap_common->lang('my_account'); ?></h1>
    </section>
    <!-- Main content -->
    <section class="content sap-my-account">
        <?php echo $this->flash->renderFlash(); ?>
        <div class="box">
               <div class="box-body">
                  <form id="my_account" action="<?php echo SAP_SITE_URL . '/my-account/update'; ?>" class="form-horizontals" enctype="multipart/form-data" method="POST">
                     <div id="errorMessage" class="help-block help-block-error"></div>
                     <input type="hidden" name="sap_user_id"  class="form-control" id="sap_user_id" value="<?php echo $id; ?>">
                     <div class="row">
                        <div class="col-lg-6">
                           <div class="form-group">
                              <label for="sap_user_fname" class="control-label"><?php echo $sap_common->lang('first_name'); ?></label>
                              <input type="text" name="sap_user_fname"  class="form-control" id="sap_user_fname" placeholder="<?php echo $sap_common->lang('ph_first_name'); ?>" value="<?php echo $user_details['first_name']; ?>">
                           </div>
                        </div>
                        <div class="col-lg-6">
                           <div class="form-group">
                              <label for="sap_user_lname" class="control-label"><?php echo $sap_common->lang('last_name'); ?></label>
                              <input type="text" name="sap_user_lname"  class="form-control" id="sap_user_lname" placeholder="<?php echo $sap_common->lang('ph_last_name'); ?>" value="<?php echo $user_details['last_name']; ?>">
                           </div>
                        </div>
                        <div class="col-lg-6">
                           <div class="form-group">
                              <label for="sap_user_email" class="control-label"><?php echo $sap_common->lang('email'); ?><span class="color-red">*</span></label>
                              <input type="email" name="sap_user_email" class="form-control" id="sap_user_email" placeholder="<?php echo $sap_common->lang('ph_email'); ?>" value="<?php echo $email; ?>" autocomplete="off">
                           </div>
                        </div>
                        <div class="col-lg-6">
                           <div class="form-group">
                              <label for="sap_user_password" class="control-label"><?php echo $sap_common->lang('password'); ?></label>
                              <input type="password" name="sap_user_password" class="form-control" id="sap_user_password" placeholder="<?php echo $sap_common->lang('ph_password'); ?>" autocomplete="off">
                           </div>
                        </div>
                        <div class="col-lg-6">
                           <div class="form-group">
                              <label for="sap_user_repassword" class="control-label"><?php echo $sap_common->lang('re_password'); ?></label>
                              <input type="password" name="sap_user_repassword" class="form-control" id="sap_user_repassword" placeholder="<?php echo $sap_common->lang('ph_password'); ?>">
                           </div>
                        </div>
                     </div> 
                     <div class="form-group mt-1">
                        <div class="btn-block">
                           <button type="submit" name="sap_user_update_submit" class="btn btn-primary"><?php echo $sap_common->lang('submit'); ?></button>
                        </div>
                     </div>
                  </form>
               </div>
            </div>
            <!-- Info boxes -->      
    </section>
</div>
<?php include'footer.php'; ?>