Changeset 636 for FOIAVistA/tag/r/KERNEL-XU-A4A7-USC-XG-XLF-XNOA-XPD-XQ-XVIR-ZI-ZOSF-ZOSV-ZT-ZU-%Z-XIP--XQAB--XUC--XUR--ZIN--ZTED/XUS.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/KERNEL-XU-A4A7-USC-XG-XLF-XNOA-XPD-XQ-XVIR-ZI-ZOSF-ZOSV-ZT-ZU-%Z-XIP--XQAB--XUC--XUR--ZIN--ZTED/XUS.m
r628 r636 1 XUS ;SFISC/STAFF - SIGNON ;2/13/07 14:44 2 ;;8.0;KERNEL;**16,26,49,59,149,180,265,337,419,434**;Jul 10, 1995;Build 6 1 XUS ;SFISC/STAFF - SIGNON ;3/19/07 09:15 2 ;;8.0;KERNEL;**16,26,49,59,149,180,265,337,419,437**;Jul 10, 1995;Build 22 3 ; Modified from FOIA VISTA, 4 ; Copyright (C) 2007 WorldVistA 5 ; 6 ; This program is free software; you can redistribute it and/or modify 7 ; it under the terms of the GNU General Public License as published by 8 ; the Free Software Foundation; either version 2 of the License, or 9 ; (at your option) any later version. 10 ; 11 ; This program is distributed in the hope that it will be useful, 12 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ; GNU General Public License for more details. 15 ; 16 ; You should have received a copy of the GNU General Public License 17 ; along with this program; if not, write to the Free Software 18 ; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 3 19 ;Sign-on message numbers are 30810.51 to 30810.99 4 20 S U="^" D INTRO^XUS1A() … … 80 96 . Q 81 97 Q A 82 ; 98 ; 83 99 CHECKAV(X1) ;Check A/V code return DUZ or Zero. (Called from XUSRB) 84 100 N %,%1,X,Y,IEN,DA,DIK … … 90 106 . Q 91 107 ;End CCOW 92 S X1=$ $UP(X1) S:X1[":" XUTT=1,X1=$TR(X1,":")108 S X1=$S($$GET^XPAR("SYS","XU VC CASE SENSITIVE"):$$UP($P(X1,";",1))_";"_$P(X1,";",2),1:$$UP(X1)) S:X1[":" XUTT=1,X1=$TR(X1,":") ; Allow case sensitive for VOE 93 109 S X=$P(X1,";") Q:X="^" -1 S:XUF %1="Access: "_X 94 110 Q:X'?1.20ANP 0 95 S X=$$EN^XUSHSH(X) I '$D(^VA(200,"A",X)) D LBAV Q 0 111 S X=$$EN^XUSHSH(X) I '$D(^VA(200,"A",X)) D LBAV Q 0 ; Case insensitive for Access Code for VOE 96 112 S %1="",IEN=$O(^VA(200,"A",X,0)),XUF(.3)=IEN D USER(IEN) 97 113 S X=$P(X1,";",2) S:XUF %1="Verify: "_X S X=$$EN^XUSHSH(X) … … 121 137 N % 122 138 S U="^",XUEON=^%ZOSF("EON"),XUEOFF=^("EOFF") 123 D XUVOL,XOPT S DUZ("LANG")=$P(XOPT,U,7) ;S:$P(XUVOL,U,6)="y" XRTL=XUCI_","_XQVOL139 D XUVOL,XOPT S DUZ("LANG")=$P(XOPT,U,7) S:$P(XUVOL,U,6)="y" XRTL=XUCI_","_XQVOL 124 140 K ^XUTL("XQ",$J) S XUF=0,XUDEV=0,DUZ=0,DUZ(0)="@",IOS=0,ION="" 125 141 I FLAG S %ZIS="L",IOP="HOME" D ^%ZIS Q:POP 126 S XUDEV=IOS,XUIOP=ION 142 S XUDEV=IOS,XUIOP=ION D:$D(XRTL) T0^%ZOSV 127 143 D GETFAC^XUS3($G(IO("IP"))) 128 144 S %=$P(XOPT,U,14) … … 130 146 . S XUF=(%["R")+1,XUF(.1)="",XUF(.2)=0,XUF(.3)=0 131 147 . I %["D" S:$D(^XTV(8989.3,1,4.33,"B",XUDEV))[0 XUF=0 132 S DILOCKTM=+$G(^DD("DILOCKTM"),1) ;p434 IA#4909133 148 Q 134 149 SET2() ;EF. Return error code (also called from XUSRB) … … 142 157 S DTIME=600 143 158 I '$P(XOPT,U,11),$D(^%ZIS(1,XUDEV,90)),^(90)>2800000,^(90)'>DT Q 8 159 I $D(XRT0) S XRTN="XUS" D T1^%ZOSV 144 160 Q 0 145 161 ; … … 148 164 I $P(XUSER(1.1),U,5),$P(XUSER(1.1),U,5)>XUNOW S XUM(0)=$$FMTE^XLFDT($P(XUSER(1.1),U,5),"2PM") Q 18 ;User locked until 149 165 I $P(XUSER(0),U,11),$P(XUSER(0),U,11)'>DT Q 11 ;Access Terminated 150 I $D(DUZ("ASH")) Q 0 ;If auto handle, Allow to sign-on p434151 166 I $P(XUSER(0),U,7) Q 5 ;Disuser flag set 152 I '$L($P(XUSER(1),U,2)) Q 21 ; p419, p434167 I '$L($P(XUSER(1),U,2)) Q 21 ;419 153 168 Q 0 154 169 ;
Note:
See TracChangeset
for help on using the changeset viewer.