moved location of properties file, for security
This commit is contained in:
parent
3748cb136c
commit
ff1a6b9eea
|
@ -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
|
|
@ -1 +0,0 @@
|
||||||
html title: Simple Download Manager
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
define("PROPERTIES_FILENAME", "properties.yml");
|
define("PROPERTIES_FILE", "private/properties.yml");
|
||||||
|
|
||||||
function load_properties(){
|
function load_properties(){
|
||||||
$property_file = fopen("properties.yml", "r") or die("Unable to open properties file!");
|
$property_file = fopen(PROPERTIES_FILE, "r") or die("Unable to open properties file!");
|
||||||
$YAML = fread($property_file, filesize(PROPERTIES_FILENAME));
|
$YAML = fread($property_file, filesize(PROPERTIES_FILE));
|
||||||
fclose($property_file);
|
fclose($property_file);
|
||||||
return yaml_parse($YAML);
|
return yaml_parse($YAML);
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue