Changeset 662
- Timestamp:
- Nov 13, 2011, 4:25:35 PM (14 years ago)
- Location:
- trunk/guitools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrx
r661 r662 98 98 #append U:\Develop\Samba\trunk\guitools\shared\textini.vrs 99 99 #append U:\Develop\Samba\trunk\guitools\shared\usercredmem.vrs 100 #append U:\Develop\Samba\trunk\guitools\shared\rxrpclib.vrs 100 101 */ 101 102 return … … 1602 1603 */ 1603 1604 CN_CONDET_Click: 1604 ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText"))1605 /* ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText")) */ 1605 1606 return 1606 1607 … … 1642 1643 CN_CURRENT_Click: 1643 1644 IF options.!debug == 1 THEN SAY time()' CN_CURRENT_Click started' 1644 ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText"))1645 /* ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText")) */ 1645 1646 1646 1647 /* Herwig B. */ … … 1653 1654 options.currentdata = data 1654 1655 1655 ok = VRset("DT_StatusBar","Caption", data' - 'VRGet("Main", "HintText"))1656 /* ok = VRset("DT_StatusBar","Caption", data' - 'VRGet("Main", "HintText")) */ 1656 1657 1657 1658 PARSE VAR data p_node ';' p_mounts ';' p_string … … 1773 1774 1774 1775 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 1 1775 1776 /* CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 1 1776 1777 CALL VRSet 'MENU_CONTEXT_SEP2', 'Visible', 1 1777 CALL VRSet 'MENU_CONTEXT_SEP3', 'Visible', 1 1778 CALL VRSet 'MENU_CONTEXT_SEP3', 'Visible', 1 */ 1778 1779 CALL VRSet 'Menu_Context_Open_Default', "Visible", 1 1779 1780 … … 1797 1798 CALL VRSet 'MENU_CONTEXT_DETACH', 'Visible', 1 1798 1799 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 1 1799 CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 1 1800 /* CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 1 */ 1800 1801 CALL VRSet 'MENU_CONTEXT_DETACH_ALL', 'Visible', 1 1801 CALL VRSet 'MENU_CONTEXT_SEP2', 'Visible', 1 1802 CALL VRSet 'MENU_CONTEXT_SEP3', 'Visible', 1 1802 /* CALL VRSet 'MENU_CONTEXT_SEP2', 'Visible', 1 */ 1803 /* CALL VRSet 'MENU_CONTEXT_SEP3', 'Visible', 1 */ 1803 1804 END 1804 1805 ELSE DO … … 1806 1807 CALL VRSet 'MENU_CONTEXT_DETACH', 'Visible', 0 1807 1808 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 0 1808 CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 0 1809 /* CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 0 */ 1809 1810 CALL VRSet 'MENU_CONTEXT_DETACH_ALL', 'Visible', 0 1810 CALL VRSet 'MENU_CONTEXT_SEP2', 'Visible', 0 1811 CALL VRSet 'MENU_CONTEXT_SEP3', 'Visible', 0 1811 /* CALL VRSet 'MENU_CONTEXT_SEP2', 'Visible', 0 */ 1812 /* CALL VRSet 'MENU_CONTEXT_SEP3', 'Visible', 0 */ 1812 1813 END 1813 1814 … … 1979 1980 1980 1981 ok = VRSet("EF_DIRECTORY","Value", "") 1981 1982 window = VRLoadSecondary( "SW_MOUNTPOINT", "W" )1983 1984 if VRGet("CB_DRIVES","Value") = "" then return1985 1982 end 1986 1983 else do 1987 1988 1984 TargetString = VRMethod(trgCtn, "GetRecordAttr", trgRec, "Caption") 1989 1985 … … 1998 1994 ok = VRSet("CB_DRIVES","Value", left(TargetString,2)) 1999 1995 ok = VRSet("EF_DIRECTORY","Value", substr(TargetString,4)) 2000 window = VRLoadSecondary( "SW_MOUNTPOINT", "W" ) 2001 if VRGet("CB_DRIVES","Value") = "" then return 2002 end 1996 end 1997 1998 window = VRLoadSecondary( "SW_MOUNTPOINT", "W" ) 1999 if VRGet("CB_DRIVES","Value") = "" then return 2000 2003 2001 window = VRLoadSecondary( "SW_LOGIN", "W" ) 2004 2002 if credentials.!entered = 1 then call PB_MOUNT_CLICK … … 2013 2011 CN_SMBTREE_Click: 2014 2012 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_Click started' 2015 ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText"))2013 /* ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText")) */ 2016 2014 2017 2015 call _dropdeprecated … … 3729 3727 credentials.!entered = 1 3730 3728 3729 ok = _rpcqueryuser(p_server, VRGet("EF_USER1","Value"), VRGet("EF_PASSWORD1","Value"), VRGet("EF_USER1","Value")) 3730 3731 LogonRetVal = word(ok,1) 3732 3733 if LogonRetVal = "1" then do 3734 Msg.Type ="I" 3735 ok = VRSet("DT_STATUSBAR","Caption", "Welcome "rpc.queryuser.FULL_NAME"!") 3736 end 3737 else do 3738 Msg.Type ="E" 3739 CALL VRMessage 'Main', Credentials.!username" at "p_server": "rpc.queryuser.LOGONSTATUS, "Login failure", Msg.Type 3740 end 3741 3731 3742 call SW_LOGIN_Close 3732 3743 RETURN … … 4523 4534 when pos("PDC",VRMethod("CN_smbtree", "GetFieldData", SMBObj.rh, MBFH)) > 0 then LoginIcon = "#63:PMWP.DLL" /* icons.!pdc */ 4524 4535 when SMBObj.udatatype = "WORKGROUP" then LoginIcon = SMBObj.Icon 4525 when SMBObj.udatatype = "SERVER" then LoginIcon = SMBObj.Icon 4536 when SMBObj.udatatype = "SERVER" then LoginIcon = SMBObj.Icon 4537 when SMBObj.udatatype = "DISK" then do 4538 if pos("PDC",VRMethod("CN_smbtree", "GetFieldData", SMBObj.parentrh, MBFH)) > 0 4539 then LoginIcon = "#63:PMWP.DLL" /* icons.!pdc */ 4540 else LoginIcon = "#35:PMWP.DLL" /* icons.!pdc */ 4541 end 4526 4542 otherwise LoginIcon = "#35:PMWP.DLL" /* icons.!machine_awake */ 4527 4543 end … … 4595 4611 ok = VRMethod("EF_DIRECTORY1","AddString",p_share) 4596 4612 4597 IF advanced.!easupport \= "" THEN ok = VRSet("CB_EAS1","Set", advanced.!easupport)4598 IF advanced.!readonly \= "" THEN ok = VRSet("CB_READONLY1","Set", advanced.!readonly)4599 IF advanced.!alwaysmp \= "" THEN ok = VRSet("CB_ALWAYSMP1","Set", advanced.!alwaysmp)4613 IF advanced.!easupport \= "" THEN ok = VRSet("CB_EAS1", "Set", advanced.!easupport) 4614 IF advanced.!readonly \= "" THEN ok = VRSet("CB_READONLY1", "Set", advanced.!readonly) 4615 IF advanced.!alwaysmp \= "" THEN ok = VRSet("CB_ALWAYSMP1", "Set", advanced.!alwaysmp) 4600 4616 IF advanced.!cachetimeout \= "" THEN ok = VRSet("SPIN_CACHETIMEOUT1", "Value", advanced.!cachetimeout) 4601 4617 IF advanced.!cachelistings \= "" THEN ok = VRSet("SPIN_CACHELISTINGS1","Value", advanced.!cachelistings) -
trunk/guitools/shared/rxrpclib.vrs
r638 r662 1 1 /* REXX Function Library for RPC calls */ 2 2 3 /* Currently implemented functions: 4 _rpcenumdomgroups(server,username,password) 5 _rpcenumdomusers(server,username,password) 6 _rpcenumprinters(server,username,password) 7 _rpcnetshareenum(server,username,password) 8 _rpcnetsharegetinfo(server,username,password,share) 9 _rpcquerygroupmem(server,username,password,grouprid) 10 _rpcqueryuser(server,username,password,userrid) 11 */ 3 /* Currently implemented functions: */ 4 /* _rpcenumdomgroups(server,username,password) */ 5 /* _rpcenumdomusers(server,username,password) */ 6 /* _rpcenumprinters(server,username,password) */ 7 /* _rpcnetshareenum(server,username,password) */ 8 /* _rpcnetsharegetinfo(server,username,password,share) */ 9 /* _rpcquerygroupmem(server,username,password,grouprid) */ 10 /* _rpcqueryuser(server,username,password,userrid) */ 12 11 13 12 /*:VRX _rpcenumdomgroups 14 13 */ 15 _rpcenumdomgroups: procedure expose rpc. samba. options. 14 _rpcenumdomgroups: procedure expose rpc. samba. options. debuglevel 16 15 IF options.!debug == 1 THEN SAY time()" _rpcenumdomgroups() started" 17 16 server = arg(1) … … 19 18 password = arg(3) 20 19 21 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomgroups" '22 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomgroups" >'samba.!msg20 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomgroups" 'debuglevel' ' 21 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomgroups" 'debuglevel' >'samba.!msg 23 22 24 23 rpc.enumdomgroups. = "" … … 64 63 IF options.!debug == 1 THEN SAY time()" _rpcenumdomgroups() done, "retval" "rpc.enumdomgroups.LOGONSTATUS 65 64 return retval 65 66 66 /*:VRX _rpcenumdomusers 67 67 */ 68 _rpcenumdomusers: procedure expose rpc. samba. options. 68 _rpcenumdomusers: procedure expose rpc. samba. options. debuglevel 69 69 IF options.!debug == 1 THEN SAY time()" _rpcenumdomusers() started" 70 70 server = arg(1) … … 72 72 password = arg(3) 73 73 74 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomusers" '75 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomusers" >'samba.!msg74 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomusers" 'debuglevel' ' 75 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomusers" 'debuglevel' >'samba.!msg 76 76 77 77 rpc.enumdomusers. = "" … … 120 120 /*:VRX _rpcenumprinters 121 121 */ 122 _rpcenumprinters: procedure expose rpc. samba. options. 122 _rpcenumprinters: procedure expose rpc. samba. options. debuglevel 123 123 IF options.!debug == 1 THEN SAY time()" _rpcenumprinters() started" 124 124 server = arg(1) … … 126 126 password = arg(3) 127 127 128 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumprinters" '129 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumprinters" >'samba.!msg128 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumprinters" 'debuglevel' ' 129 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumprinters" 'debuglevel' >'samba.!msg 130 130 131 131 rpc.enumprinters. = "" … … 168 168 /*:VRX _rpcnetshareenum 169 169 */ 170 _rpcnetshareenum: procedure expose rpc. samba. options. 170 _rpcnetshareenum: procedure expose rpc. samba. options. debuglevel 171 171 IF options.!debug == 1 THEN SAY time()" _rpcnetshareenum() started" 172 172 server = arg(1) … … 174 174 password = arg(3) 175 175 176 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="netshareenum" '177 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="netshareenum" >'samba.!msg176 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="netshareenum" 'debuglevel' ' 177 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="netshareenum" 'debuglevel' >'samba.!msg 178 178 179 179 rpc.netshareenum. = "" … … 217 217 /*:VRX _rpcnetsharegetinfo 218 218 */ 219 _rpcnetsharegetinfo: procedure expose rpc. samba. options. 219 _rpcnetsharegetinfo: procedure expose rpc. samba. options. debuglevel 220 220 IF options.!debug == 1 THEN SAY time()" _rpcnetsharegetinfo() started" 221 221 server = arg(1) … … 224 224 share = arg(4) 225 225 226 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="netsharegetinfo 'share'" '227 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="netsharegetinfo 'share'" >'samba.!msg226 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="netsharegetinfo 'share'" 'debuglevel' ' 227 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="netsharegetinfo 'share'" 'debuglevel' >'samba.!msg 228 228 229 229 rpc.netsharegetinfo. = "" … … 268 268 /*:VRX _rpcquerygroupmem 269 269 */ 270 _rpcquerygroupmem: procedure expose rpc. samba. options. 270 _rpcquerygroupmem: procedure expose rpc. samba. options. debuglevel 271 271 IF options.!debug == 1 THEN SAY time()" _rpcquerygroupmem() started" 272 272 server = arg(1) … … 275 275 grouprid = arg(4) 276 276 277 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="querygroupmem 'grouprid'" '278 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="querygroupmem 'grouprid'" >'samba.!msg277 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="querygroupmem 'grouprid'" 'debuglevel' ' 278 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="querygroupmem 'grouprid'" 'debuglevel' >'samba.!msg 279 279 280 280 rpc.querygroupmem. = "" … … 322 322 /*:VRX _rpcqueryuser 323 323 */ 324 _rpcqueryuser: procedure expose rpc. samba. options. 324 _rpcqueryuser: procedure expose rpc. samba. options. debuglevel 325 325 IF options.!debug == 1 THEN SAY time()" _rpcqueryuser() started" 326 326 server = arg(1) … … 329 329 userrid = arg(4) 330 330 331 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="queryuser 'userrid'" '332 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="queryuser 'userrid'" >'samba.!msg331 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="queryuser 'userrid'" 'debuglevel' ' 332 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="queryuser 'userrid'" 'debuglevel' >'samba.!msg 333 333 334 334 rpc.queryuser. = "" … … 375 375 /*:VRX _rpcsrvinfo 376 376 */ 377 _rpcsrvinfo: 377 _rpcsrvinfo: procedure expose rpc. samba. options. debuglevel 378 378 IF options.!debug == 1 THEN SAY time()" _rpcsrvinfo() started" 379 379 server = arg(1) … … 381 381 password = arg(3) 382 382 383 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="srvinfo" '384 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="srvinfo" >'samba.!msg383 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="srvinfo" 'debuglevel' ' 384 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="srvinfo" 'debuglevel' >'samba.!msg 385 385 386 386 rpc.srvinfo. = ""
Note:
See TracChangeset
for help on using the changeset viewer.