FIX #7590
This commit is contained in:
parent
d90f68837a
commit
88841ccbae
@ -463,6 +463,19 @@ if (! empty($_SESSION["commandbackuplastdone"]))
|
|||||||
$_SESSION["commandbackuptorun"]='';
|
$_SESSION["commandbackuptorun"]='';
|
||||||
$_SESSION["commandbackupresult"]='';
|
$_SESSION["commandbackupresult"]='';
|
||||||
}
|
}
|
||||||
|
if (! empty($_SESSION["commandbackuptorun"]))
|
||||||
|
{
|
||||||
|
print '<br><font class="warning">'.$langs->trans("YouMustRunCommandFromCommandLineAfterLoginToUser",$dolibarr_main_db_user,$dolibarr_main_db_user).':</font><br>'."\n";
|
||||||
|
print '<textarea id="commandbackuptoruntext" rows="'.ROWS_2.'" class="centpercent">'.$_SESSION["commandbackuptorun"].'</textarea><br>'."\n";
|
||||||
|
print ajax_autoselect("commandbackuptoruntext", 0);
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
|
//print $paramclear;
|
||||||
|
|
||||||
|
$_SESSION["commandbackuplastdone"]='';
|
||||||
|
$_SESSION["commandbackuptorun"]='';
|
||||||
|
$_SESSION["commandbackupresult"]='';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div> <!-- end div center button -->
|
</div> <!-- end div center button -->
|
||||||
|
|||||||
@ -214,10 +214,10 @@ else
|
|||||||
|
|
||||||
$_SESSION["commandbackupresult"]=$resultstring;
|
$_SESSION["commandbackupresult"]=$resultstring;
|
||||||
}
|
}
|
||||||
else
|
/*else
|
||||||
{
|
{
|
||||||
setEventMessages($langs->trans("YouMustRunCommandFromCommandLineAfterLoginToUser",$dolibarr_main_db_user,$dolibarr_main_db_user), null, 'mesgs');
|
setEventMessages($langs->trans("YouMustRunCommandFromCommandLineAfterLoginToUser",$dolibarr_main_db_user,$dolibarr_main_db_user), null, 'warnings');
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -196,7 +196,7 @@ class Utils
|
|||||||
|
|
||||||
// Check type parameter
|
// Check type parameter
|
||||||
if ($type == 'auto') $type = $db->type;
|
if ($type == 'auto') $type = $db->type;
|
||||||
if (! in_array($type, array('pgsql', 'mysql', 'mysqli','mysqlnobin')))
|
if (! in_array($type, array('postgresql', 'pgsql', 'mysql', 'mysqli', 'mysqlnobin')))
|
||||||
{
|
{
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$this->error=$langs->transnoentitiesnoconv("ErrorBadValueForParameter", $type, "Basetype");
|
$this->error=$langs->transnoentitiesnoconv("ErrorBadValueForParameter", $type, "Basetype");
|
||||||
@ -381,7 +381,7 @@ class Utils
|
|||||||
}
|
}
|
||||||
|
|
||||||
// POSTGRESQL
|
// POSTGRESQL
|
||||||
if ($type == 'postgresql')
|
if ($type == 'postgresql' || $type == 'pgsql')
|
||||||
{
|
{
|
||||||
$cmddump=$conf->global->SYSTEMTOOLS_POSTGRESQLDUMP;
|
$cmddump=$conf->global->SYSTEMTOOLS_POSTGRESQLDUMP;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user