<ul>
    <li>Sur Ubuntu : www-data</li>
    <li>Sur Mac Os X : _www</li>
  </ul>
</div>

<table class="tbl">

<tr>
  <th>Chemin</th>
  <th>Description</th>
  <th>Vérification ?</th>
</tr>
  
<?php 
$pathAccess = new CPathAccess();
foreach ($pathAccess->getAll() as $pathAccess) {
    ?>
<tr>
  <td><strong><?php 
    echo $pathAccess->path;
    ?>
</strong></td>
  <td class="text"><?php 
    echo nl2br($pathAccess->description);
    ?>
</td>
  <td>
    <?php 
    if ($pathAccess->check()) {
        ?>
Example #2
0
function showToc()
{
    global $stepsText;
    $currentStep = basename($_SERVER["PHP_SELF"], ".php");
    // 01
    $version = new CPHPVersion();
    $extension = new CPHPExtension();
    $package = new CPearPackage();
    $restriction = new CUrlRestriction();
    // 02
    $pathAccess = new CPathAccess();
    // 03
    $library = new CLibrary();
    $valid = array("01_check" => $version->checkAll(false) && $extension->checkAll(false) && $package->checkAll(false) && $restriction->checkAll(false), "02_fileaccess" => $pathAccess->checkAll(false), "03_install" => $library->checkAll(false));
    ?>
<div class="toc">
  <ol>
    <?php 
    foreach ($stepsText as $step => $stepName) {
        ?>
    <li>
      <?php 
        if ($currentStep == $step) {
            ?>
<strong><?php 
        } else {
            ?>
<a href="<?php 
            echo $step;
            ?>
.php"><?php 
        }
        if (isset($valid[$step])) {
            ?>
<img src="../style/mediboard/images/buttons/<?php 
            echo $valid[$step] ? "tick" : "cancel";
            ?>
.png" /><?php 
        }
        echo $stepName;
        if ($currentStep == $step) {
            ?>
</strong><?php 
        } else {
            ?>
</a><?php 
        }
        ?>
    </li>
    <?php 
    }
    ?>
  </ol>
  <?php 
    if (isset($_SESSION["auth_username"])) {
        ?>
    <a href="?logout=1" class="logout">Déconnexion</a>
  <?php 
    }
    ?>
</div>
<?php 
}