Trad: Ajout warning sur présence rep install.
This commit is contained in:
parent
c140e2befe
commit
722ce15fa6
@ -39,6 +39,7 @@ if (! isset($_GET["mainmenu"])) $_GET["mainmenu"]="home";
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
|
|
||||||
$userstring=$user->prenom . ' ' . $user->nom .' ('.$user->login.')';
|
$userstring=$user->prenom . ' ' . $user->nom .' ('.$user->login.')';
|
||||||
print_fiche_titre($langs->trans("WelcomeString",dolibarr_print_date(mktime(),"%A %d %B %Y"),$userstring), '<a href="about.php">'.$langs->trans("About").'</a>');
|
print_fiche_titre($langs->trans("WelcomeString",dolibarr_print_date(mktime(),"%A %d %B %Y"),$userstring), '<a href="about.php">'.$langs->trans("About").'</a>');
|
||||||
|
|
||||||
@ -47,6 +48,16 @@ if (defined("MAIN_MOTD") && strlen(trim(MAIN_MOTD)))
|
|||||||
print '<br>'.nl2br(MAIN_MOTD).'<br>';
|
print '<br>'.nl2br(MAIN_MOTD).'<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Affiche warning répertoire install existe (si utilisateur admin)
|
||||||
|
if ($user->admin)
|
||||||
|
{
|
||||||
|
if (is_dir(DOL_DOCUMENT_ROOT."/install"))
|
||||||
|
{
|
||||||
|
$langs->load("other");
|
||||||
|
print '<div class="warning">'.$langs->trans("WarningInstallDirExists",DOL_DOCUMENT_ROOT."/install").' ';
|
||||||
|
print $langs->trans("WarningUntilDirRemoved",DOL_DOCUMENT_ROOT."/install").'</div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,4 +18,6 @@ NbOfAttachedFiles=Number of attached files/documents
|
|||||||
TotalSizeOfAttachedFiles=Total size of attached files/documents
|
TotalSizeOfAttachedFiles=Total size of attached files/documents
|
||||||
AttachANewFile=Attach a new file/document
|
AttachANewFile=Attach a new file/document
|
||||||
LinkedObject=Linked object
|
LinkedObject=Linked object
|
||||||
NbOfActiveNotifications=Number of notifications
|
NbOfActiveNotifications=Number of notifications
|
||||||
|
WarningInstallDirExists=Warning, install directory (%s) still exists. This is a serious security hole. You should removed it as soon as possible.
|
||||||
|
WarningUntilDirRemoved=This warning will keep active while directory is present (Shown only for admin users).
|
||||||
@ -19,3 +19,5 @@ TotalSizeOfAttachedFiles=Taille total des fichiers/documents li
|
|||||||
AttachANewFile=Ajouter un nouveau fichier/document
|
AttachANewFile=Ajouter un nouveau fichier/document
|
||||||
LinkedObject=Objet lié
|
LinkedObject=Objet lié
|
||||||
NbOfActiveNotifications=Nombre de notifications
|
NbOfActiveNotifications=Nombre de notifications
|
||||||
|
WarningInstallDirExists=Attention, le répertoire install (%s) existe toujours. Il s'agit d'une faille sérieuse de sécurité. Vous devriez l'effacer dès que possible.
|
||||||
|
WarningUntilDirRemoved=Cette alerte restera active tant que le répertoire existera (bien que visible aux utilisateurs admin uniquement).
|
||||||
Loading…
Reference in New Issue
Block a user