Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2687 → Rev 2688

/web/acc/admin/network.php
226,10 → 226,6
$field = preg_split("/\s+/",$line);
$ip_addr = $field[0];
$host_name = trim($field[1]);
if (strcmp($add_ip, $ip_addr) === 0) {
$insert = false;
break;
}
if (strcasecmp($add_host, $host_name) === 0) {
$insert = false;
break;
237,7 → 233,7
}
}
if ($insert) {
exec("sudo /usr/local/bin/alcasar-dns-local.sh -add $add_ip $add_host");
exec("sudo /usr/local/bin/alcasar-dns-local.sh --add $add_ip $add_host");
}
}
}
272,8 → 268,8
move_uploaded_file($_FILES['key']['tmp_name'], $keypath);
move_uploaded_file($_FILES['crt']['tmp_name'], $crtpath);
exec("sudo alcasar-importcert.sh -i $crtpath -k $keypath -c $scpath");
if (file_exists($crtpath)) unlink($crtpath);
if (file_exists($keypath)) unlink($keypath);
if (file_exists($crtpath)) unlink($crtpath);
if (file_exists($keypath)) unlink($keypath);
if (file_exists($scpath)) unlink($scpath);
}
}
342,7 → 338,7
$domainName = $_POST['domainname'];
 
exec('sudo /usr/local/bin/alcasar-letsencrypt.sh --issue --email '.escapeshellarg($email).' --domain '.escapeshellarg($domainName), $output, $exitCode);
 
$cmdResponse = implode("<br>\n", $output);
}
if ($choix === 'le_renewCert') {