Changeset 1038
- Timestamp:
- Sep 1, 2017, 9:25:02 AM (8 years ago)
- Location:
- trunk/guitools/smbmon
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/rc/lang/smbmon_de.mkm
r1036 r1038 28 28 SMM0023I: Passwort 29 29 SMM0024I: Einstellungen 30 SMM0025I: Erneuern alle30 SMM0025I: Anzeige erneuern alle 31 31 SMM0026I: Sekunden 32 32 SMM0027I: Keine Besttigung nach Start/Stop/Restart/Reload … … 58 58 SMM0050I: Bitte warten, whrend Daten gesammelt werden... 59 59 SMM0051I: Die angezeigten Daten jetzt erneuern. 60 SMM0052I: Online Hilfe anzeigen lassen.60 SMM0052I: Genderte Einstellungen sichern. 61 61 SMM0053I: ber dieses Programm. 62 62 SMM0054I: Einstellungen speichern und verlassen. … … 89 89 ; Users context menu 90 90 SMM0080I: Mitteilung senden 91 SMM0081 ?:92 SMM0082 ?:93 SMM0083 ?:91 SMM0081I: Minisymbole 92 SMM0082I: Anmelden 93 SMM0083I: Abmelden 94 94 SMM0084?: 95 95 SMM0085I: Bitte, den Mitteilungstext an "%1" eingeben! … … 103 103 SMM0093?: 104 104 SMM0094?: 105 SMM0095 ?:106 SMM0096 ?:107 SMM0097 ?:108 SMM0098 ?:109 SMM0099 ?:105 SMM0095I: Einen Ordner fr die Protokolldateien whlen. 106 SMM0096I: Protokolldateien (soweit wie mglich) lschen. 107 SMM0097I: Schriftgráe fr externe Skripten 108 SMM0098I: Auswhlen 109 SMM0099I: Lschen 110 110 ; Error messages 111 111 SMM0100I: Fehler, kann %1 nicht finden! … … 163 163 SMM0151I: Kommentar 164 164 SMM0152I: Dateigráe 165 SMM0153 ?:166 SMM0154 ?:167 SMM0155 ?:168 SMM0156 ?:165 SMM0153I: Benutzerkontext 166 SMM0154I: Objektname 167 SMM0155I: Text 168 SMM0156I: Numerisch 169 169 SMM0157?: 170 170 SMM0158?: -
trunk/guitools/smbmon/rc/lang/smbmon_en.mkm
r1036 r1038 28 28 SMM0023I: Password 29 29 SMM0024I: Settings 30 SMM0025I: Refresh every30 SMM0025I: Refresh display every 31 31 SMM0026I: seconds 32 32 SMM0027I: No messagebox after Start/Stop/Restart/Reload … … 58 58 SMM0050I: Please stand by, while Samba is collecting data... 59 59 SMM0051I: Refresh data now 60 SMM0052I: S how online help60 SMM0052I: Save changed settings 61 61 SMM0053I: About this program 62 62 SMM0054I: Save settings and exit program … … 89 89 ; User Context menu 90 90 SMM0080I: Send message 91 SMM0081 ?:92 SMM0082 ?:93 SMM0083 ?:91 SMM0081I: Mini icons 92 SMM0082I: Logon 93 SMM0083I: Logoff 94 94 SMM0084?: 95 95 SMM0085I: Please, enter message text to "%1" here … … 103 103 SMM0093?: 104 104 SMM0094?: 105 SMM0095 ?:106 SMM0096 ?:107 SMM0097 ?:108 SMM0098 ?:109 SMM0099 ?:105 SMM0095I: Choose folder for logfiles. 106 SMM0096I: Erase as many logfiles as possible. 107 SMM0097I: Font size for external scripts 108 SMM0098I: Choose 109 SMM0099I: Erase 110 110 ; Error messages 111 111 SMM0100I: Error, cannot find %1! … … 163 163 SMM0151I: Comment 164 164 SMM0152I: Filesize 165 SMM0153 ?:166 SMM0154 ?:167 SMM0155 ?:168 SMM0156 ?:165 SMM0153I: User context 166 SMM0154I: Object name 167 SMM0155I: Text 168 SMM0156I: Numeric 169 169 SMM0157?: 170 170 SMM0158?: -
trunk/guitools/smbmon/rc/lang/smbmon_es.mkm
r1036 r1038 58 58 SMM0050I: Por favor, mantengase a la espera, Samba est recopilando datos... 59 59 SMM0051I: Actualizar datos ahora 60 SMM0052I: Ver ayuda en l¡nea60 SMM0052I: Save changed settings 61 61 SMM0053I: Acerca de este programa 62 62 SMM0054I: Guardar cambios y salir del programa … … 89 89 ; User Context menu 90 90 SMM0080I: Enviar mensaje 91 SMM0081 ?:92 SMM0082 ?:93 SMM0083 ?:91 SMM0081I: Mini s¡mbolos 92 SMM0082I: Registro 93 SMM0083I: Finalizar la sesi¢n 94 94 SMM0084?: 95 95 SMM0085I: Por favor, introduzca en texto para "%1" aqu¡ … … 103 103 SMM0093?: 104 104 SMM0094?: 105 SMM0095 ?:106 SMM0096 ?:107 SMM0097 ?:108 SMM0098 ?:109 SMM0099 ?:105 SMM0095I: Seleccione una carpeta para los archivos de registro. 106 SMM0096I: Eliminar archivos de registro (en la medida de lo posible). 107 SMM0097I: Tama€o de fuente para scripts externos 108 SMM0098I: Elegir 109 SMM0099I: Borrar 110 110 ; Error messages 111 111 SMM0100I: Error, no se puede encontrar %1! … … 163 163 SMM0151I: Commentario 164 164 SMM0152I: Tama€o de archivo 165 SMM0153 ?:166 SMM0154 ?:167 SMM0155 ?:168 SMM0156 ?:165 SMM0153I: Contexto de usuario 166 SMM0154I: Nombre del objeto 167 SMM0155I: Texto 168 SMM0156I: Numrico 169 169 SMM0157?: 170 170 SMM0158?: -
trunk/guitools/smbmon/rc/lang/smbmon_fr.mkm
r1036 r1038 60 60 SMM0050I: Veuillez patienter pendant que Samba collecte les donnes... 61 61 SMM0051I: Actualisation immdiate des donnes 62 SMM0052I: Affichage de l'aide en ligne62 SMM0052I: Save changed settings 63 63 SMM0053I: · propos de ce programme 64 64 SMM0054I: Sauvegarde des paramtres et fermeture du programme … … 91 91 ; User Context menu 92 92 SMM0080I: Message envoy 93 SMM0081 ?:94 SMM0082 ?:95 SMM0083 ?:93 SMM0081I: Symboles Mini 94 SMM0082I: Connecter 95 SMM0083I: Dconnecter 96 96 SMM0084?: 97 97 SMM0085I: Veuillez saisir le message destin … … 106 106 SMM0093?: 107 107 SMM0094?: 108 SMM0095 ?:109 SMM0096 ?:110 SMM0097 ?:111 SMM0098 ?:112 SMM0099 ?:108 SMM0095I: Slectionnez un dossier pour les fichiers journaux. 109 SMM0096I: Supprimez les fichiers journaux (dans la mesure du possible). 110 SMM0097I: Taille de police pour les scripts externes 111 SMM0098I: Choisir 112 SMM0099I: Effacer 113 113 ; Error messages 114 114 SMM0100I: Erreur - %1 est introuvable ! … … 168 168 SMM0151I: Commentaires 169 169 SMM0152I: Taille du fichier 170 SMM0153 ?:171 SMM0154 ?:172 SMM0155 ?:173 SMM0156 ?:170 SMM0153I: Contexte utilisateur 171 SMM0154I: Nom de l'objet 172 SMM0155I: Texte 173 SMM0156I: Numrique 174 174 SMM0157?: 175 175 SMM0158?: -
trunk/guitools/smbmon/rc/lang/smbmon_sv.mkm
r1036 r1038 58 58 SMM0050I: Vnta medan Samba samlar ihop information... 59 59 SMM0051I: Uppdatera data nu. 60 SMM0052I: Visa hjlp p ntet.60 SMM0052I: Save changed settings. 61 61 SMM0053I: Om detta program. 62 62 SMM0054I: Spara instllningar och avsluta programmet. … … 89 89 ; Users context menu 90 90 SMM0080I: Skicka meddelande 91 SMM0081 ?:92 SMM0082 ?:93 SMM0083 ?:91 SMM0081I: Mini symboler 92 SMM0082I: Registrera 93 SMM0083I: Logga ut 94 94 SMM0084?: 95 95 SMM0085I: Ange meddelande till "%1" hr … … 103 103 SMM0093?: 104 104 SMM0094?: 105 SMM0095 ?:106 SMM0096 ?:107 SMM0097 ?:108 SMM0098 ?:109 SMM0099 ?:105 SMM0095I: Vlj en mapp fr loggfilerna. 106 SMM0096I: Ta bort loggfiler (s lngt som mjligt). 107 SMM0097I: Teckenstorlek fr externa skript 108 SMM0098I: Vlj 109 SMM0099I: Radera 110 110 ; Error messages 111 111 SMM0100I: Fel, kan inte hitta %1! … … 163 163 SMM0151I: Kommentera 164 164 SMM0152I: Filstorlek 165 SMM0153 ?:166 SMM0154 ?:167 SMM0155 ?:168 SMM0156 ?:165 SMM0153I: Anvndarsammanhang 166 SMM0154I: Objektnamn 167 SMM0155I: Text 168 SMM0156I: Numerisk 169 169 SMM0157?: 170 170 SMM0158?: -
trunk/guitools/smbmon/smbmon.rc
r1036 r1038 54 54 bitmap 158 .\rc\icons\button_accept.bmp 55 55 bitmap 159 .\rc\icons\button_cancel.bmp 56 56 bitmap 160 .\rc\icons\open.bmp 57 bitmap 161 .\rc\icons\erase.bmp -
trunk/guitools/smbmon/smbmon.vrp
r1036 r1038 8 8 VRXWindow: __VREMainWindow,1,2168,3614,1024,6769 9 9 VRXWindow: __VRESectionListWindow,1,3963,14213,10130,5059 10 VRXWindow: __VREToolsWindow,1,1 747,1108,6483,166310 VRXWindow: __VREToolsWindow,1,1518,434,6486,1669 11 11 VRXWindow: __VREWindListWindow,1,952,11708,5372,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_USERS,1 15 UserWindow: SW_SERVICE,1 16 UserWindow: SW_LOGIN,1 14 UserWindow: SW_SETTINGS,1 -
trunk/guitools/smbmon/smbmon.vrx
r1036 r1038 495 495 ok = VRSet("CN_SMBTREE", "Font", Font.!SMBTree) 496 496 497 CALL NLVSetText 'DT_Refresh', 'Caption', 25 498 CALL NLVSetText 'DT_RefreshMin', 'Caption', 25 499 CALL NLVSetText 'DT_Intervall', 'Caption', 26 500 ok = VRSet("DT_IntervallMin", "Caption", NLVGetMessage(26)' 'NLVGetMessage(28)) 501 CALL NLVSetText 'CB_NoMsgBox', 'Caption', 27 502 CALL NLVSetText 'CB_WPSSTARTSTOP', 'Caption', 29 503 CALL NLVSetText 'CB_DetectZombies','Caption', 30 504 505 CALL NLVSetText 'ContextMenu_Daemons_Sort', 'Caption', 35 506 CALL NLVSetText 'ContextMenu_Daemons_Ping', 'Caption', 32 507 CALL NLVSetText 'ContextMenu_Daemons_Details','Caption', 118 508 CALL NLVSetText 'ContextMenu_Daemons_Tree', 'Caption', 120 509 510 CALL NLVSetText 'ContextMenu_Files_Sort', 'Caption', 35 511 512 CALL NLVSetText 'ContextMenu_Service_Sort', 'Caption', 35 513 CALL NLVSetText 'ContextMenu_Service_CloseSHare', 'Caption', 70 514 515 CALL NLVSetText 'ContextMenu_Users_SendMsg', 'Caption', 80 516 CALL NLVSetText 'ContextMenu_Users_Sort', 'Caption', 35 517 518 CALL NLVSetText 'ContextMenu_Tree_SendMsg', 'Caption', 80 519 CALL NLVSetText 'ContextMenu_Tree_Sort', 'Caption', 35 520 CALL NLVSetText 'ContextMenu_Tree_Tree', 'Caption', 120 521 CALL NLVSetText 'ContextMenu_Tree_Details', 'Caption', 118 497 ok = VRset("CN_SMBTREE","Caption",NLVGetMessage(153)||': Guest') 498 499 CALL NLVSetText 'ContextMenu_Daemons_Sort', 'Caption', 35 500 CALL NLVSetText 'ContextMenu_Daemons_Ping', 'Caption', 32 501 CALL NLVSetText 'ContextMenu_Daemons_Details', 'Caption', 118 502 /* CALL NLVSetText 'ContextMenu_Daemons_Icons', 'Caption', 119 */ 503 CALL NLVSetText 'ContextMenu_Daemons_Tree', 'Caption', 120 504 CALL NLVSetText 'ContextMenu_Daemons_Miniicons', 'Caption', 81 505 506 CALL NLVSetText 'ContextMenu_Files_Sort', 'Caption', 35 507 508 CALL NLVSetText 'ContextMenu_Service_Sort', 'Caption', 35 509 CALL NLVSetText 'ContextMenu_Service_CloseSHare','Caption', 70 510 511 CALL NLVSetText 'ContextMenu_Users_SendMsg', 'Caption', 80 512 CALL NLVSetText 'ContextMenu_Users_Sort', 'Caption', 35 513 514 CALL NLVSetText 'ContextMenu_Tree_SendMsg', 'Caption', 80 515 CALL NLVSetText 'ContextMenu_Tree_Miniicons', 'Caption', 81 516 CALL NLVSetText 'ContextMenu_Tree_Login', 'Caption', 82 517 CALL NLVSetText 'ContextMenu_Tree_Logoff', 'Caption', 83 518 519 CALL NLVSetText 'ContextMenu_Tree_Sort', 'Caption', 35 520 CALL NLVSetText 'ContextMenu_Tree_Details', 'Caption', 118 521 CALL NLVSetText 'ContextMenu_Tree_Icons', 'Caption', 119 522 CALL NLVSetText 'ContextMenu_Tree_Tree', 'Caption', 120 522 523 523 524 Buttonwidth = VRMethod( "Screen", "PixelsToTwips", 32 ) … … 537 538 ok = VRSet("CB_DetectZombies","Set", DetectZombies) 538 539 540 if VIOFontSize = "" then do 541 ok = VRSet("DT_FONTSIZE","Enabled", 0) 542 ok = VRSet("SPIN_FONTSIZE","Enabled", 0) 543 end 544 else ok = VRSet("SPIN_FONTSIZE","Value", VIOFontSize) 545 539 546 call _INILayoutRead "CN_Users" 540 547 call _INILayoutRead "CN_Files" … … 545 552 ok = VRset("CN_DAEMONS", "MiniIcons", \advanced.!bigicons) 546 553 ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons) 547 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons)548 ok = VRset("ContextMenu_Daemons_MiniIcons", 554 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons) 555 ok = VRset("ContextMenu_Daemons_MiniIcons", "Checked", \advanced.!bigicons) 549 556 ok = VRSet("CB_Debug","set",options.!Debug) 550 557 … … 648 655 DetectZombies = VRGetIni( "Settings", "DetectZombies", OurINI,'NoClose') 649 656 if DetectZombies = "" then DetectZombies = 0 657 658 VIOFontSizeKey = "" 659 660 VIOFontSize = VRGetIni( "Settings", "VIOFontsize", OurINI,'NoClose') 661 if VIOFontSize = "" then do 662 say "Undefined VIOFontsize and OldFontSize" 663 VIOFontSize = _VIOFontSizeGetCurrent() 664 OldFontSize = VIOFontSize 665 say "VIOFontSize ="VIOFontSize 666 say "OldFontSize ="OldFontSize 667 end 668 else do 669 OldFontSize = _VIOFontSizeGetCurrent() 670 say "Detected OldFontSize = "OldFontSize 671 say "VIOFontSize from INI = "VIOFontSize 672 end 673 650 674 651 675 options.!debug = VRGetIni( "Options", "Debug", OurINI) … … 707 731 ok = VRSetIni( "Settings", "BigIcons", \VRGet("CN_SMBTREE", "MiniIcons"),OurINI,'NoClose') 708 732 ok = VRSetIni( "Settings", "DetectZombies",DetectZombies, OurINI,'NoClose') 709 call VRSetIni 'Settings', 'StoreCreds', options.!storecreds , OurINI, 'NoClose' 733 ok = VRSetIni( "Settings", "StoreCreds", options.!storecreds , OurINI,'NoClose') 734 ok = VRSetIni( "Settings", "VIOFontsize", VIOFontsize, OurINI,'NoClose') 710 735 711 736 ok = VRSetIni( "Options", "Debug", options.!debug, OurINI, 'NoClose' ) … … 1188 1213 return 1189 1214 1215 /*:VRX _SambaCheckFreeSpace 1216 */ 1217 _SambaCheckFreeSpace: 1218 say time()" _SambaCheckFreeSpace() started" 1219 1220 if samba.!logdir = 'SAMBA.!LOGDIR' | samba.!Logdir = "" then do 1221 log_file = IniGet('log file', 'global', samba.!smbconf) 1222 say log_file 1223 say translate(log_file,'\','/') 1224 samba.!logdir = VRParseFileName(translate(log_file,'\','/'),"DP") 1225 say samba.!logdir 1226 end 1227 loggingfreespace = word(SysDriveInfo(left(samba.!logdir,2)),2)%1024%1024 1228 ok = VRSet("DT_FREESPACE", "Caption", " "loggingfreespace' MB') 1229 1230 select 1231 when loggingfreespace < 50 then ok = VRDeleteFile(samba.!logdir'\log.*') 1232 when loggingfreespace < 100 then ok = VRset("CN_Daemons","BackColor","Red") 1233 when loggingfreespace < 200 then ok = VRset("CN_Daemons","BackColor","Yellow") 1234 otherwise ok = VRset("CN_Daemons","BackColor","SystemWindow") 1235 end 1236 CALL VRMethod 'TT_SETTINGS', 'Register', 'DT_FREESPACE', samba.!logdir 1237 say time()" _SambaCheckFreeSpace() done" 1238 return 1239 1190 1240 /*:VRX _SambaFindPIDfile 1191 1241 */ … … 1318 1368 if uS <> 0 | UpTimeStr = ' 'NlvGetMessage(43)':' then UpTimeStr = UpTimeStr' 'uS' 'NlvGetMessage(49) 1319 1369 1320 loggingfreespace = word(sysdriveinfo(left(samba.!logdir,2)),2)%1024%10241321 ok = VRSet("DT_FREESPACE", "Caption", loggingfreespace' MB')1322 1370 ok = VRset("CN_Daemons", "Caption", UpTimeStr) 1323 1371 1324 select 1325 when loggingfreespace < 50 then ok = VRDeleteFile(samba.!logdir'\log.*') 1326 when loggingfreespace < 100 then ok = VRset("CN_Daemons","BackColor","Red") 1327 when loggingfreespace < 200 then ok = VRset("CN_Daemons","BackColor","Yellow") 1328 otherwise ok = VRset("CN_Daemons","BackColor","SystemWindow") 1329 end 1372 call _SambaCheckFreeSpace 1330 1373 1331 1374 IF options.!debug == 1 then say time()' _SambaUptime() done' … … 1395 1438 if options.!debug == 1 then say time()' _UserCredUpdate done' 1396 1439 return 1440 /*:VRX _VIOFontSizeGetCurrent 1441 */ 1442 _VIOFontSizeGetCurrent: procedure expose VIOFontSizeKey 1443 say '_VIOFontSizeGetCurrent() started' 1444 if VIOFontSizeKey = "" then do 1445 ok = SysIni("USER", "Shield", 'ALL:', 'stem.') 1446 say "SysIni ="ok 1447 say "Shield keys: "stem.0 1448 do I = 1 to stem.0 1449 say I': 'stem.I 1450 Wert = c2x(strip(SysIni("USER", "Shield", stem.I),,'00'x)) 1451 say I': 'Wert' ('length(Wert)')' 1452 if length(Wert) = 4 & pos('~',stem.I) > 0 then do 1453 VIOFontSizeKey = stem.I 1454 say "VIOFontSizeKey = "VIOFontSizeKey 1455 leave 1456 end 1457 end 1458 end 1459 else do 1460 Wert = c2x(strip(SysIni("USER", "Shield", VIOFontSizeKey),,'00'x)) 1461 end 1462 if VIOFontSizeKey <> "" then FontSize = x2d(right(Wert,2))||'x'||x2d(left(Wert,2)) 1463 else FontSize = "" 1464 say '_VIOFontSizeGetCurrent() started, done 'FontSize', 'Wert 1465 return FontSize 1466 1467 /*:VRX _VIOFontSizeSetCurrent 1468 */ 1469 _VIOFontSizeSetCurrent: procedure expose VIOFontSizeKey OldFontSize 1470 say '_VIOFontSizeSetCurrent() started' 1471 FontSize = arg(1) 1472 say 'FontSize als arg = 'FontSize 1473 if FontSize = 'OLDFONTSIZE' then FontSize = '' 1474 if VIOFontSizeKey = '' then FontSize = '' 1475 1476 if pos('x',FontSize) > 0 then do 1477 parse var FontSize HH'x'BB 1478 say 'HH = 'HH 1479 say 'BB = 'BB 1480 Wert = d2c(BB)||d2c(HH) 1481 say 'Wert = 'Wert 1482 ok = SysIni("USER","Shield",VIOFontSizeKey, Wert||d2c(0)) 1483 end 1484 say '_VIOFontSizeSetCurrent() done, 'FontSize', 'Wert 1485 return FontSize 1486 1397 1487 /*:VRX About_Close 1398 1488 */ … … 1679 1769 OpenOk = _browseobjectopen(machine,sharename,browsepath) 1680 1770 end 1681 if \OpenOk then do 1682 Msg.Text = "Not connected - cannot open - aborting!" 1683 Msg.Type = "E" 1684 call _ShowMsg 1771 if \OpenOk then do /* We cannot browse file content in smbmon (we are not a client) */ 1772 /* Instead we open the ACLS Browser */ 1773 call ContextMenu_Tree_ACLS_Click 1685 1774 end 1686 1775 end … … 1831 1920 ok = VRset("CN_DAEMONS", "MiniIcons", \advanced.!bigicons) 1832 1921 ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons) 1833 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons)1834 ok = VRset("ContextMenu_Daemons_MiniIcons", 1922 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons) 1923 ok = VRset("ContextMenu_Daemons_MiniIcons","Checked", \advanced.!bigicons) 1835 1924 return 1836 1925 … … 1963 2052 /*:VRX ContextMenu_Tree_MiniIcons_Click 1964 2053 */ 1965 ContextMenu_Tree_MiniIcons_Click: 2054 ContextMenu_Tree_MiniIcons_Click: 1966 2055 advanced.!bigicons = \advanced.!bigicons 1967 2056 ok = VRset("CN_DAEMONS", "MiniIcons", \advanced.!bigicons) 1968 2057 ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons) 1969 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons)1970 ok = VRset("ContextMenu_Daemons_MiniIcons", 2058 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons) 2059 ok = VRset("ContextMenu_Daemons_MiniIcons","Checked", \advanced.!bigicons) 1971 2060 return 1972 2061 … … 2049 2138 return 2050 2139 2140 /*:VRX ICB_ACLS_OK_Click 2141 */ 2142 ICB_ACLS_OK_Click: 2143 call SW_ACLS_close 2144 return 2145 2051 2146 /*:VRX ICB_APPLY_Click 2052 2147 */ … … 2069 2164 say 'DetectZombies = "'DetectZombies'"' 2070 2165 2166 VIOFontsize = VRGet("SPIN_FONTSIZE","Value") 2167 say "VIOFontsize = "VIOFontsize 2168 2071 2169 options.!storecreds = VRGet("CB_STORECREDS","Set") 2072 2170 say "options.!storecreds = "options.!storecreds … … 2076 2174 log_file = VRGet("EF_log_file","Value") 2077 2175 max_protocol = VRGet("SPIN_max_protocol","Value") 2176 max_log_size = VRGet("SPIN_max_log_size","Value") 2078 2177 2079 2178 handle = IniOpen('global', samba.!smbconf) … … 2081 2180 ok = IniSet('log level', log_level, handle) 2082 2181 ok = IniSet('log file', log_file, handle) 2182 ok = IniSet('max log size', max_log_size, handle) 2083 2183 ok = IniSet('max protocol', max_protocol, handle) 2084 2184 … … 2088 2188 end 2089 2189 IF options.!debug == 1 then say time()' PB_Apply_Click() done' 2190 return 2191 2192 /*:VRX ICB_CHOOSE_Click 2193 */ 2194 ICB_CHOOSE_Click: 2195 FileName = VRFileDialog( VRWindow(), "Choose location for log files", "Open", VRGet("EF_LOG_FILE","Value")) 2196 if Filename <> "" then ok = VRSet("EF_LOG_FILE","Value", FIleName) 2197 drop Filename 2198 return 2199 2200 /*:VRX ICB_DELLOGS_Click 2201 */ 2202 ICB_DELLOGS_Click: 2203 call VRSet VRWindow(), 'Pointer', 'Wait' 2204 2205 call _SambaCheckFreeSpace 2206 2207 ok = SysFileTree(samba.!logdir'\log.*', logs.,'FO') 2208 do I = 1 to logs.0 2209 ok = VRMethod( "CN_Daemons", "GetRecordList", "All", "handle." ) 2210 KeepLog = 0 2211 do J = 1 to handle.0 2212 CurPID = VRMethod("CN_Daemons", "GetFieldData", handle.J, DPidsFH) 2213 if pos(CurPID,logs.I) > 0 then KeepLog = 1 2214 end 2215 if KeepLog = 0 then do 2216 say "Delete "logs.I 2217 ok = SysFileDelete(logs.I) 2218 end 2219 end 2220 2221 call _SambaCheckFreeSpace 2222 2223 call VRSet VRWindow(), 'Pointer', '<default>' 2090 2224 return 2091 2225 … … 2135 2269 2136 2270 if word(ok,1) = "1" then do 2137 call _StatusBarWrapper NLVGetMessage(107, rpc.queryuser.FULL_NAME) 2271 call _StatusBarReset 2272 call _StatusBarWrapper NLVGetMessage(15)' "'VRGet("EF_USER1","Value")'" 'rpc.queryuser.LOGONSTATUS 2138 2273 say 'rpc.queryuser.DIR_DRIVE = "'rpc.queryuser.DIR_DRIVE'"' 2139 2274 say 'rpc.queryuser.LOGON_SCRIPT = "'rpc.queryuser.LOGON_SCRIPT'"' 2140 2275 call _UserCredUpdate 2276 Usercontext = VRGet("CN_SMBTREE","Caption") 2277 parse var Usercontext Usercontext':'. 2278 Usercontext = Usercontext': 'VRGet("EF_USER1","Value") 2279 ok = VRSet("CN_SMBTREE","Caption",Usercontext) 2141 2280 end 2142 2281 else do … … 2173 2312 ICB_RELOAD_Click: 2174 2313 call VRSet VRWindow(), 'Pointer', 'Wait' 2314 OldFontSize = _VIOFontSizeGetCurrent() 2315 say 'OldFontSize = 'OldFontSize 2316 if OldFontSize <> VIOFontSize then ok = _VIOFontSizeSetCurrent(VIOFontSize) 2317 2175 2318 if WPSStartStop then do 2176 2319 ok = SysOpenObject('<smb_reload>', 'DEFAULT', 1) … … 2188 2331 ICB_RESTART_Click: 2189 2332 call VRSet VRWindow(), 'Pointer', 'Wait' 2333 OldFontSize = _VIOFontSizeGetCurrent() 2334 say 'OldFontSize = 'OldFontSize 2335 if OldFontSize <> VIOFontSize then ok = _VIOFontSizeSetCurrent(VIOFontSize) 2336 2190 2337 if WPSStartStop then do 2191 2338 ok = SysOpenObject('<smb_restart>', 'DEFAULT', 1) … … 2204 2351 say "IPB_Start_Click started" 2205 2352 call VRSet VRWindow(), 'Pointer', 'Wait' 2353 OldFontSize = _VIOFontSizeGetCurrent() 2354 say 'OldFontSize = 'OldFontSize 2355 if OldFontSize <> VIOFontSize then ok = _VIOFontSizeSetCurrent(VIOFontSize) 2206 2356 if WPSStartStop then do 2207 2357 ok = SysOpenObject('<smb_start>', 'DEFAULT', 1) … … 2221 2371 say "IPB_Stop_Click started" 2222 2372 call VRSet VRWindow(), 'Pointer', 'Wait' 2373 OldFontSize = _VIOFontSizeGetCurrent() 2374 say 'OldFontSize = 'OldFontSize 2375 if OldFontSize <> VIOFontSize then ok = _VIOFontSizeSetCurrent(VIOFontSize) 2376 2223 2377 if WPSStartStop then do 2224 2378 ok = SysOpenObject('<smb_stop>', 'DEFAULT', 1) … … 2298 2452 Main_Resize: 2299 2453 IF options.!debug == 1 THEN SAY time()' Main_Resize started' 2454 if TrashedSize = 1 then do 2455 IF options.!debug == 1 THEN SAY time()' Main_Resize aborted, already in progress' 2456 end 2300 2457 ok = VRSet("Main","Painting", 0) 2301 2458 … … 2422 2579 ok = VRSet("ICB_Reload", "Height", pbtn_Height) 2423 2580 2581 ok = VRSet("ICB_CHOOSE", "Width", pbtn_width) 2582 ok = VRSet("ICB_CHOOSE", "Height", pbtn_Height) 2583 2584 ok = VRSet("ICB_DELLOGS", "Width", pbtn_width) 2585 ok = VRSet("ICB_DELLOGS", "Height", pbtn_Height) 2424 2586 2425 2587 ok = VRset("GB_SMBTREE","Top", margin ) … … 2532 2694 PB_AboutOK_Click: 2533 2695 call About_Close 2534 return2535 2536 /*:VRX PB_ACLS_OK_Click2537 */2538 PB_ACLS_OK_Click:2539 call SW_ACLS_close2540 return2541 2542 /*:VRX PB_DELLOGS_Click2543 */2544 PB_DELLOGS_Click:2545 call VRSet VRWindow(), 'Pointer', 'Wait'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.!logdir2550 2551 loggingfreespace = word(sysdriveinfo(left(samba.!logdir,2)),2)%1024%10242552 ok = VRSet("DT_FREESPACE", "Caption", loggingfreespace' MB')2553 2554 2555 ok = SysFileTree(samba.!logdir'\log.*', logs.,'FO')2556 do I = 1 to logs.02557 ok = VRMethod( "CN_Daemons", "GetRecordList", "All", "handle." )2558 KeepLog = 02559 do J = 1 to handle.02560 CurPID = VRMethod("CN_Daemons", "GetFieldData", handle.J, DPidsFH)2561 if pos(CurPID,logs.I) > 0 then KeepLog = 12562 end2563 if KeepLog = 0 then do2564 say "Delete "logs.I2565 ok = SysFileDelete(logs.I)2566 end2567 end2568 2569 loggingfreespace = word(sysdriveinfo(left(samba.!logdir,2)),2)%1024%10242570 ok = VRSet("DT_FREESPACE", "Caption", loggingfreespace' MB')2571 2572 call VRSet VRWindow(), 'Pointer', '<default>'2573 2696 return 2574 2697 … … 2695 2818 return 2696 2819 2820 /*:VRX SPIN_FONTSIZE_Change 2821 */ 2822 SPIN_FONTSIZE_Change: 2823 return 2824 2697 2825 /*:VRX SPIN_Intervall_Change 2698 2826 */ … … 2711 2839 return 2712 2840 2841 /*:VRX SPIN_MAX_LOG_SIZE_Change 2842 */ 2843 SPIN_MAX_LOG_SIZE_Change: 2844 advanced.!smbconfchanged = 1 2845 return 2846 2713 2847 /*:VRX SPIN_max_protocol_Change 2714 2848 */ … … 2727 2861 SW_ACLS_Create: 2728 2862 call SW_ACLS_Init 2863 CALL NLVSetText 'ICB_ACLS_OK', "Caption", 2 2864 CALL NLVSetText 'RB_ACLS_TEXT' "Caption", 155 2865 CALL NLVSetText 'RB_ACLS_NUMERIC' "Caption", 156 2866 2729 2867 ACL.typeFH = VRMethod( "CN_ACLS", "AddField", "String", "Type" ) 2730 2868 ACL.groupFH = VRMethod( "CN_ACLS", "AddField", "String", "Group" ) … … 2736 2874 aclsnumeric = '' 2737 2875 call _ACLSBrowse 2876 ACLSObj = VRGet("SW_ACLS","Caption") 2877 parse var ACLSObj .'\\'ACLSObj 2878 ACLSObj = NLVGetMessage(154)' \\'ACLSOBj 2879 ok = VRSet("SW_ACLS","Caption",ACLSObj) 2880 drop ACLSObj 2738 2881 return 2739 2882 /*:VRX SW_ACLS_Fini … … 2958 3101 call SW_SETTINGS_Init 2959 3102 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' 3103 CALL NLVSetText 'DT_Refresh', 'Caption', 25 3104 CALL NLVSetText 'DT_RefreshMin', 'Caption', 25 3105 ok = VRSet("DT_REFRESH","AutoSize", 1) 3106 ok = VRSet("DT_REFRESH","AutoSize", 0) 3107 ok = VRSet("DT_REFRESH","Height", 253) 3108 ok = VRSet("DT_REFRESHMIN","Width", VRGet("DT_REFRESH","width")) 3109 3110 ok = VRSet("SPIN_Intervall","Left",VRGet("DT_REFRESH","Left")+VRGet("DT_REFRESH","Width")+marginx2) 3111 ok = VRSet("SPIN_IntervallMin","Left",VRGet("DT_REFRESH","Left")+VRGet("DT_REFRESH","Width")+marginx2) 3112 3113 CALL NLVSetText 'DT_Intervall', 'Caption', 26 3114 ok = VRSet("DT_IntervallMin", "Caption", NLVGetMessage(26)', 'NLVGetMessage(28)) 3115 ok = VRSet("DT_IntervallMin","AutoSize", 1) 3116 ok = VRSet("DT_IntervallMin","AutoSize", 0) 3117 ok = VRSet("DT_IntervallMin","Height", 253) 3118 3119 ok = VRSet("DT_Intervall", "Left",VRGet("SPIN_Intervall","Left")+VRGet("SPIN_Intervall","Width")+marginx2) 3120 ok = VRSet("DT_IntervallMin","Left",VRGet("SPIN_Intervall","Left")+VRGet("SPIN_Intervall","Width")+marginx2) 3121 3122 CALL NLVSetText 'CB_NoMsgBox', 'Caption', 27 3123 CALL NLVSetText 'CB_WPSSTARTSTOP', 'Caption', 29 3124 CALL NLVSetText 'CB_DetectZombies','Caption', 30 3125 3126 CALL NLVSetText 'DT_FONTSIZE', 'Caption', 97 3127 CALL NLVSetText 'ICB_CHOOSE', 'Caption', 98 3128 CALL NLVSetText 'ICB_DELLOGS', 'Caption', 99 3129 3130 log_level = IniGet('log level', 'global', samba.!smbconf) 3131 log_file = IniGet('log file', 'global', samba.!smbconf) 3132 log_file = translate(log_file,'\','/') 3133 max_protocol = IniGet('max protocol', 'global', samba.!smbconf) 3134 max_log_size = IniGet('max log size', 'global', samba.!smbconf) 3135 3136 if log_level = "" then log_level = 2 3137 if max_protocol = "" then max_protocol = "NT1" 3138 3139 ok = VRSet("SPIN_LOG_LEVEL","Value",log_level) 3140 ok = VRSet("SPIN_MAX_LOG_SIZE","Value",max_log_size) 3141 ok = VRSet("SPIN_MAX_PROTOCOL","Value",max_protocol) 3142 ok = VRSet("EF_LOG_FILE","Value",log_file) 3143 ok = VRSet("EF_LOG_FILE","Width",length(log_file) * 100 + 300) 3144 ok = VRSet("DT_FREESPACE","Left",VRGet("EF_LOG_FILE","Width")+VRGet("EF_LOG_FILE","Left") + marginx2) 3145 ok = VRSet("ICB_DELLOGS","Left",VRGet("DT_FREESPACE","Left")) 3146 3147 ok = VRSet("DT_FONTSIZE","AutoSize", 1) 3148 ok = VRSet("DT_FONTSIZE","AutoSize", 0) 3149 ok = VRSet("DT_FONTSIZE","Height", 253) 3150 ok = VRSet("SPIN_FONTSIZE", "Left", VRGet("DT_FONTSIZE","Left")+VRGet("DT_FONTSIZE","Width")+marginx2) 3151 3152 CALL VRMethod 'TT_SETTINGS', 'Register', 'ICB_CHOOSE', NLVGetMessage(95) 3153 CALL VRMethod 'TT_SETTINGS', 'Register', 'ICB_DELLOGS', NLVGetMessage(96) 3154 CALL VRMethod 'TT_SETTINGS', 'Register', 'DT_LOG_LEVEL', samba.!smbconf 3155 CALL VRMethod 'TT_SETTINGS', 'Register', 'SPIN_LOG_LEVEL', samba.!smbconf 3156 CALL VRMethod 'TT_SETTINGS', 'Register', 'DT_LOG_FILE', samba.!smbconf 3157 CALL VRMethod 'TT_SETTINGS', 'Register', 'EF_LOG_FILE', samba.!smbconf 3158 CALL VRMethod 'TT_SETTINGS', 'Register', 'DT_MAX_LOG_SIZE', samba.!smbconf 3159 CALL VRMethod 'TT_SETTINGS', 'Register', 'SPIN_MAX_LOG_SIZE', samba.!smbconf 3160 CALL VRMethod 'TT_SETTINGS', 'Register', 'DT_MAX_PROTOCOL', samba.!smbconf 3161 CALL VRMethod 'TT_SETTINGS', 'Register', 'SPIN_MAX_PROTOCOL', samba.!smbconf 3162 3163 call _SambaCheckFreeSpace 2967 3164 return 2968 3165 … … 2984 3181 end 2985 3182 drop window 2986 return2987 2988 /*:VRX SW_SETTINGS_Init_Content2989 */2990 SW_SETTINGS_Init_Content:2991 2992 log_level = IniGet('log level', 'global', samba.!smbconf)2993 log_file = IniGet('log file', 'global', samba.!smbconf)2994 max_protocol = IniGet('max_protocol', 'global', samba.!smbconf)2995 2996 if log_level = "" then log_level = 22997 if max_protocol = "" then max_protocol = "NT1"2998 2999 ok = VRSet("SPIN_LOG_LEVEL","Value",log_level)3000 ok = VRSet("EF_LOG_FILE","Value",log_file)3001 3183 return 3002 3184 … … 3133 3315 ok = VRSet("TM_RefreshDaemons","Enabled", 0) 3134 3316 ok = VRSet("DT_STATUSBAR","Caption", VRGet("Main", "HintText")) 3135 ok = VRSet("CN_DAEMONS","Visible", 0) 3317 3318 ok = VRSet("CN_DAEMONS", "Visible", 0) 3319 ok = VRSet("ICB_START", "Visible", 0) 3320 ok = VRSet("ICB_STOP", "Visible", 0) 3321 ok = VRSet("ICB_RESTART","Visible", 0) 3322 ok = VRSet("ICB_RELOAD", "Visible", 0) 3323 3136 3324 ok = VRSet("CN_SMBTREE","Visible", 0) 3137 3325 ok = VRSet("CN_USERS", "Visible", 0) … … 3139 3327 ok = VRSet("CN_SERVICE","Visible", 0) 3140 3328 ok = VRSet("CN_CHKTDB", "Visible", 0) 3141 ok = VRSet("GB_SETTINGS","Visible", 0) 3329 3330 ok = VRSet("GB_SETTINGS", "Visible", 0) 3331 ok = VRSet("ICB_CHOOSE", "Visible", 0) 3332 ok = VRSet("ICB_DELLOGS", "Visible", 0) 3333 ok = VRSet('ICB_CHOOSE', "Visible", 0) 3334 ok = VRSet('ICB_DELLOGS', "Visible", 0) 3335 ok = VRSet('DT_LOG_LEVEL', "Visible", 0) 3336 ok = VRSet('SPIN_LOG_LEVEL', "Visible", 0) 3337 ok = VRSet('DT_LOG_FILE', "Visible", 0) 3338 ok = VRSet('EF_LOG_FILE', "Visible", 0) 3339 ok = VRSet('DT_MAX_LOG_SIZE', "Visible", 0) 3340 ok = VRSet('SPIN_MAX_LOG_SIZE', "Visible", 0) 3341 ok = VRSet('DT_MAX_PROTOCOL', "Visible", 0) 3342 ok = VRSet('SPIN_MAX_PROTOCOL', "Visible", 0) 3142 3343 3143 3344 select 3144 3345 when page = 1 then do /* daemons */ 3145 3346 ok = VRSet("CN_DAEMONS","Visible", 1) 3347 ok = VRSet("ICB_START", "Visible", 1) 3348 ok = VRSet("ICB_STOP", "Visible", 1) 3349 ok = VRSet("ICB_RESTART","Visible", 1) 3350 ok = VRSet("ICB_RELOAD", "Visible", 1) 3146 3351 ok = VRSet("Main","WindowIcon","$46") 3147 3352 ok = VRSet("TM_RefreshDaemons","Enabled", 1) … … 3174 3379 end 3175 3380 when page = 7 then do /* Settings */ 3176 ok = VRSet("GB_SETTINGS","Visible", 1) 3177 ok = VRSet("Main","WindowIcon","$53") 3178 call SW_SETTINGS_Init_Content 3381 ok = VRSet("GB_SETTINGS", "Visible", 1) 3382 ok = VRSet("ICB_CHOOSE", "Visible", 1) 3383 ok = VRSet("ICB_DELLOGS", "Visible", 1) 3384 ok = VRSet('DT_LOG_LEVEL', "Visible", 1) 3385 ok = VRSet('SPIN_LOG_LEVEL', "Visible", 1) 3386 ok = VRSet('DT_LOG_FILE', "Visible", 1) 3387 ok = VRSet('EF_LOG_FILE', "Visible", 1) 3388 ok = VRSet('DT_MAX_LOG_SIZE', "Visible", 1) 3389 ok = VRSet('SPIN_MAX_LOG_SIZE', "Visible", 1) 3390 ok = VRSet('DT_MAX_PROTOCOL', "Visible", 1) 3391 ok = VRSet('SPIN_MAX_PROTOCOL', "Visible", 1) 3392 ok = VRSet("Main","WindowIcon", "$53") 3179 3393 end 3180 3394 otherwise nop … … 3187 3401 /* call beep 1200, 20 */ 3188 3402 ok = VRSet("TM_Refresh","Delay", Intervall * 1000) 3403 if _VIOFontSizeGetCurrent() <> OldFontSize then ok = _VIOFontSizeSetCurrent(OldFontSize) 3189 3404 call _Refresh 3190 3405 return
Note:
See TracChangeset
for help on using the changeset viewer.