Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL_WDN_Assessment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
UNL_WDN_Assessment
Commits
6fb2a75e
Commit
6fb2a75e
authored
15 years ago
by
Brett Bieber
Browse files
Options
Downloads
Patches
Plain Diff
Go back to the default downloader, throw errors on pages with bad links.
parent
e6a7034b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.project
+10
-0
10 additions, 0 deletions
.project
lib/php/Spider.php
+5
-1
5 additions, 1 deletion
lib/php/Spider.php
src/UNL/WDN/Assessment.php
+1
-1
1 addition, 1 deletion
src/UNL/WDN/Assessment.php
src/UNL/WDN/Assessment/PageDownloader.php
+0
-19
0 additions, 19 deletions
src/UNL/WDN/Assessment/PageDownloader.php
with
16 additions
and
21 deletions
.project
+
10
−
0
View file @
6fb2a75e
...
...
@@ -5,6 +5,16 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.eclipse.wst.validation.validationbuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.dltk.core.scriptbuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
</natures>
...
...
This diff is collapsed.
Click to expand it.
lib/php/Spider.php
+
5
−
1
View file @
6fb2a75e
...
...
@@ -95,7 +95,11 @@ class Spider
foreach
(
$subUris
as
$subUri
)
{
if
(
!
array_key_exists
(
$subUri
,
$this
->
visited
))
{
try
{
$this
->
spiderPage
(
$baseUri
,
$subUri
,
$depth
+
1
);
}
catch
(
Exception
$e
)
{
echo
"The page, "
.
$uri
.
' linked to a page that could not be accessed: '
.
$subUri
.
'<br />'
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/UNL/WDN/Assessment.php
+
1
−
1
View file @
6fb2a75e
...
...
@@ -18,7 +18,7 @@ class UNL_WDN_Assessment
protected
function
getSpider
()
{
$plogger
=
new
UNL_WDN_Assessment_PageLogger
(
$this
);
$downloader
=
new
UNL_WDN_Assessment_Page
Downloader
();
$downloader
=
new
Spider_
Downloader
();
$parser
=
new
Spider_Parser
();
$spider
=
new
Spider
(
$downloader
,
$parser
);
...
...
This diff is collapsed.
Click to expand it.
src/UNL/WDN/Assessment/PageDownloader.php
deleted
100644 → 0
+
0
−
19
View file @
e6a7034b
<?php
class
UNL_WDN_Assessment_PageDownloader
extends
Spider_Downloader
{
protected
$assessment
;
function
__construct
(
UNL_WDN_Assessment
$assessment
)
{
$this
->
assessment
=
$assessment
;
}
public
function
download
(
$uri
)
{
try
{
return
parent
::
download
(
$uri
);
}
catch
(
Exception
$e
)
{
echo
'Link to missing page. '
.
$uri
;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment