2012-10-27 09:44:26 +02:00
|
|
|
/*
|
|
|
|
* This file is a part of Winix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2014-02-12 17:30:49 +01:00
|
|
|
* Copyright (c) 2012-2014, Tomasz Sowa
|
2012-10-27 09:44:26 +02:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef headerfile_winix_functions_ipban
|
|
|
|
#define headerfile_winix_functions_ipban
|
|
|
|
|
|
|
|
#include "functionbase.h"
|
|
|
|
|
2014-02-12 17:30:49 +01:00
|
|
|
namespace Winix
|
|
|
|
{
|
2012-10-27 09:44:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
namespace Fun
|
|
|
|
{
|
|
|
|
|
|
|
|
// IPBanFun in order to not confused with IPBan from core winix
|
|
|
|
class IPBanFun : public FunctionBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
IPBanFun();
|
|
|
|
|
|
|
|
bool HasAccess();
|
|
|
|
void MakePost();
|
|
|
|
void MakeGet();
|
|
|
|
|
2012-10-27 11:03:49 +02:00
|
|
|
private:
|
|
|
|
|
|
|
|
std::string tmp_ip_str;
|
|
|
|
|
2012-10-27 09:44:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
2014-02-12 17:30:49 +01:00
|
|
|
} // namespace Winix
|
|
|
|
|
2012-10-27 09:44:26 +02:00
|
|
|
#endif
|