Some bits

This commit is contained in:
jeroenpraat
2015-11-20 00:39:47 +01:00
parent ba52af786e
commit a890ee6864
3 changed files with 13 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ function invite_post(&$a) {
}
if($invonly && ($x || is_site_admin())) {
$code = autoname(8) . srand(1000,9999);
$code = autoname(8) . rand(1000,9999);
$nmessage = str_replace('$invite_code',$code,$message);
$r = q("INSERT INTO `register` (`hash`,`created`) VALUES ('%s', '%s') ",
@@ -143,4 +143,4 @@ function invite_content(&$a) {
));
return $o;
}
}