Commit 01a6b1b0 authored by Fabian 'xx4h' Melters's avatar Fabian 'xx4h' Melters

Some minor refactoring

parent b5cfa9c6
......@@ -4,3 +4,4 @@ password = your_remote_user_passwort
soap_location = https://your_ispconfig_address:8080/remote/index.php
soap_uri = https://your_ispconfig_address:8080/remote/
debug = 1
......@@ -2,6 +2,13 @@
// Load config
$ini_array = parse_ini_file("config.ini");
$debug = $ini_array['debug'];
// Add helpers
function msg($msg) {
if ($debug) { error_log($msg); }
}
$username = $ini_array['username'];
$password = $ini_array['password'];
......@@ -16,8 +23,6 @@ $certbot_domain = getenv('CERTBOT_DOMAIN');
$certbot_validation = getenv('CERTBOT_VALIDATION');
$certbot_token = getenv('CERTBOT_TOKEN');
$debug = $ini_array['debug'];
$domain_only = "";
$needs_zone_update = false;
......@@ -27,7 +32,3 @@ $client = new SoapClient(null, array(
'cache_wsdl' => WSDL_CACHE_NONE,
));
// Add helpers
function msg($msg) {
if ($debug) { error_log($msg); }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment