function parcourirDossier($pPath, $pNbLigne) { $d = dir($pPath); echo "<h3> Dossier " . $d->path . "</h3><br/>\n"; while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $entry != '.svn' && $entry != '.project' && $entry != 'logs' && $entry != 'Logging' && $entry != 'outilsDev' && $entry != 'images' && $entry != '.htaccess' && $entry != 'install' && $entry != 'jquery.numeric.js' && $entry != 'jquery.numeric.pack.js' && $entry != 'jquery.ui.datepicker-fr.js' && $entry != 'jquery-ui-1.8.custom.min.js' && $entry != 'jquery-1.4.2.min.js' && $entry != 'jquery.selectboxes.pack.js') { if (is_dir($d->path . '/' . $entry)) { $pNbLigne = parcourirDossier($d->path . '/' . $entry, $pNbLigne); } else { $lNbLigneFichier = 0; $filename = $d->path . '/' . $entry; $handle = fopen($filename, "r"); while (!feof($handle)) { fgets($handle); $lNbLigneFichier++; } fclose($handle); $pNbLigne += $lNbLigneFichier; echo $filename . ' : ' . $lNbLigneFichier . ' lignes<br/>'; //echo $lNbLigneFichier.'+'; //$lLigneDossier += $lNbLigneFichier; } } } $d->close(); return $pNbLigne; }
function parcourirDossier($pPath) { $d = dir($pPath); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $entry != '.svn' && $entry != '.project' && $entry != '.htaccess' && $entry != 'jquery' && $entry != 'package' && $entry != 'template' && $entry != 'vues' && $entry != 'Configuration' && $entry != 'zeybux-configuration.php' && $entry != 'zeybux-core.php' && $entry != 'zeybux-jquery.php' && $entry != 'MessagesErreurs.js') { if (is_dir($d->path . '/' . $entry)) { parcourirDossier($d->path . '/' . $entry); } else { $filename = $d->path . '/' . $entry; echo file_get_contents($filename); } } } $d->close(); }
function parcourirDossier($pPath) { $d = dir($pPath); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $entry != '.svn' && $entry != '.project' && $entry != '.htaccess' && $entry != 'themes' && $entry != 'Entete.css' && $entry != 'zeybux.php' && $entry != 'zeybux-html.php' && $entry != 'Commande' && $entry != 'Commun' && $entry != 'CompteSolidaire' && $entry != 'CompteZeybu' && $entry != 'GestionAdherents' && $entry != 'GestionCommande' && $entry != 'GestionProducteur' && $entry != 'Identification' && $entry != 'MonCompte' && $entry != 'RechargementCompte') { if (is_dir($d->path . '/' . $entry)) { parcourirDossier($d->path . '/' . $entry); } else { $filename = $d->path . '/' . $entry; echo file_get_contents($filename); } } } $d->close(); }
function parcourirDossier($pPath) { $d = dir($pPath); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $entry != '.svn' && $entry != '.project' && $entry != '.htaccess' && $entry != 'themes' && $entry != 'Entete.css' && $entry != 'zeybux.php' && $entry != 'zeybux-html.php' && $entry != 'MonCompteHTML') { if (is_dir($d->path . '/' . $entry)) { parcourirDossier($d->path . '/' . $entry); } else { $filename = $d->path . '/' . $entry; echo file_get_contents($filename); } } } $d->close(); }
function parcourirDossier($pPathIn, $pPathOut) { $d = dir($pPathIn); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $entry != 'Maintenance') { if (is_dir($d->path . '/' . $entry)) { if (!is_dir($pPathOut . '/' . $entry)) { mkdir($pPathOut . '/' . $entry); } parcourirDossier($d->path . '/' . $entry, $pPathOut . '/' . $entry); } else { $filename = $d->path . '/' . $entry; copy($filename, $pPathOut . '/' . $entry); } } } $d->close(); }
function parcourirDossier($pPath) { if (is_dir($pPath)) { $d = dir($pPath); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $entry != '.svn' && $entry != '.project' && $entry != '.htaccess') { if (is_dir($d->path . '/' . $entry)) { parcourirDossier($d->path . '/' . $entry); } else { $filename = $d->path . '/' . $entry; echo file_get_contents($filename); } } } $d->close(); } else { echo file_get_contents($pPath); } }
function parcourirDossier($pPathIn, $pPathOut) { $d = dir($pPathIn); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $d->path . '/' . $entry != '../index.html' && $entry != "DB.php" && $entry != "LogLevel.php" && $entry != "Mail.php" && $entry != 'Maintenance.php' && $entry != "Proprietaire.php" && $entry != 'SOAP.php' && $entry != 'Titre.php' && $entry != 'Maintenance' && $entry != 'update.sql' && $entry != "bdd" && $entry != "script" && $entry != ".htaccess") { if (is_dir($d->path . '/' . $entry)) { if (!is_dir($pPathOut . '/' . $entry)) { mkdir($pPathOut . '/' . $entry); } $lTempIn = $d->path . '/' . $entry; $lTempOut = $pPathOut . '/' . $entry; parcourirDossier($lTempIn, $lTempOut); } else { $filename = $d->path . '/' . $entry; copy($filename, $pPathOut . '/' . $entry); } } } $d->close(); }