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,11 +33,13 @@ $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' => "
|
||||||
你好,
|
你好,
|
||||||
|
|
||||||
我邀请你加入 $SITENAME, 这是一个拥有丰富资源的非开放社区.
|
我邀请你加入 $SITENAME, 这是一个拥有丰富资源的非开放社区.
|
||||||
如果你有兴趣加入我们请阅读规则并确认邀请.最后,确保维持一个良好的分享率
|
如果你有兴趣加入我们请阅读规则并确认邀请.最后,确保维持一个良好的分享率
|
||||||
分享允许的资源.
|
分享允许的资源.
|
||||||
|
|
||||||
欢迎到来! :)
|
欢迎到来! :)
|
||||||
|
|||||||
@@ -33,11 +33,13 @@ $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' => "
|
||||||
你好,
|
你好,
|
||||||
|
|
||||||
我邀請你加入 $SITENAME, 這是一個擁有豐富高質量資源的非開放社區.
|
我邀請你加入 $SITENAME, 這是一個擁有豐富高質量資源的非開放社區.
|
||||||
如果你有興趣加入我們請閱讀規則並確認邀請.最後,確保維持一個良好的分享率
|
如果你有興趣加入我們請閱讀規則並確認邀請.最後,確保維持一個良好的分享率
|
||||||
分享允許的資源.
|
分享允許的資源.
|
||||||
|
|
||||||
歡迎到來! :)
|
歡迎到來! :)
|
||||||
|
|||||||
@@ -33,13 +33,15 @@ $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,
|
||||||
|
|
||||||
I am inviting you to join $SITENAME which is a private community that have the finest
|
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
|
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
|
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.
|
only upload content that follows rules of the site.
|
||||||
|
|
||||||
Welcome aboard! :)
|
Welcome aboard! :)
|
||||||
|
|||||||
+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