示例#1
0
 *
 * In addition, as a special exception, the copyright holder gives permission to link the code of this program with
 * those files in the PEAR library that are licensed under the PHP License (or with modified versions of those files
 * that use the same license as those files), and distribute linked combinations including the two.
 * You must obey the GNU General Public License in all respects for all of the code used other than those files in the
 * PEAR library that are licensed under the PHP License. If you modify this program, you may extend this exception to
 * your version of the program, but you are not obligated to do so.
 * If you do not wish to do so, delete this exception statement from your version.
 *
 * As a special exception, you have permission to link this program with the JpGraph library and distribute executables,
 * as long as you follow the requirements of the GNU GPL in regard to all of the software in the executable aside from
 * JpGraph.
 *
 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
require_once __DIR__ . '/functions.php';
session_start();
include __DIR__ . '/login.function.php';
html_start("Sophos", 0, false, false);
echo "<TABLE CLASS=\"boxtable\" WIDTH=\"100%\">";
echo "<TR>";
echo "<TD ALIGN=\"CENTER\">";
passthru(get_virus_conf('sophos') . " -v | awk -f " . __DIR__ . "/sophos.awk");
echo "</TD>";
echo "</TR>";
echo "</TABLE>";
// Add footer
html_end();
// Close any open db connections
dbclose();
示例#2
0
 In addition, as a special exception, the copyright holder gives permission to link the code of this program
 with those files in the PEAR library that are licensed under the PHP License (or with modified versions of those
 files that use the same license as those files), and distribute linked combinations including the two.
 You must obey the GNU General Public License in all respects for all of the code used other than those files in the
 PEAR library that are licensed under the PHP License. If you modify this program, you may extend this exception to
 your version of the program, but you are not obligated to do so.
 If you do not wish to do so, delete this exception statement from your version.

 As a special exception, you have permission to link this program with the JpGraph library and
 distribute executables, as long as you follow the requirements of the GNU GPL in regard to all of the software
 in the executable aside from JpGraph.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
require_once "./functions.php";
session_start();
include 'login.function.php';
html_start("Sophos", 0, false, false);
echo "<TABLE CLASS=\"boxtable\" WIDTH=\"100%\">";
echo "<TR>";
echo "<TD ALIGN=\"CENTER\">";
passthru(get_virus_conf('sophos') . " -v | awk -f ./sophos.awk");
echo "</TD>";
echo "</TR>";
echo "</TABLE>";
// Add footer
html_end();
// Close any open db connections
dbclose();
示例#3
0
 2005-10-07
 F-Prot status by Hubert Nachbaur modified from Sophos status by Steve Freegard
 updated 2012-01-23 by Garrod Alwood
