<input type="checkbox" name="value" value="1"<?=UserPrefs::get('p_hidediscord', $User->id)?' checked':''?> <?=!$sameUser?' disabled':''?>> <span>Hide Discord server link from the sidebar</span> <?php if ($sameUser){ ?> <button class="save typcn typcn-tick green" disabled>Save</button> <?php } ?> </label> </form> </section> <section class="sessions"> <h2><?=$sameUser? Users::PROFILE_SECTION_PRIVACY_LEVEL['staff']:''?>Sessions</h2> <?php if (isset($CurrentSession) || !empty($Sessions)){ ?> <p>Below is a list of all the browsers <?=$sameUser?"you've":'this user has'?> logged in from.</p> <ul class="session-list"><?php if (isset($CurrentSession)) Users::renderSessionLi($CurrentSession,CURRENT); if (!empty($Sessions)){ foreach ($Sessions as $s) Users::renderSessionLi($s); } ?></ul> <p><button class="typcn typcn-arrow-back yellow" id="signout-everywhere">Sign out everywhere</button></p> <?php } else { ?> <p><?=$sameUser?'You are':'This user is'?>n't logged in anywhere.</p> <?php } ?> </section> <?php } if ($sameUser){ if (Permission::sufficient('member') && Permission::insufficient('staff')){ ?> <section id="verify-discord-identity"> <h2><?=$sameUser? Users::PROFILE_SECTION_PRIVACY_LEVEL['private']:''?>Verify identity on Discord server</h2> <p>If you're not yet part of the Club Members role on our Discord server you can use an automated mechanism to verify your identity. Press the button below, and a command will be displayed which you just need to send to any text channel on the server to have your identity verified.</p>