/** * Constructor for the captures model */ public function __construct() { parent::__construct(); $context = stream_context_create(array('http' => array('timeout' => 1))); $data = file_get_contents(\Core\Config::$REMOTE_SERVER_IP . '/captures/path', 0, $context); if ($data === FALSE) { $this->capturesFolder = '<captures_path>'; } else { $this->capturesFolder = json_decode($data)->path; } /* Additional libraries */ array_push($this->cssLibraries, 'bootstrap-table.min.css'); array_push($this->jsLibraries, 'bootstrap-table.min.js', 'bootstrap-table-localization.js.php', 'netwatcher-utils.js', 'netwatcher-captures.js.php'); }
/** * Constructor for the settings model */ public function __construct() { parent::__construct(); /* Additional libraries (IP Checker) */ array_push($this->jsLibraries, 'netwatcher-settings.js'); }
/** * Constructor for the storage model */ public function __construct() { parent::__construct(); /* Additional libraries */ array_push($this->jsLibraries, 'Chart.min.js', 'netwatcher-utils.js', 'netwatcher-storage.js.php'); }