__DIR__
This commit is contained in:
parent
c2d62a5ccb
commit
ba3c1e1b8a
@ -6,10 +6,10 @@ if (! function_exists('str_ends_with')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!file_exists("scans")) mkdir("scans");
|
||||
if (!file_exists("site")) mkdir("site");
|
||||
if (!file_exists(__DIR__."/scans")) mkdir(__DIR__."/scans");
|
||||
if (!file_exists(__DIR__."/site")) mkdir(__DIR__."/site");
|
||||
|
||||
foreach (scandir(__DIR__."/confs/") as $file) {
|
||||
foreach (scandir(__DIR__."/confs") as $file) {
|
||||
if (str_ends_with($file, ".yaml")) {
|
||||
$site = str_replace(".yaml", "", $file);
|
||||
$yaml = yaml_parse_file(__DIR__."/confs/$file");
|
||||
|
Loading…
x
Reference in New Issue
Block a user