
#DEFINE VERZE "2022-08-15"
vysledek = m.vysledek + "  ver." + VERZE + m.crlf

#DEFINE SEKCE "n_FtpTransfer"

o_ftp_path = get_ini("FtpTransfer", "FtpPath")
n_ftp_path = STRTR(m.o_ftp_path, "/html/", "/")

o_ftp_server = get_ini("FtpTransfer", "FTPServer")

IF m.o_ftp_server = "asrv.cz"
    vysledek = m.vysledek + "  uz je prekonfigurovano na ASRV.CZ" + m.crlf

ELSE

    writeprivstr( SEKCE, "FTPServer"  , "asrv.cz"                     , m.gcini_file )
    writeprivstr( SEKCE, "FtpUserName", "altoftp.asrv.cz"             , m.gcini_file )
    writeprivstr( SEKCE, "FtpPassword", "chdjekfgggckgqholoaqdrdmdofo", m.gcini_file )
    writeprivstr( SEKCE, "Passive"    , "Yes"                         , m.gcini_file )
    writeprivstr( SEKCE, "MaxLogSize" , "222000"                      , m.gcini_file )

    writeprivstr( SEKCE, "FTPPath"    , m.n_ftp_path                  , m.gcini_file )

    vysledek = m.vysledek + "    " + SEKCE + "  " + m.o_ftp_path + "  -->  " + m.n_ftp_path


ENDIF 


*[FtpTransfer]
*DefFile=centrala
*FtpPath=/html/prenosy/televize/
*FtpServer=ftp.web4u.cz
*FtpUserName=altoftp
*FtpPassword=dpcqdrlohhhijjhg

