shell bypass 403
<?php
try
{
$html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', array(6,6,5,5));
$html2pdf->pdf->SetDisplayMode('fullpage');
ob_start();
?>
<style type="text/css">
<!--
table{width:100% !important;}
table tr td{ text-align:left; }
table tr th{text-align:center;}
table tr .title{font-size:9pt; font-weight: bold;}
table tr .content{text-align:left; font-size:9pt;}
-->
</style>
<page backtop="0" backbottom="30mm">
<table cellspacing="0" align="center" style="width: 100%;height:30%; text-align:center;text-align: center; font-size: 10pt;" align="center">
<tr>
<td rowspan="3" style="width: 33%; text-align: center;border: solid 1px black;"><h2>Groupe Hammami</h2><h3><?php echo $autorisation["depart"]; ?></h3></td>
<td rowspan="3" style="width: 33%; text-align: center;border: solid 1px black;font-weight: bold; font-size:20px;text-transform: uppercase;">Autorisation de sortie</td>
<td style="width: 33%; text-align: center;border: solid 1px black;text-transform: uppercase;">GRH-FR-20/05</td>
</tr>
<tr>
<td style="text-align: center;border: solid 1px black;text-transform: uppercase;"> 01/11/2018</td>
</tr>
<tr>
<td style="text-align: center;border: solid 1px black;text-transform: uppercase;">Page : 1/1</td>
</tr>
</table>
<table cellspacing="0" align="center" style="width: 100%; text-align: center; font-size: 10pt;margin-top: 30px;">
<tr>
<td class="title" style=" text-align: right;font-weight: bold;" colspan="3" >Date de création:</td>
<td class="content" style="text-align: left;" ><?php echo date("d/m/Y",strtotime($autorisation["creationdate"]));?></td>
</tr>
<tr>
<td class="title" style="text-align: right; font-weight: bold; " colspan="3">Date de demande:</td>
<td class="content" style="width: 25%; "> <?php echo date("d/m/Y",strtotime( $autorisation["datedemande"])); ?></td>
</tr>
<tr>
<td class="title" style="width: 25%; "> Nom & Prénom: </td>
<td class="content" style="width: 75%;" colspan="3"><?php echo ucwords($autorisation["nom"])." ".ucwords($autorisation["prenom"]); ?></td>
</tr>
<tr>
<td class="title" style="width: 25%; "> Matricule:</td>
<td class="content" style="width: 75%; " colspan="3"><?php echo $autorisation["matricule"];?>
</td>
</tr>
<tr>
<td class="title" style="width: 25%; ">Fonction:</td>
<td class="content" style="width: 75%; " colspan="3"><?php echo $autorisation["poste"];?></td>
</tr>
<tr>
<td class="title" style="width: 25%; ">Moyen de transport:</td>
<td class="content" style="width: 75%; " colspan="3"><?php echo $autorisation["transport"];?></td>
</tr>
<tr>
<td class="title" style="width: 25%; ">Heure de sortie:</td>
<td class="content" style="width: 25%; "><?php echo date("H:i",strtotime($autorisation["heursdebut"])); ?></td>
<td class="title" style="width: 25%; ">Heure fin: </td>
<td class="content" style="width: 25%; "><?php echo date("H:i",strtotime($autorisation["heursfin"])); ?></td>
</tr>
<tr>
<td class="title" style="width: 25%; "> Total des heures: </td>
<td class="content" style="width: 75%;" colspan="3">
<?php
$start = date_create('2015-01-26 '.$autorisation["heursdebut"]);
$end = date_create('2015-01-26 '.$autorisation["heursfin"]);
$diff=date_diff($end,$start);
echo $diff->h.":".$diff->i;
?>
</td>
</tr>
<tr>
<td class="title" style="width: 25%; ">Objet:</td>
<td class="content" style="width: 75%; " colspan="3"><?php echo $autorisation["objetautorisation"];?></td>
</tr>
</table>
<table cellspacing="0" align="center" style="width: 100%;height:30%; margin-top: 50px; text-align: center; font-size: 10pt;" align="center">
<tr >
<td style="width: 50%; text-align: center;border: solid 1px black;" >Signature du collaborateur</td>
<td style="width: 50%; text-align: center;border: solid 1px black;" >Validation de la direction</td>
</tr>
<tr >
<td style="width: 50%; text-align: center;height:30%; border: solid 1px black;" >
<?php echo ucwords($autorisation["nom"])." ".ucwords($autorisation["prenom"]); ?>
</td>
<td style="width: 50%; text-align: center; height:30%; border: solid 1px black;" >
<?php
$valide_values = array(
'0'=>'En Attente',
'1'=>'Confirmée',
'2'=>'Rejetée',
'3'=>'Annulée',
);
echo $valide_values[$autorisation["etat"]]." par ".ucwords($autorisation["validator"]);
?>
</td>
</tr>
</table>
<p style="text-align: right;"><small>NB / Copie à déposer au bureau d’ordre avant votre départ</small> </p>
<hr style="border:dashed 1px black width:100% "/>
<table cellspacing="0" align="center" style="width: 100%;height:30%; margin-top:10px; text-align:center;text-align: center; font-size: 10pt;" align="center">
<tr>
<td rowspan="3" style="width: 33%; text-align: center;border: solid 1px black;"><h2>Groupe Hammami</h2><h3><?php echo $autorisation["depart"]; ?></h3></td>
<td rowspan="3" style="width: 33%; text-align: center;border: solid 1px black;font-weight: bold; font-size:20px;text-transform: uppercase;">Autorisation de sortie</td>
<td style="width: 33%; text-align: center;border: solid 1px black;text-transform: uppercase;">GRH-FR-20/05</td>
</tr>
<tr>
<td style="text-align: center;border: solid 1px black;text-transform: uppercase;"> 01/11/2018</td>
</tr>
<tr>
<td style="text-align: center;border: solid 1px black;text-transform: uppercase;">Page : 1/1</td>
</tr>
</table>
<table cellspacing="0" align="center" style="width: 100%; text-align: center; font-size: 10pt;margin-top: 30px;">
<tr>
<td class="title" style=" text-align: right; font-weight: bold;" colspan="3" >Date de création:</td>
<td class="content" style="text-align: left;"colspan="3" ><?php echo date("d/m/Y",strtotime($autorisation["creationdate"]));?></td>
</tr>
<tr>
<td class="title" style="text-align: right; font-weight: bold; " colspan="3">Date de demande:</td>
<td class="content" style="width: 25%; "> <?php echo date("d/m/Y",strtotime( $autorisation["datedemande"])); ?></td>
</tr>
<tr>
<td class="title" style="width: 25%; "> Nom & Prénom: </td>
<td class="content" style="width: 75%;" colspan="3"><?php echo ucwords($autorisation["nom"])." ".ucwords($autorisation["prenom"]); ?></td>
</tr>
<tr>
<td class="title" style="width: 25%; ">Heure de sortie:</td>
<td class="content" style="width: 25%; "><?php echo date("H:i",strtotime($autorisation["heursdebut"])); ?></td>
<td class="title" style="width: 25%; ">Heure fin: </td>
<td class="content" style="width: 25%; "><?php echo date("H:i",strtotime($autorisation["heursfin"])); ?></td>
</tr>
<tr>
<td class="title" style="width: 25%; "> Total: </td>
<td class="content" style="width: 75%;" colspan="3">
<?php
$start = date_create('2015-01-26 '.$autorisation["heursdebut"]);
$end = date_create('2015-01-26 '.$autorisation["heursfin"]);
$diff=date_diff($end,$start);
echo $diff->h.":".$diff->i;
?>
</td>
</tr>
</table>
<table cellspacing="0" align="center" style="width: 100%;height:30%; margin-top: 50px; text-align: center; font-size: 10pt;" align="center">
<tr >
<td style="width: 25%; text-align: center;border: solid 1px black;" >Signature du collaborateur</td>
<td style="width: 50%; text-align: center;border: solid 1px black;" >Validation de la direction</td>
<td style="width: 25%; text-align: center;border: solid 1px black;" >Visa de l’agent de sécurité</td>
</tr>
<tr >
<td style="width: 25%; text-align: center;height:30%; border: solid 1px black;" >
<?php echo ucwords($autorisation["nom"])." ".ucwords($autorisation["prenom"]); ?>
</td>
<td style="width: 50%; text-align: center; height:30%; border: solid 1px black;" >
<?php
$valide_values = array(
'0'=>'En Attente',
'1'=>'Confirmée',
'2'=>'Rejetée',
'3'=>'Annulée',
);
echo $valide_values[$autorisation["etat"]]." par ".ucwords($autorisation["validator"]);
?>
</td>
<td style="width: 25%; text-align: center; height:30%; border: solid 1px black;" ></td>
</tr>
</table>
<p style="text-align: right;"><small>NB / Copie à déposer chez l’agent de sécurité avant votre départ </small> </p>
</page>
<?php
$content = ob_get_clean();
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
$html2pdf->Output('autorisation.pdf');
}
catch(HTML2PDF_exception $e) {
echo $e;
exit;
}
?>