mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
invite after signup do not delete
This commit is contained in:
@@ -33,6 +33,8 @@ $lang_invite = array
|
|||||||
'text_no_invitation_sent' => "当前没有已发邀请",
|
'text_no_invitation_sent' => "当前没有已发邀请",
|
||||||
'text_hash' => "Hash",
|
'text_hash' => "Hash",
|
||||||
'text_send_date' => "发送日期",
|
'text_send_date' => "发送日期",
|
||||||
|
'text_hash_status' => 'Hash 有效',
|
||||||
|
'text_invitee_user' => '被邀请者',
|
||||||
'text_invitation_body' => "
|
'text_invitation_body' => "
|
||||||
你好,
|
你好,
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ $lang_invite = array
|
|||||||
'text_no_invitation_sent' => "當前沒有已發邀請",
|
'text_no_invitation_sent' => "當前沒有已發邀請",
|
||||||
'text_hash' => "Hash",
|
'text_hash' => "Hash",
|
||||||
'text_send_date' => "發送日期",
|
'text_send_date' => "發送日期",
|
||||||
|
'text_hash_status' => 'Hash 有效',
|
||||||
|
'text_invitee_user' => '被邀請者',
|
||||||
'text_invitation_body' => "
|
'text_invitation_body' => "
|
||||||
你好,
|
你好,
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ $lang_invite = array
|
|||||||
'text_no_invitation_sent' => "No invitations sent out at the moment.",
|
'text_no_invitation_sent' => "No invitations sent out at the moment.",
|
||||||
'text_hash' => "Hash",
|
'text_hash' => "Hash",
|
||||||
'text_send_date' => "Send Date",
|
'text_send_date' => "Send Date",
|
||||||
|
'text_hash_status' => 'Hash valid',
|
||||||
|
'text_invitee_user' => 'Invitee user',
|
||||||
|
|
||||||
'text_invitation_body' => "
|
'text_invitation_body' => "
|
||||||
Hi Buddy,
|
Hi Buddy,
|
||||||
|
|||||||
+14
-3
@@ -126,7 +126,7 @@ if ($type == 'new'){
|
|||||||
$number1 = $arre[0];
|
$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);
|
$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>");
|
print("<tr align=center><td colspan=6>".$lang_invite['text_no_invitation_sent']."</tr>");
|
||||||
} else {
|
} 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)
|
for ($i = 0; $i < $num1; ++$i)
|
||||||
{
|
{
|
||||||
$arr1 = mysql_fetch_assoc($rer);
|
$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>");
|
print("</table>");
|
||||||
|
|||||||
@@ -198,8 +198,8 @@ if ($type == 'invite')
|
|||||||
$update = [
|
$update = [
|
||||||
'valid' => \App\Models\Invite::VALID_NO,
|
'valid' => \App\Models\Invite::VALID_NO,
|
||||||
'invitee_register_uid' => $id,
|
'invitee_register_uid' => $id,
|
||||||
'invitee_register_email' => $email,
|
'invitee_register_email' => $_POST['email'],
|
||||||
'invitee_register_username' => $wantusername,
|
'invitee_register_username' => $_POST['wantusername'],
|
||||||
];
|
];
|
||||||
\App\Models\Invite::query()->where('id', $inv['id'])->update($update);
|
\App\Models\Invite::query()->where('id', $inv['id'])->update($update);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user