unset($_SESSION['_REQUEST_vars']['modfunc']); if (User('STAFF_ID') == $_REQUEST['staff_id']) { unset($_openSIS['User']); echo '<script language=JavaScript>parent.side.location="' . $_SESSION['Side_PHP_SELF'] . '?modcat="+parent.side.document.forms[0].modcat.value;</script>'; } } $extra['SELECT'] = ',LAST_LOGIN'; $extra['columns_after'] = array('LAST_LOGIN' => 'Last Login'); $extra['functions'] = array('LAST_LOGIN' => 'makeLogin'); if (basename($_SERVER['PHP_SELF']) != 'index.php') { if ($_REQUEST['staff_id'] == 'new') { DrawBC("Users > Add a User"); } else { DrawBC("Users > " . ProgramTitle()); } SearchStaff('staff_id', $extra); } else { DrawHeader('Create Account'); } if ($_REQUEST['modfunc'] == 'delete' && basename($_SERVER['PHP_SELF']) != 'index.php' && AllowEdit()) { # ------------------------------------ For Certification Start ------------------------------------------- # if (DeletePrompt('certification')) { DBQuery("DELETE FROM staff_certification WHERE STAFF_CERTIFICATION_ID='{$_REQUEST['certification_id']}'"); unset($_REQUEST['modfunc']); $_REQUEST['certification_id'] = 'new'; } } if ((UserStaffID() || $_REQUEST['staff_id'] == 'new') && (basename($_SERVER['PHP_SELF']) != 'index.php' || !$_REQUEST['staff']['USERNAME']) && $_REQUEST['modfunc'] != 'delete' && $_SESSION['fn'] != 'user' && $_REQUEST['modfunc'] != 'remove') { if ($_REQUEST['modfunc'] != 'delete' || $_REQUEST['delete_ok'] == '1') { if ($_REQUEST['staff_id'] != 'new') { $sql = "SELECT * FROM staff WHERE STAFF_ID='" . UserStaffID() . "'";
# See license.txt. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # #*************************************************************************************** include '../../Redirect_modules.php'; DrawBC("Users > " . ProgramTitle()); include 'Menu.php'; if (!UserStaffID()) { SearchStaff('staff_id'); } //else //{ // $profile = DBGet(DBQuery("SELECT PROFILE FROM STAFF WHERE STAFF_ID='".UserStaffID()."'")); // if(!$profile[1]['PROFILE'] || $profile[1]['PROFILE']=='none') // { // unset($_SESSION['staff_id']); // echo '<script language=JavaScript>parent.side.location="'.$_SESSION['Side_PHP_SELF'].'?modcat="+parent.side.document.forms[0].modcat.value; // Search('staff_id'); // } //} $user_id = UserStaffID(); $profile = DBGet(DBQuery("SELECT PROFILE FROM staff WHERE STAFF_ID='{$user_id}'")); $xprofile = $profile[1]['PROFILE']; $exceptions_RET = DBGet(DBQuery("SELECT MODNAME,CAN_USE,CAN_EDIT FROM staff_exceptions WHERE USER_ID='{$user_id}'"), array(), array('MODNAME'));