if (!(count($footprints) % 50)) { Safe::set_time_limit(30); SQL::ping(); } } if (count($footprints)) { $context['text'] .= sprintf(i18n::s('%d reference scripts have been copied.'), count($footprints)) . "\n"; } $context['text'] .= "</p>\n"; // purge documentation pages $context['text'] .= '<p>' . i18n::s('Purging the documentation pages...') . "</p>\n"; // get a parser include_once 'phpdoc.php'; $documentation = new PhpDoc(); // purge the existing documentation, if any $documentation->purge(); // list reference files $context['text'] .= '<p>' . i18n::s('Listing files...') . BR . "\n"; // locate reference files --include special nodes $references = Scripts::list_files_at($context['path_to_reference'], TRUE, $context['path_to_reference'], '.htaccess'); if (is_array($references)) { $context['text'] .= BR . sprintf(i18n::s('%d files have been found.'), count($references)) . "\n"; } $context['text'] .= "</p>\n"; // build documentation pages $context['text'] .= '<p>' . i18n::s('Building documentation pages...') . BR . "\n"; // analyse each script $index = 0; foreach ($references as $reference) { // use file content list($module, $name) = $reference;