$body.="\nSomeone registered this email on our service.";
$body.="\n";
$body.="\nIf it's you, please <a href=\"".(((!empty($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!=='off')||$_SERVER['SERVER_PORT']===443)?'https:':'http:').'//'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'],0,-9).'?confirm=1&t='.$token.'">click this link to confirm</a>.';
$body.="\nElse, please ignore this mail.";
$body.="\nRegards,";
$body.="\n\nShikiryu";
$body.="\n\nAny complain or advise? http://shikiryu.com/contact/";
if(isset($_POST['html'])&&$_POST['html']==='on'){// bookmarklet pour l'envoi en HTML
$include='<a href="javascript:void((function(){if(typeof(jQuery)!=\'function\'){var%20n=document.createElement(\'script\');n.setAttribute(\'src\',\'//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\');document.getElementsByTagName(\'head\')[0].appendChild(n);}function%20v(){if(typeof(jQuery)==\'function\'){clearInterval(i);c();}}var%20i=window.setInterval(v,100);function%20c(){q=\'\';function%20gx(el){el=el.get(0);xp=\'\';for(;el&&el.nodeType==1;el=el.parentNode){id=jQuery(el.parentNode).children(el.tagName).index(el)+1;id>1?(id=\'[\'+id+\']\'):(id=\'\');xp=\'/\'+el.tagName.toLowerCase()+id+xp;}return%20xp;}jQuery(\'*\').bind(\'mouseenter\',function(){jQuery(\'*\').removeClass(\'shikihover\');jQuery(\'*\').css(\'border\',\'\');jQuery(this).css(\'border\',\'3px%20solid%20yellow\');jQuery(this).addClass(\'shikihover\');});jQuery(\'.shikihover\').live(\'click\',function(){jQuery(\'*\').unbind(\'mouseenter\').removeClass(\'shikihover\');jQuery(this).css(\'border\',\'\');var%20q=\'&q=\'+gx(jQuery(this)),d=document,t=d.title,f=\'//'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'],0,-9).'\',m=\''.$token.'\',l=d.location,e=encodeURIComponent,p=\'?v=1&u=\'+e(l.href)+\'&t=\'+e(t)+\'&m=\'+e(m),u=f+p+q;newScript=d.createElement(\'script\');newScript.type=\'text/javascript\';newScript.src=u;d.body.appendChild(newScript);});}})())">Bookmark by email</a>';
}else{// bookmarklet pour l'envoi normal
$include="<a href='javascript:var%20d=document,t=d.title,f=\"//".$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'],0,-9)."\",m=\"".$token."\",l=d.location,e=encodeURIComponent,p=\"?v=1&u=\"+e(l.href)+\"&t=\"+e(t)+\"&m=\"+e(m),u=f+p;var%20ns=document.createElement(\"script\");ns.type=\"text/javascript\";ns.src=u;document.body.appendChild(ns);void(0)'>Bookmark by email</a>";