1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-30 14:17:11 +00:00

update.php: display error message when running from the browser

mention self-updating in new version dialog
This commit is contained in:
Andrew Dolgov
2012-08-23 13:17:22 +04:00
parent 3bdc2b999b
commit 366f06f7cf
2 changed files with 21 additions and 0 deletions

View File

@@ -14,6 +14,25 @@
require_once "db.php";
require_once "db-prefs.php";
if (!defined('STDIN')) {
?> <html>
<head>
<title>Database Updater</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="utility.css">
</head>
<body>
<div class="floatingLogo"><img src="images/logo_wide.png"></div>
<h1><?php echo __("Update") ?></h1>
<?php print_error("Please run this script from the command line."); ?>
</body></html>
<?php
exit;
}
if (!defined('PHP_EXECUTABLE'))
define('PHP_EXECUTABLE', '/usr/bin/php');