$numBoxcar = $edUserId ? simple_decrypt($user->option->boxcar['num']) : ''; $numSysOpt = $edUserId ? $user->option['mode'] : 'A'; $numNotifSys = $edUserId ? $user->option['sys'] : ''; $userCis = $edUserId ? simple_decrypt($user->auth['cis']) : ''; $userEml = $edUserId ? simple_decrypt($user->auth['eml']) : ''; $userGroup = $edUserId ? $user->xpath('..')[0] : ''; $userGroupName = $edUserId ? $userGroup->getName() : ''; $matchUser = $pageUser == $userCis ? true : false; if (\filter_input(\INPUT_GET, 'move') == 'Y') { $moveway = \filter_input(\INPUT_POST, 'action'); if ($moveway == 'up') { swapUser(\filter_input(\INPUT_POST, 'userPre'), $edUserId); $xml->asXML("list.xml"); } if ($moveway == 'down') { swapUser($edUserId, \filter_input(\INPUT_POST, 'userFol')); $xml->asXML("list.xml"); } $userP1 = $user->xpath("preceding-sibling::user[1]")[0]; $userP1name = $userP1['sec'] ?: $userP1['last'] . ", " . $userP1['first']; $userF1 = $user->xpath('following-sibling::user[1]')[0]; $userF1name = $userF1['sec'] ?: $userF1['last'] . ", " . $userF1['first']; ?> <div data-role="page" id="move" data-dialog="true"> <div data-role="header"> <h4 style="text-align: center">Reorder users</h4> <a href="back.php" class="ui-btn ui-shadow ui-btn-icon-left ui-icon-delete ui-btn-icon-notext ui-corner-all" data-ajax="false">go back</a> </div> <div data-role="content"> <ul data-role="listview">
} if ($numNotifSys && $numNotifSys !== 'Choose notification...') { $user->option['sys'] = $numNotifSys; $show .= compare('System', $origXml->option['sys'], $numNotifSys); } else { unset($user->option['sys']); } if ($userCis) { $user->auth['cis'] = simple_encrypt($userCis); } if ($userEml) { $user->auth['eml'] = simple_encrypt($userEml); } foreach ($groupThis->user as $userSort) { if (strcasecmp($userSort['last'] . ', ' . $userSort['first'], $nameL . ', ' . $nameF) > 0) { swapUser($userSort['uid'], $user['uid']); break; } } foreach ($groupfull as $grp => $grpStr) { $groups->{$grp} ?: $groups->addChild($grp); $domgrp = $groups->{$grp}; $dom_All = dom_import_simplexml($groups[0]); $dom_grp = dom_import_simplexml($domgrp[0]); $dom_new = $dom_All->appendChild($dom_grp); simplexml_import_dom($dom_new); } if (strlen($show)) { mail(simple_decrypt($user->auth['eml']), "Heart Center Paging info changes to " . simple_decrypt($user->auth['cis']), "Changes were saved to your user account by " . filter_input(INPUT_COOKIE, 'pageuser') . ". The current settings are:\r\n" . $show, "Bcc: pedcards@uw.edu"); logger($userauth . ' changed ' . simple_decrypt($user->auth['cis']) . ': ' . $show); }