예제 #1
0
 /**
  * Constructor for the managerModel class.
  * Sets the strings (with localization support)
  */
 public function __construct()
 {
     parent::__construct();
     /* 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-manager.js.php');
 }
예제 #2
0
 /**
  * Constructor for the settingsModel class.
  * Sets the strings (with localization support)
  */
 public function __construct()
 {
     parent::__construct();
     /* Functions */
     $this->testsFunctions[_('Rewrite Module')] = 'checkModRewrite';
     $this->testsFunctions[_('Gettext Module')] = 'checkGettext';
     $this->testsFunctions[_('Session Variables')] = 'checkSession';
     $this->testsFunctions[_('Write Permissions')] = 'checkPermissions';
     $this->testsFunctions[_('Proxy Server')] = 'checkProxy';
     $this->testsFunctions[_('FPGA API')] = 'checkRemoteServer';
     $this->testsFunctions[_('Synchronized Time Stamp')] = 'checkTimestamp';
     /* Status */
     $this->testsResults[_('Rewrite Module')] = 'warning';
     $this->testsResults[_('Gettext Module')] = 'warning';
     $this->testsResults[_('Session Variables')] = 'warning';
     $this->testsResults[_('Write Permissions')] = 'warning';
     $this->testsResults[_('Proxy Server')] = 'warning';
     $this->testsResults[_('FPGA API')] = 'warning';
     $this->testsResults[_('Synchronized Time Stamp')] = 'warning';
     /* Descriptions */
     $this->testsDescriptions[_('Rewrite Module')] = _('URL rewrite support');
     $this->testsDescriptions[_('Gettext Module')] = _('Locale language support');
     $this->testsDescriptions[_('Session Variables')] = _('Support for the usage of sessions');
     $this->testsDescriptions[_('Write Permissions')] = _('Folder and file properties');
     $this->testsDescriptions[_('Proxy Server')] = _('Proxy server enabled for FPGA API calls');
     $this->testsDescriptions[_('FPGA API')] = _('Remote FPGA Server');
     $this->testsDescriptions[_('Synchronized Time Stamp')] = _('Timestamp delay between the client and the FPGA host: ');
     /* Info */
     $this->infoText['success'] = _('Passed');
     $this->infoText['warning'] = _('Not Implemented');
     $this->infoText['info'] = _('In Progress...');
     $this->infoText['danger'] = _('Failed');
     /* Additional libraries */
     array_push($this->jsLibraries, 'netwatcher-status.js.php');
 }