<?php include_once "htmllib/lib/include.php"; $driverapp = slave_get_driver('web'); if ($driverapp === 'lighttpd') { print "Driver is currently lighttpd\n"; exit; } system("yum -y install frontpage"); system("cp -r /usr/local/frontpage/version5.0/apache2/.libs/mod_frontpage.so /etc/httpd/modules/"); system("chmod 755 /var/log/httpd/"); addLineIfNotExistInside("/etc/httpd/conf/httpd.conf", "LoadModule frontpage_module modules/mod_frontpage.so", "");
function removeOtherDrivers() { log_cleanup("Enable the correct drivers (Service daemons)"); $list = array("web", "spam", "dns"); foreach ($list as $l) { $driverapp = slave_get_driver($l); if (!$driverapp) { continue; } $otherlist = get_other_driver($l, $driverapp); if ($otherlist) { foreach ($otherlist as $o) { if (class_exists("{$l}__{$o}")) { log_cleanup("- Uninstall {$l}__{$o}"); exec_class_method("{$l}__{$o}", "uninstallMe"); } } } } }