Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: user_api.php
<style type="text/css"> .asd7da { font-size: 12px; margin: 5px 0px 0px 0px; color: #6c6c6c; } </style> <!-- 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_92'); ?></h4> </div> </div> </div> <div class="form-group row"> <div class="col-lg-12"> <?php $USER_ID_BTNS = $userId; if($USER_ID_BTNS){ include APPPATH . 'scripts/userbtns.php'; } ?> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content pt-0"> <div class="card"> <div class="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 } ?> <?php echo form_open(base_url($this->config->item('apanel_name').'/clients/userapi').get_query_string(), 'class="form-horizontal" name="frm" id="frm"'); ?> <input type="hidden" id="userId" name="userId" value="<?php echo($userId); ?>"/> <div class="form-group row"> <label class="col-lg-4 text-right control-label"><?php echo $this->lang->line('BE_LBL_571'); ?> :</label> <div class="col-lg-4"> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" id="rdAPIAllow" name="rdAPIAllow" <?php if ($apiAllow == '1') echo 'checked'; ?> class="toggle"/><span><label for="rdAPIAllow"></label></span> </div> </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label"><?php echo $this->lang->line('BE_MR_20'); ?> :</label> <div class="col-lg-4"> <input type="text" class="form-control" readonly="readonly" name="txtAPIKey" id="txtAPIKey" value="<?php echo($apiKey); ?>"/> <?php if (!$IS_DEMO) { ?> <a href="<?php echo base_url($this->config->item('apanel_name').'/clients/'); ?>userapi?gnrtKey=1&userId=<?php echo $userId; ?>" style="text-decoration:underline;"><?php echo $this->lang->line('BE_LBL_41'); ?></a> <?php } ?> </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label"><?php echo $this->lang->line('BE_LBL_535'); ?> :</label> <div class="col-lg-4"> <textarea class="form-control" rows="3" id="txtIPs" name="txtIPs"><?php echo @$ips; ?></textarea> </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label"><?php echo $this->lang->line('BE_LBL_536'); ?> :</label> <div class="col-lg-4"> <div class="switch-button switch-button-lg" data-on-label="YES" data-off-label="NO"> <input type="checkbox" name="chkEmail" id="chkEmail" checked="checked" class="toggle chkSelect"/><span><label for="chkEmail"></label></span> </div> </div> </div> <div class="form-group row"> <div class="offset-4 col-8"> <p>Cycle time = 2 ( one life cycle will be complete in 2 minutes) <br> Max Request Per Cycle = 200 ( 200 request accepted for one life cycle) <br> Block request timing = 20 ( when number of request exceeds the max request per cycle then cycle will be blocked for 20 minutes ) <br> If Cycle time, Max Request Per Cycle, Block request timing -- set as "0" it will take the global settings.</p> </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">Cycle time:</label> <div class="col-lg-4"> <input type="text" class="form-control" value="<?php echo $cycleTime; ?>" name="txtCycleTime" id="txtCycleTime"/> <p class="asd7da">Time to be taken to complete one life cycle in minutes</p> </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">Max Request Per Cycle:</label> <div class="col-lg-4"> <input type="text" class="form-control" value="<?php echo $maxReqPerCycle; ?>" name="txtMaxReqPerCycle" id="txtMaxReqPerCycle"/> <p class="asd7da">Maximum request to be handled in one life cycle</p> </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">Block request timing:</label> <div class="col-lg-4"> <input type="text" class="form-control" value="<?php echo $blockReqTime; ?>" name="txtBlockReqTime" id="txtBlockReqTime"/> <p class="asd7da">Request to be blocked in minutes when number of request exceeds the max request per cycle</p> </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">Status:</label> <div class="col-lg-4"> <select name="txtApiCycleStatus" id="txtApiCycleStatus" class="form-control"> <option value="1" <?php echo $apiCycleStatus == 1 ? 'selected=""' : ''; ?>>Active</option> <option value="0" <?php echo $apiCycleStatus == 0 ? 'selected=""' : ''; ?>>In-Active</option> </select> </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">Current Request Count:</label> <div class="col-lg-4"> 1 </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">Total Request Count:</label> <div class="col-lg-4"> 1 </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">Next Reset Cycle:</label> <div class="col-lg-4"> Next cycle start in 0 minutes and 0 seconds </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">No of times blocked:</label> <div class="col-lg-4"> 0 </div> </div> <div class="form-group row"> <label class="col-lg-4 text-right control-label">Allow Ip Address:</label> <div class="col-lg-4"> <textarea class="form-control" rows="3" id="txtAllowCycleIPs" name="txtAllowCycleIPs"><?php echo str_replace(',', "\n", $allowCycleIPs); ?></textarea> </div> </div> <div class="form-group row"> <div class="text-right col-lg-4"></div><div class="col-lg-4"> <button type="submit" <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> id="btnSave" name="btnSave" class="btn btn-primary ThemeColorButton"><?php echo $this->lang->line('BE_LBL_72'); ?></button> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div> </div>