git.shiar.nl
/
sc2-widget
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
keep json includes in data/ subdir
[sc2-widget]
/
widget.php
diff --git
a/widget.php
b/widget.php
index ddf9cb854aa8df3f823df1a03c9a1dee7d465d2e..e222f22afdc64b9ab63605ca39540458a8af7fd5 100644
(file)
--- a/
widget.php
+++ b/
widget.php
@@
-18,7
+18,7
@@
function error($message, $status = 500)
}
$request = trim($_SERVER['PATH_INFO'], '/');
-$target = "$request.json";
+$target = "
data/
$request.json";
$last = file_exists($target) ? filemtime($target) : 0;
if ($last < time() - 3600) {