2020-12-26 01:42:23 +08:00
< ? php
2021-01-13 19:32:26 +08:00
require " ../include/bittorrent.php " ;
2020-12-26 01:42:23 +08:00
dbconn ();
require_once ( get_langfile_path ());
loggedinorreturn ();
parked ();
2021-01-06 01:31:21 +08:00
$id = intval ( $_GET [ " id " ] ? ? 0 );
2020-12-28 20:52:54 +08:00
$type = unesc ( $_GET [ " type " ] ? ? '' );
2022-04-22 00:39:06 +08:00
$menuSelected = $_REQUEST [ 'menu' ] ? ? 'invitee' ;
2022-04-22 15:38:09 +08:00
$pageSize = 50 ;
2022-12-18 02:19:33 +08:00
if (( $CURUSER [ 'id' ] != $id && ! user_can ( 'viewinvite' )) || ! is_valid_id ( $id ))
2023-02-09 18:14:51 +08:00
stderr ( $lang_invite [ 'std_sorry' ], $lang_invite [ 'std_permission_denied' ], true , false );
2022-12-13 13:51:39 +08:00
$userRep = new \App\Repositories\UserRepository ();
2022-04-22 00:39:06 +08:00
function inviteMenu ( $selected = " invitee " ) {
2022-12-13 13:51:39 +08:00
global $lang_invite , $id , $CURUSER , $invitesystem , $userRep ;
2022-08-05 16:13:19 +08:00
begin_main_frame ( " " , false , " 100% " );
2022-04-22 00:39:06 +08:00
print ( " <div id= \" invitenav \" style='position: relative'><ul id= \" invitemenu \" class= \" menu \" > " );
print ( " <li " . ( $selected == " invitee " ? " class=selected " : " " ) . " ><a href= \" ?id= " . $id . " &menu=invitee \" > " . $lang_invite [ 'text_invite_status' ] . " </a></li> " );
print ( " <li " . ( $selected == " sent " ? " class=selected " : " " ) . " ><a href= \" ?id= " . $id . " &menu=sent \" > " . $lang_invite [ 'text_sent_invites_status' ] . " </a></li> " );
2022-12-13 13:51:39 +08:00
print ( " <li " . ( $selected == " tmp " ? " class=selected " : " " ) . " ><a href= \" ?id= " . $id . " &menu=tmp \" > " . $lang_invite [ 'text_tmp_status' ] . " </a></li> " );
try {
$sendBtnText = $userRep -> getInviteBtnText ( $CURUSER [ 'id' ]);
$disabled = '' ;
} catch ( \Exception $exception ) {
$sendBtnText = $exception -> getMessage ();
$disabled = ' disabled' ;
2022-10-21 00:26:39 +08:00
}
2023-02-09 18:14:51 +08:00
if ( $CURUSER [ 'id' ] == $id ) {
print ( " </ul><form style='position: absolute;top:0;right:0' method=post action=invite.php?id= " . htmlspecialchars ( $id ) . " &type=new><input type=submit " . $disabled . " value=' " . $sendBtnText . " '></form></div> " );
}
2022-04-22 00:39:06 +08:00
end_main_frame ();
}
2022-12-14 16:39:19 +08:00
$res = sql_query ( " SELECT * FROM users WHERE id = " . mysql_real_escape_string ( $id )) or sqlerr ();
2020-12-26 01:42:23 +08:00
$user = mysql_fetch_assoc ( $res );
2022-12-13 13:51:39 +08:00
if ( ! $user ) {
stderr ( $lang_invite [ 'std_sorry' ], 'Invalid id' );
}
2020-12-26 01:42:23 +08:00
stdhead ( $lang_invite [ 'head_invites' ]);
2022-04-22 00:39:06 +08:00
print ( " <table width=100% class=main border=0 cellspacing=0 cellpadding=0><tr><td class=embedded> " );
2020-12-26 01:42:23 +08:00
print ( " <h1 align=center><a href= \" invite.php?id= " . $id . " \" > " . $user [ 'username' ] . $lang_invite [ 'text_invite_system' ] . " </a></h1> " );
2021-01-12 21:14:02 +08:00
$sent = htmlspecialchars ( $_GET [ 'sent' ] ? ? '' );
2020-12-26 01:42:23 +08:00
if ( $sent == 1 ){
$msg = $lang_invite [ 'text_invite_code_sent' ];
print ( " <p align=center><font color=red> " . $msg . " </font></p> " );
}
2022-12-14 16:39:19 +08:00
$inv = $user ;
2020-12-26 01:42:23 +08:00
//for one or more. "invite"/"invites"
if ( $inv [ " invites " ] != 1 ){
$_s = $lang_invite [ 'text_s' ];
} else {
$_s = " " ;
}
if ( $type == 'new' ){
2023-02-09 18:14:51 +08:00
if ( $CURUSER [ 'id' ] != $id ) {
stderr ( $lang_invite [ 'std_sorry' ], $lang_invite [ 'std_permission_denied' ], true , false );
}
2022-12-13 13:51:39 +08:00
try {
$sendBtnText = $userRep -> getInviteBtnText ( $CURUSER [ 'id' ]);
} catch ( \Exception $exception ) {
stdmsg ( $lang_invite [ 'std_sorry' ], $exception -> getMessage () .
" <a class=altlink href=invite.php?id= { $CURUSER [ 'id' ] } > " . $lang_invite [ 'here_to_go_back' ], false );
print ( " </td></tr></table> " );
stdfoot ();
die ;
}
2022-08-05 16:13:19 +08:00
registration_check ( 'invitesystem' , true , false );
2022-12-13 13:51:39 +08:00
$temporaryInvites = \App\Models\Invite :: query () -> where ( 'inviter' , $CURUSER [ 'id' ])
-> where ( 'invitee' , '' )
-> where ( 'expired_at' , '>' , now ())
-> orderBy ( 'expired_at' , 'asc' )
-> get ()
;
2025-04-19 02:06:51 +07:00
$invitation_body = sprintf ( $lang_invite [ 'text_invitation_body' ], \App\Models\Setting :: getSiteName ()) . $CURUSER [ 'username' ];
2020-12-26 01:42:23 +08:00
//$invitation_body_insite = str_replace("<br />","\n",$invitation_body);
2022-12-14 16:39:19 +08:00
$inviteSelectOptions = '' ;
if ( $inv [ 'invites' ] > 0 ) {
$inviteSelectOptions = '<option value="permanent">' . $lang_invite [ 'text_permanent' ] . '</option>' ;
}
2022-12-13 13:51:39 +08:00
foreach ( $temporaryInvites as $tmp ) {
2022-12-14 16:39:19 +08:00
$inviteSelectOptions .= sprintf ( '<option value="%s">%s (%s: %s)</option>' , $tmp -> hash , $tmp -> hash , $lang_invite [ 'text_expired_at' ], $tmp -> expired_at );
2023-08-24 02:28:58 +08:00
}
$preUsernameTr = " " ;
if ( get_setting ( " system.is_invite_pre_email_and_username " ) == " yes " ) {
$preUsernameTr = " <tr><td class= \" rowhead nowrap \" valign= \" top \" align= \" right \" > " . nexus_trans ( " invite.pre_register_username " ) . " </td><td align=left><input type=text size=40 name=pre_register_username><br /><font align=left class=small> " . nexus_trans ( " invite.pre_register_username_help " ) . " </font></td></tr> " ;
2022-12-13 13:51:39 +08:00
}
2020-12-26 01:42:23 +08:00
print ( " <form method=post action=takeinvite.php?id= " . htmlspecialchars ( $id ) . " > " .
2022-04-22 00:39:06 +08:00
" <table border=1 width=100% cellspacing=0 cellpadding=5> " .
2022-12-13 13:51:39 +08:00
" <tr align=center><td colspan=2><b> " . $lang_invite [ 'text_invite_someone' ] . " $SITENAME ( { $inv [ 'invites' ] } " . $lang_invite [ 'text_invitation' ] . $_s . $lang_invite [ 'text_left' ] . ' + ' . sprintf ( $lang_invite [ 'text_temporary_left' ], $temporaryInvites -> count ()) . " )</b></td></tr> " .
2023-08-24 02:28:58 +08:00
" <tr><td class= \" rowhead nowrap \" valign= \" top \" align= \" right \" > " . $lang_invite [ 'text_email_address' ] . " </td><td align=left><input type=text size=40 name=email><br /><font align=left class=small> " . $lang_invite [ 'text_email_address_note' ] . " </font> " . ( $restrictemaildomain == 'yes' ? " <br /> " . $lang_invite [ 'text_email_restriction_note' ] . allowedemails () : " " ) . " </td></tr> " . $preUsernameTr .
2022-12-13 13:51:39 +08:00
" <tr><td class= \" rowhead nowrap \" valign= \" top \" align= \" right \" > " . $lang_invite [ 'text_consume_invite' ] . " </td><td align=left><select name='hash'> " . $inviteSelectOptions . " </select></td></tr> " .
" <tr><td class= \" rowhead nowrap \" valign= \" top \" align= \" right \" > " . $lang_invite [ 'text_message' ] . " </td><td align=left><textarea name=body rows=10 style='width: 100%'> " . $invitation_body . " </textarea></td></tr> " .
2020-12-26 01:42:23 +08:00
" <tr><td align=center colspan=2><input type=submit value=' " . $lang_invite [ 'submit_invite' ] . " '></td></tr> " .
" </form></table></td></tr></table> " );
} else {
2022-04-22 00:39:06 +08:00
inviteMenu ( $menuSelected );
if ( $menuSelected == 'invitee' ) {
2023-05-30 18:29:54 +08:00
$whereStr = " u.invited_by = " . sqlesc ( $id );
2022-12-05 17:35:39 +08:00
if ( ! empty ( $_GET [ 'status' ])) {
2023-05-30 18:29:54 +08:00
$whereStr .= " and u.status = " . sqlesc ( $_GET [ 'status' ]);
2022-12-05 17:35:39 +08:00
}
if ( ! empty ( $_GET [ 'enabled' ])) {
2023-05-30 18:29:54 +08:00
$whereStr .= " and u.enabled = " . sqlesc ( $_GET [ 'enabled' ]);
2022-12-05 17:35:39 +08:00
}
2023-05-30 18:29:54 +08:00
$rel = sql_query ( " SELECT COUNT(*) FROM users u WHERE $whereStr " ) or sqlerr ( __FILE__ , __LINE__ );
2022-04-22 00:39:06 +08:00
$arro = mysql_fetch_row ( $rel );
$number = $arro [ 0 ];
2022-12-05 17:35:39 +08:00
$textSelectOnePlease = nexus_trans ( 'nexus.select_one_please' );
$enabledOptions = $statusOptions = '' ;
foreach ([ 'yes' , 'no' ] as $item ) {
$enabledOptions .= sprintf (
'<option value="%s"%s>%s</option>' ,
2025-05-13 02:27:58 +07:00
$item , isset ( $_GET [ 'enabled' ]) && $_GET [ 'enabled' ] == $item ? ' selected' : '' , strtoupper ( $item )
2022-12-05 17:35:39 +08:00
);
}
foreach ([ 'pending' => $lang_invite [ 'text_pending' ], 'confirmed' => $lang_invite [ 'text_confirmed' ]] as $name => $text ) {
$statusOptions .= sprintf (
'<option value="%s"%s>%s</option>' ,
2025-05-13 02:27:58 +07:00
$name , isset ( $_GET [ 'status' ]) && $_GET [ 'status' ] == $name ? ' selected' : '' , $text
2022-12-05 17:35:39 +08:00
);
}
2022-12-13 13:51:39 +08:00
2022-12-05 17:35:39 +08:00
$resetText = nexus_trans ( 'label.reset' );
2022-12-13 13:51:39 +08:00
$submitText = nexus_trans ( 'label.submit' );
2022-12-05 17:35:39 +08:00
$filterForm = <<< FORM
< div >
< form id = " filterForm " action = " { $_SERVER [ 'REQUEST_URI' ] } " method = " get " >
< input type = " hidden " name = " menu " value = " { $menuSelected } " />
< input type = " hidden " name = " id " value = " { $id } " />
< span > { $lang_invite [ 'text_enabled' ]} :</ span >
< select name = " enabled " >
< option value = " " >- { $textSelectOnePlease } -</ option >
{ $enabledOptions }
</ select >
& nbsp ; & nbsp ;
< span > { $lang_invite [ 'text_status' ]} :</ span >
< select name = " status " >
< option value = " " >- { $textSelectOnePlease } -</ option >
{ $statusOptions }
</ select >
& nbsp ; & nbsp ;
2022-12-13 13:51:39 +08:00
< input type = " submit " value = " { $submitText } " >
2022-12-05 17:35:39 +08:00
< input type = " button " id = " reset " value = " { $resetText } " >
</ form >
</ div >
FORM ;
$resetJs = <<< JS
jQuery ( " #reset " ) . on ( 'click' , function () {
jQuery ( " select[name=status] " ) . val ( '' )
jQuery ( " select[name=enabled] " ) . val ( '' )
})
JS ;
\Nexus\Nexus :: js ( $resetJs , 'footer' , false );
print ( $filterForm . " <table border=1 width=100% cellspacing=0 cellpadding=5> " .
2022-04-22 00:39:06 +08:00
" <form method=post action=takeconfirm.php?id= " . htmlspecialchars ( $id ) . " > " );
2022-04-22 01:00:59 +08:00
if ( ! $number ){
2022-04-22 00:39:06 +08:00
print ( " <tr><td colspan=7 align=center> " . $lang_invite [ 'text_no_invites' ] . " </tr> " );
} else {
2022-04-22 01:00:59 +08:00
list ( $pagertop , $pagerbottom , $limit ) = pager ( $pageSize , $number , " ?id= $id &menu= $menuSelected & " );
2025-06-09 02:29:15 +07:00
$haremAdditionFactor = ( float ) get_setting ( 'bonus.harem_addition' );
2023-05-30 18:29:54 +08:00
$ret = sql_query ( " SELECT u.id, u.username, u.email, u.uploaded, u.downloaded, u.status, u.warned, u.enabled, u.donor, u.email, u.seed_points_per_hour, u.seeding_torrent_count, u.seeding_torrent_size, u.last_announce_at, COUNT(t.id) AS torrent_count FROM users u LEFT JOIN torrents t ON t.owner = u.id WHERE $whereStr GROUP BY u.id $limit " ) or sqlerr ();
2022-04-22 01:00:59 +08:00
$num = mysql_num_rows ( $ret );
2022-04-22 00:39:06 +08:00
2022-12-05 17:35:39 +08:00
print ( " <tr>
< td class = colhead >< b > " . $lang_invite['text_username'] . " </ b ></ td >
< td class = colhead >< b > " . $lang_invite['text_email'] . " </ b ></ td >
< td class = colhead >< b > " . $lang_invite['text_enabled'] . " </ b ></ td >
2023-05-30 18:29:54 +08:00
< td class = colhead >< b > " . $lang_invite['text_uploaded_count'] . " </ b ></ td >
2022-12-05 17:35:39 +08:00
< td class = colhead >< b > " . $lang_invite['text_uploaded'] . " </ b ></ td >
< td class = colhead >< b > " . $lang_invite['text_downloaded'] . " </ b ></ td >
< td class = colhead >< b > " . $lang_invite['text_ratio'] . " </ b ></ td >
< td class = colhead >< b > " . $lang_invite['text_seed_torrent_count'] . " </ b ></ td >
< td class = colhead >< b > " . $lang_invite['text_seed_torrent_size'] . " </ b ></ td >
< td class = colhead title = { $lang_invite [ 'text_seed_torrent_bonus_per_hour_help' ]} >< b > " . $lang_invite['text_seed_torrent_bonus_per_hour'] . " </ b ></ td >
"
);
2022-08-05 16:13:19 +08:00
if ( $haremAdditionFactor > 0 ) {
print ( '<td class="colhead">' . $lang_invite [ 'harem_addition' ] . '</td>' );
}
2022-12-05 17:35:39 +08:00
print ( " <td class=colhead><b> " . $lang_invite [ 'text_seed_torrent_last_announce_at' ] . " </b></td> " );
2022-08-05 16:13:19 +08:00
print ( " <td class=colhead><b> " . $lang_invite [ 'text_status' ] . " </b></td> " );
if ( $CURUSER [ 'id' ] == $id || get_user_class () >= UC_SYSOP ) {
2022-04-22 00:39:06 +08:00
print ( " <td class=colhead><b> " . $lang_invite [ 'text_confirm' ] . " </b></td> " );
2022-08-05 16:13:19 +08:00
}
2022-04-22 00:39:06 +08:00
print ( " </tr> " );
for ( $i = 0 ; $i < $num ; ++ $i )
{
$arr = mysql_fetch_assoc ( $ret );
if ( $arr [ " downloaded " ] > 0 ) {
$ratio = number_format ( $arr [ " uploaded " ] / $arr [ " downloaded " ], 3 );
$ratio = " <font color= " . get_ratio_color ( $ratio ) . " > $ratio </font> " ;
} else {
if ( $arr [ " uploaded " ] > 0 ) {
$ratio = " Inf. " ;
}
else {
$ratio = " --- " ;
}
}
if ( $arr [ " status " ] == 'confirmed' )
$status = " <a href=userdetails.php?id= { $arr [ 'id' ] } ><font color=#1f7309> " . $lang_invite [ 'text_confirmed' ] . " </font></a> " ;
else
$status = " <a href=checkuser.php?id= { $arr [ 'id' ] } ><font color=#ca0226> " . $lang_invite [ 'text_pending' ] . " </font></a> " ;
2022-12-05 17:35:39 +08:00
print ( " <tr class=rowfollow>
2025-01-02 20:39:51 +08:00
< td class = rowfollow > " .get_username( $arr['id'] ). " </ td >
< td class = rowfollow > " . $arr['email'] . " </ td >
< td class = rowfollow > " . $arr['enabled'] . " </ td >
2023-05-30 18:29:54 +08:00
< td class = rowfollow > " . $arr['torrent_count'] . " </ td >
2025-01-02 20:39:51 +08:00
< td class = rowfollow > " . mksize( $arr['uploaded'] ) . " </ td >
< td class = rowfollow > " . mksize( $arr['downloaded'] ) . " </ td >
< td class = rowfollow > " . $ratio . " </ td >
< td class = rowfollow > " .number_format( $arr['seeding_torrent_count'] ). " </ td >
< td class = rowfollow > " .mksize( $arr['seeding_torrent_size'] ). " </ td >
< td class = rowfollow > " .number_format( $arr['seed_points_per_hour'] , 3). " </ td >
" );
2022-04-22 00:39:06 +08:00
2022-08-05 16:13:19 +08:00
if ( $haremAdditionFactor > 0 ) {
2025-06-09 02:29:15 +07:00
print ( " <td class=rowfollow> " . number_format ( floatval ( $arr [ 'seed_points_per_hour' ]) * $haremAdditionFactor , 3 ) . " </td> " );
2022-08-05 16:13:19 +08:00
}
2025-06-09 02:29:15 +07:00
print ( " <td class=rowfollow> { $arr [ 'last_announce_at' ] } </td> " );
2025-01-02 20:39:51 +08:00
print ( " <td class=rowfollow> { $status } </td> " );
2022-04-22 00:39:06 +08:00
if ( $CURUSER [ 'id' ] == $id || get_user_class () >= UC_SYSOP ){
2025-01-02 20:39:51 +08:00
print ( " <td class=rowfollow> " );
2022-04-22 00:39:06 +08:00
if ( $arr [ 'status' ] == 'pending' )
print ( " <input type= \" checkbox \" name= \" conusr[] \" value= \" " . $arr [ 'id' ] . " \" /> " );
print ( " </td> " );
}
print ( " </tr> " );
}
}
2020-12-26 01:42:23 +08:00
2022-04-22 00:39:06 +08:00
if ( $CURUSER [ 'id' ] == $id || get_user_class () >= UC_SYSOP )
{
$pendingcount = number_format ( get_row_count ( " users " , " WHERE status='pending' AND invited_by= { $CURUSER [ 'id' ] } " ));
2025-06-09 02:29:15 +07:00
$colSpan = 12 ;
2022-08-05 16:13:19 +08:00
if ( isset ( $haremAdditionFactor ) && $haremAdditionFactor > 0 ) {
$colSpan += 1 ;
}
2022-04-22 00:39:06 +08:00
if ( $pendingcount ){
print ( " <input type=hidden name=email value= { $arr [ 'email' ] } > " );
2022-08-05 16:13:19 +08:00
print ( " <tr><td colspan= $colSpan align=right><input type=submit style='height: 20px' value= " . $lang_invite [ 'submit_confirm_users' ] . " ></td></tr> " );
2021-05-11 02:44:43 +08:00
}
2022-04-22 00:39:06 +08:00
print ( " </form> " );
}
2022-04-22 15:38:09 +08:00
print ( " </table> " );
2025-05-13 02:27:58 +07:00
print ( " </td></tr></table> " . ( $pagertop ? ? '' ));
2022-12-13 13:51:39 +08:00
} elseif ( in_array ( $menuSelected , [ 'sent' , 'tmp' ])) {
$whereStr = " inviter = " . sqlesc ( $id );
if ( $menuSelected == 'sent' ) {
$whereStr .= " and invitee != '' " ;
} elseif ( $menuSelected == 'tmp' ) {
$whereStr .= " and invitee = '' and expired_at is not null " ;
}
$rul = sql_query ( " SELECT COUNT(*) FROM invites WHERE $whereStr " );
2022-04-22 00:39:06 +08:00
$arre = mysql_fetch_row ( $rul );
$number1 = $arre [ 0 ];
print ( " <table border=1 width=100% cellspacing=0 cellpadding=5> " );
2022-04-22 01:00:59 +08:00
if ( ! $number1 ){
2022-12-13 13:51:39 +08:00
print ( " <tr align=center><td colspan=6> " . $lang_functions [ 'text_none' ] . " </tr> " );
2022-04-22 00:39:06 +08:00
} else {
2022-04-22 01:00:59 +08:00
list ( $pagertop , $pagerbottom , $limit ) = pager ( $pageSize , $number1 , " ?id= $id &menu= $menuSelected & " );
2022-12-13 13:51:39 +08:00
$rer = sql_query ( " SELECT * FROM invites WHERE $whereStr $limit " ) or sqlerr ();
2022-04-22 01:00:59 +08:00
$num1 = mysql_num_rows ( $rer );
2022-04-22 00:39:06 +08:00
2023-01-05 18:29:31 +08:00
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> " );
if ( $menuSelected == 'sent' ) {
print ( " <td class='colhead'> " . $lang_invite [ 'text_hash_status' ] . " </td> " );
}
print " <td class='colhead'> " . $lang_invite [ 'text_invitee_user' ] . " </td> " ;
2022-12-13 13:51:39 +08:00
if ( $menuSelected == 'tmp' ) {
print ( " <td class='colhead'> " . $lang_invite [ 'text_expired_at' ] . " </td> " );
print ( " <td class='colhead'> " . nexus_trans ( 'label.created_at' ) . " </td> " );
}
print ( " </tr> " );
2022-04-22 00:39:06 +08:00
for ( $i = 0 ; $i < $num1 ; ++ $i )
{
$arr1 = mysql_fetch_assoc ( $rer );
2022-10-24 22:37:37 +08:00
$isHashValid = $arr1 [ 'valid' ] == \App\Models\Invite :: VALID_YES ;
$registerLink = '' ;
if ( $isHashValid ) {
$registerLink = sprintf ( ' <a href="signup.php?type=invite&invitenumber=%s" title="%s" target="_blank"><small>[%s]</small></a>' , $arr1 [ 'hash' ], $lang_invite [ 'signup_link_help' ], $lang_invite [ 'signup_link' ]);
}
2022-04-22 00:39:06 +08:00
$tr = " <tr> " ;
$tr .= " <td class=rowfollow> { $arr1 [ 'invitee' ] } </td> " ;
2022-10-24 22:37:37 +08:00
$tr .= sprintf ( '<td class="rowfollow">%s%s</td>' , $arr1 [ 'hash' ], $registerLink );
2022-04-22 00:39:06 +08:00
$tr .= " <td class=rowfollow> { $arr1 [ 'time_invited' ] } </td> " ;
2023-01-05 18:29:31 +08:00
if ( $menuSelected == 'sent' ) {
$tr .= " <td class=rowfollow> " . \App\Models\Invite :: $validInfo [ $arr1 [ 'valid' ]][ 'text' ] . " </td> " ;
}
2022-10-24 22:37:37 +08:00
if ( ! $isHashValid ) {
2022-04-22 00:39:06 +08:00
$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> " ;
}
2022-12-13 13:51:39 +08:00
if ( $menuSelected == 'tmp' ) {
$tr .= " <td class=rowfollow> { $arr1 [ 'expired_at' ] } </td> " ;
$tr .= " <td class=rowfollow> { $arr1 [ 'created_at' ] } </td> " ;
}
2022-04-22 00:39:06 +08:00
$tr .= " </tr> " ;
print ( $tr );
}
}
print ( " </table> " );
print ( " </td></tr></table> $pagertop " );
}
2020-12-26 01:42:23 +08:00
}
stdfoot ();
die ;
?>