Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: sub_admin.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"> <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('BE_LBL_942'); ?></h4> </div> </div> </div> <!-- /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 --> <?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 } ?> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('CUST_INDEX_USRNAME'); ?></label> <input type="hidden" id="id" name="id" value="<?php echo($id); ?>"> <input type="text" placeholder="Enter Username" maxlength="50" name="txtEmail" id="txtEmail" value="<?php echo($email); ?>" class="form-control" autocomplete="off"> </div> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('BE_LBL_943'); ?></label> <select name="roleId" id="roleId" class="form-control select2me" data-placeholder="Select Role"> <option value="0"><?php echo $this->lang->line('BE_LBL_944'); ?></option> <?php FillCombo($roleId, $roles); ?> </select> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('CUST_MENU_PWD'); ?></label> <input type="password" autocomplete="off" placeholder="Password" name="txtPass" id="txtPass" maxlength="15" class="form-control" autocomplete="off"/> </div> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('CUST_PWD_4'); ?></label> <input type="password" autocomplete="off" placeholder="Confirm Password" name="txtCPass" id="txtCPass" maxlength="15" class="form-control"/> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('CUST_ACC_2'); ?></label> <input type="text" placeholder="Enter First Name" name="txtFName" id="txtFName" maxlength="50" value="<?php echo($firstName); ?>" class="form-control"> </div> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('CUST_ACC_3'); ?></label> <input type="text" placeholder="Enter Last Name" maxlength="50" name="txtLName" id="txtLName" value="<?php echo($lastName); ?>" class="form-control"> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('CUST_LBL_222'); ?></label> <input type="email" placeholder="Enter Email" name="txtEmail2" id="txtEmail2" maxlength="30" value="<?php echo($email2); ?>" class="form-control"> </div> <div class="col-lg-6"> <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="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('CUST_CH_119'); ?>:</label><br/> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" name="chkDisable" id="chkDisable" <?php echo $disable == 1 ? 'checked' : ''; ?> class="toggle"/><span><label for="chkDisable"></label></span> </div> </div> <div class="col-lg-6"> <!-- <label class="control-label">Google Authenticator:</label><br /> <div> <div class="switch-button switch-button-lg"> <input type="checkbox" name="chkGAuth" id="chkGAuth" <?php echo $gAuth == 1 ? 'checked' : ''; ?> /> <span><label for="chkGAuth"></label></span> </div> <div id="imgGAuth" <?php if ($gAuth == '0') echo 'style="display:none;"'; ?>> <img class="imgGoogleAuth" src='<?php echo $qrCodeUrl; ?>'/> </div> </div> --> <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="hidden" name="id" id="id" value="<?=$id;?>"/> <input type="checkbox" class="chkSelect chkLoginVerification" value="1" name="chkGAuth" id="chkLoginVerification_QR" <?php if ($gAuth == '1') echo 'checked'; ?> class="toggle"/><span><label for="chkLoginVerification_QR"></label></span> </div><label> QR code (scan image with google authenticator app)</label> <div id="imgGAuth" <?php if ($gAuth != '1') echo 'style="display:none;"'; ?>> <img class="imgGoogleAuth" src='<?php echo $qrCodeUrl; ?>'/> </div> <div id="imgGAuthForm" style="display:none;"> <img class="GoogleAuthFormImg" src=''/> <br /> <input type="text" name="qrCodeFormCode" id="qrCodeFormCode"/> <input type="hidden" name="id" id="id" value="<?=$id;?>"/> <input type="button" class="qrCodeFromSubmit" value="Submit" /> <input type="hidden" name="invalid" value="1" id="invalid"/> </div> </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="chkGAuth" id="chkLoginVerification_OTP" <?php if ($gAuth == '0') echo 'checked'; ?> class="toggle"/><span><label for="chkLoginVerification_OTP"></label></span> </div><label> OTP (passcode received via email)</label> </div> <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="chkGAuth" id="chkLoginVerification_off" <?php if ($gAuth == '3') echo 'checked'; ?> class="toggle"/><span><label for="chkLoginVerification_off"></label></span> </div><label> Not Required</label> </div> </div> <div class="col-lg-6"> <label class="control-label">Ticket Departments:<? echo $depts;?></label><br/> <?php if($rsDept){ foreach ($rsDept as $dept) { if($dept->DisableDept == '0') { $class=''; if($id!='' && $depts!='') { $savedDepts = explode(',', $depts); if (in_array($dept->DeptId, $savedDepts)) { $class = 'checked'; } } ?> <div class="form-check"> <label class="form-check-label"> <input required type="checkbox" <?php echo $class;?> name="deptId" value="<?php echo $dept->DeptId; ?>" class="form-check-input depts"> <? echo stripslashes($dept->DeptName); ?> </label> </div> <?php } } } ?> </div> </div> <div class="form-group row"> <div class="col-lg-12 text-right"> <input type="hidden" id="gAuthSecret" name="gAuthSecret" value="<?php echo $secret; ?>"/> <button type="submit" <?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/images/loading.gif'); ?>" border="0" alt="Please wait..."/> </div> </div> </div> </div> </div> </div> </div> <script language="javascript" src="<?php echo base_url('assets/js/subadmin.js'); ?>?v=<?php echo $this->config->item('assets_version'); ?>"> </script>