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();
}


_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to