Skip to content

Commit d07efa5

Browse files
author
micro
committed
Configuration files stored outside webroot
1 parent a27f732 commit d07efa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
} else {
2929
$conf_dir = 'windows';
3030
}
31-
$rootPath = realpath("./client-conf/$conf_dir");
31+
$rootPath = realpath("./../vpn/conf/$conf_dir");
3232

3333
// Initialize archive object ;;;; why doing this every time the user logs in, when the cert is static?
3434
$archive_base_name = "openvpn-$conf_dir";
3535
$archive_name = "$archive_base_name.zip";
36-
$archive_path = "./client-conf/$archive_name";
36+
$archive_path = "./../vpn/conf/$archive_name";
3737
$zip = new ZipArchive();
3838
$zip->open($archive_path, ZipArchive::CREATE | ZipArchive::OVERWRITE);
3939

0 commit comments

Comments
 (0)