<?php
"http://w...content-available-to-author-only...e.com/",
"http://w...content-available-to-author-only...r.com/1/hi-hello",
"http://w...content-available-to-author-only...e.com/index.php",
"http://w...content-available-to-author-only...r.com/1/archive",
"http://w...content-available-to-author-only...e.com/about.php",
"http://w...content-available-to-author-only...r.com/"
);
$urls_categorised = Array(); foreach ($urls as $url) {
if ($url != $host)
$urls_categorised[$host][] = $url;
}
foreach ($urls_categorised as &$x) {
continue;
print "{$x[0]}\n";
foreach ($x as $y)
print "- {$y}\n";
}
?>
PD9waHAKJHVybHMgPSBBcnJheSgKCSJodHRwOi8vdy4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uZS5jb20vIiwKCSJodHRwOi8vdy4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uci5jb20vMS9oaS1oZWxsbyIsCgkiaHR0cDovL3cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLmUuY29tL2luZGV4LnBocCIsCgkiaHR0cDovL3cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLnIuY29tLzEvYXJjaGl2ZSIsCgkiaHR0cDovL3cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLmUuY29tL2Fib3V0LnBocCIsCgkiaHR0cDovL3cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLnIuY29tLyIKKTsKCiR1cmxzX2NhdGVnb3Jpc2VkID0gQXJyYXkoKTsKZm9yZWFjaCAoJHVybHMgYXMgJHVybCkgewoJJGhvc3QgPSBwYXJzZV91cmwoJHVybCwgUEhQX1VSTF9IT1NUKTsKCWlmICgkdXJsICE9ICRob3N0KQoJCSR1cmxzX2NhdGVnb3Jpc2VkWyRob3N0XVtdID0gJHVybDsKfQoKZm9yZWFjaCAoJHVybHNfY2F0ZWdvcmlzZWQgYXMgJiR4KSB7CglpZiAoIWNvdW50KCR4KSkKCQljb250aW51ZTsKCQoJc29ydCgkeCk7CglwcmludCAieyR4WzBdfVxuIjsKCWFycmF5X3NoaWZ0KCR4KTsKCQoJZm9yZWFjaCAoJHggYXMgJHkpCgkJcHJpbnQgIi0geyR5fVxuIjsKfQo/Pg==