else if (@$_GET['act'] == "register"){
$form = "
<div class=\"cb_title\"><h4><b><img class=\"absmid\" src=\"".$im."jb_t3/key.png\" /> ".$lang[147]."</b></h4></div>
<div id=\"content_block\">
<div class=\"cbc\">
<form action=\"".$h."register.html\" method=post><h1>".$lang[147]."</h1><br />".$lang[873].":<br /><br /><input name=\"email\" type=\"text\"><br /><br /><input type=\"submit\" value=\"".$lang[199]."\"></form>
</div>";
if (@$_POST['email']){
$email = trim($_POST['email']);
if (!preg_match('/^[-0-9\.a-z_]+@([-0-9\.a-z]+\.)+[a-z]{2,6}$/iu',$email)) echo "<br /><br /><div class=\"alcenter\" style=\"margin:20px;\">".$lang[582]."</div>".$form;
else{
if (mysql_num_rows(mysql_query ("SELECT id_user FROM jb_user WHERE email='".$email ."'"))) echo "<div class=\"alcenter\" style=\"margin:20px;\">".$lang[874]."</div>".$form;
else{
$tt=time();$pass=$tt.$email.rand(1,999999999);$pass=md5($pass);$pass=utf8_substr($pass,0,5);
$query = mysql_query("INSERT jb_user SET pass='".md5($pass)."', email='".$email."'");
$msg=$lang[559].".\n".$lang[875].": ".$pass."\n".$lang[876]." ".$h."login.html ".$lang[877]." ".$h.".\n\n".$lang[865]." ".$h;
if (sendmailer($email,"<".$c['admin_mail'].">",$lang[881]." ".$h,$msg)) echo "<div class=\"alcenter\" style=\"margin:50px;\">".$lang[878].".<br /><br /><br /><br /><br /><a href=\"".$h."\">".$lang[84]."</a></div>";
else echo "<div class=\"alcenter\" style=\"margin:50px;\">".$lang[86]."<br /><br /><br /><a href=\"".$h."\">".$lang[84]."</a></div>";
}
}
}else echo $form;
}