• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NathanGibbs3 / BASE / 624

pending completion
624

push

travis-ci-com

NathanGibbs3
Merge branch 'devel'

562 of 562 new or added lines in 28 files covered. (100.0%)

3145 of 17504 relevant lines covered (17.97%)

23.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/includes/base_constants.inc.php
1
<?php
2
// Basic Analysis and Security Engine (BASE)
3
// Copyright (C) 2019-2023 Nathan Gibbs
4
// Copyright (C) 2004 BASE Project Team
5
// Copyright (C) 2000 Carnegie Mellon University
6
//
7
//   For license info: See the file 'base_main.php'
8
//
9
//       Project Lead: Nathan Gibbs
10
// Built upon work by: Kevin Johnson & the BASE Project Team
11
//                     Roman Danyliw <rdd@cert.org>, <roman@danyliw.com>
12
//
13
//            Purpose: Application Constants
14
//
15
//          Author(s): Nathan Gibbs
16
//                     Kevin Johnson
17
// Ensure the conf file has been loaded.  Prevent direct access to this file.
18
defined( '_BASE_INC' ) or die( 'Accessing this file directly is not allowed.' );
×
19

20
/* IP encapsulated layer4 proto */
21
SetConst("UDP", 17);
×
22
SetConst("TCP", 6);
×
23
SetConst("ICMP", 1);
×
24
SetConst("SOURCE_PORT", 1);
×
25
SetConst("DEST_PORT", 2);
×
26
SetConst("SOURCE_IP", 1);
×
27
SetConst("DEST_IP", 2);
×
28

29
// Page ID
30
SetConst("PAGE_QRY_ALERTS", 1);
×
31
SetConst("PAGE_STAT_ALERTS", 2);
×
32
SetConst("PAGE_STAT_SENSOR", 3);
×
33
SetConst("PAGE_QRY_AG", 4);
×
34
SetConst("PAGE_ALERT_DISPLAY", 5);
×
35
SetConst("PAGE_STAT_IPLINK", 6);
×
36
SetConst("PAGE_STAT_CLASS", 7);
×
37
SetConst("PAGE_STAT_UADDR", 8);
×
38
SetConst("PAGE_STAT_PORTS", 9);
×
39

40
SetConst("NULL_IP", "256.256.256.256");
×
41

42
// Criteria Field count
43
SetConst("IPADDR_CFCNT", 11);
×
44
SetConst("TIME_CFCNT", 10);
×
45
SetConst("PROTO_CFCNT", 6);
×
46
SetConst("TCPFLAGS_CFCNT", 9);
×
47
SetConst("PAYLOAD_CFCNT", 5);
×
48

49
// DB connection method
50
SetConst("DB_CONNECT", 2);
×
51
SetConst("DB_PCONNECT", 1);
×
52

53
// CleanVariable Mask
54
SetConst("VAR_DIGIT",       1);
×
55
SetConst("VAR_LETTER",      2);
×
56
SetConst("VAR_ULETTER",     4);
×
57
SetConst("VAR_LLETTER",     8);
×
58
SetConst("VAR_ALPHA",      16);
×
59
SetConst("VAR_PUNC",       32);
×
60
SetConst("VAR_SPACE",      64);
×
61
SetConst("VAR_FSLASH",    128);
×
62
SetConst("VAR_PERIOD",    256);
×
63
SetConst("VAR_OPERATOR",  512);
×
64
SetConst("VAR_OPAREN",   1024);  /*  (   */
×
65
SetConst("VAR_CPAREN",   2048);  /*  )   */
66
SetConst("VAR_USCORE",   4096);
×
67
SetConst("VAR_AT",       8192);
×
68
SetConst("VAR_SCORE",   16384);
×
69
SetConst("VAR_BOOLEAN", 32768);
×
70

71
?>
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc