shell bypass 403
<form method="post" action="<?php echo base_url("Ecritureplanning/add"); ?>">
<div class="row">
<div class="col-md-12">
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Ajouter Ecriture planning</h3>
</div>
<div class="box-body">
<div class="row clearfix">
<div class="alert alert-warning" id="alerttime" style="display: none;">
<strong>Attention!</strong> SVP de bien verifier les informations entrées.
</div>
<div class="col-md-12">
<div class="form-group row">
<div class="col-sm-4">
<label for="datedebut" class="control-label"><span class="text-danger">*</span>Date debut</label>
<input type="text" required name="datedebut" value="<?php echo $this->input->post('datedebut'); ?>" class="has-datepicker form-control" id="datedebut" />
<span class="text-danger" id="dateerror"><?php echo form_error('datedebut');?></span>
</div>
<div class="col-sm-4">
<label for="datefin" class="control-label"><span class="text-danger">*</span>Date fin</label>
<input type="text" required name="datefin" value="<?php echo $this->input->post('datefin'); ?>" class="has-datepicker form-control" id="datefin" />
<span class="text-danger" id="dateerror"><?php echo form_error('datefin');?></span>
</div>
</div>
</div>
<div class="col-md-4">
<label for="planning_id" class="control-label"><span class="text-danger">*</span>Planning</label>
<div class="form-group">
<select name="planning_id" class="form-control" required >
<option value="">Selectionnez une planning</option>
<?php
foreach($all_planning as $planning)
{
$selected = ($planning['id'] == $this->input->post('planning_id')) ? ' selected="selected"' : "";
echo '<option value="'.$planning['id'].'" '.$selected.'>'.$planning['libelle'].'</option>';
}
?>
</select>
<span class="text-danger"><?php echo form_error('fonction_id');?></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Table Ecriture planning</h3>
</div>
<div class="box-body">
<div class="row clearfix" >
<div class="alert alert-warning" id="alerttime" style="display: none;">
<strong>Attention!</strong> SVP de bien verifier les informations entrées.
</div>
<div id="repartContent">
<table class="table table-striped">
<thead>
<tr>
<th>Jour</th>
<th>Heure Debut</th>
<th>Heure Fin</th>
<th>Debut Pause</th>
<th>Fin Pause</th>
<th>Type</th>
</tr>
</thead>
</table>
<input type="hidden" id="rownumber" value="<?php //echo count($jours); ?>">
<?php
//date_default_timezone_set('Europe/Paris');
//setlocale(LC_TIME, 'fr_FR','fra');// OK
$days = array("1"=>"Lundi","2"=>"Mardi","3"=>"Mercredi","4"=>"Jeudi","5"=>"Vendredi","6"=>"Samedi","7"=>"Dimanche");
for($i=1;$i<8;$i++){
?>
<table class="table table-striped">
<tbody>
<tr>
<td><strong><?php echo $days[$i]; //echo strftime("%A ", strtotime( $jour) ); echo "||".date("N", strtotime($jour)); ?></strong> </td>
<td><input required type="text" name="tempdebut<?php echo $i; ?>" value="<?php echo $this->input->post('tempdebut'); ?>" class="has-timepicker form-control" /></td>
<td><input required type="text" name="tempfin<?php echo $i; ?>" value="<?php echo $this->input->post('tempfin'); ?>" class="has-timepicker form-control" /></td>
<td><input required type="text" name="pausedebut<?php echo $i; ?>" value="<?php echo $this->input->post('pausedebut'); ?>" class="has-timepicker form-control" /></td>
<td><input required type="text" name="pausefin<?php echo $i; ?>" value="<?php echo $this->input->post('pausefin'); ?>" class="has-timepicker form-control" /></td>
<td>
<input checked="" type="radio" value="1" name="type<?php echo $i; ?>" class="custom-control-input" >
<label class="custom-control-label" for="demijourned">T</label>
<input type="radio" value="2" name="type<?php echo $i; ?>" class="custom-control-input" >
<label class="custom-control-label" for="demijourned">RH</label>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<?php } ?>
<table class="table table-striped">
<tfoot>
<tr>
<td colspan="8" align="center">
<button type="submit" class="btn btn-info" id="btnRepartition"><i class="fa fa-check" ></i> Générer</button>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</form>