getSitee($session->uid);
if (count($sitee) == 0) {
// textul de aici spunea tot "You have no sitters", desi lista arata
// conturile pe care esti TU sitter - doua lucruri diferite
echo ""
. (defined('SITTER_P_NOT_SITTING') ? SITTER_P_NOT_SITTING
: 'You are not a sitter on any account.')
. "";
} else {
foreach ($sitee as $sit) {
/**
* Ce drepturi mi-a dat ACEST proprietar.
*
* getSitee() intoarce randul lui, deci ne uitam pe care dintre cele
* doua sloturi stam si citim masca potrivita. Daca serverul inca nu are
* coloanele (migrarea nerulata), cadem pe SITTER_PERM_ALL - exact ce
* face si backendul, deci afisajul nu minte.
*/
$myMask = SITTER_PERM_ALL;
if ((int) ($sit['sit1'] ?? 0) === (int) $session->uid) {
$myMask = isset($sit['sit1_perm']) ? (int) $sit['sit1_perm'] : SITTER_PERM_ALL;
} else if ((int) ($sit['sit2'] ?? 0) === (int) $session->uid) {
$myMask = isset($sit['sit2_perm']) ? (int) $sit['sit2_perm'] : SITTER_PERM_ALL;
}
echo "";
echo " ";
echo sitterPermView($myMask, $sitterPermList);
echo " ";
}
}
?>
|