((Pos(IntToStr(Config.ServicePorts.FileZillaAdmin), NetStatTable.GetPorts4PID(currPID)) <> 0) and (Pos(LowerCase(BaseDir), ppath) <> 0)) or
uses GnuGettext, uBaseModule, SysUtils, Classes, Windows, ExtCtrls, StdCtrls, Buttons, uNetstatTable, uTools, uProcesses_new, uServices;
tFileZilla = class(tBaseModule)
OldPIDs, OldPorts: string;
procedure ServiceInstall; override;
procedure ServiceUnInstall; override;
procedure Start; override;
procedure Stop; override;
procedure Admin; override;
procedure UpdateStatus; override;
procedure CheckIsService; reintroduce;
procedure AddLog(Log: string; LogType: tLogType = ltDefault); reintroduce;
constructor Create(pbbService: TBitBtn; pStatusPanel: tPanel; pPIDLabel, pPortLabel: tLabel; pStartStopButton, pAdminButton: TBitBtn);
destructor Destroy; override;
cModuleName = 'FileZilla';
procedure tFileZilla.AddLog(Log: string; LogType: tLogType);
inherited AddLog('filezilla', Log, LogType);
procedure tFileZilla.Admin;
App := BaseDir + 'filezillaftp\' + Config.BinaryNames.FileZillaAdmin;
AddLog(Format(_('Executing "%s"'), [App]), ltDebug);