Changeset 990 for trunk/guitools/sscc
- Timestamp:
- Dec 9, 2016, 11:06:20 AM (9 years ago)
- Location:
- trunk/guitools/sscc
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/sscc/rc/lang/sscc_de.mkm
r771 r990 18 18 SSC0013I: Freigeben 19 19 SSC0014I: Fortfahren 20 SSC0015 ?:20 SSC0015I: Start/Stop 21 21 SSC0016?: 22 22 SSC0017?: … … 77 77 SSC0070I: Kann transiente TDB Dateien nicht entfernen solange Samba luft! 78 78 SSC0071I: Transiente TDB Dateien wirklich entfernen? 79 SSC0072I: Die Leute hinter Samba Server fr eComStation (OS/2)79 SSC0072I: Die Leute hinter Samba Server fr OS/2 basierte Systeme 80 80 SSC0073I: Aktuelle Konfiguration 81 81 SSC0074I: Kleine Symbole … … 105 105 SSC0097I: Standardkonfiguration erzeugen 106 106 SSC0098I: IBM Peer/LANServer Konfiguration migrieren 107 SSC0099 ?:107 SSC0099I: Bibliotheken mit YUM installieren 108 108 SSC0100?: 109 109 SSC0101?: … … 119 119 SSC0111I: Samba anweisen, die Konfiguration neu zu laden 120 120 SSC0112I: Die gemachten nderungen speichern 121 SSC0113 ?:121 SSC0113I: Den Server starten oder stoppen 122 122 SSC0114I: Bitte, dieses Programm schlieáen, damit die Installation abgeschlossen werden kann! 123 123 SSC0115I: Keine Benutzer fr SWAT in %1 gefunden! -
trunk/guitools/sscc/rc/lang/sscc_en.mkm
r771 r990 18 18 SSC0013I: Share 19 19 SSC0014I: Continue 20 SSC0015 ?:20 SSC0015I: Start/Stop 21 21 SSC0016?: 22 22 SSC0017?: … … 77 77 SSC0070I: Cannot remove transient TDB files while Samba is running! 78 78 SSC0071I: Really remove transient TDB files? 79 SSC0072I: Samba Server for eComStationis brought to you by79 SSC0072I: Samba Server for OS/2 based systems is brought to you by 80 80 SSC0073I: Current configuration 81 81 SSC0074I: Small icons … … 105 105 SSC0097I: Create Samba default default configuration 106 106 SSC0098I: Migrate IBM Peer/LANServer configuration 107 SSC0099 ?:107 SSC0099I: Install libraries using YUM 108 108 SSC0100?: 109 109 SSC0101?: … … 119 119 SSC0111I: Tell Samba to reload its configuration 120 120 SSC0112I: Save all changes to configuration file 121 SSC0113 ?:121 SSC0113I: Start or stop the server 122 122 SSC0114I: Please, close this program in oder to complete installation! 123 123 SSC0115I: No users for SWAT defined in "%1"! -
trunk/guitools/sscc/rc/lang/sscc_es.mkm
r771 r990 18 18 SSC0013I: Compartir 19 19 SSC0014I: Continuar 20 SSC0015 ?:20 SSC0015I: Start/Stop 21 21 SSC0016?: 22 22 SSC0017?: … … 77 77 SSC0070I: No puedo eliminar los archivos TDB transitorios mientras Samba esta funcionando! 78 78 SSC0071I: šEliminar realmente los archivos transitorios TDB? 79 SSC0072I: Servidor Samba para eComStationproporcionado por79 SSC0072I: Servidor Samba para OS/2 proporcionado por 80 80 SSC0073I: Configuraci¢n actual 81 81 SSC0074I: Iconos peque€os … … 105 105 SSC0097I: Crear configuraci¢n por defecto de Samba 106 106 SSC0098I: Migrar configuraci¢n IBM Peer/LANServer 107 SSC0099 ?:107 SSC0099I: Instalar bibliotecas utilizando YUM 108 108 SSC0100?: 109 109 SSC0101?: … … 119 119 SSC0111I: Decirle a Samba que recargue todas sus configuraciones 120 120 SSC0112I: Guardar todos los cambios en el archivo de configuraci¢n 121 SSC0113 ?:121 SSC0113I: Iniciar o detener el servidor 122 122 SSC0114I: Por favor, cerca de este programa en oder para completar la instalaci¢n! 123 123 SSC0115I: No hay usuarios para SWAT se define en "% 1"! … … 125 125 SSC0117I: Advertencia! El sistema no utiliza p gina de c¢digos 850, compruebe si la traducci¢n de caracteres realmente funciona! 126 126 SSC0118I: USER y HOSTNAME ne deben tener el mismo valor (%1)! 127 -
trunk/guitools/sscc/rc/lang/sscc_fr.mkm
r771 r990 20 20 SSC0013I: Partage 21 21 SSC0014I: Continuer 22 SSC0015 ?:22 SSC0015I: Start/Stop 23 23 SSC0016?: 24 24 SSC0017?: … … 83 83 SSC0070I: Retrait impossible des fichiers TDB transitoire en cours d'excution de Samba ! 84 84 SSC0071I: Voulez-vous rellement supprimer les fichiers TDB transitoires ? 85 SSC0072I: Serveur Samba pour eComStationvous est propos par85 SSC0072I: Serveur Samba pour OS/2 vous est propos par 86 86 SSC0073I: Configuration actuelle 87 87 SSC0074I: Icnes ~miniatures … … 111 111 SSC0097I: Cration d'une configuration Samba par dfaut 112 112 SSC0098I: Migration d'une configuration IBM Peer/LANServer 113 SSC0099 ?:113 SSC0099I: Installer des bibliothques en utilisant YUM 114 114 SSC0100?: 115 115 SSC0101?: … … 126 126 Samba de recharger sa configuration 127 127 SSC0112I: Sauvegarde des modifications dans un fichier de configuration 128 SSC0113 ?:128 SSC0113I: Dmarrer ou arrter le serveur 129 129 SSC0114I: S'il vous plat, 130 130 proximit de ce programme afin de complter l'installation! … … 133 133 SSC0117I: Attention! Systme n'utilise pas codepage 850, s'il vous plat vrifier si la traduction de caractres fonctionne vraiment! 134 134 SSC0118I: USER et HOSTNAME ne doivent pas avoir le mme valeur (%1)! 135 -
trunk/guitools/sscc/rc/lang/sscc_sv.mkm
r771 r990 18 18 SSC0013I: Dela ut 19 19 SSC0014I: Fortstta 20 SSC0015 ?:20 SSC0015I: Start/Stop 21 21 SSC0016?: 22 22 SSC0017?: … … 77 77 SSC0070I: Kan inte ta bort vergende TDB filer s lnge Samba r igng! 78 78 SSC0071I: vergende bort TDB filer egentligen? 79 SSC0072I: Mnniskorna bakom Samba Server fr eComStation (OS/2)79 SSC0072I: Mnniskorna bakom Samba Server fr OS/2 80 80 SSC0073I: Aktuella konfigurationen 81 81 SSC0074I: Sm ikoner … … 105 105 SSC0097I: Skapa standardkonfiguration fr Samba 106 106 SSC0098I: Migrera IBM Peer/LANServer-konfiguration 107 SSC0099 ?:107 SSC0099I: Installera bibliotek med anvndning YUM 108 108 SSC0100?: 109 109 SSC0101?: … … 119 119 SSC0111I: Se till att Samba laddar in instllningarna igen 120 120 SSC0112I: Spara alla frndringar 121 SSC0113 ?:121 SSC0113I: Starta eller stoppa servern 122 122 SSC0114I: Snlla, stng det hr programmet fr att slutfra installationen! 123 123 SSC0115I: Inga anvndare av SWAT definieras i "%1"! … … 125 125 SSC0117I: Varning! Systemet inte anvnder codepage 850, vnligen kontrollera om karaktr versttning verkligen fungerar! 126 126 SSC0118I: USER och HOSTNAME br inte ha samma vrde (%1)! 127 -
trunk/guitools/sscc/readme.samba
r677 r990 1 Samba Server version 3.3.16 for eComStation (OS/2) 1.1.11 Samba Server Version 3.6.25 for OS/2 based systems 1.3.0 2 2 ======================================================== 3 3 … … 9 9 Samba is freely available under the GNU General Public License. 10 10 11 You can use this software on eCS (OS/2) in order to replace most 12 functionality found in outdated products such as IBM Peer, LANServer, 13 WarpServer and WarpServer for eBusiness on a modern and technically 14 up to date base. 15 16 This release has a number of problems which were discovered after the 17 lst release fixed. 18 19 NOTE: You need GCC442.DLL for this release! 11 You can use this software on OS/2 based systems in order to replace most 12 functionality found in outdated products such as IBM Peer, WarpServer 13 and WarpServer for eBusiness on a modern and technically up to date 14 base. 20 15 21 16 Homepage: http://svn.netlabs.org/samba … … 24 19 25 20 This software is brought to you by: 26 - Silvan Scherrer, Switzerland (code maintainer, SWAT, several important fixes)27 - Herwig Bauernfeind, Austria (code maintainer, GUI tools, installer, scripts, testing)28 - Paul Smedley, Australia (porting)29 - Yuri Dario, Italy (locking code, several important fixes, client code)21 - bww bitwise works GmbH. 22 - Silvan Scherrer, Switzerland (current code maintainer, SWAT) 23 - Dmitry Kuminov, Russian Federation (libcx, tdb code testing) 24 - Herwig Bauernfeind, Austria (GUI tools, installer, scripts, testing) 30 25 - all the Samba people 31 26 32 General feedback can be sent to:33 herwig.bauernfeind@aon.at or34 silvan.scherrer@aroa.ch35 36 27 Enjoy! -
trunk/guitools/sscc/sscc.RC
r688 r990 1 icon 1 .\rc\icons\samba_setup.ico2 bitmap 2 .\rc\icons\choosedir.bmp3 bitmap 3 .\rc\icons\choosedird.bmp4 bitmap 4 .\rc\icons\newitem.bmp5 bitmap 5 .\rc\icons\newitemd.bmp6 bitmap 7 .\rc\icons\up.bmp7 bitmap 8 .\rc\icons\down.bmp8 bitmap 9 .\rc\icons\netlabs.bmp1 icon 1 samba_setup.ico 2 bitmap 2 choosedir.bmp 3 bitmap 3 choosedird.bmp 4 bitmap 4 newitem.bmp 5 bitmap 5 newitemd.bmp 6 bitmap 7 up.bmp 7 bitmap 8 down.bmp 8 bitmap 9 bww.bmp -
trunk/guitools/sscc/sscc.vrp
r875 r990 1 1 VX-REXX OS/2 V2.14 Build B3 2 2 VRX: sscc.VRX 3 MacroPath: VRM:U:\Develop\Samba\trunk\guitools\sscc 3 VXOFile: VROBJEX 4 MacroPath: VRM:U:\Develop\Samba\guitools-1.0\install 4 5 EXEPath: 5 6 RunParameters: 6 RunDirectory: D:\samba7 VRXWindow: __VREMainWindow,1,2 180,3710,903,80008 VRXWindow: __VRESectionListWindow,1, 3276,11997,8648,33429 VRXWindow: __VREToolsWindow,0, 3324,9877,5474,166910 VRXWindow: __VREWindListWindow,1, 927,11997,2337,33367 RunDirectory: U:\Develop\Samba\guitools-1.0\install 8 VRXWindow: __VREMainWindow,1,2891,5541,1012,8106 9 VRXWindow: __VRESectionListWindow,1,1072,14309,12057,4276 10 VRXWindow: __VREToolsWindow,0,4031,11708,6992,1669 11 VRXWindow: __VREWindListWindow,1,1132,15273,3891,3150 11 12 UserFile: 1 12 13 UserWindow: Main,1 13 UserWindow: Installer,1 -
trunk/guitools/sscc/sscc.vrx
r875 r990 93 93 #append U:\Develop\Samba\guitools-1.0\shared\inittempdir.vrs 94 94 #append U:\Develop\Samba\guitools-1.0\shared\sambainit.vrs 95 #append U:\Develop\Samba\guitools-2.0\shared\nlv.vrs96 95 #append U:\Develop\Samba\guitools-1.0\shared\swat.vrs 96 #append U:\Develop\Samba\trunk\guitools\shared\nlv.vrs 97 97 */ 98 98 return … … 211 211 IF options.!debug == 1 THEN say "_CreateVocObject() done" 212 212 return Success 213 /*:VRX _DebugLog 214 */ 215 _DebugLog: 216 IF options.!debug <> 1 THEN return 217 debugline = strip(arg(1)) 218 if pos("started", debugline) > 0 |, 219 pos("aborted", debugline) > 0 |, 220 pos("done", debugline) > 0 221 then say time()' 'debugline 222 else say ' 'debugline 223 return 224 213 225 /*:VRX _dirdialog 214 226 */ … … 306 318 if \IsCupsPrintcap then call _PrintCapCreate 307 319 320 stst = NLVGetMessage(15) 321 parse var stst startst '/' stopst 322 323 if _SambaRunning() then do 324 ok = VRSet("PB_StartStop", "BackColor", "Red") 325 ok = VRSet("PB_StartStop", "Caption", stopst) 326 end 327 else do 328 ok = VRSet("PB_StartStop", "BackColor", "Green") 329 ok = VRSet("PB_StartStop", "Caption", startst) 330 end 331 308 332 if SmbConfExists then call _SmbConfLoad 309 333 else ok = VRSet("TM_Installer","Enabled", 1) … … 314 338 _GUIInitNLV: 315 339 say '_GUIInitNLV started' 340 settings.!helpfile = 0 316 341 CALL NLVSetup 317 342 CALL NLVSetText 'Main', 'Caption', 1 … … 320 345 CALL NLVSetText 'PB_Reload', 'Caption', 11 321 346 CALL NLVSetText 'PB_Reload', 'Hinttext', 111 322 CALL NLVSetText 'PB_Save', 'Caption', 12 323 CALL NLVSetText 'PB_Save', 'Hinttext', 112 347 CALL NLVSetText 'PB_Save', 'Caption', 12 348 CALL NLVSetText 'PB_Save', 'Hinttext', 112 349 CALL NLVSetText 'PB_StartStop', 'Caption', 15 350 CALL NLVSetText 'PB_StartStop', 'Hinttext', 113 324 351 CALL NLVSetText 'PB_Undo', 'Caption', 9 325 352 CALL NLVSetText 'PB_Undo', 'Hinttext', 109 … … 342 369 CALL NLVSetText 'Menu_File_PrintCap', 'Caption', 37 343 370 CALL NLVSetText 'Menu_File_SmbUpdate', 'Caption', 44 371 CALL NLVSetText 'Menu_File_YumInstall', 'Caption', 99 344 372 CALL NLVSetText 'Menu_File_Exit', 'Caption', 27 345 373 … … 500 528 */ 501 529 _MasterPasswdCreate: 502 call lineout samba.!masterpasswd, '# Created by SSCC ver. 'word(VRGet("Main","Hinttext"),2)530 call lineout samba.!masterpasswd, '# Created by 'VRParseFileName(OurINI,'N')' Ver. 'word(VRGet("Main","Hinttext"),2) 503 531 call lineout samba.!masterpasswd, '# syntax:' 504 532 call lineout samba.!masterpasswd, '# username:passwd:UID:GID:login-class:chg pw x sec:deact x sec:GECOS:home:shell' 505 call lineout samba.!masterpasswd, 'root:*:0:51 3::0:0:root:/nonexistent:/usr/sbin/nologin'533 call lineout samba.!masterpasswd, 'root:*:0:512::0:0:root:/nonexistent:/usr/sbin/nologin' 506 534 call lineout samba.!masterpasswd, 'guest:*:65534:65534::0:0:guest:/nonexistent:/usr/sbin/nologin' 507 535 ok = stream(samba.!masterpasswd,'c','close') 536 return 537 538 /*:VRX _MasterPasswdFindUser 539 */ 540 _MasterPasswdFindUser: procedure expose username. 541 IF options.!debug == 1 THEN say '_MasterpasswdFindUser("'arg(1)'") started' 542 FindUser = arg(1) 543 Idx = 0 544 do I = 1 to username.0 545 if translate(username.I) = translate(FindUser) then do 546 Idx = I 547 leave 548 end 549 end 550 IF options.!debug == 1 THEN say '_MasterpasswdFindUser("'FindUser'") done, returning 'Idx 551 return idx 552 /*:VRX _MasterPasswdRead 553 */ 554 _MasterPasswdRead: 555 IF options.!debug == 1 THEN say '_MasterpasswdRead() started' 556 /* Read complete master.passwd */ 557 I = 0 558 559 do until lines(samba.!masterpasswd) = 0 560 userline = strip(linein(samba.!masterpasswd)) 561 562 /* Skip comments */ 563 if left(userline,1) = "#" then iterate 564 if left(userline,1) = ";" then iterate 565 566 /* parse fields into stem variables */ 567 I = I + 1 568 parse var userline username.I':'password.I':'uid.I':'gid.I':'LoginClass.I':'pwchange.I':'deact.I':'gecos.I':'home.I':'shell.I 569 570 Status.I ="" 571 do J = 1 to I - 1 572 if translate(Username.J) = translate(Username.I) then do 573 status.I = "DUPLICATE" 574 leave 575 end 576 end 577 end 578 ok = stream(samba.!masterpasswd,'c','close') 579 drop userline 580 581 /* set "stem roots" properly */ 582 username.0 = I 583 password.0 = I 584 uid.0 = I 585 gid.0 = I 586 loginclass.0= I 587 pwchange.0 = I 588 deact.0 = I 589 gecos.0 = I 590 home.0 = I 591 shell.0 = I 592 593 /* also smbpasswd stems */ 594 lmhash. = '' 595 nthash. = '' 596 flags. = '' 597 lct. = '' 598 lmhash.0 = I 599 nthash.0 = I 600 flags.0 = I 601 lct.0 = I 602 603 /* smbusermap stem */ 604 MapTo. = '' 605 MapTo.0 = I 606 607 /* our private stem */ 608 status.0 = I 609 IF options.!debug == 1 THEN say '_MasterpasswdRead() done, read 'username.0' users' 610 return 611 612 /*:VRX _MasterPasswdWrite 613 */ 614 _MasterpasswdWrite: 615 IF options.!debug == 1 THEN say "_MasterpasswdWrite() started" 616 newmasterpasswd = TempDir'master.passwd' 617 618 ok = SysFileDelete(newmasterpasswd) 619 620 call lineout newmasterpasswd, '# Created by 'VRParseFileName(OurINI,'N')' Ver. 'word(VRGet("Main","Hinttext"),2) 621 call lineout newmasterpasswd, '# syntax:' 622 call lineout newmasterpasswd, '# username:passwd:UID:GID:login-class:chg pw x sec:deact x sec:GECOS:home:shell' 623 624 do I = 1 to username.0 625 select 626 when Status.I = "DUPLICATE" & settings.!FixErrors = 1 then iterate 627 when Status.I = "UID MISMATCH" then do 628 call lineout newmasterpasswd, username.I':'password.I':'word(uid.I,1)':'gid.I':'loginclass.I':'pwchange.I':'deact.I':'gecos.I':'home.I':'shell.I 629 end 630 when Status.I = "UNIX MISSING" & settings.!FixErrors then do 631 call lineout newmasterpasswd, username.I':'password.I':'uid.I':'gid.I':'loginclass.I':'pwchange.I':'deact.I':'gecos.I':'home.I':'shell.I 632 end 633 otherwise call lineout newmasterpasswd, username.I':'password.I':'uid.I':'gid.I':'loginclass.I':'pwchange.I':'deact.I':'gecos.I':'home.I':'shell.I 634 end 635 end 636 ok = stream(newmasterpasswd,'c','close') 637 ok = VRCopyFile( samba.!masterpasswd, samba.!masterpasswd'.bak' ) 638 ok = VRCopyFile( newmasterpasswd, samba.!masterpasswd ) 639 ok = SysFileDelete(newmasterpasswd) 640 IF options.!debug == 1 THEN say "_MasterpasswdWrite() done" 508 641 return 509 642 … … 796 929 ok = stream(pwdfile,"c","close") 797 930 931 /* update Master.passwd and (s)pwd.db */ 932 call _MasterPasswdRead 933 nx = _MasterPasswdFindUser("root") 934 935 call rxFuncAdd "Crypt", "RxCrypt", "RxCrypt" 936 937 itoa64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" 938 salt = "" 939 do i = 1 to 8 940 salt = salt || substr( itoa64, random( 0, 63 ) + 1, 1 ) 941 end 942 password.nx = Crypt(VRGet("EF_RootPassword","Value"), salt ) 943 944 /* we need this otherwise _MasterPasswdWrite does not work */ 945 settings.!FixErrors = 1 946 call _MasterPasswdWrite 947 call _PasswordDbRewrite 948 798 949 /* Create the root account */ 799 950 IF options.!debug == 1 THEN say ' 'samba.!smbpasswdexe' -a root -s <'pwdfile … … 806 957 ok = SysFileDelete(pwdfile) 807 958 959 960 808 961 /* Deal with swat */ 809 /* FixMe: We do not need htpasswd.exe anymore as we use rxcrypt.dll*/962 /* We could use rxcrypt.dll however htpasswd.exe (at least in theory) is more flexible regarding encryption */ 810 963 if swatauth then do 811 964 /* we always remove the old swat */ … … 822 975 IF options.!debug == 1 THEN say "_SambaRootPWSet() done" 823 976 return 824 825 977 /*:VRX _SambaShowError 826 978 */ … … 863 1015 */ 864 1016 _SambaUserCreate: 865 eCSUser = value("USER",,"OS2ENVIRONMENT") 866 HostName = value("HOSTNAME",,"OS2ENVIRONMENT") 867 if translate(eCSUser) = translate(Hostname) then do 868 Msg.Text = NLVGetMessage(118, eCSUser) 869 Msg.Type = "I" 870 call _ShowMsg 871 end 1017 eCSUser = value("USER",,"OS2ENVIRONMENT") 872 1018 if translate(eCSUser) <> "root" & translate(eCSUser) <> "guest" then do 873 1019 Msg.Text = NLVGetMessage(75, eCSUser) … … 968 1114 */ 969 1115 _SharesReset: 970 say '_SharesResetstarted'1116 call _debuglog '_SharesReset() started' 971 1117 ok = VRset("EF_path", "Value","") 972 1118 ok = VRFlush( , "EF_path" ) … … 980 1126 ok = VRDestroy(CreatedObjs.I) 981 1127 end 982 say '_SharesResetdone'1128 call _debuglog '_SharesReset() done' 983 1129 return 984 1130 … … 1030 1176 if pos("idmap uid",smbline) > 0 then iterate 1031 1177 if pos("idmap gid",smbline) > 0 then iterate 1032 if pos("idmap config",smbline) > 0 then iterate1033 1178 if pos("winbind separator",smbline) > 0 then iterate 1034 1179 if pos("copy ",smbline) > 0 then iterate … … 1046 1191 */ 1047 1192 _SmbConfCreateDefault: 1193 call _debuglog "_SmbConfCreateDefault() started" 1048 1194 ok = SysFileDelete(smbconf) 1049 1195 … … 1059 1205 call _SmbConfDefault_ShareDrives 1060 1206 ok = stream(smbconf,'c','close') 1207 call _debuglog "_SmbConfCreateDefault() done" 1061 1208 return 1062 1209 … … 1120 1267 */ 1121 1268 _SmbConfDefault_Global: 1269 call _debuglog "_SmbConfDefault_Global() started" 1122 1270 Migrate = (arg(1) = 1) 1123 1271 if \Migrate then do /* when migrating these 4 lines are there already */ 1124 1272 section = '[global]' 1125 1273 call lineout smbconf, section 1126 call lineout smbconf, Indent||'workgroup = 'VRGet("EF_Workgroup_Initial","value")1274 call lineout smbconf, Indent||'workgroup = WORKGROUP' 1127 1275 call lineout smbconf, Indent||'netbios name = 'value('HOSTNAME',,'OS2ENVIRONMENT') 1128 1276 call lineout smbconf, Indent||'server string = %h Samba Server for eCS (OS/2)' … … 1130 1278 end 1131 1279 1132 call lineout smbconf, Indent||'dos charset = IBM-850' 1133 call lineout smbconf, Indent||'display charset = IBM-850' 1134 call lineout smbconf, Indent||'unix charset = IBM-850' 1280 if SysQueryProcessCodePage() = "850" then do 1281 call lineout smbconf, Indent||'dos charset = IBM-850' 1282 call lineout smbconf, Indent||'display charset = IBM-850' 1283 call lineout smbconf, Indent||'unix charset = IBM-850' 1284 end 1285 else do 1286 call lineout smbconf, Indent||'dos charset = IBM-850' 1287 call lineout smbconf, Indent||'display charset = SYSTEM' 1288 call lineout smbconf, Indent||'unix charset = SYSTEM' 1289 end 1135 1290 1136 1291 CurCP = SysQueryProcessCodePage() … … 1185 1340 end 1186 1341 ok = stream(smbconf, 'c','close') 1342 call _debuglog "_SmbConfDefault_Global() done" 1187 1343 return 1188 1344 /*:VRX _SmbConfDefault_Homes … … 1362 1518 */ 1363 1519 _SmbConfLoad: 1364 IF options.!debug == 1 THEN say'_SmbConfLoad() started'1365 IF options.!debug == 1 THEN say 'Loading "'samba.!smbconf'" ('stream(samba.!smbconf,'c','query size')' bytes)'1520 call _debuglog '_SmbConfLoad() started' 1521 call _debuglog 'Loading "'samba.!smbconf'" ('stream(samba.!smbconf,'c','query size')' bytes)' 1366 1522 1367 1523 /* ok = IniEnumSections(sections., samba.!smbconf) */ … … 1411 1567 end 1412 1568 ok = VRMethod("CN_smbconf","SetRecordAttr",smbconf.!root, "Collapsed", 0 ) 1413 IF options.!debug == 1 THEN say'_SmbConfLoad() done'1569 call _debuglog '_SmbConfLoad() done' 1414 1570 return 1415 1571 … … 1678 1834 */ 1679 1835 _SmbConfTreeReset: 1836 call _debuglog '_SmbConfTreeReset() started' 1680 1837 call _SharesReset 1681 1838 ok = VRMethod( "CN_SmbConf", "RemoveRecord", smbconf.!root ) 1682 1839 call _SmbConfTreeInit 1683 1840 call _GUIInit 1841 call _debuglog '_SmbConfTreeReset() done' 1684 1842 return 1685 1843 … … 1818 1976 1819 1977 Ok = VRset("Main", "Painting", 0) 1978 ok = VRSet("Main", 'Pointer', 'WAIT' ) 1820 1979 ok = VRset("GB_Help", "Visible", 0) 1821 1980 ok = VRset("GB_Global", "Visible", 0) … … 1826 1985 IF options.!debug == 1 THEN SAY 'CN_smbconf_Click() aborted, no handle' 1827 1986 Ok = VRset("Main", "Painting", 1) 1987 ok = VRSet("Main", 'Pointer', '<default>' ) 1828 1988 return 1829 1989 end … … 1842 2002 call _SharesReset 1843 2003 Ok = VRset("Main", "Painting", 1) 2004 ok = VRSet("Main", 'Pointer', '<default>' ) 1844 2005 1845 2006 ok = VRSet("TM_Value", "Enabled", 1) … … 1847 2008 IF options.!debug == 1 THEN SAY 'CN_smbconf_Click() aborted, got parent handle' 1848 2009 Ok = VRset("Main", "Painting", 1) 2010 ok = VRSet("Main", 'Pointer', '<default>' ) 1849 2011 return 1850 2012 end … … 1862 2024 1863 2025 Ok = VRset("Main", "Painting", 0) 2026 ok = VRSet("Main", 'Pointer', 'WAIT' ) 1864 2027 CurSection = sections.I 1865 2028 CurSIdx = I … … 1880 2043 IF options.!debug == 1 THEN say ' InsertPage = 'ok 1881 2044 1882 /* ok = VRset("Main", "Painting", 1) 2045 /* ok = VRset("Main", "Painting", 1) 2046 ok = VRSet("Main", 'Pointer', '<default>' ) 1883 2047 Msg.Text = NLVGetMessage(114) 1884 2048 Msg.Type = "I" … … 1892 2056 if \VRIsValidObject("GB_"ActiveGroup) then do 1893 2057 ok = VRset("Main", "Painting", 1) 2058 ok = VRSet("Main", 'Pointer', '<default>' ) 1894 2059 Msg.Text = NLVGetMessage(114) 1895 2060 Msg.Type = "I" … … 1984 2149 1985 2150 if ObjYPos > VRGet("GB_Global","Height") - 1200 then do 1986 /* Ok = VRset("Main", "Painting", 1) */ 2151 /* Ok = VRset("Main", "Painting", 1) 2152 ok = VRSet("Main", 'Pointer', '<default>' )*/ 1987 2153 Page = Page + 1 1988 2154 if Page = 2 then do 1989 2155 Ok = VRset("Main", "Painting", 1) 2156 Ok = VRset("Main", "Painting", 0) 1990 2157 ok = VRSet("Main", 'Pointer', 'Wait' ) 1991 Ok = VRset("Main", "Painting", 0)1992 2158 end 1993 2159 if \VRIsValidOBject("GL_GLOBAL_"Page) then do … … 2138 2304 */ 2139 2305 GB_Global_1_Create: 2140 call GB_Global_1_Init 2306 call GB_Global_1_Init 2307 SysCP = SysQueryProcessCodePage() 2308 ok = VRMethod( "EF_unix_charset", "AddString", "IBM-"SysCP, 2) 2309 ok = VRMethod( "EF_display_charset", "AddString", "IBM-"SysCP, 2) 2310 if pos("IBM-"SysCP, VRGet( "EF_dos_charset","InitialList")) = 0 then do 2311 ok = VRMethod( "EF_dos_charset", "AddString", "IBM-"SysCP, 2) 2312 end 2141 2313 return 2142 2314 … … 2320 2492 IF options.!debug == 1 THEN SAY "Main_Resize() started" 2321 2493 Ok = VRset("Main", "Painting", 0) 2322 2323 /* /* Basic measurements */2324 main_iwidth = VRGet("Main","InteriorWidth") /* Width of window client-area */2325 main_iheight = VRGet("Main","InteriorHeight") /* Height of window client-area */2326 2327 if main_iheight < 5500 then ok = VRSet("Main","Height",6200)2328 sbar_height = VRGet("GB_STATUSBAR","Height") /* Height of status-bar */2329 split_left = VRGet("SPLIT_Main","Left") /* Position of the left edge of the split-bar */2330 marginx2 = margin * 2 /* Common margin around controls */2331 pbtn_height = 400 /* Height of the panels' internal button areas */2332 2333 pane_height = main_iheight - sbar_height - (margin * 4) /* Height of a split-bar panel */2334 lpane_width = split_left - margin /* Width of the left split-bar panel */2335 rpane_width = main_iwidth - split_left - 60 - margin /* Width of the right split-bar panel */ */2336 2337 /* ab hier alt */2338 2494 ok = VRSet("GB_SmbConfTree","Top", FWidth) 2339 2495 ok = VRSet("GB_SmbConfTree","Left", FWidth-24) 2340 ok = VRSet("GB_SmbConfTree","Height", VRGet("Main", "Height") -1 350)2496 ok = VRSet("GB_SmbConfTree","Height", VRGet("Main", "Height") -1400) 2341 2497 2342 2498 ok = VRset("GB_SmbConfTree3","Top", FWidth) … … 2408 2564 2409 2565 if MButton.bTop < 1300 & MButton.bLeft < 1300 then do 2410 MButton.bTop = 48 422566 MButton.bTop = 4802 2411 2567 MButton.bLeft = 3758 2412 2568 MButton.bWidth = 1241 … … 2414 2570 end 2415 2571 2416 ok = VRSet("PB_Reload", "Top", MButton.bTop) 2417 ok = VRSet("PB_Reload", "Left", MButton.bLeft) 2572 ok = VRSet("PB_Reload", "Top", MButton.bTop) 2573 ok = VRSet("PB_Reload", "Left", VRGet("GB_SmbConfTree","Left")) 2574 ok = VRSet("PB_Reload", "Width", MButton.bWidth) 2575 2576 ok = VRSet("PB_StartStop","Top", MButton.bTop) 2577 ok = VRSet("PB_StartStop","Left", VRGet("GB_SmbConfTree","Width")-MButton.bWidth-FWidth) 2578 ok = VRSet("PB_StartStop","Width", MButton.bWidth) 2579 2580 ok = VRSet("PB_Save", "Top", MButton.bTop) 2581 ok = VRSet("PB_Save", "Left", MButton.bLeft) 2418 2582 ok = VRSet("PB_Reload", "Width", MButton.bWidth) 2419 2583 2420 ok = VRSet("PB_Save", "Top", MButton.bTop)2421 ok = VRSet("PB_Save", "Left", MButton.bLeft+1*FWidth+MButton.bWidth)2422 ok = VRSet("PB_Reload", "Width", MButton.bWidth)2423 2424 2584 ok = VRSet("PB_Undo", "Top", MButton.bTop) 2425 ok = VRSet("PB_Undo", "Left", MButton.bLeft+2*FWidth+MButton.bWidth* 2)2585 ok = VRSet("PB_Undo", "Left", MButton.bLeft+2*FWidth+MButton.bWidth*1) 2426 2586 ok = VRSet("PB_Undo", "Width", MButton.bWidth) 2587 2588 ok = VRSet("PB_Help", "Top", MButton.bTop) 2589 ok = VRSet("PB_Help", "Left", MButton.bLeft+6*FWidth+MButton.bWidth*2) 2590 ok = VRSet("PB_Help", "Width", MButton.bWidth) 2427 2591 2428 2592 ok = VRSet("PB_Cancel", "Top", MButton.bTop) … … 2430 2594 ok = VRSet("PB_Cancel", "Width", MButton.bWidth) 2431 2595 2432 /* ok = VRSet("PB_Help", "Top", MButton.bTop)2433 ok = VRSet("PB_Help", "Left", MButton.bLeft+6*FWidth+MButton.bWidth*3)2434 ok = VRSet("PB_Help", "Width", MButton.bWidth) */2435 2596 2436 2597 drop MButton.b … … 2572 2733 */ 2573 2734 Menu_File_reset_Click: 2735 say "Menu_File_reset_Click() started" 2574 2736 call _SmbConfCreateDefault 2575 2737 ok = SysFileTree(smbconf,exist.,'FO') 2576 2738 SmbConfExists = exist.0 2577 2739 call _SmbConfTreeReset 2740 say "Menu_File_reset_Click() done" 2578 2741 return 2579 2742 … … 2597 2760 return 2598 2761 2762 /*:VRX Menu_File_YumInstall_Click 2763 */ 2764 Menu_File_YumInstall_Click: 2765 address cmd 'yum install libc libcx libgcc1 cups-libs popt-libs gettext-libs zlib readline' 2766 return 2767 2599 2768 /*:VRX Menu_Help_About_Click 2600 2769 */ … … 2613 2782 Menu_Options_ExportMode_Click: 2614 2783 say 'ExpertMode_Click started' 2615 say samba.!testparmexe' -v -s 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 2616 address cmd samba.!testparmexe' -v -s 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 2784 ok = VRSet("Main", 'Pointer', 'WAIT' ) 2785 log_level = IniGet('log level', 'global', samba.!smbconf) 2786 if datatype(log_level) <> "NUM" then log_level = 2 2787 say samba.!testparmexe' -v -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 2788 address cmd samba.!testparmexe' -v -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 2617 2789 say 'VRCopyFile('TempDir'smb.conf, 'smbconf' )' 2618 2790 say " smb.conf Gráe: "stream(smbconf,'c','QUERY SIZE') … … 2622 2794 call _SmbConfTreeReset 2623 2795 call Main_Resize 2796 ok = VRSet("Main", 'Pointer', '<default>' ) 2624 2797 say 'ExpertMode_Click done' 2625 2798 return … … 2636 2809 */ 2637 2810 Menu_Options_SimpleMode_Click: 2638 say 'SimpleMode_Clickstarted'2639 2811 call _debuglog 'Menu_SimpleMode_Click() started' 2812 ok = VRSet("Main", 'Pointer', 'WAIT' ) 2640 2813 /* Workaround for testparm bugs */ 2641 2814 say 'VRCopyFile('smbconf', 'TempDir'smb.conf )' 2642 2815 ok = VRCopyFile( smbconf, TempDir'smb.conf') 2643 2816 call _SmbConfCommitChanges 2644 2645 say samba.!testparmexe' -s 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 2646 address cmd samba.!testparmexe' -s 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 2817 log_level = IniGet('log level', 'global', samba.!smbconf) 2818 if datatype(log_level) <> "NUM" then log_level = 2 2819 say samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 2820 address cmd samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm' 2647 2821 NewSize = stream(TempDir"smb.conf",'c','QUERY SIZE') 2648 2822 say " "TempDir"smb.conf Gráe: "NewSize … … 2654 2828 say 'Copy ok ='ok' (1 = success, 0 = failure)' 2655 2829 call _SmbConfTreeReset 2656 do I = Page to 3 by -1 2657 ok = VRMethod( "GB_Global", "DeletePage", I ) 2658 ok = VRDestroy("GL_GLOBAL_"I) 2830 2831 if datatype(Page) = "NUM" then do 2832 do I = Page to 3 by -1 2833 ok = VRMethod( "GB_Global", "DeletePage", I ) 2834 ok = VRDestroy("GL_GLOBAL_"I) 2835 end 2659 2836 end 2660 2837 Page = 2 2661 2838 call Main_resize 2662 say 'SimpleMode_Click done' 2839 ok = VRSet("Main", 'Pointer', '<>default' ) 2840 call _debuglog 'Menu_SimpleMode_Click() done' 2663 2841 return 2664 2842 … … 2804 2982 IF options.!debug == 1 THEN say 'PB_Cancel_Click() started' 2805 2983 if VRGet("PB_Save","Enabled") then call PB_Save_Click 2806 'pause'2807 2984 call Quit 2808 2985 IF options.!debug == 1 THEN say 'PB_Cancel_Click() done' … … 2927 3104 call _LMHostsImport 2928 3105 end 2929 3106 if VRGet("CB_YumInstall","set") then do 3107 call Menu_File_YumInstall_Click 3108 end 2930 3109 call RemoveConfig_Close 2931 3110 return … … 2950 3129 call PB_Save_Click 2951 3130 call beep 960, 1 2952 address CMD samba.!smbcmd' reload' 3131 if _SambaRunning() then do 3132 address CMD samba.!smbcmd' stop' 3133 ok = VRSet("PB_StartStop", "BackColor", "Green") 3134 ok = VRSet("PB_StartStop", "Caption", startst) 3135 end 3136 else do 3137 address CMD samba.!smbcmd' start' 3138 ok = VRSet("PB_StartStop", "BackColor", "Red") 3139 ok = VRSet("PB_StartStop", "Caption", stopst) 3140 end 2953 3141 return 2954 3142 … … 3071 3259 ok = VRset("CB_RemoveBackend","Caption", NLVGetMessage(56, 'Backend')) 3072 3260 ok = VRset("CB_RemoveLMHosts","Caption", NLVGetMessage(56, 'lmhosts')) 3261 ok = VRset("CB_YumInstall","Caption", NLVGetMessage(99)) 3073 3262 3074 3263 /* Check if ?db backend files exist */
Note:
See TracChangeset
for help on using the changeset viewer.