Location: PHPKode > projects > Openology PHP Application Integration > openology/wiki/actions/wantedpages.php
<?php

if ($linking_to = $_REQUEST["linking_to"])
{
	if ($pages = $this->LoadPagesLinkingTo($linking_to))
	{
		print("Pages linking to ".$this->Link($linking_to).":<br />\n");
		foreach ($pages as $page)
		{
			print($this->Link($page["tag"])."<br />\n");
		}
	}
	else
	{
		print("<em>No page is linking to ".$this->Link($linking_to).".</em>");
	}
}
else
{
	if ($pages = $this->LoadWantedPages())
	{
		foreach ($pages as $page)
		{
			print($this->Link($page["tag"])." (<a href=\"".$this->href("", "", "linking_to=".$page["tag"])."\">".$page["count"]."</a>)<br />\n");
		}
	}
	else
	{
		print("<em>No wanted pages. Good!</em>");
	}
}

?>
Return current item: Openology PHP Application Integration