Had to switch these 2. Sorry.
This commit is contained in:
parent
e537d53389
commit
c7652fc29c
@ -51,7 +51,7 @@ function invite_post(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($invonly && ($x || is_site_admin())) {
|
if($invonly && ($x || is_site_admin())) {
|
||||||
$code = autoname(8) . rand(1000,9999);
|
$code = autoname(8) . srand(1000,9999);
|
||||||
$nmessage = str_replace('$invite_code',$code,$message);
|
$nmessage = str_replace('$invite_code',$code,$message);
|
||||||
|
|
||||||
$r = q("INSERT INTO `register` (`hash`,`created`) VALUES ('%s', '%s') ",
|
$r = q("INSERT INTO `register` (`hash`,`created`) VALUES ('%s', '%s') ",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
<div class="generic-content-wrapper-styled">
|
||||||
<form action="invite" method="post" id="invite-form" >
|
<form action="invite" method="post" id="invite-form" >
|
||||||
|
|
||||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||||
@ -28,3 +29,4 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
Reference in New Issue
Block a user