*/
// Include of necessary functions
require_once "./functions.php";
// Authentication checking
session_start();
require 'login.function.php';
if ($_SESSION['user_type'] != 'A') {
    header("Location: index.php");
} else {
    html_start("F-Prot Status", 0, false, false);
    echo '
<table class="boxtable" width="100%">
 <tr>
  <td align="center">';
    if (preg_match('/-6/i', get_conf_var('VirusScanners'))) {
        passthru(get_virus_conf('f-prot') . " -virno | awk -f ./f-prot.awk");
    } else {
        passthru(get_virus_conf('f-prot') . " -verno | awk -f ./f-prot.awk");
    }
    echo '
</td>
 </tr>
</table>';
    // Add footer
    html_end();
    // Close any open db connections
    dbclose();
}
示例#4
0
     $geoipv6_version = date('r', filemtime('./temp/GeoIPv6.dat')) . ' (download date)';
 }
 echo '<table width="100%" class="boxtable">' . "\n";
 echo '<tr><th>Software Versions</th></tr>' . "\n";
 echo '<tr>' . "\n";
 echo '<td>' . "\n";
 echo '<br>' . "\n";
 echo 'MailWatch ' . __('version11') . $mailwatch_version . '<br>' . "\n";
 echo '<br>' . "\n";
 echo 'MailScanner ' . __('version11') . $mailscanner_version . '<br>' . "\n";
 echo '<br>';
 $virusScanner = get_conf_var('VirusScanners');
 // Add test for others virus scanners.
 if (preg_match('/clam/i', $virusScanner)) {
     echo 'ClamAV ' . __('version11');
     passthru(get_virus_conf('clamav') . " -V | cut -d/ -f1 | cut -d' ' -f2");
     echo '<br>' . "\n";
 }
 echo '<br>' . "\n";
 echo 'SpamAssassin ' . __('version11');
 passthru("spamassassin -V | tr '\\\n' ' ' | cut -d' ' -f3");
 echo '<br>' . "\n";
 echo '<br>' . "\n";
 echo 'PHP ' . __('version11') . $php_version . '<br>' . "\n";
 echo '<br>' . "\n";
 echo 'MySQL ' . __('version11') . $mysql_version . '<br>' . "\n";
 echo '<br>' . "\n";
 echo 'GeoIP Database ' . __('version11');
 if (false !== $geoipv4_version) {
     echo $geoipv4_version;
 } else {
示例#5
0
 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
// Require the functions page
require_once __DIR__ . '/functions.php';
// Start the session
session_start();
// Require the login function code
require __DIR__ . '/login.function.php';
// Check to see if the user is an administrater
if ($_SESSION['user_type'] != 'A') {
    // If the user isn't an administrater send them back to the index page.
    header("Location: index.php");
    audit_log('Non-admin user attemped to view ClamAV Status page');
} else {
    // Start the header code and Title
    html_start("ClamAV Status", 0, false, false);
    // Create the table
    echo '<table class="boxtable" width="100%">';
    echo '<tr>';
    echo '<td align="center">';
    // Output the information from the conf file
    passthru(get_virus_conf('clamav') . " -V | awk -f " . __DIR__ . "/clamav.awk");
    echo '</td>';
    echo '</tr>';
    echo '</table>';
    // Add footer
    html_end();
    // Close any open db connections
    dbclose();
}
示例#6
0
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
// Require the functions page
require_once "./functions.php";
// Start the session
session_start();
// Require the login function code
require './login.function.php';
// Check to see if the user is an administrater
if ($_SESSION['user_type'] != 'A') {
    // If the user isn't an administrater send them back to the index page.
    header("Location: index.php");
    audit_log('Non-admin user attemped to view ClamAV Status page');
} else {
    // Start the header code and Title
    html_start("ClamAV Status", 0, false, false);
    // Create the table
    echo '<table class="boxtable" width="100%">';
    echo '<tr>';
    echo '<td align="center">';
    // Output the information from the conf file
    passthru(get_virus_conf('clamav') . " -V | awk -f ./clamav.awk");
    echo '</td>';
    echo '</tr>';
    echo '</table>';
    // Add footer
    html_end();
    // Close any open db connections
    dbclose();
}
示例#7
0
 *
 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
// Include of necessary functions
require_once __DIR__ . '/functions.php';
// Authentication checking
session_start();
require __DIR__ . '/login.function.php';
if ($_SESSION['user_type'] != 'A') {
    header("Location: index.php");
} else {
    html_start("F-Prot Status", 0, false, false);
    echo '
<table class="boxtable" width="100%">
 <tr>
  <td align="center">';
    if (preg_match('/-6/i', get_conf_var('VirusScanners'))) {
        passthru(get_virus_conf('f-prot') . " -virno | awk -f " . __DIR__ . "/f-prot.awk");
    } else {
        passthru(get_virus_conf('f-prot') . " -verno | awk -f " . __DIR__ . "/f-prot.awk");
    }
    echo '
</td>
 </tr>
</table>';
    // Add footer
    html_end();
    // Close any open db connections
    dbclose();
}
示例#8
0
 * your version of the program, but you are not obligated to do so.
 * If you do not wish to do so, delete this exception statement from your version.
 *
 * As a special exception, you have permission to link this program with the JpGraph library and distribute executables,
 * as long as you follow the requirements of the GNU GPL in regard to all of the software in the executable aside from
 * JpGraph.
 *
 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
// Include of necessary functions
require_once __DIR__ . '/functions.php';
// Authentication checking
session_start();
require __DIR__ . '/login.function.php';
if ($_SESSION['user_type'] != 'A') {
    header("Location: index.php");
} else {
    html_start("McAfee Status", 0, false, false);
    echo '<table class="boxtable" width="100%">' . "\n";
    echo '<tr>' . "\n";
    echo '<td align="center">' . "\n";
    passthru(get_virus_conf('mcafee') . " --version | awk -f " . __DIR__ . "/mcafee.awk");
    echo '</td>' . "\n";
    echo '</tr>' . "\n";
    echo '</table>' . "\n";
    // Add footer
    html_end();
    // Close any open db connections
    dbclose();
}
示例#9
0
 distribute executables, as long as you follow the requirements of the GNU GPL in regard to all of the software
 in the executable aside from JpGraph.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

 2005-10-07
 McAfee status by Hubert Nachbaur modified from Sophos status by Steve Freegard
*/
// Include of necessary functions
require_once "./functions.php";
// Authentication checking
session_start();
require 'login.function.php';
if ($_SESSION['user_type'] != 'A') {
    header("Location: index.php");
} else {
    html_start("McAfee Status", 0, false, false);
    echo '<table class="boxtable" width="100%">' . "\n";
    echo '<tr>' . "\n";
    echo '<td align="center">' . "\n";
    passthru(get_virus_conf('mcafee') . " --version | awk -f ./mcafee.awk");
    echo '</td>' . "\n";
    echo '</tr>' . "\n";
    echo '</table>' . "\n";
    // Add footer
    html_end();
    // Close any open db connections
    dbclose();
}