diff options
author | Andrew Dolgov <[email protected]> | 2012-08-09 14:20:27 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-09 14:20:27 +0400 |
commit | 871f0a7ac658a0be2ed982ed1bcc6daccf14fd8a (patch) | |
tree | 00218ea91924114c84bec88c63ca0e7c5ba19e50 /include | |
parent | 8c5c4e494d92772533b2d56cbd426a01ccc24da1 (diff) |
add update.php -indexes to recreate tt-rss indexes from schema file
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index 3da777135..4ba60e844 100644 --- a/include/functions.php +++ b/include/functions.php @@ -5469,4 +5469,16 @@ return $output; } } + + function read_stdin() { + $fp = fopen("php://stdin", "r"); + + if ($fp) { + $line = trim(fgets($fp)); + fclose($fp); + return $line; + } + + return null; + } ?> |