fixed! (#175)
Fatal error: Uncaught Error: Call to undefined function readline()
This commit is contained in:
parent
85d1d506b1
commit
5f737f648f
@ -13,6 +13,19 @@ If not, see <http://www.gnu.org/licenses/>.
|
||||
set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/../').':'.realpath(dirname(__FILE__).'/../MadelineProto/'));
|
||||
chdir(dirname(__FILE__).'/../');
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
|
||||
if(!function_exists("readline")) {
|
||||
function readline($prompt = null){
|
||||
if($prompt){
|
||||
echo $prompt;
|
||||
}
|
||||
$fp = fopen("php://stdin","r");
|
||||
$line = rtrim(fgets($fp, 1024));
|
||||
return $line;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists('web_data.php')) {
|
||||
require_once 'web_data.php';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user