1
Fork 0

moved location of properties file, for security

This commit is contained in:
Jake Howard 2015-06-14 18:03:26 +01:00
parent 3748cb136c
commit ff1a6b9eea
3 changed files with 13 additions and 4 deletions

10
private/properties.yml Normal file
View File

@ -0,0 +1,10 @@
html title: Simple Download Manager
file QS: file
default metas:
description: Simple downlaod manager
author: TheOrangeOne
yandex transparency:
title: "000000"
dock: fade

View File

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

View File

@ -1,9 +1,9 @@
<?php
define("PROPERTIES_FILENAME", "properties.yml");
define("PROPERTIES_FILE", "private/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));
$property_file = fopen(PROPERTIES_FILE, "r") or die("Unable to open properties file!");
$YAML = fread($property_file, filesize(PROPERTIES_FILE));
fclose($property_file);
return yaml_parse($YAML);
}