[pmwiki-devel] RedirectExternal

adam overton a at plus1plus1plus.org
Tue May 31 17:37:18 CDT 2011


hi friends
i was in a hurry and in need of a markup that can redirect to external sites, but didn't find any on the cookbook, and so made the following. before i add it to the cookbook, just wondering if anyone knew of a recipe that this might be duplicating?
thanks,
adam


# Redirect to an External Site with the markup (:RedirectExternal http://extWebsite.com:)
Markup('RedirectExternal','>fulltext', 
	'/\\(:RedirectExternal (.+):\\)/e', 
	"RedirectExternal('$1')"); 

function RedirectExternal($url) {
	header('Location: '.$url);
	exit();
}




More information about the pmwiki-devel mailing list