Work to mke the page perf.php public by default.
This commit is contained in:
parent
4387d40b9a
commit
a23bae6c96
@ -144,6 +144,21 @@ if (! $foundcache && $test)
|
|||||||
if (! $foundcache) print $langs->trans("NoOPCodeCacheFound");
|
if (! $foundcache) print $langs->trans("NoOPCodeCacheFound");
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
|
// Use of preload bootstrap
|
||||||
|
if (ini_get('opcache.preload'))
|
||||||
|
{
|
||||||
|
print '<br>';
|
||||||
|
print '<strong>'.$langs->trans("PreloadOPCode").'</strong>: ';
|
||||||
|
print ini_get('opcache.preload');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<br>';
|
||||||
|
print '<strong>'.$langs->trans("PreloadOPCode").'</strong>: ';
|
||||||
|
print $langs->trans("No");
|
||||||
|
}
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
// HTTPCacheStaticResources
|
// HTTPCacheStaticResources
|
||||||
print '<script type="text/javascript" language="javascript">
|
print '<script type="text/javascript" language="javascript">
|
||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
@ -467,16 +482,46 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
if (empty($conf->global->PRODUCT_DONOTSEARCH_ANYWHERE))
|
if (empty($conf->global->PRODUCT_DONOTSEARCH_ANYWHERE))
|
||||||
{
|
{
|
||||||
print img_picto('', 'warning.png').' '.$langs->trans("YouHaveXProductUseSearchOptim", $nb);
|
print img_picto('', 'warning.png').' '.$langs->trans("YouHaveXObjectUseSearchOptim", $nb, $langs->transnoentitiesnoconv("ProductsOrServices"), 'PRODUCT_DONOTSEARCH_ANYWHERE');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_picto('', 'tick.png').' '.$langs->trans("YouHaveXProductAndSearchOptimOn", $nb);
|
print img_picto('', 'tick.png').' '.$langs->trans("YouHaveXObjectAndSearchOptimOn", $nb, $langs->transnoentitiesnoconv("ProductsOrServices"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_picto('', 'tick.png').' '.$langs->trans("NbOfProductIsLowerThanNoPb", $nb);
|
print img_picto('', 'tick.png').' '.$langs->trans("NbOfObjectIsLowerThanNoPb", $nb, $langs->transnoentitiesnoconv("ProductsOrServices"));
|
||||||
|
}
|
||||||
|
print '<br>';
|
||||||
|
$db->free($resql);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Thirdparty search
|
||||||
|
$tab = array();
|
||||||
|
$sql = "SELECT COUNT(*) as nb";
|
||||||
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
|
||||||
|
$resql=$db->query($sql);
|
||||||
|
if ($resql)
|
||||||
|
{
|
||||||
|
$limitforoptim=10000;
|
||||||
|
$num=$db->num_rows($resql);
|
||||||
|
$obj=$db->fetch_object($resql);
|
||||||
|
$nb=$obj->nb;
|
||||||
|
if ($nb > $limitforoptim)
|
||||||
|
{
|
||||||
|
if (empty($conf->global->THIRDPARTY_DONOTSEARCH_ANYWHERE))
|
||||||
|
{
|
||||||
|
print img_picto('', 'warning.png').' '.$langs->trans("YouHaveXObjectUseSearchOptim", $nb, $langs->transnoentitiesnoconv("ThirdParties"), 'THIRDPARTY_DONOTSEARCH_ANYWHERE');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print img_picto('', 'tick.png').' '.$langs->trans("YouHaveXObjectAndSearchOptimOn", $nb, $langs->transnoentitiesnoconv("ThirdParties"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print img_picto('', 'tick.png').' '.$langs->trans("NbOfObjectIsLowerThanNoPb", $nb, $langs->transnoentitiesnoconv("ThirdParties"));
|
||||||
}
|
}
|
||||||
print '<br>';
|
print '<br>';
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
|
|||||||
@ -1220,9 +1220,10 @@ SuhosinSessionEncrypt=Session storage encrypted by Suhosin
|
|||||||
ConditionIsCurrently=Condition is currently %s
|
ConditionIsCurrently=Condition is currently %s
|
||||||
YouUseBestDriver=You use driver %s which is the best driver currently available.
|
YouUseBestDriver=You use driver %s which is the best driver currently available.
|
||||||
YouDoNotUseBestDriver=You use driver %s but driver %s is recommended.
|
YouDoNotUseBestDriver=You use driver %s but driver %s is recommended.
|
||||||
NbOfProductIsLowerThanNoPb=You have only %s products/services in the database. This does not require any particular optimization.
|
NbOfObjectIsLowerThanNoPb=You have only %s %s in the database. This does not require any particular optimization.
|
||||||
SearchOptim=Search optimization
|
SearchOptim=Search optimization
|
||||||
YouHaveXProductUseSearchOptim=You have %s products in the database. You should add the constant PRODUCT_DONOTSEARCH_ANYWHERE to 1 in Home-Setup-Other. Limit the search to the beginning of strings which makes it possible for the database to use indexes and you should get an immediate response.
|
YouHaveXObjectUseSearchOptim=You have %s %s in the database. You should add the constant %s to 1 in Home-Setup-Other. Limit the search to the beginning of strings which makes it possible for the database to use indexes and you should get an immediate response.
|
||||||
|
YouHaveXObjectAndSearchOptimOn=You have %s %s in the database and constant %s is set to 1 in Home-Setup-Other.
|
||||||
BrowserIsOK=You are using the %s web browser. This browser is ok for security and performance.
|
BrowserIsOK=You are using the %s web browser. This browser is ok for security and performance.
|
||||||
BrowserIsKO=You are using the %s web browser. This browser is known to be a bad choice for security, performance and reliability. We recommend using Firefox, Chrome, Opera or Safari.
|
BrowserIsKO=You are using the %s web browser. This browser is known to be a bad choice for security, performance and reliability. We recommend using Firefox, Chrome, Opera or Safari.
|
||||||
XDebugInstalled=XDebug is loaded.
|
XDebugInstalled=XDebug is loaded.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user