1
Fork 0

initialised properties

This commit is contained in:
Jake Howard 2015-06-13 17:06:42 +01:00
parent c4bc74d8e1
commit f0233dfb19
2 changed files with 11 additions and 0 deletions

1
properties.yml Normal file
View file

@ -0,0 +1 @@
html title: Simple Download Manager

10
property-manager.php Normal file
View 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);
}
?>