Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: my_profile.php
<!-- Page header --> <div class="page-header border-bottom-0"> <div class="container"> <div class="page-header-content"> <div class="page-title"> <h4><a href="javascript:void(0)" class="BackButton-Link" onclick="goBack()"><i class="icon-arrow-left52 mr-2"></i></a> <?php echo $this->lang->line('CUST_LBL_223'); ?></h4> </div> </div> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content client-panel-main-box bg-white"> <div class="container"> <div class="row"> <div class="col-12 col-lg-12 col-md-12 col-lg-10 col-xl-10"> <div class="card-body"> <!-- Our Working Area Start --> <?php if (isset($message) && $message != '') { ?> <div class="form-group row"> <div class="col-lg-12"> <div class="alert alert-success"><?php echo $message; ?></div> </div> </div> <?php } ?> <?php if (isset($errorMsg) && $errorMsg != '') { ?> <div class="form-group row"> <div class="col-lg-12"> <div class="alert alert-warning"><?php echo $errorMsg; ?></div> </div> </div> <?php } ?> <!-- Copy till this to paste to other pages --> <div class="row"> <div class="col-md-12"> <div class="block-web"> <?php echo form_open(base_url('page/myprofile')) ?> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label"><?php echo $this->lang->line('CUST_ACC_2'); ?> <span class="required_field">*</span></label> <div class="col-lg-10"> <input class="form-control" type="text" autocomplete="off" name='txtFName' id="txtFName" value='<?php echo $fName; ?>' required/> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label"><?php echo $this->lang->line('CUST_ACC_3'); ?> <span class="required_field">*</span></label> <div class="col-lg-10"> <input class="form-control" type="text" autocomplete="off" name='txtLName' id="txtLName" value='<? echo $lName; ?>' required/> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label"><?php echo $this->lang->line('CUST_CH_114'); ?> <span class="required_field">*</span></label> <div class="col-lg-10"> <input type="text" class="form-control" size='20' name='txtPhone' id="txtPhone" value='<? echo($phone); ?>'/> <em>Mobile No. start with country code without + e.g. (11234512345 for US)</em> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label"><?php echo $this->lang->line('CUST_CODE_9'); ?> <span class="required_field">*</span></label> <div class="col-lg-10"> <select name="countryId" id="countryId" class="js-select2 form-control select2me"> <?php $country_data = get_country_data(); ?> <?php FillCombo($countryId, $country_data); ?> </select> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label"><?php echo $this->lang->line('CUST_LBL_224'); ?> <span class="required_field">*</span></label> <div class="col-lg-10"> <select name="language" id="language" class="js-select2 form-control select2me"> <?php $LANGUAGES_ARR = array("en" => 'English', "fr" => 'French', "ru" => 'Russian', "sp" => 'Spanish', "hu" => 'Hungarian', "de" => 'German', "pl" => 'Polish', "pt" => 'Portuguese', "cns" => 'Chinese (Simplified)', "ro" => 'Romanian', "vn" => 'Vietnamese', "vn" => 'Italian'); foreach ($LANGUAGES_ARR as $key => $value) { $selected = ''; if ($lang == $key) $selected = 'selected'; echo '<option value="' . $key . '" ' . $selected . '>' . $value . '</option>'; } ?> </select> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label">Client Panel</label> <div class="col-lg-10"> <select name="cPanel" class="js-select2 form-control select2me"> <option value="0" <?php if ($cPanel == '0') echo 'selected'; ?>>Panel 1 </option> <option value="1" <?php if ($cPanel == '1') echo 'selected'; ?>>Panel 2 </option> </select> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label">Theme Color</label> <div class="col-lg-10"> <select name="themeColor" class="js-select2 form-control select2me"> <option value="blue" <?php if ($themeColor == 'blue') echo 'selected'; ?>> Blue </option> <option value="green" <?php if ($themeColor == 'green') echo 'selected'; ?>> Green </option> <option value="orange" <?php if ($themeColor == 'orange') echo 'selected'; ?>> Orange </option> <option value="purple" <?php if ($themeColor == 'purple') echo 'selected'; ?>> Purple </option> <option value="red" <?php if ($themeColor == 'red') echo 'selected'; ?>> Red </option> <option value="teal" <?php if ($themeColor == 'teal') echo 'selected'; ?>> Teal </option> </select> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label"> </label> <div class="col-lg-10"> <input class="" type="checkbox" name="chkSubscribe" id="chkSubscribe" <?php echo $subscribed == 1 ? 'checked' : ''; ?> /> <span class="labelSub"><? echo $this->lang->line('CUST_LBL_228'); ?></span> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label">Two Step Login Verification</label> <div class="col-lg-3"> <input class="" type="checkbox" name="chkLoginVerification" id="chkLoginVerification" <?php echo $loginVerification == 1 ? 'checked' : ''; ?> value="1"/><span class="labelSub"> QR code (scan image with google authenticator app)</span> <div id="imgGAuth" <?php if ($loginVerification != '1') echo 'style="display:none;"'; ?>> <img class="GoogleAuthImg" src='<?php echo $QRImage; ?>'/> </div> <div id="imgGAuthForm" style="display:none;"> <img class="GoogleAuthFormImg" src=''/> <input type="text" name="qrCodeFormCode" id="qrCodeFormCode"/> <input type="button" class="qrCodeFromSubmit" value="Submit" /> <input type="hidden" name="invalid" disabled="" value="1" /> </div> </div> <div class="col-lg-3"> <input class="" type="checkbox" name="chkLoginVerification" id="chkLoginVerificationOTP" <?php echo $loginVerification == 0 ? 'checked' : ''; ?> value="0"/><span class="labelSub"> OTP (passcode received via email)</span> </div> <div class="col-lg-3"> <input class="" type="checkbox" name="chkLoginVerification" id="chkLoginVerificationOff" <?php echo $loginVerification == 3 ? 'checked' : ''; ?> value="3"/><span class="labelSub"> Not Required</span> </div> </div> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label"><? echo $this->lang->line('Telegram_Notification'); ?></label> <div class="col-lg-3"> <input class="" type="checkbox" name="chkTeleField" id="chkTeleField" <?php echo $sendFields == 1 ? 'checked' : ''; ?> value="1"/><span class="labelSub"> Send Fields</span> </div> <div class="col-lg-3"> <input class="" type="checkbox" name="chkTeleOC" id="chkTeleOC" <?php echo $sendReplyCode == 1 ? 'checked' : ''; ?> value="1"/><span class="labelSub"> Send Reply Code on Order Completion</span> </div> </div> <?php $i = 1; foreach ($rsFields as $row) { ?> <div class="form-group row"> <label for="example-text-input" class="col-lg-2 col-form-label"><?php echo $row->FieldLabel; ?><? if ($row->Mandatory == '1') echo '<span class="required_field">*</span>'; ?></label> <div class="col-lg-10"> <?php if ($row->FieldType == 'Text Box') { ?> <input type="text" class="form-control" <?php if ($row->Mandatory == '1') {echo ' required'; }?> name="fld<?php echo $i; ?>" maxlength="100" size="30" placeholder="<?php echo $row->FieldLabel; ?>" value="<?php echo $USER_VALUES[$row->FieldColName]; ?>"/> <?php } elseif ($row->FieldType == 'Text Area') { ?> <textarea name="fld<?php echo $i; ?>" class="form-control" placeholder="<?php echo $row->FieldLabel; ?>" <?php if ($row->Mandatory == '1') {echo ' required="1" '; }?> style="height:124px;"><?php echo $USER_VALUES[$row->FieldColName]; ?></textarea> <?php } elseif ($row->FieldType == 'Drop Down') { ?> <select name="fld<?php echo $i; ?>" class="form-control"> <?php $rsValues = get_reg_field_values($row->FieldId); foreach ($rsValues as $rw) { $slctd = ''; if ($rw->RegValue == $USER_VALUES[$row->FieldColName]) $slctd = "selected"; echo '<option value="' . $rw->RegValue . '" ' . $slctd . '>' . $rw->RegValue . '</option>';} ?> </select> <?php } elseif ($row->FieldType == 'Radio Button') { ?> <?php $rsValues = get_reg_field_values($row->FieldId); foreach ($rsValues as $rw) { $chckd = ''; if ($rw->RegValue == $USER_VALUES[$row->FieldColName]) $chckd = "checked"; echo '<input type="radio" class="form-control" name="fld' . $i . '" ' . $chckd . ' value="' . $rw->RegValue . '">' . $rw->RegValue . ' '; } } ?> </div> </div> <?php echo '<input type="hidden" name="colNm' . $i . '" value="' . $row->FieldColName . '" />'; echo '<input type="hidden" name="mndtry' . $i . '" value="' . $row->Mandatory . '" />'; echo '<input type="hidden" name="lbl' . $i . '" value="' . $row->FieldLabel . '" />'; $i++; } ?> <div class="form-group row"> <label class="col-lg-2 col-form-label"> </label> <div class="col-lg-10"> <div class="submit-btns-box"> <input type="hidden" name="totalRegFields" value="<?php echo $totalFields; ?>"/> <input type="hidden" name="olderPanel" value="<?php echo $cPanel; ?>"/> <button type="submit" class="btn btn-primary waves-effect waves-light RedBtn btn_default_thm green_btn" style="color: #fff !important;"> Submit </button> <a href="<?php echo base_url('dashboard'); ?>" class="btn btn-secondary waves-effect m-l-5 BtnBlack">Cancel</a> </div> </div> </div> </div> <?php echo form_close(); ?> </div> </div> <!-- Our Working Area End --> </div> </div> </div> </div> </div> <!-- /content area --> <script> $('#chkLoginVerification').on('click', function() { //var checkbox = $(this); if ($(this).is(":checked") && $(this).prop('checked', true).siblings(':checkbox').prop("checked", true)) { // do the confirmation thing here document.getElementById("chkLoginVerificationOTP").checked = false; document.getElementById("chkLoginVerificationOff").checked = false; $.ajax({ type: "POST", //page: 1, //rp: 6, url: '<?php echo base_url('page/getQR'); ?>', dataType: "json", success: function(result) { //alert(result.msg); if(result.msg == 0){ $('#imgGAuth').show(300); $('#imgGAuthForm').hide(300); $('[name="invalid"]').attr('disabled', true); }else{ $('#imgGAuth').hide(300); $('#imgGAuthForm').show(300); $('.GoogleAuthFormImg').attr('src', result.msg); $('[name="invalid"]').attr('disabled', false); } } }); } }); $('#chkLoginVerificationOTP').on('click', function() { document.getElementById("chkLoginVerification").checked = false; document.getElementById("chkLoginVerificationOff").checked = false; $('#imgGAuthForm').hide(300); $('#imgGAuth').hide(300); }); $('#chkLoginVerificationOff').on('click', function() { document.getElementById("chkLoginVerificationOTP").checked = false; document.getElementById("chkLoginVerification").checked = false; $('#imgGAuthForm').hide(300); $('#imgGAuth').hide(300); }); $('[name="chkLoginVerification"]').click(function() { $(this).prop('checked', true).siblings(':checkbox').prop("checked", false); }); $('.qrCodeFromSubmit').click(function() { var qrValue = document.getElementById("qrCodeFormCode").value; //alert(qrValue); $.ajax({ type: "POST", //page: 1, //rp: 6, url: '<?php echo base_url('page/checkQR'); ?>', dataType: "json", data: {'qrValue':qrValue}, success: function(result) { if(result.status == 1){ $('#imgGAuth').show(300); $('#imgGAuthForm').hide(300); $('#imgGAuthForm').removeClass('invalid'); $('[name="invalid"]').attr('disabled', true); $('.GoogleAuthImg').attr('src', result.msg); alert(result.message); }else{ $('.GoogleAuthFormImg').attr('src', result.msg); $('#imgGAuth').hide(300); $('#imgGAuthForm').show(300); alert(result.message); } } }); }); </script>