';
- print '| '.$langs->trans("Parameters").' | '.$langs->trans("Value").' |
';
+ print '| '.$langs->trans("Parameters").' | '.$langs->trans("Value").' |
';
print '| '.$langs->trans("DefaultMaxSizeList").' | ' . $conf->global->MAIN_SIZE_LISTE_LIMIT . ' | ';
- print ' | ';
print "
";
print '| '.$langs->trans("DefaultMaxSizeShortList").' | ' . $conf->global->MAIN_SIZE_SHORTLIST_LIMIT . ' | ';
- print ' | ';
print "
";
- /*
- print '| '.$langs->trans("showInputBorder").' | ';
- print yn($conf->global->THEME_ELDY_SHOW_BORDER_INPUT)." | ";
- print ' | ';
- print "
";
- */
-
// Disable javascript/ajax
print '| '.$langs->trans("DisableJavascript").' | ';
print yn($conf->global->MAIN_DISABLE_JAVASCRIPT)." | ";
- print ' | ';
print "
";
// First day for weeks
print '| '.$langs->trans("WeekStartOnDay").' | ';
print $langs->trans("Day".(isset($conf->global->MAIN_START_WEEK)?$conf->global->MAIN_START_WEEK:'1'));
print ' | ';
- print ' | ';
print '
';
// DefaultWorkingDays
print '| '.$langs->trans("DefaultWorkingDays").' | ';
print isset($conf->global->MAIN_DEFAULT_WORKING_DAYS)?$conf->global->MAIN_DEFAULT_WORKING_DAYS:'1-5';
print ' | ';
- print ' | ';
print '
';
// DefaultWorkingHours
print '| '.$langs->trans("DefaultWorkingHours").' | ';
print isset($conf->global->MAIN_DEFAULT_WORKING_HOURS)?$conf->global->MAIN_DEFAULT_WORKING_HOURS:'9-18';
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 '| '.$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 ' |
';
// Show logo
print '| '.$langs->trans("EnableShowLogo").' | ' . yn($conf->global->MAIN_SHOW_LOGO) . ' | ';
- print ' | ';
print "
";
// Hide version link
@@ -534,23 +520,22 @@ else // Show
print '| '.$langs->trans("HideVersionLink").' | ';
print yn($conf->global->MAIN_HIDE_VERSION);
print ' | ';
- print ' | ';
print '
';
*/
// Show bugtrack link
print '| '.$langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")).' | ';
print yn($conf->global->MAIN_BUGTRACK_ENABLELINK)." | ";
- print ' | ';
print "
";
// Link to wiki help
- print '| '.$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 ' |
';
// Message of the day
- print '| '.$langs->trans("MessageOfDay").' | ';
+ print ' |
| '.$langs->trans("MessageOfDay").' | ';
if (isset($conf->global->MAIN_MOTD)) print dol_htmlcleanlastbr($conf->global->MAIN_MOTD);
else print ' ';
print ' |
'."\n";
@@ -561,21 +546,21 @@ else // Show
// Login page
print '';
- print '| '.$langs->trans("LoginPage").' | | |
';
+ print '| '.$langs->trans("LoginPage").' | |
';
// Message login
- print '| '.$langs->trans("MessageLogin").' | ';
+ print ' |
| '.$langs->trans("MessageLogin").' | ';
if (isset($conf->global->MAIN_HOME)) print dol_htmlcleanlastbr($conf->global->MAIN_HOME);
else print ' ';
print ' |
'."\n";
// Link to help center
- print '| '.$langs->trans("DisableLinkToHelpCenter").' | ';
+ print ' |
| '.$langs->trans("DisableLinkToHelpCenter").' | ';
print yn((isset($conf->global->MAIN_HELPCENTER_DISABLELINK)?$conf->global->MAIN_HELPCENTER_DISABLELINK:0),1);
print ' |
';
// Background login
- 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;
+ }
}
|