shell bypass 403
<?php
$weight_name="";
if(isset($weight_res)){
$btnname = "Update";
foreach($weight_res as $row){
$weight_id = $row->id;
$weight_name = $row->name;
}
$method = "admin/weight_update/".base64_encode($weight_id);
}else{
$method = "admin/weight_process";
$btnname = "Submit";
}
?>
<?php include'sidebar.php';?>
</div>
<div class="content-right">
<?php include'header.php';?>
<div class="main-content">
<div class="dash-block">
<h5 class="border-bottom pb-3">Product Size</h5>
<div class="form-element">
<?=$this->session->flashdata("success_msg")?>
<form method="post" action="<?=base_url($method)?>">
<div class="row">
<div class="col-md-6">
<div class="form-group row">
<label for="inputPassword" class="col-sm-4 col-form-label"> Product Size Name </label>
<div class="col-sm-8">
<input type="text" class="form-control" id="inputPassword" placeholder="Enter Product Size" name="weight_name" value="<?=$weight_name?>" required="required">
<span class="text-danger"><?=form_error("weight_name")?></span>
</div>
</div>
</div>
<div class="col-md-8 offset-md-2">
<button class="btn btn-submit"><?=$btnname?></button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php include'footer.php';?>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="<?=base_url('admin_assets/js/bootstrap.min.js')?>"></script>
<script type="text/javascript" src="<?=base_url('admin_assets/js/select2.min.js')?>"></script>
<script type="text/javascript" src="<?=base_url('admin_assets/js/custom.js')?>"></script>
<script src="<?=base_url('admin_assets/js/css3-animate-it.js')?>"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>
</body>
</html>