<tr> <th class="title" colspan="6">Packages PEAR</th> </tr> <tr> <th>Nom</th> <th>Description</th> <th>Obligatoire ?</th> <th>Utilité</th> <th>Statut</th> <th>Installation ?</th> </tr> <?php $package = new CPearPackage(); foreach ($package->getAll() as $prereq) { ?> <tr> <td><strong><?php echo $prereq->name; ?> </strong></td> <td class="text"><?php echo nl2br($prereq->description); ?> </td> <td> <?php if ($prereq->mandatory) { ?>
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 }