/ Published in: PHP

Credit goes to François Nonnenmacher.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php curl_setopt($ch, CURLOPT_URL, "<$mt:AdminCGIPath$><$mt:CommentScript$>?__mode=session_js&blog_id=<mt:BlogID>&jsonp=mtSetUserOrLogin"); if ($session['can_comment'] == 0) { header("Location: <$mt:AdminCGIPath$><$mt:CommentScript$>?__mode=login&blog_id=<mt:BlogID>&return_url=".rawurlencode($_SERVER["REQUEST_URI"])); } ?>
Comments
