Blame |
Last modification |
View Log
| RSS feed
<?php
// Defaults
stam_read_config(__DIR__ . '/../defaults/.stam_config');
// Read config in user dir
$home = $_SERVER['HOME'];
stam_read_config($home.'/.stam_config');
// ---
function stam_read_config($file) {
global $stam_cfg;
foreach ($x as &$a) {
if ($a == '') continue;
if ($name[0] == '#') continue; // Comment
// Invalid entry
fwrite(STDERR
, "Ignore invalid config line: $a\n");
continue;
}
$stam_cfg[$name] = $val;
}
}