Current File : /home/inlingua/public_html/decay_sym/root/var/softaculous/apps/exim/3/remove.php
<?php


/*
function __exim_preremove(){
	
}

function __exim_postremove(){
	
}
*/

function __exim_remove(){
	
	global $W, $iapps, $globals;
	
	vexec('systemctl stop exim');
	
	// Remove symlink for mailx
	@unlink('/usr/bin/mail');
	@unlink('/usr/sbin/exim');
	@unlink('/usr/lib/systemd/system/exim.service');
	@unlink('/etc/sysconfig/exim');
	
	// Empty relay host file
	vexec('echo " " > /etc/relayhost');
	
	// Remove roundcube
	vexec('rm -rf '.$globals['web_enduser'].'/mail');
	vexec('rm -rf '.$globals['var_path'].'/roundcube');

	// Remove POP Before SMTP
	$W->exim_remove_popb4smtp();
	
	// Remove Boxtrapper Symlink
	unlink($globals['web_enduser'].'/boxtrapper.php');
	
}