diff --git a/include/constants.php b/include/constants.php index a02c9c21..396c1bf1 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ " . ""); diff --git a/lang/chs/lang_invite.php b/lang/chs/lang_invite.php index 3c2ba11a..8dac3c80 100644 --- a/lang/chs/lang_invite.php +++ b/lang/chs/lang_invite.php @@ -48,6 +48,8 @@ $lang_invite = array 'std_only' => "只有", 'std_or_above_can_invite' => "及以上的用户才能发送邀请。", 'text_email_restriction_note' => "你只能发送邀请给以下邮箱:", + + 'harem_addition' => '后宫加成', ); ?> diff --git a/lang/cht/lang_invite.php b/lang/cht/lang_invite.php index 5b6ccd6f..27840ebc 100644 --- a/lang/cht/lang_invite.php +++ b/lang/cht/lang_invite.php @@ -48,6 +48,7 @@ $lang_invite = array 'std_only' => "只有", 'std_or_above_can_invite' => "及以上的用戶才能發送邀請。", 'text_email_restriction_note' => "你只能發送邀請給以下郵箱:", + 'harem_addition' => '後宮加成', ); ?> diff --git a/lang/en/lang_invite.php b/lang/en/lang_invite.php index 766b96ef..55710fa1 100644 --- a/lang/en/lang_invite.php +++ b/lang/en/lang_invite.php @@ -51,6 +51,7 @@ Best Regards, 'std_only' => "Only ", 'std_or_above_can_invite' => " or above can send invitation.", 'text_email_restriction_note' => "You could only send invitation to email from those domains: ", + 'harem_addition' => 'Harem addition', ); ?> diff --git a/public/checkuser.php b/public/checkuser.php index 75443942..643205e9 100644 --- a/public/checkuser.php +++ b/public/checkuser.php @@ -19,24 +19,24 @@ $r = @sql_query("SELECT * FROM users WHERE status = 'pending' AND id = ".sqlesc( $user = mysql_fetch_array($r) or bark($lang_checkuser['std_no_user_id']); if (get_user_class() < UC_MODERATOR) { - if ($user[invited_by] != $CURUSER[id]) + if ($user['invited_by'] != $CURUSER['id']) bark($lang_checkuser['std_no_permission']); } -if ($user["gender"] == "Male") $gender = "Male"; -elseif ($user["gender"] == "Female") $gender = "Female"; -elseif ($user["gender"] == "N/A") $gender = "N/A"; +if ($user["gender"] == "Male") $gender = 'Male'; +elseif ($user["gender"] == "Female") $gender = 'Female'; +elseif ($user["gender"] == "N/A") $gender = 'N/A'; -if ($user[added] == "0000-00-00 00:00:00" || $user['added'] == null) +if ($user['added'] == "0000-00-00 00:00:00" || $user['added'] == null) $joindate = 'N/A'; else $joindate = "$user[added] (" . get_elapsed_time(strtotime($user["added"])) . " ago)"; - + $res = sql_query("SELECT name,flagpic FROM countries WHERE id=$user[country] LIMIT 1") or sqlerr(); if (mysql_num_rows($res) == 1) { $arr = mysql_fetch_assoc($res); - $country = "\"$arr[name]\""; + $country = "\"$arr[name]\""; } stdhead($lang_checkuser['head_detail_for'] . $user["username"]); @@ -51,12 +51,12 @@ if (!$enabled) - += UC_MODERATOR AND $user[ip] != '') - print (""); +if (get_user_class() >= UC_MODERATOR AND $user['ip'] != '') + print (""); print(""); -print(""); +print(""); print(""); print("
>
>
".$lang_checkuser['row_ip']."$user[ip]
".$lang_checkuser['row_ip']."{$user['ip']}
"); stdfoot(); diff --git a/public/invite.php b/public/invite.php index cad23a93..7b18ee89 100644 --- a/public/invite.php +++ b/public/invite.php @@ -9,11 +9,9 @@ $type = unesc($_GET["type"] ?? ''); $menuSelected = $_REQUEST['menu'] ?? 'invitee'; $pageSize = 50; -registration_check('invitesystem',true,false); - function inviteMenu ($selected = "invitee") { global $lang_invite, $id, $CURUSER; - begin_main_frame(); + begin_main_frame("", false, "100%"); print ("