Si gestionnair emenu n'existe pas, prend par defaut.
Ajout noindex sur page login pour eviter indexation sous moteurs de recherche
This commit is contained in:
parent
e416380da6
commit
5fddc963cb
@ -1136,7 +1136,11 @@ function dol_loginfunction($notused,$pearstatus)
|
|||||||
// Ce DTD est OK
|
// Ce DTD est OK
|
||||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
|
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
|
||||||
|
|
||||||
print "\n<html><head><title>Dolibarr Authentification</title>\n";
|
print "\n";
|
||||||
|
print "<html>\n";
|
||||||
|
print "<head>\n";
|
||||||
|
print '<meta name="robots" content="noindex,nofollow">'."\n"; // Evite indexation par robots
|
||||||
|
print "<title>Dolibarr Authentification</title>\n";
|
||||||
|
|
||||||
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.'/'.$conf->css.'">'."\n";
|
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.'/'.$conf->css.'">'."\n";
|
||||||
|
|
||||||
|
|||||||
@ -471,7 +471,9 @@ function top_htmlhead($head, $title="", $target="")
|
|||||||
|
|
||||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
||||||
// print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd>';
|
// print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd>';
|
||||||
print "\n<html>";
|
print "\n";
|
||||||
|
print "<html>\n";
|
||||||
|
print "<head>\n";
|
||||||
|
|
||||||
print $langs->lang_header();
|
print $langs->lang_header();
|
||||||
print $head;
|
print $head;
|
||||||
@ -569,7 +571,11 @@ function top_menu($head, $title="", $target="")
|
|||||||
print '<div class="tmenu">'."\n";
|
print '<div class="tmenu">'."\n";
|
||||||
|
|
||||||
// Charge le gestionnaire des entrees de menu du haut
|
// Charge le gestionnaire des entrees de menu du haut
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/includes/menus/barre_top/".$conf->top_menu);
|
if (! file_exists(DOL_DOCUMENT_ROOT ."/includes/menus/barre_top/".$conf->top_menu))
|
||||||
|
{
|
||||||
|
$conf->top_menu='eldy_backoffice.php';
|
||||||
|
}
|
||||||
|
require_once(DOL_DOCUMENT_ROOT ."/includes/menus/barre_top/".$conf->top_menu);
|
||||||
$menutop = new MenuTop($db);
|
$menutop = new MenuTop($db);
|
||||||
$menutop->atarget=$target;
|
$menutop->atarget=$target;
|
||||||
|
|
||||||
@ -619,7 +625,11 @@ function left_menu($menu_array, $help_url='', $form_search='')
|
|||||||
|
|
||||||
|
|
||||||
// Autres entrees du menu par le gestionnaire
|
// Autres entrees du menu par le gestionnaire
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/includes/menus/barre_left/".$conf->left_menu);
|
if (! file_exists(DOL_DOCUMENT_ROOT ."/includes/menus/barre_left/".$conf->left_menu))
|
||||||
|
{
|
||||||
|
$conf->left_menu='eldy_backoffice.php';
|
||||||
|
}
|
||||||
|
require_once(DOL_DOCUMENT_ROOT ."/includes/menus/barre_left/".$conf->left_menu);
|
||||||
$menu=new MenuLeft($db,$menu_array);
|
$menu=new MenuLeft($db,$menu_array);
|
||||||
$menu->showmenu();
|
$menu->showmenu();
|
||||||
|
|
||||||
|
|||||||
@ -312,7 +312,7 @@ class Translate {
|
|||||||
if (! $charset) $charset="iso-8859-1";
|
if (! $charset) $charset="iso-8859-1";
|
||||||
|
|
||||||
//header("Content-Type: text/html; charset=$charset");
|
//header("Content-Type: text/html; charset=$charset");
|
||||||
$texte = "<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$charset\">\n";
|
$texte = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$charset\">\n";
|
||||||
|
|
||||||
return $texte;
|
return $texte;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user