GetAssociatedResource(); $Field = $InvalidUrl->GetAssociatedField(); $Schema = new MetadataSchema($Resource->SchemaId()); $TitleField = $Schema->GetFieldByMappedName("Title"); # get the resource name and RFC anchor name $Name = defaulthtmlentities(NeatlyTruncateString($Resource->Get($TitleField), 22), ENT_QUOTES, $SysConfig->DefaultCharacterSet(), FALSE); $Title = defaulthtmlentities($Resource->Get($TitleField), ENT_QUOTES, $SysConfig->DefaultCharacterSet(), FALSE); $Url = defaulthtmlentities($InvalidUrl->Url, ENT_QUOTES, $SysConfig->DefaultCharacterSet(), FALSE); $FinalUrl = defaulthtmlentities($InvalidUrl->FinalUrl, ENT_QUOTES, $SysConfig->DefaultCharacterSet(), FALSE); $FieldName = defaulthtmlentities($Field->GetDisplayName(), ENT_QUOTES, $SysConfig->DefaultCharacterSet(), FALSE); $StatusText = $InvalidUrl->ReasonPhrase; $TitleWithSpaces = defaulthtmlentities($Resource->Get($TitleField), ENT_QUOTES, $SysConfig->DefaultCharacterSet(), FALSE); # basic url href sanitization (mainly to reject javascript) $UrlHref = "#"; if (preg_match("/^(mailto|ftps?|https?):\/\//", $InvalidUrl->Url)) { $UrlHref = $InvalidUrl->Url; } $FinalUrlHref = "#"; if (preg_match("/^(mailto|ftps?|https?):\/\//", $InvalidUrl->FinalUrl)) { $FinalUrlHref = $InvalidUrl->FinalUrl; } $CodeString = strval($InvalidUrl->StatusCode); # construct a search query string $Search = $Resource->Get($TitleField); # add the publisher value if the field exists try { $Publisher = $Schema->GetFieldByName("Publisher"); } catch (Exception $e) { $Publisher = NULL; } if (!is_null($Publisher) && $Publisher->Status() == MetadataSchema::MDFSTAT_OK && $Publisher->Type() == MetadataSchema::MDFTYPE_CONTROLLEDNAME) { foreach ($Resource->Get($Publisher) as $PublisherName) { $Search .= " ".$PublisherName; } } $Search = urlencode($Search); $MyPlugin = $GLOBALS["G_PluginManager"]->GetPluginForCurrentPage(); # determine if we should display the release/withhold buttons if ($MyPlugin->ConfigSetting("ReleaseConfiguration") !== NULL) { $DisplayReleaseActions = TRUE; } else { $DisplayReleaseActions = FALSE; } ?>
StatusCode); ?> 1) { ?> 65) { ?> FinalStatusCode == 200) { ?> [Redirect Page] IsResourceReleased($Resource)) { ?> FinalStatusCode == 200 && !$InvalidUrl->IsFinalUrlInvalid) { ?>
".$StatusCode ." (".number_format($Count).")"; } # ----- MAIN ----------------------------------------------------------------- ?>

# Invalid URLs

style="visibility: hidden;"> " /> Results Per Page:
Sort By:
Status:

Type 1) { ?> | Field | Resource | URL | Actions
--- | --- | --- | --- | ---
1) { $Percent = ceil($NumPages/5); ?>
= 1 && $PageNumber > 1) { ?> |< 1 && $PageNumber-$Percent > 0) { ?> << 0) { ?> < | > 1 && $PageNumber+$Percent < $NumPages) { ?> >> = 1 && $PageNumber < $NumPages) { ?> >|
1) { ?>
(no invalid URLs to display)
(no invalid URLs to display)

Last Resource Checked | Next Check 0) { ?> | Checked Resources | Enqueued Resources 0) { ?> | Invalid URLs 0) { ?> | Possibly Invalid URLs
--- | --- | --- | --- | --- | ---
| 0) { ?> |  | 0) { ?> | 0) { ?> |