• 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_setup.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: This file contains all of the common functions for the
14
//                     BASE setup routine.
15
//
16
//          Author(s): Nathan Gibbs
17
//                     Kevin Johnson
18
// Ensure the conf file has been loaded. Prevent direct access to this file.
19
defined('_BASE_INC') or die('Accessing this file directly is not allowed.');
×
20

21
class BaseSetup{
22
        var $file;
23

24
        function __construct(){ // PHP 5+ constructor Shim.
25
                // Class/Method agnostic shim code.
26
                $SCname = get_class();
×
27
                if ( method_exists($this, $SCname) ){
×
28
                        $SCargs = func_get_args();
×
29
                        call_user_func_array(array($this, $SCname), $SCargs);
×
30
                }else{
×
31
                        // @codeCoverageIgnoreStart
32
                        // Should never execute.
33
                        trigger_error( // Will need to add this message to the TD.
34
                                "Class: $SCname No Legacy Constructor.\n",
35
                                E_USER_ERROR
36
                        );
37
                        // @codeCoverageIgnoreEnd
38
                }
39
        }
40

41
    function BaseSetup($filename)
42
    {
43
        // Passes in the filename... This is for the CheckConfig
44
        $this->file = $filename;
×
45
    }
46
    
47
    function CheckConfig($distConfigFile)
48
    {
49
        // Compares variables in distConfigFile to $this->file
50
    }
51
    
52
    function writeConfig()
53
    {
54
        //writes the config file
55
    }
56
    
57
    function displayConfig()
58
    {
59
        /*displays current config
60
         * Not to be confused with the end display on the
61
         * set up pages!
62
         */
63
    }
64

65
}
66
?>
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