1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
download-manager/property-manager.php

19 lines
518 B
PHP
Raw Normal View History

2015-06-13 17:06:42 +01:00
<?php
define("PROPERTIES_FILE", "private/properties.yml");
2015-06-13 17:06:42 +01:00
function load_properties(){
$property_file = fopen(PROPERTIES_FILE, "r") or die("Unable to open properties file!");
$YAML = fread($property_file, filesize(PROPERTIES_FILE));
2015-06-13 17:06:42 +01:00
fclose($property_file);
return yaml_parse($YAML);
}
function yandex_meta($properties) {
foreach ($properties as &$value){
if ($value != "fade"){
$value = "#" . $value;
}
}
echo vsprintf("<meta name=\"viewport\" content=\"ya-title=%s,ya-dock=%s\" />", $properties);
}
2015-06-13 17:06:42 +01:00
?>