initialised properties
This commit is contained in:
parent
c4bc74d8e1
commit
f0233dfb19
2 changed files with 11 additions and 0 deletions
1
properties.yml
Normal file
1
properties.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
html title: Simple Download Manager
|
10
property-manager.php
Normal file
10
property-manager.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
define("PROPERTIES_FILENAME", "properties.yml");
|
||||||
|
|
||||||
|
function load_properties(){
|
||||||
|
$property_file = fopen("properties.yml", "r") or die("Unable to open properties file!");
|
||||||
|
$YAML = fread($property_file, filesize(PROPERTIES_FILENAME));
|
||||||
|
fclose($property_file);
|
||||||
|
return yaml_parse($YAML);
|
||||||
|
}
|
||||||
|
?>
|
Reference in a new issue