Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: user.php
<!-- Page header --> <div class="page-header border-bottom-0"> <div class="page-header-content header-elements-md-inline"> <div class="page-title d-flex" style="padding: 10px 0px !important;"> <h4><a href="<?php echo base_url($this->config->item('apanel_name')."/clients/users") ?>" class="BackButton-Link"><i class="icon-arrow-left52 mr-2"></i></a> <?php echo $this->lang->line('BE_USR_HD'); ?></h4> </div> </div> </div> <?php $USER_ID_BTNS = $id; ?> <?php if ($USER_ID_BTNS > 0) { ?> <div class="form-group row"> <div class="col-lg-12"> <?php include APPPATH . 'scripts/userbtns.php'; ?> </div> </div> <?php } ?> <!-- /page header --> <!-- Content area --> <div class="content pt-0"> <div class="card"> <div class="form-group row"> <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> <div class="card-body"> <!-- Our Working Area Start --> <div class="form-group row"> <div class="col-lg-12"> <?php if (isset($message) && $message != '') { ?> <div class="alert alert-success"><?php echo $message; ?></div> <?php } ?> </div> </div> <?php echo form_open(base_url($this->config->item('apanel_name')."/clients/user?frmId=25&fTypeId=5"), 'name="frm" id="frm"'); ?> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <input type="hidden" id="id" name="id" value="<?php echo($id); ?>"> <label class="control-label"><?php echo $this->lang->line('BE_USR_1'); ?></label> <input type="text" placeholder="Enter Username" maxlength="50" name="txtUName" id="txtUName" value="<?php echo($uName); ?>" class="form-control"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_345'); ?></label> <input type="email" placeholder="Enter Email" maxlength="50" name="txtEmail" id="txtEmail" value="<?php echo($email); ?>" class="form-control"> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_USR_2'); ?></label> <input type="password" autocomplete="off" placeholder="Password" name="txtPass" id="txtPass" maxlength="15" class="form-control" readonly onfocus="this.removeAttribute('readonly');" > </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_USR_3'); ?></label> <input type="password" autocomplete="off" placeholder="Confirm Password" name="txtCPass" id="txtCPass" maxlength="15" class="form-control" readonly onfocus="this.removeAttribute('readonly');" > </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_USR_4'); ?></label> <input type="text" placeholder="Enter First Name" name="txtFName" id="txtFName" maxlength="50" value="<?php echo($firstName); ?>" class="form-control"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_USR_5'); ?></label> <input type="text" placeholder="Enter Last Name" maxlength="50" name="txtLName" id="txtLName" value="<?php echo($lastName); ?>" class="form-control"> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_USR_6'); ?></label> <input type="text" placeholder="Enter Phone" name="txtPhone" id="txtPhone" maxlength="30" value="<?php echo($phone); ?>" class="form-control"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label">IP</label> <p class="form-control-static"><?php echo $ip == '' ? '-' : $ip; ?></p> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <?php $currency = fetch_currency_by_disablecurrency(); ?> <label class="control-label"><?php echo $this->lang->line('BE_LS_9'); ?></label> <select required name="currencyId" id="currencyId" class="form-control select2me" data-placeholder="<?php echo $this->lang->line('BE_LBL_271'); ?>"> <option value="-1"><?php echo $this->lang->line('BE_LBL_271'); ?></option> <?php FillCombo($currencyId, $currency); ?> </select> </div> </div> <div class="col-lg-6"> <div class="form-group"> <?php $price_plan = fetch_price_plan_data(); ?> <label class="control-label"><?php echo $this->lang->line('BE_LBL_18'); ?></label> <select required name="planId" id="planId" class="form-control select2me" data-placeholder="<?php echo $this->lang->line('BE_LBL_272'); ?>"> <option value="-1"><?php echo $this->lang->line('BE_LBL_272'); ?></option> <?php FillCombo($planId, $price_plan); ?> </select> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <?php $country = get_country_data(); ?> <label class="control-label"><?php echo $this->lang->line('BE_USR_7'); ?></label> <select required name="countryId" id="countryId" class="form-control select2me" data-placeholder="<?php echo $this->lang->line('BE_LBL_273'); ?>"> <option value="-1"><?php echo $this->lang->line('BE_LBL_273'); ?></option> <?php FillCombo($countryId, $country); ?> </select> </div> </div> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_1009'); ?></label> <select multiple="multiple" class="select2me" id="" name="loginCountries[]"> <?php FillSelectedList2($id, 'ISO'); ?> </select> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo "Minimum Credits"; ?></label> <input type="text" placeholder="Enter Minimum Credits" name="minimumCredits" id="minimumCredits" maxlength="30" value="<?php echo($minimumCredits); ?>" class="form-control"> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_USR_8'); ?></label><br/> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect" name="chkAutoFill" id="chkAutoFill" <?php echo $autoFill == 1 ? 'checked' : ''; ?> class="toggle"/><span><label for="chkAutoFill"></label></span> </div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_574'); ?></label><br/> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect" name="chkCanLoginFrmOther" id="chkCanLoginFrmOther" <?php echo $chkCanLoginFrmOther == 1 ? 'checked' : ''; ?> class="toggle"/><span><label for="chkCanLoginFrmOther"></label></span> </div> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_625'); ?> :</label><br/> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect" name="chkSubscribe" id="chkSubscribe" <?php echo $subscribed == 1 ? 'checked' : ''; ?> class="toggle"/><span><label for="chkSubscribe"></label></span> </div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_695'); ?> :</label><br/> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect" name="chkSMS" id="chkSMS" <?php echo $sendSMS == 1 ? 'checked' : ''; ?> class="toggle"/><span><label for="chkSMS"></label></span> </div> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_329'); ?> :</label><br/> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect" name="chkTransfrCrdts" id="chkTransfrCrdts" <?php if ($transferCredits == '1') echo 'checked'; ?> class="toggle"/><span><label for="chkTransfrCrdts"></label></span> </div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_1010'); ?>:</label><br/> <div style="margin: 5px 0;"> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect login_verification" value="1" name="chkLoginVerification" id="chkLoginVerification_QR" <?php if ($loginVerification == '1') echo 'checked'; ?> class="toggle"/><span><label for="chkLoginVerification_QR"></label></span> </div><label> QR code (scan image with google authenticator app)</label> </div> <div style="margin: 9px 0;"> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" value="0" class="chkSelect login_verification" name="chkLoginVerification" id="chkLoginVerification_OTP" <?php if ($loginVerification == '0') echo 'checked'; ?> class="toggle"/><span><label for="chkLoginVerification_OTP"></label></span> </div><label> OTP (passcode received via email)</label> </div> <?php if($isTelegram) { ?> <div style="margin: 5px 0;"> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect login_verification" value="2" name="chkLoginVerification" id="chkLoginVerificationTelegram" <?php if ($loginVerification == '2') echo 'checked'; ?> class="toggle"/><span><label for="chkLoginVerificationTelegram"></label></span> </div><label> Telegram (passcode receive on Telegram)</label> </div> <?php } ?> <div style="margin: 5px 0;"> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect login_verification" value="3" name="chkLoginVerification" id="chkLoginVerification_off" <?php if ($loginVerification == '3') echo 'checked'; ?> class="toggle"/><span><label for="chkLoginVerification_off"></label></span> </div><label> Not Required</label> </div> <!-- <div class="col-lg-12"> <input class="" type="radio" 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 src='<?php echo $QRImage; ?>'/> </div> </div> <div class="col-lg-12"> <input class="" type="radio" 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-12"> <input class="" type="radio" name="chkLoginVerification" id="chkLoginVerificationOff" <?php echo $loginVerification == 3 ? 'checked' : ''; ?> value="3"/><span class="labelSub"> Not Required</span> </div> --> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_575'); ?></label><br/> <div> <input type="text" placeholder="Enter Pin Code" maxlength="4" name="txtPinCode" id="txtPinCode" value="<?php echo ($pinCode); ?>" class="form-control"> </div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_GNRL_1'); ?></label><br/> <div class="switch-button switch-button-lg"> <input type="checkbox" name="chkDisable" id="chkDisable" <?php echo $disableUser == 1 ? 'checked' : ''; ?> /> <span><label for="chkDisable"></label></span> </div> </div> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_362'); ?></label> <textarea class="form-control" rows="3" name="txtNotes"><?php echo $notes; ?></textarea> </div> </div> <div class="col-lg-6" id="dvReason" <?php if ($disableUser == '0') echo 'style="display:none;"'; ?>> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_393'); ?></label> <textarea class="form-control" rows="3" id="txtReason" name="txtReason"><?php echo $reason ?></textarea> </div> </div> </div> <!-- --------------Start Added Page Restrictions Buttons----------------- --> <?php if($allowPages == 1){ ?> <div class="form-group row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('TURN_ON_AND_OFF_IMEI_CLIENT_MENU'); ?>:</label><br/> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect" name="imeiOrdertoggle" id="imeiOrdertoggle" <?php echo $imeiOrdertoggle == 1 ? 'checked' : ''; ?> class="toggle" /><span><label for="imeiOrdertoggle"></label></span> </div><label> <?php echo $this->lang->line('CUST_MENU_CODES_2'); ?></label> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"></label><br/> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" class="chkSelect" name="imeiOrderHistorytoggle" id="imeiOrderHistorytoggle" <?php echo $imeiOrderHistorytoggle == 1 ? 'checked' : ''; ?> class="toggle" /><span><label for="imeiOrderHistorytoggle"></label></span> </div><label> <?php echo $this->lang->line('CUST_CODE_4').' '.$this->lang->line('CUST_DB_ICON3'); ?></label> </div> </div> </div> <?php } ?> <!-- --------------End Added Page Restrictions Buttons ----------------- --> <?php $i = 1; foreach ($rsFields as $row) { if ($i % 2 == 1){ ?> <div class="form-group row"> <?php } ?> <div class="col-lg-6"> <label class="control-label"><?php echo $row->FieldLabel; ?> :<?php if ($row->Mandatory == '1') echo '*'; ?></label><br/> <?php if ($row->FieldType == 'Text Box') { ?> <input type="text" id="fld<?php echo $i; ?>" name="fld<?php echo $i; ?>" value="<?php echo $USER_VALUES[$row->FieldColName]; ?>" placeholder="Enter <?php echo $row->FieldLabel; ?>" maxlength="50" value="" class="form-control"> <?php } else if ($row->FieldType == 'Text Area') { ?> <textarea class="form-control" rows="3" id="fld<?php echo $i; ?>" name="fld<?php echo $i; ?>"><?php echo $USER_VALUES[$row->FieldColName]; ?></textarea> <?php } else if ($row->FieldType == 'Drop Down') { ?> <select name="fld<?php echo $i; ?>" id="fld<?php echo $i; ?>" class="form-control select2me"> <?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 } else if ($row->FieldType == 'Radio Button') { ?> <?php $rsValues = get_reg_field_values($row->FieldId); echo '<div class="col-lg-4 radio-list">'; foreach ($rsValues as $rw) { $chckd = ''; if ($rw->RegValue == $USER_VALUES[$row->FieldColName]) $chckd = 'checked'; ?> <label class="radio-inline"> <input type="radio" name="fld'.$i.'" id="fld'.$i.'" value="<?php echo $rw->RegValue; ?>" <?php echo $chckd; ?> /><?php echo $rw->RegValue; ?> </label> <?php } echo '</div>'; ?> <?php } ?> <?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 . '" />'; echo ' </div>'; if ($i % 2 == 0) { echo '</div>'; } $i++; } if ($i % 2 == 0) { echo '</div>'; } ?> <input type="hidden" name="totalRegFields" value="<?php echo $totalFields; ?>"/> <div class="form-group row"> <div class="col-lg-12"> <button type="submit" <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> class="btn btn-primary ThemeColorButton" id="btnSave" name="btnSave"><?php echo $this->lang->line('BE_LBL_72'); ?></button> <img style="display:none;" id="statusLoader" src="<?php echo base_url('assets/img/loading.gif'); ?>" border="0" alt="Please wait..."/> </div> </div> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div> </div> <script src="<?php echo base_url('assets/js/user.js') ?>?v=<?php echo $this->config->item('assets_version'); ?>" language="javascript"></script>