Fix: Pb of timeout
This commit is contained in:
parent
9929479456
commit
d29c8b2688
@ -44,6 +44,15 @@ $dirleft = "../includes/menus/barre_left";
|
|||||||
$dirsmartphone = "../includes/menus/smartphone";
|
$dirsmartphone = "../includes/menus/smartphone";
|
||||||
|
|
||||||
|
|
||||||
|
// Cette page peut etre longue. On augmente le delai autorise.
|
||||||
|
// Ne fonctionne que si on est pas en safe_mode.
|
||||||
|
$err=error_reporting();
|
||||||
|
error_reporting(0); // Disable all errors
|
||||||
|
//error_reporting(E_ALL);
|
||||||
|
@set_time_limit(300); // Need more than 240 on Windows 7/64
|
||||||
|
error_reporting($err);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
@ -71,7 +80,7 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update' && empty($_POST["can
|
|||||||
foreach ($listofmenuhandler as $key => $val)
|
foreach ($listofmenuhandler as $key => $val)
|
||||||
{
|
{
|
||||||
$dir = DOL_DOCUMENT_ROOT."/includes/menus/";
|
$dir = DOL_DOCUMENT_ROOT."/includes/menus/";
|
||||||
|
|
||||||
if ($key == 'auguria')
|
if ($key == 'auguria')
|
||||||
{
|
{
|
||||||
// Load sql init_menu_base.sql file
|
// Load sql init_menu_base.sql file
|
||||||
@ -168,7 +177,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
|||||||
print $htmladmin->select_menu($conf->global->MAIN_MENUFRONT_BARRELEFT,'main_menufront_barreleft',$dirleft);
|
print $htmladmin->select_menu($conf->global->MAIN_MENUFRONT_BARRELEFT,'main_menufront_barreleft',$dirleft);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Menu smartphone
|
// Menu smartphone
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMenuSmartphoneManager").'</td>';
|
print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMenuSmartphoneManager").'</td>';
|
||||||
@ -229,7 +238,7 @@ else
|
|||||||
print $filelib;
|
print $filelib;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
print '<td>'.$langs->trans("DefaultMenuSmartphoneManager").'</td>';
|
print '<td>'.$langs->trans("DefaultMenuSmartphoneManager").'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user