200) { notification::setError(t("link_checker_error_only_200_allowed", "Please enter less than 200 urls to check at once.")); } } // check the urls if (notification::isErrors() == false) { // standardise foreach($file_urls_arr AS $file_url) { // get short url $rs[$file_url] = 'not found'; $file_url_parts = parse_url($file_url); if(isset($file_url_parts['path'])) { $path = $file_url_parts['path']; $pathParts = explode("/", $path); $shortUrl = trim(end($pathParts)); // if this looks like a filename, try one back if(strpos($shortUrl, '.') !== false) { array_pop($pathParts); $shortUrl = trim(end($pathParts)); } if(strlen($shortUrl)) { $file = file::loadByShortUrl($shortUrl); if($file) { // active if($file->statusId == 1) { $rs[$file_url] = 'active'; $totalActive++; } else { $rs[$file_url] = 'disabled'; $totalDisabled++; } $totalFound++; } } } } } } // include header require_once(SITE_TEMPLATES_PATH . '/partial/_header.inc.php'); ?>
0): ?>

$totalFound, 'TOTAL_ACTIVE'=>$totalActive, 'TOTAL_DISABLED'=>$totalDisabled)); ?>

$status): ?>
'; echo validation::safeOutputToScreen(UCWords($status)); echo ''; break; case 'disabled': echo ''; echo validation::safeOutputToScreen(UCWords($status)); echo ''; break; default: echo ''; echo validation::safeOutputToScreen(UCWords($status)); echo ''; break; } ?>