shell bypass 403
<?php
try
{
$html2pdf = new HTML2PDF('L', 'A4', 'fr', true, 'UTF-8', array(10, 10, 10, 10));
$html2pdf->pdf->SetDisplayMode('fullpage');
ob_start();
?>
<style type="text/css">
<!--
table{width:100% !important;}
table tr td{ text-align:center; padding: 5px; }
table tr th{text-align:center;padding: 5px;}
table tr .title{font-size:10pt; font-weight: bold;}
table tr .content{text-align:left; font-size:10pt;}
h2{
text-align: center;
}
-->
</style>
<page backtop="30mm" backbottom="7mm" footer="page" >
<page_header footer='page' >
<table cellspacing="0" align="center" style="margin-bottom:40px; 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></td>
<td rowspan="3" style="width: 33%; text-align: center;border: solid 1px black;font-weight: bold; font-size:20pt;">Liste des autorisations</td>
<td style="width: 33%; text-align: center;border: solid 1px black;text-transform: uppercase;"></td>
</tr>
<tr>
<td style="text-align: center;border: solid 1px black;text-transform: uppercase;"></td>
</tr>
<tr>
<td style="text-align: center;border: solid 1px black;text-transform: uppercase;">Page [[page_cu]] </td>
</tr>
</table>
</page_header>
<table class="table table-striped" align="center" border="1">
<tr>
<th>Date de la demande</th>
<th>Utilisateur</th>
<th>Depart</th>
<th>Moyen de transport</th>
<th>Heure de sortie</th>
<th>Heure de fin</th>
<th>Total des heurs</th>
<th>Objet autorisation</th>
<th>Description</th>
<th>Etat</th>
</tr>
<?php foreach($autorisation as $d){ ?>
<tr>
<td><?php echo $d['datedemande']; ?></td>
<td><?php echo $d['name']." ".$d['prenom'];?></td>
<td><?php echo $d['depart']; ?></td>
<td><?php echo $d['transport']; ?></td>
<td><?php echo $d['heursdebut']; ?></td>
<td><?php echo $d['heursfin']; ?></td>
<td> <?php
$start = date_create('2015-01-26 '.$d["heursdebut"]);
$end = date_create('2015-01-26 '.$d["heursfin"]);
$diff=date_diff($end,$start);
echo $diff->h.":".$diff->i;
?></td>
<td><?php echo $d['objetautorisation']; ?></td>
<td><?php echo $d['description']; ?></td>
<td>
<?php
$valide_values = array(
'0'=>'En Attente',
'1'=>'Confirmée',
'2'=>'Rejetée',
'3'=>'Annulée',
);
echo $valide_values[$d["etat"]];
?>
</td>
</tr>
<?php } ?>
</table>
</page>
<?php
$content = ob_get_clean();
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
$html2pdf->Output("exportation.pdf");
}
catch(HTML2PDF_exception $e) {
echo $e;
exit;
}
?>