From 871f0a7ac658a0be2ed982ed1bcc6daccf14fd8a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 9 Aug 2012 14:20:27 +0400 Subject: add update.php -indexes to recreate tt-rss indexes from schema file --- include/functions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') 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; + } ?> -- cgit v1.2.3