invite after signup do not delete

This commit is contained in:
xiaomlove
2021-05-11 02:44:43 +08:00
parent fa57e78c74
commit 0aa0d7afa7
5 changed files with 29 additions and 12 deletions
+4 -2
View File
@@ -33,11 +33,13 @@ $lang_invite = array
'text_no_invitation_sent' => "当前没有已发邀请",
'text_hash' => "Hash",
'text_send_date' => "发送日期",
'text_hash_status' => 'Hash 有效',
'text_invitee_user' => '被邀请者',
'text_invitation_body' => "
你好,
我邀请你加入 $SITENAME, 这是一个拥有丰富资源的非开放社区.
如果你有兴趣加入我们请阅读规则并确认邀请.最后,确保维持一个良好的分享率
我邀请你加入 $SITENAME, 这是一个拥有丰富资源的非开放社区.
如果你有兴趣加入我们请阅读规则并确认邀请.最后,确保维持一个良好的分享率
分享允许的资源.
欢迎到来! :)
+4 -2
View File
@@ -33,11 +33,13 @@ $lang_invite = array
'text_no_invitation_sent' => "當前沒有已發邀請",
'text_hash' => "Hash",
'text_send_date' => "發送日期",
'text_hash_status' => 'Hash 有效',
'text_invitee_user' => '被邀請者',
'text_invitation_body' => "
你好,
我邀請你加入 $SITENAME, 這是一個擁有豐富高質量資源的非開放社區.
如果你有興趣加入我們請閱讀規則並確認邀請.最後,確保維持一個良好的分享率
我邀請你加入 $SITENAME, 這是一個擁有豐富高質量資源的非開放社區.
如果你有興趣加入我們請閱讀規則並確認邀請.最後,確保維持一個良好的分享率
分享允許的資源.
歡迎到來! :)
+5 -3
View File
@@ -33,13 +33,15 @@ $lang_invite = array
'text_no_invitation_sent' => "No invitations sent out at the moment.",
'text_hash' => "Hash",
'text_send_date' => "Send Date",
'text_hash_status' => 'Hash valid',
'text_invitee_user' => 'Invitee user',
'text_invitation_body' => "
Hi Buddy,
I am inviting you to join $SITENAME which is a private community that have the finest
and most abundant stuff. If you are interested in joining us please read over
the rules and confirm the invite. Finally, please make sure you keep a nice ratio and
and most abundant stuff. If you are interested in joining us please read over
the rules and confirm the invite. Finally, please make sure you keep a nice ratio and
only upload content that follows rules of the site.
Welcome aboard! :)
+14 -3
View File
@@ -126,7 +126,7 @@ if ($type == 'new'){
$number1 = $arre[0];
$rer = sql_query("SELECT invitee, hash, time_invited FROM invites WHERE inviter = ".mysql_real_escape_string($id)) or sqlerr();
$rer = sql_query("SELECT * FROM invites WHERE inviter = ".mysql_real_escape_string($id)) or sqlerr();
$num1 = mysql_num_rows($rer);
@@ -137,11 +137,22 @@ if ($type == 'new'){
print("<tr align=center><td colspan=6>".$lang_invite['text_no_invitation_sent']."</tr>");
} else {
print("<tr><td class=colhead>".$lang_invite['text_email']."</td><td class=colhead>".$lang_invite['text_hash']."</td><td class=colhead>".$lang_invite['text_send_date']."</td></tr>");
print("<tr><td class=colhead>".$lang_invite['text_email']."</td><td class=colhead>".$lang_invite['text_hash']."</td><td class=colhead>".$lang_invite['text_send_date']."</td><td class='colhead'>".$lang_invite['text_hash_status']."</td><td class='colhead'>".$lang_invite['text_invitee_user']."</td></tr>");
for ($i = 0; $i < $num1; ++$i)
{
$arr1 = mysql_fetch_assoc($rer);
print("<tr><td class=rowfollow>{$arr1['invitee']}<td class=rowfollow>{$arr1['hash']}</td><td class=rowfollow>{$arr1['time_invited']}</td></tr>");
$tr = "<tr>";
$tr .= "<td class=rowfollow>{$arr1['invitee']}</td>";
$tr .= "<td class=rowfollow>{$arr1['hash']}</td>";
$tr .= "<td class=rowfollow>{$arr1['time_invited']}</td>";
$tr .= "<td class=rowfollow>".\App\Models\Invite::$validInfo[$arr1['valid']]['text']."</td>";
if ($arr1['valid'] == \App\Models\Invite::VALID_NO) {
$tr .= "<td class=rowfollow><a href=userdetails.php?id={$arr1['invitee_register_uid']}><font color=#1f7309>".$arr1['invitee_register_username']."</font></a></td>";
} else {
$tr .= "<td class='rowfollow'></td>";
}
$tr .= "</tr>";
print($tr);
}
}
print("</table>");
+2 -2
View File
@@ -198,8 +198,8 @@ if ($type == 'invite')
$update = [
'valid' => \App\Models\Invite::VALID_NO,
'invitee_register_uid' => $id,
'invitee_register_email' => $email,
'invitee_register_username' => $wantusername,
'invitee_register_email' => $_POST['email'],
'invitee_register_username' => $_POST['wantusername'],
];
\App\Models\Invite::query()->where('id', $inv['id'])->update($update);