Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorSessionsSettingsPanel.php
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | $handles = id(new PhabricatorHandleQuery()) | ||||
| ->execute(); | ->execute(); | ||||
| $current_key = PhabricatorHash::digest( | $current_key = PhabricatorHash::digest( | ||||
| $request->getCookie(PhabricatorCookies::COOKIE_SESSION)); | $request->getCookie(PhabricatorCookies::COOKIE_SESSION)); | ||||
| $rows = array(); | $rows = array(); | ||||
| $rowc = array(); | $rowc = array(); | ||||
| foreach ($sessions as $session) { | foreach ($sessions as $session) { | ||||
| if ($session->getSessionKey() == $current_key) { | $is_current = phutil_hashes_are_identical( | ||||
| $session->getSessionKey(), | |||||
| $current_key); | |||||
| if ($is_current) { | |||||
| $rowc[] = 'highlighted'; | $rowc[] = 'highlighted'; | ||||
| $button = phutil_tag( | $button = phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'class' => 'small grey button disabled', | 'class' => 'small grey button disabled', | ||||
| ), | ), | ||||
| pht('Current')); | pht('Current')); | ||||
| } else { | } else { | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||