Commit 8137572a authored by Loui Chang's avatar Loui Chang
Browse files

Add support for filename::url syntax for sources.



Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent 17165b20
......@@ -146,10 +146,12 @@ $submitted_time = ($row["SubmittedTS"] == 0) ? "(unknown)" : gmdate("r", intval(
<?php
while (list($k, $src) = each($sources)) {
$parsed_url = parse_url($src);
if ($parsed_url['scheme'])
{
# It is an external source
echo "<a href='".$src."'>".$src."</a><br />\n";
$src = explode('::', $src);
echo "<a href=\"" . (isset($src[1]) ? $src[1] : $src[0]) . "\">$src[0]</a><br />\n";
}
else
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment