';
}
$errorMsg = rtrim($errorMsg, ' ');
echo $start_notice_error.$errorMsg.$end_notice;
$EditProviderFile = $_POST['Pconffile'];
$pageStatus = 'edit';
}
}
if ($pageStatus == 'list') {
// Start Mail Providers list
foreach (GetMailProviders(true) as $ProviderConfig) {
if ($ProviderConfig['STATUS'] == "1") {$checked='checked="checked"';$ToStatus=0;} else {$checked='';$ToStatus=1;}
$testValidConf = ValidateProviderConf($_ENV['cp_security_token'],$ProviderConfig['CONFFILENAME']);
if ($testValidConf['status']) {
$ConfFileIntegrity = 'VALID
';
} else {
if ($ProviderConfig['STATUS'] == "1") {
if (ChangeProviderStatus($_ENV['cp_security_token'],'0',$ProviderConfig['CONFFILENAME'])) {
echo $start_notice_error.fileToProviderName($ProviderConfig['CONFFILENAME']).' status updated to off since you have an error with your configuration'.$end_notice;
$checked='';
$ToStatus=1;
} else {
echo $start_notice_error.'Error updating '.fileToProviderName($_GET['providerfile']).' status to off'.$end_notice;
}
}
$ConfFileIntegrity = 'MISSING CONFIGURATION