Subversion Repositories ALCASAR

Rev

Rev 2770 | Rev 3037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2770 Rev 2976
Line 131... Line 131...
131
     *
131
     *
132
     * @return void
132
     * @return void
133
     */
133
     */
134
    private function _distroicon()
134
    private function _distroicon()
135
    {
135
    {
136
        if (extension_loaded('pfSense') && CommonFunctions::rfts('/etc/version', $version, 1, 4096, false) && (trim($version) != '')) { // pfSense detection
136
        if (CommonFunctions::rfts('/etc/version', $version, 1, 4096, false) && (($version=trim($version)) != '')) {
-
 
137
            if (extension_loaded('pfSense')) { // pfSense detection
137
            $this->sys->setDistribution('pfSense '. trim($version));
138
                $this->sys->setDistribution('pfSense '. $version);
138
            $this->sys->setDistributionIcon('pfSense.png');
139
                $this->sys->setDistributionIcon('pfSense.png');
-
 
140
            } elseif (preg_match('/^FreeNAS/i', $version)) { // FreeNAS detection
-
 
141
                $this->sys->setDistribution($version);
-
 
142
                $this->sys->setDistributionIcon('FreeNAS.png');
-
 
143
            } else {
-
 
144
                $this->sys->setDistributionIcon('FreeBSD.png');
-
 
145
            }
139
        } else {
146
        } else {
140
            $this->sys->setDistributionIcon('FreeBSD.png');
147
            $this->sys->setDistributionIcon('FreeBSD.png');
141
        }
148
        }
142
    }
149
    }
143
 
150