Changeset 408 for branches


Ignore:
Timestamp:
Feb 19, 2010, 9:14:00 AM (15 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: SSCC 0.9.5, SMBUsers 0.9.6 several fixes

Location:
branches/guitools-1.0
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-1.0/install/sscc.vrp

    r344 r408  
    77VRXWindow: __VREMainWindow,1,2180,4481,891,7263
    88VRXWindow: __VRESectionListWindow,1,3011,12286,8974,3144
    9 VRXWindow: __VREToolsWindow,1,3211,10648,6989,1659
     9VRXWindow: __VREToolsWindow,1,3211,10648,6995,1663
    1010VRXWindow: __VREWindListWindow,1,385,12286,2650,3150
    1111UserFile: 1
  • branches/guitools-1.0/install/sscc.vrx

    r344 r408  
    10831083    call lineout smbconf, Indent||'lm announce = Yes'
    10841084    call lineout smbconf, Indent||'wins support = Yes'
     1085    call lineout smbconf, Indent||'wide links = No'
    10851086    ok = SysFileTree(samba.!printcap,exist.,'FO')
    10861087    if exist.0 = 1 then do
     
    20952096        call _MasterPasswdCreate
    20962097        call _PasswordDBRewrite
     2098        ok = VRSet("CB_NoRoot","Enabled", 0)
    20972099    end
    20982100    if stream(samba.!pwddb,'c','query exists') = "" | stream(samba.!spwddb,'c','query exists') = "" then do
    20992101        call _PasswordDBRewrite
     2102        ok = VRSet("CB_NoRoot","Enabled", 0)
    21002103    end
    21012104    UseTDBsam = 1
     
    27892792    call _INIWrite
    27902793    call _SambaFinish
     2794    ok = SysFileDelete(TempDir'sscc.testparm')
    27912795    ok = SysFileDelete(smboutput)
    27922796
  • branches/guitools-1.0/shared/nlv.vrs

    r333 r408  
    1 /*:VRX         NLVGetMessage
    2 */
    3 NLVGetMessage: PROCEDURE EXPOSE settings. options. fs.
     1/*:VRX         NLVSetup
     2 */
     3NLVSetup: PROCEDURE EXPOSE settings. options.
     4    /* This subroutine is (c) by Alex Taylor, portions (c) Herwig Bauernfeind
     5     * Sets all UI text from the message file.  Any string that can't be loaded
     6     * will default to the built-in English.
     7     */
    48
    5     msgfile = settings.!messages
    6     msgnum  = ARG( 1 )
    7 
    8     IF msgnum == '' THEN RETURN ''
    9 
    10     SELECT
    11         WHEN ARG() == 2 THEN
    12             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2) )
    13         WHEN ARG() == 3 THEN
    14             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3) )
    15         WHEN ARG() == 4 THEN
    16             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4) )
    17         WHEN ARG() == 5 THEN
    18             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5) )
    19         WHEN ARG() == 6 THEN
    20             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5), ARG(6) )
    21         WHEN ARG() == 7 THEN
    22             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5), ARG(6), ARG(7) )
    23         WHEN ARG() == 8 THEN
    24             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8) )
    25         WHEN ARG() == 9 THEN
    26             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8), ARG(9) )
    27         WHEN ARG() == 10 THEN
    28             msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8), ARG(9), ARG(10) )
    29         OTHERWISE
    30             msgtxt = SysGetMessage( msgnum, msgfile )
    31     END
    32 
    33     PARSE VAR msgtxt message '0D'x .
    34 
    35     IF translate(SUBSTR( message, 1, 4 )) == 'SYS0' THEN message = ''
    36 
    37 RETURN message
    38 
    39 /*:VRX         NLVSetText
    40 */
    41 /*
    42  * Sets the specified property of the specified control to the specified
    43  * message text.
    44  */
    45 NLVSetText: PROCEDURE EXPOSE settings. options. fs.
    46     PARSE ARG control, property, message, substitution
    47 
    48     success = 1
    49     IF substitution == '' THEN     
    50         text = NLVGetMessage( message )
    51     ELSE
    52         text = NLVGetMessage( message, substitution )
    53 
    54     IF text == '' THEN success = 0
    55     ELSE               CALL VRSet control, property, text
    56 
    57 RETURN success
    58 
    59 /*:VRX */
    60 NLVSetup: PROCEDURE EXPOSE settings. options.
    61     /* This subroutine is (c) by Alex Taylor, portions (c) Herwig Bauernfeind */
    629    IF options.!debug == 1 THEN SAY 'NLVSetup() started'
    6310    IF options.!debug == 1 THEN SAY '  NLVSetup() is (c) Alex Taylor, portions (c) Herwig Bauernfeind'
    6411
    65     /* Sets all UI text from the message file.  Any string that can't be loaded
    66      * will default to the built-in English.
    67      */
    6812    execPath = VRGet("Application", "Program")
    6913    if execPath = "" then parse source . . execPath
     
    13276    IF options.!debug == 1 THEN SAY 'NLVSetup() done'
    13377RETURN
     78
     79/*:VRX         NLVGetMessage
     80*/
     81NLVGetMessage: PROCEDURE EXPOSE settings. options. fs.
     82
     83    msgfile = settings.!messages
     84    msgnum  = ARG( 1 )
     85
     86    IF msgnum == '' THEN RETURN ''
     87
     88    SELECT
     89        WHEN ARG() == 2 THEN
     90            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2) )
     91        WHEN ARG() == 3 THEN
     92            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3) )
     93        WHEN ARG() == 4 THEN
     94            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4) )
     95        WHEN ARG() == 5 THEN
     96            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5) )
     97        WHEN ARG() == 6 THEN
     98            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5), ARG(6) )
     99        WHEN ARG() == 7 THEN
     100            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5), ARG(6), ARG(7) )
     101        WHEN ARG() == 8 THEN
     102            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8) )
     103        WHEN ARG() == 9 THEN
     104            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8), ARG(9) )
     105        WHEN ARG() == 10 THEN
     106            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8), ARG(9), ARG(10) )
     107        OTHERWISE
     108            msgtxt = SysGetMessage( msgnum, msgfile )
     109    END
     110
     111    PARSE VAR msgtxt message '0D'x .
     112
     113    IF translate(SUBSTR( message, 1, 4 )) == 'SYS0' THEN message = ''
     114
     115RETURN message
     116
     117/*:VRX         NLVSetText
     118*/
     119/*
     120 * Sets the specified property of the specified control to the specified
     121 * message text.
     122 */
     123NLVSetText: PROCEDURE EXPOSE settings. options. fs.
     124    PARSE ARG control, property, message, substitution
     125
     126    success = 1
     127    IF substitution == '' THEN     
     128        text = NLVGetMessage( message )
     129    ELSE
     130        text = NLVGetMessage( message, substitution )
     131
     132    IF text == '' THEN success = 0
     133    ELSE               CALL VRSet control, property, text
     134
     135RETURN success
  • branches/guitools-1.0/shared/sambainit.vrs

    r333 r408  
    7171    end
    7272
    73     if samba.!smbd = "" then call _ErrorBinaryNotFound "Could not find smbd.exe!"
     73    if samba.!smbd = "" then call _ErrorBinaryNotFound 'Could not find smbd.exe!'
    7474
    7575    samba.!bin = VRParseFileName(samba.!smbd,'DP')
     
    8080    if \VRFileExists(samba.!smbcmd) then do
    8181        samba.!smbcmd = samba.!bin'\smb.cmd'
    82         if \VRFileExists(samba.!smbcmd) then call _ErrorBinaryNotFound "Could not find smb.cmd!"
     82        if \VRFileExists(samba.!smbcmd) then call _ErrorBinaryNotFound 'Could not find smb.cmd!'
    8383    end
    8484    IF options.!debug == 1 THEN say '  smb.cmd        = "'samba.!smbcmd'"'
     
    8686    /* smbpasswd.exe */
    8787    samba.!smbpasswdexe = samba.!bin'\smbpasswd.exe'
    88     if \VRFileExists(samba.!smbpasswdexe) then call _ErrorBinaryNotFound "Could not find smbpasswd.exe!"
     88    if \VRFileExists(samba.!smbpasswdexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbpasswdexe'"!'
    8989    IF options.!debug == 1 THEN say '  smbpasswd.exe  = "'samba.!smbpasswdexe'"'
    9090
    9191    /* pdbedit.exe */
    9292    samba.!pdbeditexe = samba.!bin'\pdbedit.exe'
    93     if \VRFileExists(samba.!pdbeditexe) then call _ErrorBinaryNotFound "Could not find pdbedit.exe!"
     93    if \VRFileExists(samba.!pdbeditexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!pdbeditexe'"!'
    9494    IF options.!debug == 1 THEN say '  pdbedit.exe    = "'samba.!pdbeditexe'"'
    9595
    9696    /* net.exe */
    9797    samba.!netexe = samba.!bin'\net.exe'
    98     if \VRFileExists(samba.!netexe) then call _ErrorBinaryNotFound "Could not find net.exe!"
     98    if \VRFileExists(samba.!netexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!netexe'"!'
    9999    IF options.!debug == 1 THEN say '  net.exe        = "'samba.!netexe'"'
    100100
    101101    /* testparm.exe */
    102102    samba.!testparmexe = samba.!bin'\testparm.exe'
    103     if \VRFileExists(samba.!testparmexe) then call _ErrorBinaryNotFound "Could not find testparm.exe!"
     103    if \VRFileExists(samba.!testparmexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!testparmexe'"!'
    104104    IF options.!debug == 1 THEN say '  testparm.exe   = "'samba.!testparmexe'"'
    105105
    106106    /* smbtree.exe */
    107107    samba.!smbtreeexe = samba.!bin'\smbtree.exe'
    108     if \VRFileExists(samba.!smbtreeexe) then call _ErrorBinaryNotFound "Could not find smbtree.exe!"
     108    if \VRFileExists(samba.!smbtreeexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbtreeexe'"!'
    109109    IF options.!debug == 1 THEN say '  smbtree.exe    = "'samba.!smbtreeexe'"'
    110110
    111111    /* smbstatus.exe */
    112112    samba.!smbstatusexe = samba.!bin'\smbstatus.exe'
    113     if \VRFileExists(samba.!smbstatusexe) then call _ErrorBinaryNotFound "Could not find smbstatus.exe!"
     113    if \VRFileExists(samba.!smbstatusexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbstatusexe'"!'
    114114    IF options.!debug == 1 THEN say '  smbstatus.exe  = "'samba.!smbstatusexe'"'
    115115
    116116    /* smbcontrol.exe */
    117117    samba.!smbcontrolexe = samba.!bin'\smbcontrol.exe'
    118     if \VRFileExists(samba.!smbcontrolexe) then call _ErrorBinaryNotFound "Could not find smbcontrol.exe!"
     118    if \VRFileExists(samba.!smbcontrolexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbcontrolexe'"!'
    119119    IF options.!debug == 1 THEN say '  smbcontrol.exe = "'samba.!smbcontrolexe'"'
    120120
    121121    /* smbclient.exe */
    122122    samba.!smbclientexe = samba.!bin'\smbclient.exe'
    123     if \VRFileExists(samba.!smbclientexe) then call _ErrorBinaryNotFound "Could not find smbclient.exe!"
     123    if \VRFileExists(samba.!smbclientexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!smbclientexe'"!'
    124124    IF options.!debug == 1 THEN say '  smbclient.exe  = "'samba.!smbclientexe'"'
    125125
    126126    /* nmblookup.exe */
    127127    samba.!nmblookupexe = samba.!bin'\nmblookup.exe'
    128     if \VRFileExists(samba.!nmblookupexe) then call _ErrorBinaryNotFound "Could not find nmblookup.exe!"
     128    if \VRFileExists(samba.!nmblookupexe) then call _ErrorBinaryNotFound 'Could not find "'samba.!nmblookupexe'"!'
    129129    IF options.!debug == 1 THEN say '  nmblookup.exe  = "'samba.!nmblookupexe'"'
    130130
     
    151151    end
    152152
    153     if samba.!pwd_mkdb = "" then call _ErrorBinaryNotFound "Could not find pwd_mkdb.exe!"
     153    if samba.!pwd_mkdb = "" then call _ErrorBinaryNotFound 'Could not find "'samba.!pwd_mkdb'"!'
    154154    IF options.!debug == 1 THEN say '  pwd_mkdb.exe   = "'samba.!pwd_mkdb'"'
    155155
     
    168168    end
    169169
    170     if samba.!log = "" then call _ErrorDataFileNotFound "Could not find logfiles!"
     170    if samba.!log = "" then call _ErrorDataFileNotFound 'Could not find logfiles!'
    171171    IF options.!debug == 1 THEN say '  Samba logfiles = "'samba.!log'"'
    172172
     
    180180    /* the password files - we'll create them if they don't exist */
    181181    samba.!masterpasswd = unixetc'\master.passwd'
    182     if \VRFileExists(samba.!masterpasswd) then call _ErrorDataFileNotFound "Could not find master.passwd!"
     182    if \VRFileExists(samba.!masterpasswd) then call _ErrorDataFileNotFound 'Could not find "'samba.!masterpasswd'"!'
    183183    IF options.!debug == 1 THEN say '  master.passwd  = "'samba.!masterpasswd'"'
    184184
    185185    samba.!pwddb = unixetc'\pwd.db'
    186     if \VRFileExists(samba.!pwddb) then call _ErrorDataFileNotFound "Could not find pwd.db!"
     186    if \VRFileExists(samba.!pwddb) then call _ErrorDataFileNotFound 'Could not find "'samba.!pwddb'"!'
    187187    IF options.!debug == 1 THEN say '  pwd.db         = "'samba.!pwddb'"'
    188188
    189189    samba.!spwddb = unixetc'\spwd.db'
    190     if \VRFileExists(samba.!spwddb) then call _ErrorDataFileNotFound "Could not find spwd.db!"
     190    if \VRFileExists(samba.!spwddb) then call _ErrorDataFileNotFound 'Could not find "'samba.!spwddb'"!'
    191191    IF options.!debug == 1 THEN say '  spwd.db        = "'samba.!spwddb'"'
    192192
    193193    samba.!group = unixetc'\group'
    194     if \VRFileExists(samba.!group) then call _ErrorDataFileNotFound "Could not find "samba.!group"!"
     194    if \VRFileExists(samba.!group) then call _ErrorDataFileNotFound 'Could not find "'samba.!group'"!'
    195195    IF options.!debug == 1 THEN say '  group          = "'samba.!group'"'
    196196
    197197    samba.!printcap = unixetc'\printcap'
    198     if \VRFileExists(samba.!spwddb) then call _ErrorDataFileNotFound "Could not find printcap!"
     198    if \VRFileExists(samba.!printcap) then call _ErrorDataFileNotFound 'Could not find "'samba.!printcap'"!'
    199199    IF options.!debug == 1 THEN say '  printcap       = "'samba.!printcap'"'
    200200
  • branches/guitools-1.0/smbusers/smbusers.VRP

    r333 r408  
    77VRXWindow: __VREMainWindow,1,2180,3710,891,8000
    88VRXWindow: __VRESectionListWindow,1,2951,11130,8949,3342
    9 VRXWindow: __VREToolsWindow,1,2457,1012,6995,1667
     9VRXWindow: __VREToolsWindow,1,2457,1012,6986,1669
    1010VRXWindow: __VREWindListWindow,1,446,11130,2650,3150
    1111UserFile: 1
    1212UserWindow: Main,1
    13 UserWindow: SW_LOGIN,1
  • branches/guitools-1.0/smbusers/smbusers.VRX

    r333 r408  
    421421    ok = VRCopyFile( samba.!group, samba.!group'.bak' )
    422422    ok = VRCopyFile( newgroup, samba.!group )
     423    ok = SysFileDelete(newgroup)
    423424    IF options.!debug == 1 THEN say '_GroupWrite() done'
    424425return
     
    755756    ok = VRCopyFile( samba.!masterpasswd, samba.!masterpasswd'.bak' )
    756757    ok = VRCopyFile( newmasterpasswd, samba.!masterpasswd )
     758    ok = SysFileDelete(newmasterpasswd)
    757759    IF options.!debug == 1 THEN say "_MasterpasswdWrite() done"
    758760return
     
    11381140    end
    11391141    ok = stream(groupmap,'c','close')
     1142    ok = SysFileDelete(groupmap)
    11401143
    11411144    /* Now read the group list */
     
    11601163    end
    11611164    ok = stream(grouplist,'c','close')
    1162     /* ok = SysFiledelete(grouplist) */
     1165    ok = SysFileDelete(grouplist)
     1166
    11631167    gline.0 = i
    11641168 
     
    15231527    end
    15241528    ok = stream(UserProperties,'c','close')
     1529    ok = SysFileDelete(UserProperties)
    15251530
    15261531    upline.0 = i
     
    37483753            end
    37493754            else do
    3750                 if length(VRGet("EF_password","Value")) < MinPWLength then do
     3755                if length(VRGet("EF_upPassword","Value")) < MinPWLength then do
    37513756                    Msg.type  = "E"
    37523757                    Msg.Text  = NLVGetMessage( 117 )
Note: See TracChangeset for help on using the changeset viewer.