Exemplo n.º 1
0
  
<table class="tbl" >

<tr>
  <th class="title" colspan="3">Droits d'accès distants</th>
</tr>

<tr>
  <th>URL</th>
  <th>Pré-requis</th>
  <th>Validité</th>
</tr>

<?php 
$restriction = new CUrlRestriction();
foreach ($restriction->getAll() as $_restriction) {
    ?>
  <tr>
    <td><strong><?php 
    echo $_restriction->url;
    ?>
</strong></td>
    <td>Interdit (HTTP 403)</td>
    <td>
      <?php 
    if ($_restriction->check()) {
        ?>
        <div class="info">OK</div>
      <?php 
    } else {
        ?>