Fix configuration path resolution and add setup script

This commit is contained in:
netkas 2024-09-27 13:18:53 -04:00
parent 2c05ae8b3c
commit ff2296c786
4 changed files with 95 additions and 2 deletions

14
setup Normal file
View file

@ -0,0 +1,14 @@
<?php
$global_directory = $path = DIRECTORY_SEPARATOR . 'etc' . DIRECTORY_SEPARATOR . 'configlib';
//try creating the directory if it doesn't exist
if(!file_exists($global_directory))
{
if(!mkdir($global_directory, 0777, true))
{
exit('Failed to create global directory');
}
chmod($global_directory, 0777);
}