- Timestamp:
- Aug 18, 2017, 11:05:26 AM (8 years ago)
- Location:
- trunk/guitools/smbmon
- Files:
-
- 24 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/rc/lang/smbmon_de.mkm
r990 r1036 13 13 SMM0009I: Keines 14 14 ; Main window UI 15 SMM0010I: ~S peichern15 SMM0010I: ~Sichern 16 16 SMM0011I: ~Erneuern 17 17 SMM0012I: ~Beenden … … 26 26 SMM0021I: Die Leute hinter Samba Server fr OS/2 27 27 SMM0022I: TDB Dateien prfen 28 SMM0023 ?:28 SMM0023I: Passwort 29 29 SMM0024I: Einstellungen 30 30 SMM0025I: Erneuern alle … … 67 67 SMM0059I: Die Netzwerkumgebung dieses Servers anzeigen. 68 68 SMM0060I: Die Einstellungen fr dieses Programm verwalten. 69 SMM0061 ?:70 SMM0062 ?:71 SMM0063 ?:72 SMM0064 ?:73 SMM0065 ?:74 SMM0066 ?:75 SMM0067 ?:76 SMM0068 ?:77 SMM0069 ?:69 SMM0061I: Den Server starten 70 SMM0062I: Den Server stoppen 71 SMM0063I: Den Server neu starten 72 SMM0064I: Die Konfigurationsdatei smb.conf neu laden 73 SMM0065I: Serverlaufzeit 74 SMM0066I: bersicht ber laufende Serverprozesse 75 SMM0067I: bersicht ber angemeldete Benutzer 76 SMM0068I: bersicht ber geffnete Dateien 77 SMM0069I: bersicht ber benutzte Freigaben 78 78 ;Service Context Menu 79 79 SMM0070I: Freigabe schlieáen … … 84 84 SMM0075I: Freigabe "%1" wirklich schlieáen? 85 85 SMM0076I: Freigabe "%1" geschlossen. 86 SMM0077 ?:87 SMM0078 ?:88 SMM0079 ?:86 SMM0077I: Datei- und Drucker-Serverdienst 87 SMM0078I: NETBIOS-Namen-Serverdienst 88 SMM0079I: Name Service Switch Dienst 89 89 ; Users context menu 90 90 SMM0080I: Mitteilung senden … … 140 140 SMM0129?: 141 141 ; User container columns 142 SMM0130I: P ID142 SMM0130I: Prozess ID 143 143 SMM0131I: Benutzer 144 144 SMM0132I: Gruppe -
trunk/guitools/smbmon/rc/lang/smbmon_en.mkm
r990 r1036 26 26 SMM0021I: Samba Server for OS/2 is brought to you by 27 27 SMM0022I: Check TDB files 28 SMM0023I: 28 SMM0023I: Password 29 29 SMM0024I: Settings 30 30 SMM0025I: Refresh every … … 67 67 SMM0059I: Show LAN ressources (has to be refreshed manually as it takes some time to complete.) 68 68 SMM0060I: Configurable settings for this program. 69 SMM0061 ?:70 SMM0062 ?:71 SMM0063 ?:72 SMM0064 ?:73 SMM0065 ?:74 SMM0066 ?:75 SMM0067 ?:76 SMM0068 ?:77 SMM0069 ?:69 SMM0061I: Start the server 70 SMM0062I: Stop the server 71 SMM0063I: Restart the server 72 SMM0064I: Reload the configurations file smb.conf 73 SMM0065I: Server uptime 74 SMM0066I: Overview of running server processes 75 SMM0067I: Overview of connected users 76 SMM0068I: Overview of opened files 77 SMM0069I: Overview of used shares 78 78 ;Service Context menu 79 79 SMM0070I: Close share … … 84 84 SMM0075I: Really close share "%1"? 85 85 SMM0076I: Closed share "%1". 86 SMM0077 ?:87 SMM0078 ?:88 SMM0079 ?:86 SMM0077I: File and printer server 87 SMM0078I: NETBIOS name sserver 88 SMM0079I: Name Service Switch daemon 89 89 ; User Context menu 90 90 SMM0080I: Send message -
trunk/guitools/smbmon/rc/lang/smbmon_es.mkm
r990 r1036 26 26 SMM0021I: Servidor Samba para OS/2 proporcionado por 27 27 SMM0022I: Comprobar los archivos TDB 28 SMM0023I: 28 SMM0023I: Contrase€a 29 29 SMM0024I: Preferencias 30 30 SMM0025I: Actualizar cada … … 67 67 SMM0059I: Mostrar los recursos de la LAN (debe de ser actualizado manualmente y requiere algo de tiempo para completarse.) 68 68 SMM0060I: Preferencias configurables en este programa. 69 SMM0061 ?:70 SMM0062 ?:71 SMM0063 ?:72 SMM0064 ?:73 SMM0065 ?:74 SMM0066 ?:75 SMM0067 ?:76 SMM0068 ?:77 SMM0069 ?:69 SMM0061I: Iniciar el servidor 70 SMM0062I: Detener el servidor 71 SMM0063I: Reiniciar el servidor 72 SMM0064I: Cargar smb.conf de nuevo 73 SMM0065I: Tiempo de actividad del servidor 74 SMM0066I: Visi¢n general de los procesos del servidor en ejecuci¢n 75 SMM0067I: Visi¢n general de los usuarios registrados 76 SMM0068I: Descripci¢n general de los archivos abiertos 77 SMM0069I: Visi¢n general de los lanzamientos usados 78 78 ;Service Context menu 79 79 SMM0070I: Cerrar recurso compartido … … 84 84 SMM0075I: šCerrar realmente el recurso compartido "%1"? 85 85 SMM0076I: Recurso compartido "%1" cerrado. 86 SMM0077 ?:87 SMM0078 ?:88 SMM0079 ?:86 SMM0077I: File and printer server 87 SMM0078I: NETBIOS name sserver 88 SMM0079I: Name Service Switch daemon 89 89 ; User Context menu 90 90 SMM0080I: Enviar mensaje -
trunk/guitools/smbmon/rc/lang/smbmon_fr.mkm
r990 r1036 28 28 SMM0021I: Serveur Samba pour OS/2 vous est propos par 29 29 SMM0022I: Vrifier fichiers TDB 30 SMM0023I: 30 SMM0023I: Mot de passe 31 31 SMM0024I: Paramtres 32 32 SMM0025I: Actualiser toutes les … … 69 69 SMM0059I: Affichage des ressources LAN (doit tre actualis manuellement tant donn le temps de traitement !) 70 70 SMM0060I: Paramtres configurables de ce programme. 71 SMM0061 ?:72 SMM0062 ?:73 SMM0063 ?:74 SMM0064 ?:75 SMM0065 ?:76 SMM0066 ?:77 SMM0067 ?:78 SMM0068 ?:79 SMM0069 ?:71 SMM0061I: Dmarrez le serveur 72 SMM0062I: Arrtez le serveur 73 SMM0063I: Redmarrez le serveur 74 SMM0064I: Recharger le fichier de configuration smb.conf 75 SMM0065I: Temps de disponibilit du serveur 76 SMM0066I: Vue d'ensemble des processus du serveur en cours 77 SMM0067I: Vue d'ensemble des utilisateurs connects 78 SMM0068I: Vue d'ensemble des fichiers ouverts 79 SMM0069I: Aperu des versions utilises 80 80 ;Service Context menu 81 81 SMM0070I: Fermeture de partage … … 86 86 SMM0075I: Voulez-vous rellement fermer le partage "%1" ? 87 87 SMM0076I: Partage "%1" ferm. 88 SMM0077 ?:89 SMM0078 ?:90 SMM0079 ?:88 SMM0077I: File and printer server 89 SMM0078I: NETBIOS name sserver 90 SMM0079I: Name Service Switch daemon 91 91 ; User Context menu 92 92 SMM0080I: Message envoy -
trunk/guitools/smbmon/rc/lang/smbmon_sv.mkm
r990 r1036 26 26 SMM0021I: Samba Server fr OS/2 kommer fran 27 27 SMM0022I: Kontrollera TDB filer 28 SMM0023 ?:28 SMM0023I: Lsenord 29 29 SMM0024I: Instllningar 30 30 SMM0025I: Uppdatera var … … 67 67 SMM0059I: Visa ntverksresurser (uppdatera manuellt, kan ta tid att genomfra!). 68 68 SMM0060I: Hantera instllningar fr detta program. 69 SMM0061 ?:70 SMM0062 ?:71 SMM0063 ?:72 SMM0064 ?:73 SMM0065 ?:74 SMM0066 ?:75 SMM0067 ?:76 SMM0068 ?:77 SMM0069 ?:69 SMM0061I: Starta servern 70 SMM0062I: Stoppa servern 71 SMM0063I: Starta om servern 72 SMM0064I: Ladda om konfigurationer fil smb.conf 73 SMM0065I: Server upptid 74 SMM0066I: versikt ver kra serverprocesser 75 SMM0067I: versikt ver inloggade anvndare 76 SMM0068I: versikt ver ppna filer 77 SMM0069I: versikt ver anvnda utgvor 78 78 ;Service Context Menu 79 79 SMM0070I: Stng av utdelning … … 84 84 SMM0075I: Vill du verkligen stnga av utdelningen "%1"? 85 85 SMM0076I: Utdelningen "%1" avstngd. 86 SMM0077 ?:87 SMM0078 ?:88 SMM0079 ?:86 SMM0077I: File and printer server 87 SMM0078I: NETBIOS name sserver 88 SMM0079I: Name Service Switch daemon 89 89 ; Users context menu 90 90 SMM0080I: Skicka meddelande -
trunk/guitools/smbmon/smbmon.rc
r1028 r1036 30 30 icon 93 .\rc\icons\inf.ico 31 31 icon 94 .\rc\icons\txt.ico 32 BITMAP 111 ..\shared\rc\throbber\frame_01.bmp 33 BITMAP 112 ..\shared\rc\throbber\frame_02.bmp 34 BITMAP 113 ..\shared\rc\throbber\frame_03.bmp 35 BITMAP 114 ..\shared\rc\throbber\frame_04.bmp 36 BITMAP 115 ..\shared\rc\throbber\frame_05.bmp 37 BITMAP 116 ..\shared\rc\throbber\frame_06.bmp 38 BITMAP 117 ..\shared\rc\throbber\frame_07.bmp 39 BITMAP 118 ..\shared\rc\throbber\frame_08.bmp 40 BITMAP 119 ..\shared\rc\throbber\frame_09.bmp 41 BITMAP 120 ..\shared\rc\throbber\frame_10.bmp 42 BITMAP 121 ..\shared\rc\throbber\frame_11.bmp 43 BITMAP 122 ..\shared\rc\throbber\frame_12.bmp 32 icon 95 .\rc\icons\font.ico 33 icon 96 .\rc\icons\ini.ico 34 BITMAP 111 .\rc\icons\frame_01.bmp 35 BITMAP 112 .\rc\icons\frame_02.bmp 36 BITMAP 113 .\rc\icons\frame_03.bmp 37 BITMAP 114 .\rc\icons\frame_04.bmp 38 BITMAP 115 .\rc\icons\frame_05.bmp 39 BITMAP 116 .\rc\icons\frame_06.bmp 40 BITMAP 117 .\rc\icons\frame_07.bmp 41 BITMAP 118 .\rc\icons\frame_08.bmp 42 BITMAP 119 .\rc\icons\frame_09.bmp 43 BITMAP 120 .\rc\icons\frame_10.bmp 44 BITMAP 121 .\rc\icons\frame_11.bmp 45 BITMAP 122 .\rc\icons\frame_12.bmp 46 bitmap 150 .\rc\icons\exit.bmp 47 bitmap 151 .\rc\icons\refresh.bmp 48 bitmap 152 .\rc\icons\save_all.bmp 49 bitmap 153 .\rc\icons\info.bmp 50 bitmap 154 .\rc\icons\start.bmp 51 bitmap 155 .\rc\icons\stop.bmp 52 bitmap 156 .\rc\icons\restart.bmp 53 bitmap 157 .\rc\icons\reload.bmp 54 bitmap 158 .\rc\icons\button_accept.bmp 55 bitmap 159 .\rc\icons\button_cancel.bmp 56 -
trunk/guitools/smbmon/smbmon.vrp
r1028 r1036 8 8 VRXWindow: __VREMainWindow,1,2168,3614,1024,6769 9 9 VRXWindow: __VRESectionListWindow,1,3963,14213,10130,5059 10 VRXWindow: __VREToolsWindow,1, 2879,1975,6989,165910 VRXWindow: __VREToolsWindow,1,1747,1108,6483,1663 11 11 VRXWindow: __VREWindListWindow,1,952,11708,5372,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_SETTINGS,1 14 UserWindow: SW_USERS,1 15 UserWindow: SW_SERVICE,1 15 16 UserWindow: SW_LOGIN,1 -
trunk/guitools/smbmon/smbmon.vrx
r1028 r1036 116 116 */ 117 117 return 118 118 119 /*:VRX _ChkTDB 119 120 */ … … 283 284 DPidsFH = VRMethod( "CN_Daemons", "AddField", "String", NLVGetMessage(130) ) 284 285 285 smbdHandle = VRMethod("CN_Daemons", "Addrecord",, , "smbd.exe","$41")286 nmbdHandle = VRMethod("CN_Daemons", "Addrecord", ,, "nmbd.exe","$41")287 winbHandle = VRMethod("CN_Daemons", "Addrecord",, , "winbindd.exe","$41")288 289 ok = VRMethod("CN_Daemons", "SetFieldData", smbdHandle, DaemonFH, "smbd.exe")290 ok = VRMethod("CN_Daemons", "SetFieldData", nmbdHandle, DaemonFH, "nmbd.exe")291 ok = VRMethod("CN_Daemons", "SetFieldData", winbHandle, DaemonFH, "winbindd.exe")286 smbdHandle = VRMethod("CN_Daemons", "Addrecord",, ,NLVGetMessage(77),"$41") /* smbd.exe */ 287 nmbdHandle = VRMethod("CN_Daemons", "Addrecord", ,,NLVGetMessage(78),"$41") /* nmbd.exe */ 288 winbHandle = VRMethod("CN_Daemons", "Addrecord",, ,NLVGetMessage(79),"$41") /* winbindd.exe */ 289 290 ok = VRMethod("CN_Daemons", "SetFieldData", smbdHandle, DaemonFH, NLVGetMessage(77)) /* smbd.exe */ 291 ok = VRMethod("CN_Daemons", "SetFieldData", nmbdHandle, DaemonFH, NLVGetMessage(78)) /* nmbd.exe */ 292 ok = VRMethod("CN_Daemons", "SetFieldData", winbHandle, DaemonFH, NLVGetMessage(79)) /* winbindd.exe */ 292 293 ok = (stream(samba.!bin'\winbindd.exe','c','query exists') <> "") 293 294 ok = VRMethod("CN_Daemons", "SetRecordAttr", winbHandle, "Visible", ok) … … 338 339 */ 339 340 _ContextMenuSelectedSet: 340 ok = VRSet("ContextMenu_Tree_Tree", "Visible", 0)341 ok = VRSet("ContextMenu_Tree_Details", "Visible", 0)342 ok = VRSet("ContextMenu_Tree_Icons", "Visible", 0)343 ok = VRSet("ContextMenu_Tree_Sort", "Visible", 0)344 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 0)345 341 ok = VRSet("ContextMenu_Tree_Login", "Visible", 0) 346 342 ok = VRSet("ContextMenu_Tree_ACLS", "Visible", 0) 347 343 ok = VRSet("ContextMenu_Tree_SendMsg", "Visible", 0) 348 say SMBObj.udatatype 344 ok = VRSet("ContextMenu_Tree_Logoff", "Visible", 0) 345 ok = VRSet("ContextMenu_Tree_Sep1", "Visible", 0) 346 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 0) 347 ok = VRSet("ContextMenu_Tree_Tree", "Visible", 1) 348 ok = VRSet("ContextMenu_Tree_Details", "Visible", 1) 349 ok = VRSet("ContextMenu_Tree_Icons", "Visible", 1) 350 ok = VRSet("ContextMenu_Tree_Sort", "Visible", 0) /* FIXME: Crashes */ 351 say ' SMBObj.udatatype = "'SMBObj.udatatype'"' 349 352 select 350 353 when SMBObj.udatatype = "WORKGROUP" then do … … 354 357 ok = VRSet("ContextMenu_Tree_Login", "Visible", 1) 355 358 ok = VRSet("ContextMenu_Tree_SendMsg", "Visible", 1) 359 ok = VRSet("ContextMenu_Tree_Logoff", "Visible", 1) 360 ok = VRSet("ContextMenu_Tree_Sep1", "Visible", 1) 361 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 1) 356 362 end 357 363 when SMBObj.udatatype = "DISK" then do 364 ok = VRSet("ContextMenu_Tree_ACLS", "Visible", 1) 365 ok = VRSet("ContextMenu_Tree_Sep1", "Visible", 1) 358 366 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 1) 359 367 end … … 362 370 end 363 371 when SMBObj.udatatype = "DIRECTORY" then do 364 ok = VRSet("ContextMenu_Tree_ACLS", "Visible", 1) 372 ok = VRSet("ContextMenu_Tree_ACLS", "Visible", 1) 373 ok = VRSet("ContextMenu_Tree_Sep1", "Visible", 1) 365 374 end 366 375 when SMBObj.udatatype = "FILE" then do 367 ok = VRSet("ContextMenu_Tree_ACLS", "Visible", 1) 376 ok = VRSet("ContextMenu_Tree_ACLS", "Visible", 1) 377 ok = VRSet("ContextMenu_Tree_Sep1", "Visible", 1) 368 378 end 369 379 otherwise do /* No other value known - default */ … … 517 527 ok = VRSet("TM_Refresh","Delay", Intervall * 1000) 518 528 519 ok = VRSet(" PB_START", "Enabled", VRFileExists(samba.!smbcmd))520 ok = VRSet(" PB_Restart","Enabled", VRFileExists(samba.!smbcmd))521 ok = VRSet(" PB_Reload", "Enabled", VRFileExists(samba.!smbcmd))529 ok = VRSet("ICB_START", "Enabled", VRFileExists(samba.!smbcmd)) 530 ok = VRSet("ICB_REstart","Enabled", VRFileExists(samba.!smbcmd)) 531 ok = VRSet("ICB_REload", "Enabled", VRFileExists(samba.!smbcmd)) 522 532 523 533 ok = VRSet("CN_Daemons", "View", DaemonView) … … 625 635 626 636 DaemonView = VRGetIni( "Settings", "DaemonView", OurINI,'NoClose') 627 if DaemonView = "" then DaemonView = " Detail"637 if DaemonView = "" then DaemonView = "IconTree" 628 638 629 639 TreeView = VRGetIni( "Settings", "TreeView", OurINI,'NoClose') … … 653 663 654 664 advanced.!bigicons = VRGetIni( "Settings", "BigIcons", OurINI) 655 if advanced.!bigicons = "" then advanced.!bigicons = 0665 if advanced.!bigicons = "" then advanced.!bigicons = 1 656 666 657 667 advanced.!smbconfchanged = 0 … … 775 785 ok = VRSet("Main","helpFile", settings.!helpfile) 776 786 777 778 779 CALL NLVSetText 'PB_Refresh', 'Caption', 11 780 CALL NLVSetText 'PB_Apply', 'Caption', 10 781 CALL NLVSetText 'PB_Cancel', 'Caption', 12 782 CALL NLVSetText 'PB_Help', 'Caption', 13 783 CALL NLVSetText 'PB_About', 'Caption', 14 784 785 CALL NLVSetText 'PB_Refresh', 'Hinttext', 51 786 CALL NLVSetText 'PB_Cancel', 'Hinttext', 54 787 CALL NLVSetText 'PB_Help', 'Hinttext', 52 788 CALL NLVSetText 'PB_About', 'Hinttext', 53 789 790 /* CALL NLVSetText 'TAB_1', 'Userdata', 15 791 CALL NLVSetText 'TAB_2', 'Userdata', 16 792 CALL NLVSetText 'TAB_3', 'Userdata', 17 793 CALL NLVSetText 'TAB_4', 'Userdata', 18 794 CALL NLVSetText 'TAB_5', 'Userdata', 19 795 CALL NLVSetText 'TAB_6', 'Userdata', 24 796 797 CALL NLVSetText 'TAB_1', 'Hinttext', 55 798 CALL NLVSetText 'TAB_2', 'Hinttext', 56 799 CALL NLVSetText 'TAB_3', 'Hinttext', 57 800 CALL NLVSetText 'TAB_4', 'Hinttext', 58 801 CALL NLVSetText 'TAB_5', 'Hinttext', 59 802 CALL NLVSetText 'TAB_6', 'Hinttext', 60 */ 803 804 /* CALL NLVSetText 'Page_1', 'Hinttext', 55 805 CALL NLVSetText 'Page_2', 'Hinttext', 56 806 CALL NLVSetText 'Page_3', 'Hinttext', 57 807 CALL NLVSetText 'Page_4', 'Hinttext', 58 808 CALL NLVSetText 'Page_5', 'Hinttext', 59 809 CALL NLVSetText 'Page_6', 'Hinttext', 60 */ 810 811 787 /* Setup the tabbed dialogue */ 788 w = VRLoad( "TDL_1", VRWindowPath(), "SW_DAEMONS" ) 789 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(18)" ") 790 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SMBTREE" ) 791 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(19)" ") 792 w = VRLoad( "TDL_1", VRWindowPath(), "SW_USERS" ) 793 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(15)" ") 794 w = VRLoad( "TDL_1", VRWindowPath(), "SW_FILES" ) 795 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(16)" ") 796 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SERVICE" ) 797 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(17)" ") 798 w = VRLoad( "TDL_1", VRWindowPath(), "SW_CHKTDB" ) 799 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(22)" ") 800 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SETTINGS" ) 801 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(24)" ") 802 803 CALL NLVSetText 'ICB_Refresh', 'Caption', 11 804 CALL NLVSetText 'ICB_Apply', 'Caption', 10 805 CALL NLVSetText 'ICB_About', 'Caption', 14 806 CALL NLVSetText 'ICB_EXIT', 'Caption', 12 807 808 CALL NLVSetText 'ICB_Refresh', 'Hinttext', 51 809 /* CALL NLVSetText 'ICB_APPLY', 'Hinttext', FIXME */ 810 CALL NLVSetText 'ICB_ABOUT', 'Hinttext', 53 811 CALL NLVSetText 'ICB_EXIT', 'Hinttext', 54 812 813 CALL VRMethod 'TT_Main', 'Register', 'ICB_REFRESH', NLVGetMessage(51) 814 CALL VRMethod 'TT_Main', 'Register', 'ICB_APPLY', NLVGetMessage(52) /* FIXME */ 815 CALL VRMethod 'TT_Main', 'Register', 'ICB_ABOUT', NLVGetMessage(53) 816 CALL VRMethod 'TT_Main', 'Register', 'ICB_EXIT', NLVGetMessage(54) 812 817 return 813 818 … … 1057 1062 end 1058 1063 end 1059 smbdpidhandle.I = VRMethod( "CN_Daemons", "AddRecord", smbdhandle, , 'PID'word(smbdpids,I)' ('d2x(word(smbdpids,I))'x)', "$48")1064 smbdpidhandle.I = VRMethod( "CN_Daemons", "AddRecord", smbdhandle, , NLVGetMessage(130)' 'word(smbdpids,I)' ('d2x(word(smbdpids,I))'x)', "$48") 1060 1065 /* we ping all smbd.exe except the first one */ 1061 1066 if DetectZombies = 1 & I > 1 then do … … 1098 1103 nmbdpidhandle.0 = words(nmbdpids) 1099 1104 do I = 1 to words(nmbdpids) 1100 nmbdpidhandle.I = VRMethod( "CN_Daemons", "AddRecord", nmbdhandle, , 'PID'word(nmbdpids,I)' ('d2x(word(nmbdpids,I))'x)', "$48")1105 nmbdpidhandle.I = VRMethod( "CN_Daemons", "AddRecord", nmbdhandle, , NLVGetMessage(130)' 'word(nmbdpids,I)' ('d2x(word(nmbdpids,I))'x)', "$48") 1101 1106 end 1102 1107 end … … 1111 1116 winbpidhandle.0 = words(winbpids) 1112 1117 do I = 1 to words(winbpids) 1113 winbpidhandle.I = VRMethod( "CN_Daemons", "AddRecord", winbhandle, , 'PID'word(winbpids,I)' ('d2x(word(winbpids,I))'x)', "$48")1118 winbpidhandle.I = VRMethod( "CN_Daemons", "AddRecord", winbhandle, , NLVGetMessage(130)' 'word(winbpids,I)' ('d2x(word(winbpids,I))'x)', "$48") 1114 1119 end 1115 1120 end … … 1120 1125 1121 1126 if \(smbdrunning|nmbdrunning|winbrunning) then do 1122 ok = VRSet(" PB_START", "Enabled", 1)1123 ok = VRSet(" PB_STOP", "Enabled", 0)1124 ok = VRSet(" PB_ReStart","Enabled", 0)1125 ok = VRSet(" PB_ReLoad", "Enabled", 0)1127 ok = VRSet("ICB_START", "Enabled", 1) 1128 ok = VRSet("ICB_STOP", "Enabled", 0) 1129 ok = VRSet("ICB_REStart","Enabled", 0) 1130 ok = VRSet("ICB_RELoad", "Enabled", 0) 1126 1131 end 1127 1132 else do 1128 ok = VRSet(" PB_START", "Enabled", 0)1129 ok = VRSet(" PB_STOP", "Enabled", 1)1130 ok = VRSet(" PB_ReStart","Enabled", 1)1131 ok = VRSet(" PB_ReLoad", "Enabled", 1)1133 ok = VRSet("ICB_START", "Enabled", 0) 1134 ok = VRSet("ICB_STOP", "Enabled", 1) 1135 ok = VRSet("ICB_REStart","Enabled", 1) 1136 ok = VRSet("ICB_RELoad", "Enabled", 1) 1132 1137 end 1133 1138 … … 1313 1318 if uS <> 0 | UpTimeStr = ' 'NlvGetMessage(43)':' then UpTimeStr = UpTimeStr' 'uS' 'NlvGetMessage(49) 1314 1319 1315 loggingfreespace = word(sysdriveinfo(left(samba.!log ,2)),2)%1024%10241316 1317 ok = VRset("CN_Daemons", "Caption", UpTimeStr ' 'loggingfreespace' MB')1320 loggingfreespace = word(sysdriveinfo(left(samba.!logdir,2)),2)%1024%1024 1321 ok = VRSet("DT_FREESPACE", "Caption", loggingfreespace' MB') 1322 ok = VRset("CN_Daemons", "Caption", UpTimeStr) 1318 1323 1319 1324 select 1320 when loggingfreespace < 50 then ok = VRDeleteFile(samba.!log '\log.*')1325 when loggingfreespace < 50 then ok = VRDeleteFile(samba.!logdir'\log.*') 1321 1326 when loggingfreespace < 100 then ok = VRset("CN_Daemons","BackColor","Red") 1322 1327 when loggingfreespace < 200 then ok = VRset("CN_Daemons","BackColor","Yellow") … … 1366 1371 address cmd samba.!testparmexe' -v -s -d='log_level' 1>'samba.!shadowsmbconf' 2>'TempDir'testparm.stderr' 1367 1372 if options.!debug == 1 then say time()' _SmbConfCreateShadowCopy done' 1368 return1369 1370 /*:VRX _TabbedDialogSetup1371 */1372 _TabbedDialogSetup:1373 IF options.!debug == 1 THEN SAY time()' _TabbedDialogSetup started'1374 w = VRLoad( "TDL_1", VRWindowPath(), "SW_DAEMONS" )1375 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(18)" ")1376 1377 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SMBTREE" )1378 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(19)" ")1379 1380 w = VRLoad( "TDL_1", VRWindowPath(), "SW_USERS" )1381 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(15)" ")1382 1383 w = VRLoad( "TDL_1", VRWindowPath(), "SW_FILES" )1384 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(16)" ")1385 1386 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SERVICE" )1387 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(17)" ")1388 1389 w = VRLoad( "TDL_1", VRWindowPath(), "SW_CHKTDB" )1390 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(22)" ")1391 1392 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SETTINGS" )1393 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(24)" ")1394 1395 1396 IF options.!debug == 1 THEN SAY time()' _TabbedDialogSetup done'1397 1373 return 1398 1374 … … 1642 1618 call _GetSmbObjectProperties RH 1643 1619 call _ContextMenuSelectedSet 1644 1645 BrowsePath = _browsebuildpath(SMBObj.rh) 1620 if SMBobj.udatatype <> "WORKGROUP" then do 1621 BrowsePath = _browsebuildpath(SMBObj.rh) 1622 parse var browsepath '\\'machine'\'sharename '\' browsepath 1623 end 1646 1624 1647 1625 /* call _BrowseResetObject(SmbObj.rh) */ 1648 1649 parse var browsepath '\\'machine'\'sharename '\' browsepath1650 1626 1651 1627 CurMachine = SMBObj.Resname … … 1653 1629 end 1654 1630 else do 1631 say "nix '"RH"'" 1632 drop SMBObj. /* it is invalid */ 1655 1633 call _ContextMenuSelectedSet 1656 1634 end … … 1695 1673 say " Not connected - trying to connect" 1696 1674 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", sharerh, "Selected", 1) 1697 call PB_SMBTREE_CONNECT_Click 1698 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", SMBObj.rh, "Selected", 1) 1699 1700 OpenOk = _browseobjectopen(machine,sharename,browsepath) 1701 1675 OpenOk = 0 1676 if VRIsValidObject("PB_SMBTREE_CONNECT") then do 1677 call PB_SMBTREE_CONNECT_Click 1678 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", SMBObj.rh, "Selected", 1) 1679 OpenOk = _browseobjectopen(machine,sharename,browsepath) 1680 end 1702 1681 if \OpenOk then do 1703 say " Not connected - cannot open - aborting!" 1682 Msg.Text = "Not connected - cannot open - aborting!" 1683 Msg.Type = "E" 1684 call _ShowMsg 1704 1685 end 1705 1686 end … … 1974 1955 return 1975 1956 1957 /*:VRX ContextMenu_Tree_LOGOFF_Click 1958 */ 1959 ContextMenu_Tree_LOGOFF_Click: 1960 UserCred = '-N' 1961 return 1962 1976 1963 /*:VRX ContextMenu_Tree_MiniIcons_Click 1977 1964 */ … … 2056 2043 return 2057 2044 2045 /*:VRX ICB_ABOUT_Click 2046 */ 2047 ICB_ABOUT_Click: 2048 window = VRLoadSecondary( "About", "W" ) 2049 return 2050 2051 /*:VRX ICB_APPLY_Click 2052 */ 2053 ICB_APPLY_Click: 2054 IF options.!debug == 1 then say time()' PB_Apply_Click() started' 2055 options.!Debug = VRGet("CB_Debug","set") 2056 if options.!Debug then ok = VRREdirectStdIO("ON") 2057 else ok = VRREdirectStdIO("OFF") 2058 Intervall = VRGet("SPIN_Intervall","Value") 2059 ok = VRSet("TM_Refresh","Delay", Intervall * 1000) 2060 IntervallMin = VRGet("SPIN_IntervallMin","Value") 2061 2062 NoMsgBox = VRGet("CB_NoMsgBox","set") 2063 say 'NoMsgBox = "'NoMsgBox'"' 2064 2065 WPSStartStop = VRGet("CB_WPSStartStop","set") 2066 say 'WPSStartStop = "'WPSStartStop'"' 2067 2068 DetectZombies = VRGet("CB_DetectZombies","set") 2069 say 'DetectZombies = "'DetectZombies'"' 2070 2071 options.!storecreds = VRGet("CB_STORECREDS","Set") 2072 say "options.!storecreds = "options.!storecreds 2073 2074 if advanced.!smbconfchanged = 1 then do 2075 log_level = VRGet("SPIN_log_level","Value") 2076 log_file = VRGet("EF_log_file","Value") 2077 max_protocol = VRGet("SPIN_max_protocol","Value") 2078 2079 handle = IniOpen('global', samba.!smbconf) 2080 2081 ok = IniSet('log level', log_level, handle) 2082 ok = IniSet('log file', log_file, handle) 2083 ok = IniSet('max protocol', max_protocol, handle) 2084 2085 ok = IniSave(handle) 2086 ok = IniClose(handle) 2087 advanced.!smbconfchanged = 0 2088 end 2089 IF options.!debug == 1 then say time()' PB_Apply_Click() done' 2090 return 2091 2092 /*:VRX ICB_EXIT_Click 2093 */ 2094 ICB_EXIT_Click: 2095 say 'start ICB_EXIT_Click' 2096 Call Quit 2097 say 'done ICB_EXIT_Click' 2098 return 2099 2100 /*:VRX ICB_LOGIN_CANCEL_Click 2101 */ 2102 ICB_LOGIN_CANCEL_Click: 2103 /* ok = VRSet("EF_USER","Value",VRGet("EF_USER1","Value")) 2104 ok = VRSet("EF_PASSWORD","Value",VRGet("EF_PASSWORD1","Value")) */ 2105 options.!storecreds = VRGet("CB_STORECREDS1","Set") 2106 credentials.!entered = 1 2107 p_server = SMBObj.resname 2108 if p_server <> "" then do 2109 ok = _rpcqueryuser(p_server, VRGet("EF_USER1","Value"), VRGet("EF_PASSWORD1","Value"), VRGet("EF_USER1","Value")) 2110 2111 if word(ok,1) = "1" then do 2112 call _StatusBarWrapper NLVGetMessage(107, rpc.queryuser.FULL_NAME) 2113 say 'rpc.queryuser.DIR_DRIVE = "'rpc.queryuser.DIR_DRIVE'"' 2114 say 'rpc.queryuser.LOGON_SCRIPT = "'rpc.queryuser.LOGON_SCRIPT'"' 2115 call _UserCredUpdate 2116 end 2117 else do 2118 call _StatusBarWrapper VRGet("EF_USER1","Value")" \\"p_server": "rpc.queryuser.LOGONSTATUS 2119 end 2120 end 2121 2122 call SW_LOGIN_Close 2123 return 2124 2125 /*:VRX ICB_LOGIN_OK_Click 2126 */ 2127 ICB_LOGIN_OK_Click: 2128 /* ok = VRSet("EF_USER","Value",VRGet("EF_USER1","Value")) 2129 ok = VRSet("EF_PASSWORD","Value",VRGet("EF_PASSWORD1","Value")) */ 2130 options.!storecreds = VRGet("CB_STORECREDS1","Set") 2131 credentials.!entered = 1 2132 p_server = SMBObj.resname 2133 if p_server <> "" then do 2134 ok = _rpcqueryuser(p_server, VRGet("EF_USER1","Value"), VRGet("EF_PASSWORD1","Value"), VRGet("EF_USER1","Value")) 2135 2136 if word(ok,1) = "1" then do 2137 call _StatusBarWrapper NLVGetMessage(107, rpc.queryuser.FULL_NAME) 2138 say 'rpc.queryuser.DIR_DRIVE = "'rpc.queryuser.DIR_DRIVE'"' 2139 say 'rpc.queryuser.LOGON_SCRIPT = "'rpc.queryuser.LOGON_SCRIPT'"' 2140 call _UserCredUpdate 2141 end 2142 else do 2143 call _StatusBarWrapper VRGet("EF_USER1","Value")" \\"p_server": "rpc.queryuser.LOGONSTATUS 2144 end 2145 end 2146 2147 call SW_LOGIN_Close 2148 return 2149 2150 /*:VRX ICB_REFRESH_Click 2151 */ 2152 ICB_REFRESH_Click: 2153 IF options.!debug == 1 then say time()' ICB_REFRESH_Click() started' 2154 ok = SysSleep(0.3) 2155 2156 say " CurrentPageNr = "CurrentPageNr 2157 select 2158 when CurrentPageNr = 2 then do 2159 ok = VRset("Pict_Throbber", "Visible", 1) 2160 ok = VRset("TM_Throbber", "Enabled", 1) 2161 call _RefreshTree 2162 end 2163 when CurrentPageNr = 6 then do 2164 call _ChkTDB 2165 end 2166 otherwise call _Refresh 2167 end 2168 IF options.!debug == 1 then say time()' ICB_REFRESH_Click() done' 2169 return 2170 2171 /*:VRX ICB_RELOAD_Click 2172 */ 2173 ICB_RELOAD_Click: 2174 call VRSet VRWindow(), 'Pointer', 'Wait' 2175 if WPSStartStop then do 2176 ok = SysOpenObject('<smb_reload>', 'DEFAULT', 1) 2177 end 2178 else do 2179 call lineout samba.!bin"\smbstart", "reload" 2180 ok = stream(samba.!bin"\reload","c","close") 2181 end 2182 ok = VRSet("TM_Refresh","Delay", 2000) 2183 call VRSet VRWindow(), 'Pointer', '<default>' 2184 return 2185 2186 /*:VRX ICB_RESTART_Click 2187 */ 2188 ICB_RESTART_Click: 2189 call VRSet VRWindow(), 'Pointer', 'Wait' 2190 if WPSStartStop then do 2191 ok = SysOpenObject('<smb_restart>', 'DEFAULT', 1) 2192 end 2193 else do 2194 call lineout samba.!bin"\restart", "restart" 2195 ok = stream(samba.!bin"\restart","c","close") 2196 end 2197 ok = VRSet("TM_Refresh","Delay", 2000) 2198 call VRSet VRWindow(), 'Pointer', '<default>' 2199 return 2200 2201 /*:VRX ICB_START_Click 2202 */ 2203 ICB_START_Click: 2204 say "IPB_Start_Click started" 2205 call VRSet VRWindow(), 'Pointer', 'Wait' 2206 if WPSStartStop then do 2207 ok = SysOpenObject('<smb_start>', 'DEFAULT', 1) 2208 end 2209 else do 2210 call lineout samba.!bin"\smbstart", "smbstart" 2211 ok = stream(samba.!bin"\smbstart","c","close") 2212 end 2213 ok = VRSet("TM_Refresh","Delay", 2000) 2214 call VRSet VRWindow(), 'Pointer', '<default>' 2215 say "IPB_Start_Click done" 2216 return 2217 2218 /*:VRX ICB_STOP_Click 2219 */ 2220 ICB_STOP_Click: 2221 say "IPB_Stop_Click started" 2222 call VRSet VRWindow(), 'Pointer', 'Wait' 2223 if WPSStartStop then do 2224 ok = SysOpenObject('<smb_stop>', 'DEFAULT', 1) 2225 end 2226 else do 2227 call lineout samba.!bin"\smbstop", "smbstop" 2228 ok = stream(samba.!bin"\smbstop","c","close") 2229 end 2230 ok = VRSet("TM_Refresh","Delay", 2000) 2231 call VRSet VRWindow(), 'Pointer', '<default>' 2232 say "IPB_Stop_Click done" 2233 return 2234 2058 2235 /*:VRX Init 2059 2236 */ … … 2101 2278 call _NLVSetup 2102 2279 2103 call _TabbeddialogSetup2104 2105 2280 call _SambaInit 2106 2281 if \WPSStartStop then call _CreateSmbStarter … … 2109 2284 call _GUIInit 2110 2285 2111 /* str = 'call TAB_'CurrentPageNr'_Click'; 2112 say str 2113 interpret str 2114 say 'Done 'str 2115 if CurrentPageNr <> 5 then do 2116 ok = VRSet("TM_Throbber", "Enabled", 1) 2117 call _RefreshTree 2118 end */ 2119 ok = VRMethod("PB_Refresh","SetFocus") 2286 ok = VRMethod("ICB_Refresh","SetFocus") 2120 2287 2121 2288 if options.!debug == 1 then say time()' Main_Create done' … … 2142 2309 marginx4 = margin * 4 2143 2310 2144 pbtn_dist = 980 2145 pbtn_nr = 5 2311 pbtn_width = 1200 2312 pbtn_dist = 80 + pbtn_width 2313 pbtn_nr = 4 2146 2314 pbtn_pos = max((main_iwidth - pbtn_Dist * pbtn_Nr)%2, 0)+ margin 2147 pbtn_height = 4 00 /* Height of the panels' internal button areas */2148 pbtn_width = 940 2315 pbtn_height = 460 /* Height of the panels' internal button areas */ 2316 2149 2317 2150 2318 pane_height = main_iheight- sbar_height - pbtn_height - margin * 7 /* Height of notebook */ … … 2168 2336 ok = VRSet("DT_STATUSBAR", "Width", pane_width - 24) 2169 2337 2170 ok = VRSet("PB_Refresh","top", pane_height + marginx4 ) 2171 ok = VRSet("PB_Help", "top", pane_height + marginx4 ) 2172 ok = VRSet("PB_Cancel", "top", pane_height + marginx4 ) 2173 ok = VRSet("PB_Apply", "top", pane_height + marginx4 ) 2174 ok = VRSet("PB_About", "top", pane_height + marginx4 ) 2175 2176 ok = VRSet("PB_Refresh","left",pbtn_pos + pbtn_dist * (pbtn_nr - 5)) 2177 ok = VRSet("PB_Apply", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 4)) 2178 ok = VRSet("PB_Help", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 3)) 2179 ok = VRSet("PB_About", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 2)) 2180 ok = VRSet("PB_Cancel", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 1)) 2338 ok = VRSet("ICB_REFRESH","top", pane_height + marginx4 ) 2339 ok = VRSet("ICB_EXIT", "top", pane_height + marginx4 ) 2340 ok = VRSet("ICB_Apply", "top", pane_height + marginx4 ) 2341 ok = VRSet("ICB_About", "top", pane_height + marginx4 ) 2342 2343 ok = VRSet("ICB_REFRESH","Width", pbtn_width ) 2344 ok = VRSet("ICB_EXIT", "Width", pbtn_width ) 2345 ok = VRSet("ICB_Apply", "Width", pbtn_width ) 2346 ok = VRSet("ICB_About", "Width", pbtn_width ) 2347 2348 ok = VRSet("ICB_REFRESH","Height", pbtn_Height ) 2349 ok = VRSet("ICB_EXIT", "Height", pbtn_Height ) 2350 ok = VRSet("ICB_Apply", "Height", pbtn_Height ) 2351 ok = VRSet("ICB_About", "Height", pbtn_Height ) 2352 2353 2354 ok = VRSet("ICB_REFRESH","left",pbtn_pos + pbtn_dist * (pbtn_nr - 4)) 2355 ok = VRSet("ICB_Apply", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 3)) 2356 ok = VRSet("ICB_About", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 2)) 2357 ok = VRSet("ICB_EXIT", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 1)) 2181 2358 2182 2359 ok = VRset("GB_CHKTDB","Top", margin ) … … 2225 2402 ok = VRset("CN_DAEMONS","Height", pane_height- 1020 - marginx2 ) 2226 2403 2227 ok = VRSet("PB_START", "Top", pbtn_height*2 - marginx2) 2228 ok = VRSet("PB_STOP", "Top", pbtn_height*3 - marginx2) 2229 ok = VRSet("PB_Restart","Top", pbtn_height*4 - marginx2) 2230 ok = VRSet("PB_Reload", "Top", pbtn_height*5 - marginx2) 2231 ok = VRSet("PB_DelLogs","Top", pbtn_height*6 - marginx2) 2232 2233 ok = VRSet("PB_START", "Left", pane_width - 760 - marginx2 - pbtn_width) 2234 ok = VRSet("PB_STOP", "Left", pane_width - 760 - marginx2 - pbtn_width) 2235 ok = VRSet("PB_Restart","Left", pane_width - 760 - marginx2 - pbtn_width) 2236 ok = VRSet("PB_Reload", "Left", pane_width - 760 - marginx2 - pbtn_width) 2237 ok = VRSet("PB_DelLogs","Left", pane_width - 760 - marginx2 - pbtn_width) 2404 ok = VRSet("ICB_START", "Top", pbtn_height*2 - marginx2) 2405 ok = VRSet("ICB_STOP", "Top", pbtn_height*3 - marginx2) 2406 ok = VRSet("ICB_Restart","Top", pbtn_height*4 - marginx2) 2407 ok = VRSet("ICB_REload", "Top", pbtn_height*5 - marginx2) 2408 2409 ok = VRSet("ICB_START", "Left", pane_width - 760 - marginx2 - pbtn_width) 2410 ok = VRSet("ICB_STOP", "Left", pane_width - 760 - marginx2 - pbtn_width) 2411 ok = VRSet("ICB_Restart","Left", pane_width - 760 - marginx2 - pbtn_width) 2412 ok = VRSet("ICB_REload", "Left", pane_width - 760 - marginx2 - pbtn_width) 2413 2414 ok = VRSet("ICB_START", "Width", pbtn_width) 2415 ok = VRSet("ICB_STOP", "Width", pbtn_width) 2416 ok = VRSet("ICB_Restart","Width", pbtn_width) 2417 ok = VRSet("ICB_Reload", "Width", pbtn_width) 2418 2419 ok = VRSet("ICB_START", "Height", pbtn_Height) 2420 ok = VRSet("ICB_STOP", "Height", pbtn_Height) 2421 ok = VRSet("ICB_Restart","Height", pbtn_Height) 2422 ok = VRSet("ICB_Reload", "Height", pbtn_Height) 2423 2238 2424 2239 2425 ok = VRset("GB_SMBTREE","Top", margin ) … … 2336 2522 return 2337 2523 2338 /*:VRX PB_About_Click2339 */2340 PB_About_Click:2341 window = VRLoadSecondary( "About", "W" )2342 return2343 2344 2524 /*:VRX PB_AboutOK1_Click 2345 2525 */ … … 2360 2540 return 2361 2541 2362 /*:VRX PB_Apply_Click2363 */2364 PB_Apply_Click:2365 IF options.!debug == 1 then say time()' PB_Apply_Click() started'2366 options.!Debug = VRGet("CB_Debug","set")2367 if options.!Debug then ok = VRREdirectStdIO("ON")2368 else ok = VRREdirectStdIO("OFF")2369 Intervall = VRGet("SPIN_Intervall","Value")2370 ok = VRSet("TM_Refresh","Delay", Intervall * 1000)2371 IntervallMin = VRGet("SPIN_IntervallMin","Value")2372 2373 NoMsgBox = VRGet("CB_NoMsgBox","set")2374 say 'NoMsgBox = "'NoMsgBox'"'2375 2376 WPSStartStop = VRGet("CB_WPSStartStop","set")2377 say 'WPSStartStop = "'WPSStartStop'"'2378 2379 DetectZombies = VRGet("CB_DetectZombies","set")2380 say 'DetectZombies = "'DetectZombies'"'2381 2382 options.!storecreds = VRGet("CB_STORECREDS","Set")2383 say "options.!storecreds = "options.!storecreds2384 2385 if advanced.!smbconfchanged = 1 then do2386 log_level = VRGet("SPIN_log_level","Value")2387 log_file = VRGet("EF_log_file","Value")2388 max_protocol = VRGet("SPIN_max_protocol","Value")2389 2390 handle = IniOpen('global', samba.!smbconf)2391 2392 ok = IniSet('log level', log_level, handle)2393 ok = IniSet('log file', log_file, handle)2394 ok = IniSet('max protocol', max_protocol, handle)2395 2396 ok = IniSave(handle)2397 ok = IniClose(handle)2398 advanced.!smbconfchanged = 02399 end2400 IF options.!debug == 1 then say time()' PB_Apply_Click() done'2401 return2402 2403 /*:VRX PB_Cancel_Click2404 */2405 PB_Cancel_Click:2406 say 'start PB_Cancel_Click'2407 Call Quit2408 say 'done PB_Cancel_Click'2409 return2410 2411 2542 /*:VRX PB_DELLOGS_Click 2412 2543 */ 2413 2544 PB_DELLOGS_Click: 2414 2545 call VRSet VRWindow(), 'Pointer', 'Wait' 2415 2416 /* Fixme - this needs to be read from smb.conf */ 2417 samba.!logdir = ETC'\samba\log' 2546 say VRGet("EF_LOG_FILE","Value") 2547 say translate(VRGet("EF_LOG_FILE","Value"),'\','/') 2548 samba.!logdir = VRParseFileName(translate(VRGet("EF_LOG_FILE","Value"),'\','/'),"DP") 2549 say samba.!logdir 2550 2551 loggingfreespace = word(sysdriveinfo(left(samba.!logdir,2)),2)%1024%1024 2552 ok = VRSet("DT_FREESPACE", "Caption", loggingfreespace' MB') 2553 2418 2554 2419 2555 ok = SysFileTree(samba.!logdir'\log.*', logs.,'FO') … … 2425 2561 if pos(CurPID,logs.I) > 0 then KeepLog = 1 2426 2562 end 2427 if KeepLog = 0 then ok = SysFileDelete(logs.I) 2428 end 2563 if KeepLog = 0 then do 2564 say "Delete "logs.I 2565 ok = SysFileDelete(logs.I) 2566 end 2567 end 2568 2569 loggingfreespace = word(sysdriveinfo(left(samba.!logdir,2)),2)%1024%1024 2570 ok = VRSet("DT_FREESPACE", "Caption", loggingfreespace' MB') 2429 2571 2430 2572 call VRSet VRWindow(), 'Pointer', '<default>' … … 2435 2577 PB_Help_Click: 2436 2578 ok = VRMethod("Main", "InvokeHelp" ) 2437 return2438 2439 /*:VRX PB_LOGIN_CANCEL_Click2440 */2441 PB_LOGIN_CANCEL_Click:2442 credentials.!entered = 02443 call SW_LOGIN_Close2444 return2445 2446 /*:VRX PB_LOGIN_OK_Click2447 */2448 PB_LOGIN_OK_Click:2449 /* ok = VRSet("EF_USER","Value",VRGet("EF_USER1","Value"))2450 ok = VRSet("EF_PASSWORD","Value",VRGet("EF_PASSWORD1","Value")) */2451 options.!storecreds = VRGet("CB_STORECREDS1","Set")2452 credentials.!entered = 12453 p_server = SMBObj.resname2454 if p_server <> "" then do2455 ok = _rpcqueryuser(p_server, VRGet("EF_USER1","Value"), VRGet("EF_PASSWORD1","Value"), VRGet("EF_USER1","Value"))2456 2457 if word(ok,1) = "1" then do2458 call _StatusBarWrapper NLVGetMessage(107, rpc.queryuser.FULL_NAME)2459 say 'rpc.queryuser.DIR_DRIVE = "'rpc.queryuser.DIR_DRIVE'"'2460 say 'rpc.queryuser.LOGON_SCRIPT = "'rpc.queryuser.LOGON_SCRIPT'"'2461 call _UserCredUpdate2462 end2463 else do2464 call _StatusBarWrapper VRGet("EF_USER1","Value")" \\"p_server": "rpc.queryuser.LOGONSTATUS2465 end2466 end2467 2468 call SW_LOGIN_Close2469 return2470 2471 /*:VRX PB_Refresh_Click2472 */2473 PB_Refresh_Click:2474 IF options.!debug == 1 then say time()' PB_Refresh_Click() started'2475 ok = SysSleep(0.3)2476 2477 say " CurrentPageNr = "CurrentPageNr2478 select2479 when CurrentPageNr = 2 then do2480 ok = VRset("Pict_Throbber", "Visible", 1)2481 ok = VRset("TM_Throbber", "Enabled", 1)2482 call _RefreshTree2483 end2484 when CurrentPageNr = 6 then do2485 call _ChkTDB2486 end2487 otherwise call _Refresh2488 end2489 IF options.!debug == 1 then say time()' PB_Refresh_Click() done'2490 return2491 2492 /*:VRX PB_RELOAD_Click2493 */2494 PB_RELOAD_Click:2495 call VRSet VRWindow(), 'Pointer', 'Wait'2496 if WPSStartStop then do2497 ok = SysOpenObject('<smb_reload>', 'DEFAULT', 1)2498 end2499 else do2500 call lineout samba.!bin"\smbstart", "reload"2501 ok = stream(samba.!bin"\reload","c","close")2502 end2503 ok = VRSet("TM_Refresh","Delay", 2000)2504 call VRSet VRWindow(), 'Pointer', '<default>'2505 return2506 2507 /*:VRX PB_RESTART_Click2508 */2509 PB_RESTART_Click:2510 call VRSet VRWindow(), 'Pointer', 'Wait'2511 if WPSStartStop then do2512 ok = SysOpenObject('<smb_restart>', 'DEFAULT', 1)2513 end2514 else do2515 call lineout samba.!bin"\restart", "restart"2516 ok = stream(samba.!bin"\restart","c","close")2517 end2518 ok = VRSet("TM_Refresh","Delay", 1000)2519 call VRSet VRWindow(), 'Pointer', '<default>'2520 2579 return 2521 2580 … … 2537 2596 return 2538 2597 2539 /*:VRX PB_START_Click2540 */2541 PB_START_Click:2542 say "IPB_Start_Click started"2543 call VRSet VRWindow(), 'Pointer', 'Wait'2544 if WPSStartStop then do2545 ok = SysOpenObject('<smb_start>', 'DEFAULT', 1)2546 end2547 else do2548 call lineout samba.!bin"\smbstart", "smbstart"2549 ok = stream(samba.!bin"\smbstart","c","close")2550 end2551 ok = VRSet("TM_Refresh","Delay", 1000)2552 call VRSet VRWindow(), 'Pointer', '<default>'2553 say "IPB_Start_Click done"2554 return2555 /*:VRX PB_STOP_Click2556 */2557 PB_STOP_Click:2558 say "IPB_Stop_Click started"2559 call VRSet VRWindow(), 'Pointer', 'Wait'2560 if WPSStartStop then do2561 ok = SysOpenObject('<smb_stop>', 'DEFAULT', 1)2562 end2563 else do2564 call lineout samba.!bin"\smbstop", "smbstop"2565 ok = stream(samba.!bin"\smbstop","c","close")2566 end2567 ok = VRSet("TM_Refresh","Delay", 1000)2568 call VRSet VRWindow(), 'Pointer', '<default>'2569 say "IPB_Stop_Click done"2570 return2571 2598 /*:VRX PushbackAll 2572 2599 */ … … 2627 2654 return 2628 2655 2656 /*:VRX RB_ACLS_NUMERIC_Click 2657 */ 2658 RB_ACLS_NUMERIC_Click: 2659 aclsnumeric = '--numeric' 2660 ok = VRSet("DT_REV_CONT","Caption","") 2661 ok = VRMethod("CN_ACLS","RemoveRecord","ALL") 2662 ok = VRMethod("CN_ACLS","SetFieldAttr", ACL.userFH, "Visible", 0 ) 2663 call _ACLSBrowse 2664 return 2665 2666 /*:VRX RB_ACLS_TEXT_Click 2667 */ 2668 RB_ACLS_TEXT_Click: 2669 aclsnumeric = '' 2670 ok = VRSet("DT_REV_CONT","Caption","") 2671 ok = VRMethod("CN_ACLS","RemoveRecord","ALL") 2672 ok = VRMethod("CN_ACLS","SetFieldAttr", ACL.userFH, "Visible", 1 ) 2673 call _ACLSBrowse 2674 return 2675 2629 2676 /*:VRX RB_Sort_Ascending_Click 2630 2677 */ … … 2680 2727 SW_ACLS_Create: 2681 2728 call SW_ACLS_Init 2682 2683 ok = VRSet("SW_ACLS","Caption",'ACLS \\'machine'\'sharename' "'browsepath'"') 2684 2685 ACL.typeFH = VRMethod( "CN_ACLS", "AddField", "String", "Type" ) 2686 ACL.valueFH = VRMethod( "CN_ACLS", "AddField", "String", "Value" ) 2687 2688 /* Make sure credentials are usable */ 2689 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' then UserCred = '-N' 2690 2691 /* We have to remove the double % for smbclient.exe - not entirely clear why */ 2692 OldUserCred = "" 2693 if pos('%%',UserCred) > 0 & pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 0 then do 2694 OldUserCred = UserCred 2695 parse var UserCred '--user='username'%%'password 2696 UserCred = '--user='username'%'password 2697 say " Strip double %%!!!" 2698 end 2699 2700 say ' 'samba.!smbcaclsexe' \\'machine'\'sharename' "'browsepath'" 'UserCred 2701 address cmd samba.!smbcaclsexe' \\'machine'\'sharename' "'browsepath'" 'UserCred' 'debuglevel' 2>'samba.!error' 1>'samba.!msg 2702 2703 ok = file2stem(samba.!error,"aclserror.","DEL") 2704 2705 if aclserror.0 = 0 then do 2706 call _StatusBarWrapper "NT_STATUS_OK" 2707 2708 ok = file2stem(samba.!msg,"aclsmsg.","DEL") 2709 do I = 1 to aclsmsg.0 2710 parse var aclsmsg.I aclstype':'aclsvalue 2711 DummyRH = VRMethod('CN_ACLS', 'AddRecord') 2712 ok = VRMethod("CN_ACLS", "SetFieldData", DummyRH, ACL.typeFH, aclstype, ACL.valueFH, aclsvalue) 2713 end 2714 end 2715 else do 2716 call _StatusBarWrapper aclserror.1 2717 call SW_ACLS_close 2718 end 2729 ACL.typeFH = VRMethod( "CN_ACLS", "AddField", "String", "Type" ) 2730 ACL.groupFH = VRMethod( "CN_ACLS", "AddField", "String", "Group" ) 2731 ACL.userFH = VRMethod( "CN_ACLS", "AddField", "String", "User" ) 2732 ACL.ADFH = VRMethod( "CN_ACLS", "AddField", "String", "A/D" ) 2733 ACL.flagsFH = VRMethod( "CN_ACLS", "AddField", "String", "Flags" ) 2734 ACL.accessFH = VRMethod( "CN_ACLS", "AddField", "String", "Access" ) 2735 ok = VRMethod( "CN_ACLS", "RemoveRecord", "ALL") 2736 aclsnumeric = '' 2737 call _ACLSBrowse 2719 2738 return 2720 2739 /*:VRX SW_ACLS_Fini … … 2778 2797 SW_DAEMONS_Create: 2779 2798 call SW_DAEMONS_Init 2799 2800 CALL NLVSetText 'CN_DAEMONS', 'Caption', 65 2801 2802 CALL VRMethod 'TT_Main', 'Register', 'ICB_START', NLVGetMessage(61) 2803 CALL VRMethod 'TT_Main', 'Register', 'ICB_STOP', NLVGetMessage(62) 2804 CALL VRMethod 'TT_Main', 'Register', 'ICB_RESTART', NLVGetMessage(63) 2805 CALL VRMethod 'TT_Main', 'Register', 'ICB_RELOAD', NLVGetMessage(64) 2806 CALL VRMethod 'TT_DAEMONS', 'Register', 'CN_DAEMONS', NLVGetMessage(66) 2780 2807 return 2781 2808 … … 2809 2836 SW_FILES_Create: 2810 2837 call SW_FILES_Init 2838 CALL VRMethod 'TT_FILES', 'Register', 'CN_FILES', NLVGetMessage(68) 2811 2839 return 2812 2840 … … 2840 2868 SW_LOGIN_Create: 2841 2869 call SW_LOGIN_Init 2842 /* ok = VRSet("SW_LOGIN","Caption",NLVGetMessage(136)' 'strip(p_workgroup' \\'p_server'\'p_share,'T','\')) 2843 CALL NLVSetText 'DT_USER1', "Caption", 252844 CALL NLVSetText 'DT_PASSWORD1', "Caption", 2 62845 CALL NLVSetText 'CB_STORECREDS1', "Caption", 135 2846 CALL NLVSetText ' PB_LOGIN_OK', "Caption", 22847 CALL NLVSetText ' PB_LOGIN_CANCEL',"Caption", 3 */2870 /* ok = VRSet("SW_LOGIN","Caption",NLVGetMessage(136)' 'strip(p_workgroup' \\'p_server'\'p_share,'T','\')) */ 2871 CALL NLVSetText 'DT_USER1', "Caption", 131 2872 CALL NLVSetText 'DT_PASSWORD1', "Caption", 23 2873 /* CALL NLVSetText 'CB_STORECREDS1', "Caption", 135 */ 2874 CALL NLVSetText 'ICB_LOGIN_OK', "Caption", 2 2875 CALL NLVSetText 'ICB_LOGIN_CANCEL',"Caption", 3 2848 2876 2849 2877 if VRIsValidObject(SMBObj.rh) then do … … 2897 2925 SW_SERVICE_Create: 2898 2926 call SW_SERVICE_Init 2927 CALL VRMethod 'TT_SERVICE', 'Register', 'CN_SERVICE', NLVGetMessage(69) 2899 2928 return 2900 2929 … … 2928 2957 SW_SETTINGS_Create: 2929 2958 call SW_SETTINGS_Init 2959 2960 call SW_SETTINGS_Init_Content 2961 2962 say VRGet("EF_LOG_FILE","Value") 2963 say translate(VRGet("EF_LOG_FILE","Value"),'\','/') 2964 samba.!logdir = VRParseFileName(translate(VRGet("EF_LOG_FILE","Value"),'\','/'),"DP") 2965 say samba.!logdir 2966 CALL VRMethod 'TT_SETTINGS', 'Register', 'DT_FREESPACE', samba.!logdir' blums' 2930 2967 return 2931 2968 … … 3067 3104 SW_USERS_Create: 3068 3105 call SW_USERS_Init 3106 CALL VRMethod 'TT_USERS', 'Register', 'CN_USERS', NLVGetMessage(67) 3069 3107 return 3070 3108 … … 3095 3133 ok = VRSet("TM_RefreshDaemons","Enabled", 0) 3096 3134 ok = VRSet("DT_STATUSBAR","Caption", VRGet("Main", "HintText")) 3097 /* call _TabsStrip */ 3135 ok = VRSet("CN_DAEMONS","Visible", 0) 3136 ok = VRSet("CN_SMBTREE","Visible", 0) 3137 ok = VRSet("CN_USERS", "Visible", 0) 3138 ok = VRSet("CN_FILES", "Visible", 0) 3139 ok = VRSet("CN_SERVICE","Visible", 0) 3140 ok = VRSet("CN_CHKTDB", "Visible", 0) 3141 ok = VRSet("GB_SETTINGS","Visible", 0) 3142 3098 3143 select 3099 3144 when page = 1 then do /* daemons */ 3145 ok = VRSet("CN_DAEMONS","Visible", 1) 3100 3146 ok = VRSet("Main","WindowIcon","$46") 3101 3147 ok = VRSet("TM_RefreshDaemons","Enabled", 1) … … 3103 3149 end 3104 3150 when page = 2 then do /* smbtree */ 3151 ok = VRSet("CN_SMBTREE","Visible", 1) 3105 3152 ok = VRSet("Main","WindowIcon","$1") 3106 3153 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "All", "handle." ) 3107 3154 /* if the page is empty, populate it */ 3108 if handle.0 = 0 then call PB_Refresh_Click3155 if handle.0 = 0 then call ICB_REFRESH_Click 3109 3156 end 3110 3157 when page = 3 then do /* Users */ 3158 ok = VRSet("CN_USERS","Visible", 1) 3111 3159 ok = VRSet("Main","WindowIcon","$44") 3112 3160 end 3113 3161 when page = 4 then do /* files */ 3162 ok = VRSet("CN_FILES", "Visible", 1) 3114 3163 ok = VRSet("Main","WindowIcon","$1") 3115 3164 end 3116 3165 when page = 5 then do /* service */ 3166 ok = VRSet("CN_SERVICE","Visible", 1) 3117 3167 ok = VRSet("Main","WindowIcon","$52") 3118 3168 end 3119 3169 when page = 6 then do /* chkTDB */ 3170 ok = VRSet("CN_CHKTDB", "Visible", 1) 3120 3171 ok = VRSet("Main","WindowIcon","$53") 3121 3172 say "ChkTDB" … … 3123 3174 end 3124 3175 when page = 7 then do /* Settings */ 3176 ok = VRSet("GB_SETTINGS","Visible", 1) 3125 3177 ok = VRSet("Main","WindowIcon","$53") 3126 3178 call SW_SETTINGS_Init_Content … … 3143 3195 ok = VRSet("TM_RefreshDaemons","Delay", 3000) 3144 3196 call _RefreshDaemons 3197 call _AddSharesDisplay 3145 3198 return 3146 3199
Note:
See TracChangeset
for help on using the changeset viewer.