Revision f416763b
Added by Phil Davis over 10 years ago
etc/inc/system.inc | ||
---|---|---|
939 | 939 |
'organizationName' => "{$g['product_name']} webConfigurator Self-Signed Certificate", |
940 | 940 |
'emailAddress' => "admin@{$config['system']['hostname']}.{$config['system']['domain']}", |
941 | 941 |
'commonName' => "{$config['system']['hostname']}-{$cert['refid']}"); |
942 |
$old_err_level = error_reporting(0); /* otherwise openssl_ functions throw warings directly to a page screwing menu tab */ |
|
942 |
$old_err_level = error_reporting(0); /* otherwise openssl_ functions throw warnings directly to a page screwing menu tab */
|
|
943 | 943 |
if (!cert_create($cert, null, 2048, 2000, $dn, "self-signed", "sha256")){ |
944 | 944 |
while($ssl_err = openssl_error_string()){ |
945 | 945 |
log_error("Error creating WebGUI Certificate: openssl library returns: " . $ssl_err); |
... | ... | |
1235 | 1235 |
url.access-deny = ( "~", ".inc" ) |
1236 | 1236 |
|
1237 | 1237 |
|
1238 |
######### Options that are good to be but not neccesary to be changed #######
|
|
1238 |
######### Options that are good to be but not necessary to be changed #######
|
|
1239 | 1239 |
|
1240 | 1240 |
## bind to port (default: 80) |
1241 | 1241 |
|
... | ... | |
1746 | 1746 |
} |
1747 | 1747 |
} |
1748 | 1748 |
|
1749 |
/* open configuration for wrting or bail */ |
|
1749 |
/* open configuration for writing or bail */
|
|
1750 | 1750 |
if (!@file_put_contents("{$g['varetc_path']}/ntpd.conf", $ntpcfg)) { |
1751 | 1751 |
log_error("Could not open {$g['varetc_path']}/ntpd.conf for writing"); |
1752 | 1752 |
return; |
Also available in: Unified diff
Random text typos
that I noticed.