~ubuntu-branches/ubuntu/intrepid/dansguardian/intrepid-security

« back to all changes in this revision

Viewing changes to NaughtyFilter.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2008-04-06 14:47:06 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080406144706-2r26l1rougdmb1sd
Tags: 2.9.9.3-2
This time build with gcc 4.3 (Closes: #454889) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//Please refer to http://dansguardian.org/?page=copyright2
2
 
//for the license for this code.
3
 
//Written by Daniel Barron (daniel@//jadeb/.com).
4
 
//For support go to http://groups.yahoo.com/group/dansguardian
5
 
 
6
 
//  This program is free software; you can redistribute it and/or modify
7
 
//  it under the terms of the GNU General Public License as published by
8
 
//  the Free Software Foundation; either version 2 of the License, or
9
 
//  (at your option) any later version.
10
 
//
11
 
//  This program is distributed in the hope that it will be useful,
12
 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
//  GNU General Public License for more details.
15
 
//
16
 
//  You should have received a copy of the GNU General Public License
17
 
//  along with this program; if not, write to the Free Software
18
 
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
 
 
20
 
#ifndef __HPP_NAUGHTYFILTER
21
 
#define __HPP_NAUGHTYFILTER
22
 
#include "String.hpp"
23
 
#include <string>
24
 
#include "OptionContainer.hpp"
25
 
#include "DataBuffer.hpp"
26
 
 
27
 
 
28
 
class NaughtyFilter
29
 
{
30
 
 
31
 
public:
32
 
  NaughtyFilter ();
33
 
  void checkme (DataBuffer * body);
34
 
  void contentRegExp (DataBuffer * body);
35
 
  bool isItNaughty;
36
 
  bool isException;
37
 
  int filtergroup;
38
 
    std::string whatIsNaughty;
39
 
    std::string whatIsNaughtyLog;
40
 
 
41
 
private:
42
 
  void checkphrase (char *file, int l);
43
 
  void checkPICS (char *file, int l);
44
 
  void checkPICSrating (std::string label);
45
 
  void checkPICSratingSafeSurf (String r);
46
 
  void checkPICSratingevaluWEB (String r);
47
 
  void checkPICSratingCyberNOT (String r);
48
 
  void checkPICSratingRSAC (String r);
49
 
  void checkPICSratingICRA (String r);
50
 
  void checkPICSratingWeburbia (String r);
51
 
  void checkPICSratingVancouver (String r);
52
 
  void checkPICSagainstoption (String s, char *l, int opt, std::string m);
53
 
};
54
 
 
55
 
#endif