request DB password for reinstalling triggers

This commit is contained in:
following
2012-08-07 20:07:35 +02:00
parent eda58c51e3
commit c2d6e957f8

View File

@ -16,6 +16,14 @@
require_once($opt['rootpath'] . 'util/mysql_root/sql_root.inc.php');
if ($db_root_password == '')
{
echo "enter DB $db_root_username password: ";
$fh = fopen('php://stdin', 'r');
$db_root_password = trim(fgets($fh, 1024));
fclose($fh);
}
/* begin db connect */
db_root_connect();
if ($dblink === false)