diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index 256dd08f9a8..03f3d364cca 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -353,7 +353,8 @@ if ($action == 'edit') // Edit print ''; // Hide wiki link on login page - print ''.$langs->trans("DisableLinkToHelp",img_picto('',DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/helpdoc.png','',1)).''; + $pictohelp=''; + print ''.$langs->trans("DisableLinkToHelp",$pictohelp).''; print $form->selectyesno('MAIN_HELP_DISABLELINK', isset($conf->global->MAIN_HELP_DISABLELINK)?$conf->global->MAIN_HELP_DISABLELINK:0,1); print ''; print ' '; @@ -441,7 +442,7 @@ else // Show { // Language print ''; - print ''; + print ''; print '
'.$langs->trans("Language").' 
'.$langs->trans("Language").'  
'.$langs->trans("DefaultLanguage").''; $s=picto_from_langcode($conf->global->MAIN_LANG_DEFAULT); @@ -467,48 +468,35 @@ else // Show // Other print ''; - print ''; + print ''; print ''; - print ''; print ""; print ''; - print ''; print ""; - /* - print '"; - print ''; - print ""; - */ - // Disable javascript/ajax print '"; - print ''; print ""; // First day for weeks print ''; - print ''; print ''; // DefaultWorkingDays print ''; - print ''; print ''; // DefaultWorkingHours print ''; - print ''; print ''; // Firstname / Name position @@ -516,17 +504,15 @@ else // Show if (empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION)) { print $langs->trans("Firstname").' '.$langs->trans("Lastname"); } else { print $langs->trans("Lastname").' '.$langs->trans("Firstname"); } print ''; - print ''; print ''; // Hide unauthorized button - print ''; // Show logo print ''; - print ''; print ""; // Hide version link @@ -534,23 +520,22 @@ else // Show print ''; - print ''; print ''; */ // Show bugtrack link print '"; - print ''; print ""; // Link to wiki help - print ''; // Message of the day - print ''."\n"; @@ -561,21 +546,21 @@ else // Show // Login page print '
'.$langs->trans("Parameters").''.$langs->trans("Value").'
'.$langs->trans("Parameters").''.$langs->trans("Value").'
'.$langs->trans("DefaultMaxSizeList").'' . $conf->global->MAIN_SIZE_LISTE_LIMIT . ' 
'.$langs->trans("DefaultMaxSizeShortList").'' . $conf->global->MAIN_SIZE_SHORTLIST_LIMIT . ' 
'.$langs->trans("showInputBorder").''; - print yn($conf->global->THEME_ELDY_SHOW_BORDER_INPUT)." 
'.$langs->trans("DisableJavascript").''; print yn($conf->global->MAIN_DISABLE_JAVASCRIPT)." 
'.$langs->trans("WeekStartOnDay").''; print $langs->trans("Day".(isset($conf->global->MAIN_START_WEEK)?$conf->global->MAIN_START_WEEK:'1')); print ' 
'.$langs->trans("DefaultWorkingDays").''; print isset($conf->global->MAIN_DEFAULT_WORKING_DAYS)?$conf->global->MAIN_DEFAULT_WORKING_DAYS:'1-5'; print ' 
'.$langs->trans("DefaultWorkingHours").''; print isset($conf->global->MAIN_DEFAULT_WORKING_HOURS)?$conf->global->MAIN_DEFAULT_WORKING_HOURS:'9-18'; print ' 
 
'.$langs->trans("ButtonHideUnauthorized").''; + print '
'.$langs->trans("ButtonHideUnauthorized").''; print yn((isset($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED)?$conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED:0),1); print '
'.$langs->trans("EnableShowLogo").'' . yn($conf->global->MAIN_SHOW_LOGO) . ' 
'.$langs->trans("HideVersionLink").''; print yn($conf->global->MAIN_HIDE_VERSION); print ' 
'.$langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")).''; print yn($conf->global->MAIN_BUGTRACK_ENABLELINK)." 
'.$langs->trans("DisableLinkToHelp",img_picto('',DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/helpdoc.png','',1)).''; + $pictohelp=''; + print '
'.$langs->trans("DisableLinkToHelp",$pictohelp).''; print yn((isset($conf->global->MAIN_HELP_DISABLELINK)?$conf->global->MAIN_HELP_DISABLELINK:0),1); print '
'.$langs->trans("MessageOfDay").''; + print '
'.$langs->trans("MessageOfDay").''; if (isset($conf->global->MAIN_MOTD)) print dol_htmlcleanlastbr($conf->global->MAIN_MOTD); else print ' '; print '
'; - print ''; + print ''; // Message login - print ''."\n"; // Link to help center - print ''; // Background login - print '
'.$langs->trans("LoginPage").' 
'.$langs->trans("LoginPage").'
'.$langs->trans("MessageLogin").''; + print '
'.$langs->trans("MessageLogin").''; if (isset($conf->global->MAIN_HOME)) print dol_htmlcleanlastbr($conf->global->MAIN_HOME); else print ' '; print '
'.$langs->trans("DisableLinkToHelpCenter").''; + print '
'.$langs->trans("DisableLinkToHelpCenter").''; print yn((isset($conf->global->MAIN_HELPCENTER_DISABLELINK)?$conf->global->MAIN_HELPCENTER_DISABLELINK:0),1); print '
'.$langs->trans("BackgroundImageLogin").''; + print '
'.$langs->trans("BackgroundImageLogin").''; print '
'; print $conf->global->MAIN_LOGIN_BACKGROUND; if ($conf->global->MAIN_LOGIN_BACKGROUND && is_file($conf->mycompany->dir_output.'/logos/'.$conf->global->MAIN_LOGIN_BACKGROUND)) diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 148ef1ba50f..b1ebdda2981 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1164,7 +1164,7 @@ div.fiche { div.fiche { - margin-: dol_optimize_smallscreen)?'23':'6')); ?>px; + margin-: dol_optimize_smallscreen)?'25':'6')); ?>px; margin-: dol_optimize_smallscreen)?'25':'6')); ?>px; dol_hide_leftmenu) && ! empty($conf->dol_hide_topmenu)) print 'margin-top: 4px;'."\n"; ?> dol_hide_leftmenu)) print 'margin-bottom: 12px;'."\n"; ?> diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index 70162c4c863..76cc8ff64b7 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -788,6 +788,11 @@ class Website extends CommonObject $filesql = $conf->website->dir_temp.'/'.$website->ref.'/export/pages.sql'; $fp = fopen($filesql,"w"); + if (empty($fp)) + { + setEventMessage("Failed to create file ".$filesql, null, 'errors'); + return ''; + } $objectpages = new WebsitePage($this->db); $listofpages = $objectpages->fetchAll($website->id); diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 220a1e9663d..360578f7da0 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -1169,14 +1169,17 @@ if (GETPOST('exportsite')) { $fileofzip = $object->exportWebSite(); - $file_name = basename($fileofzip); + if ($fileofzip) + { + $file_name = basename($fileofzip); - header("Content-Type: application/zip"); - header("Content-Disposition: attachment; filename=".$file_name); - header("Content-Length: " . filesize($fileofzip)); + header("Content-Type: application/zip"); + header("Content-Disposition: attachment; filename=".$file_name); + header("Content-Length: " . filesize($fileofzip)); - readfile($fileofzip); - exit; + readfile($fileofzip); + exit; + } }