function php_snmp() { $unix = new unix(); php_snmp_progress("{checking_php_snmp}", 20); $unix->DEBIAN_INSTALL_PACKAGE("php5-snmp"); $nohup = $unix->find_program("nohup"); if (is_file("/usr/lib/php5/20090626/snmp.so")) { php_snmp_progress("{checking_php_snmp} {success}", 100); sleep(5); system("{$nohup} /etc/init.d/artica-webconsole restart >/dev/null 2>&1 &"); system("{$nohup} /etc/init.d/artica-status restart >/dev/null 2>&1 &"); } if (is_file("/usr/lib/php5/20100525/snmp.so")) { php_snmp_progress("{checking_php_snmp} {success}", 100); sleep(5); system("{$nohup} /etc/init.d/artica-webconsole restart >/dev/null 2>&1 &"); system("{$nohup} /etc/init.d/artica-status restart >/dev/null 2>&1 &"); } php_snmp_progress("{checking_php_snmp} {failed}", 110); //php5-snmp }
exit; } if (isset($_GET["refresh-cpus-progress"])) { refresh_cpus_progress(); exit; } if (isset($_GET["make-writable"])) { make_www_writable(); exit; } if (isset($_GET["phpldapadmin_installed"])) { phpldapadmin_installed(); exit; } if (isset($_GET["php-snmp-progress"])) { php_snmp_progress(); exit; } if (isset($_GET["EnableBandwithCalculation"])) { EnableBandwithCalculation(); exit; } if (isset($_GET["EnableMilterGreylistExternalDB"])) { EnableMilterGreylistExternalDB(); exit; } if (isset($_GET["dashboard-refresh"])) { dashboard_refresh(); exit; } if (isset($_GET["upgradev10"])) {