Optimize values for DoliWamp. Test is passed successfully to phpsecinfo
This commit is contained in:
parent
3c1eaa1633
commit
cd2e45b48e
@ -251,7 +251,7 @@ safe_mode_protected_env_vars = LD_LIBRARY_PATH
|
|||||||
; and below. This directive makes most sense if used in a per-directory
|
; and below. This directive makes most sense if used in a per-directory
|
||||||
; or per-virtualhost web server configuration file. This directive is
|
; or per-virtualhost web server configuration file. This directive is
|
||||||
; *NOT* affected by whether Safe Mode is turned On or Off.
|
; *NOT* affected by whether Safe Mode is turned On or Off.
|
||||||
;open_basedir =
|
open_basedir = "WAMPROOT"
|
||||||
|
|
||||||
; This directive allows you to disable certain functions for security reasons.
|
; This directive allows you to disable certain functions for security reasons.
|
||||||
; It receives a comma-delimited list of function names. This directive is
|
; It receives a comma-delimited list of function names. This directive is
|
||||||
@ -301,10 +301,10 @@ expose_php = On
|
|||||||
; Resource Limits ;
|
; Resource Limits ;
|
||||||
;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
max_execution_time = 30 ; Maximum execution time of each script, in seconds
|
max_execution_time = 30 ; Maximum execution time of each script, in seconds
|
||||||
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
|
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
|
||||||
;max_input_nesting_level = 64 ; Maximum input variable nesting level
|
;max_input_nesting_level = 64 ; Maximum input variable nesting level
|
||||||
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
|
memory_limit = 64M ; Maximum amount of memory a script may consume (128MB)
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
@ -426,7 +426,7 @@ track_errors = Off
|
|||||||
;error_append_string = "</font>"
|
;error_append_string = "</font>"
|
||||||
|
|
||||||
; Log errors to specified file.
|
; Log errors to specified file.
|
||||||
error_log = WAMPROOT/logs/php_error.log
|
error_log = "WAMPROOT/logs/php_error.log"
|
||||||
|
|
||||||
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
|
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
|
||||||
;error_log = syslog
|
;error_log = syslog
|
||||||
@ -603,7 +603,7 @@ upload_max_filesize = 2M
|
|||||||
;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
|
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
|
||||||
allow_url_fopen = On
|
allow_url_fopen = Off
|
||||||
|
|
||||||
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
|
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
|
||||||
allow_url_include = Off
|
allow_url_include = Off
|
||||||
|
|||||||
@ -27,3 +27,4 @@ ErrorLeftMenuMustHaveAParentId=A menu of type 'Left' must have a parent id.
|
|||||||
ErrorGenbarCodeNotfound=File not found (Bad path, wrong permissions or access denied by openbasedir parameter)
|
ErrorGenbarCodeNotfound=File not found (Bad path, wrong permissions or access denied by openbasedir parameter)
|
||||||
ErrorFunctionNotAvailableInPHP=Function <b>%s</b> is required for this feature but is not available in this version/setup of PHP.
|
ErrorFunctionNotAvailableInPHP=Function <b>%s</b> is required for this feature but is not available in this version/setup of PHP.
|
||||||
ErrorDirAlreadyExists=A directory with this name already exists.
|
ErrorDirAlreadyExists=A directory with this name already exists.
|
||||||
|
WarningAllowUrlFopenMustBeOn=Parameter <b>allow_url_fopen</b> must be set to <b>on</b> in filer <b>php.ini</b> for having this module working completely. You must modify this file manually.
|
||||||
|
|||||||
@ -27,3 +27,4 @@ ErrorLeftMenuMustHaveAParentId=Un menu de type 'Left' doit avoir un id de p
|
|||||||
ErrorGenbarCodeNotfound=Fichier introuvable (Mauvais chemin, permissions incorrectes ou accès interdit par le paramètre openbasedir)
|
ErrorGenbarCodeNotfound=Fichier introuvable (Mauvais chemin, permissions incorrectes ou accès interdit par le paramètre openbasedir)
|
||||||
ErrorFunctionNotAvailableInPHP=La fonction <b>%s</b> est requise pour cette fonctionnalité mais n'est pas disponible dans cette version/installation de PHP.
|
ErrorFunctionNotAvailableInPHP=La fonction <b>%s</b> est requise pour cette fonctionnalité mais n'est pas disponible dans cette version/installation de PHP.
|
||||||
ErrorDirAlreadyExists=Un répertoire portant ce nom existe déjà.
|
ErrorDirAlreadyExists=Un répertoire portant ce nom existe déjà.
|
||||||
|
WarningAllowUrlFopenMustBeOn=Attention, le paramètre <b>allow_url_fopen</b> doit etre positionné à <b>on</b> dans le fichier <b>php.ini</b> pour que ce module soit pleinement opérationnel. Vous devez modifier ce fichier manuellement.
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -15,15 +15,13 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/oscommerce_ws/index.php
|
\file htdocs/oscommerce_ws/index.php
|
||||||
\ingroup oscommerce2
|
\ingroup oscommerce2
|
||||||
\brief Page accueil zone boutique
|
\brief Page accueil zone boutique
|
||||||
\version $Revision$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -36,6 +34,13 @@ llxHeader("",$langs->trans("OSCOmmerceShop"));
|
|||||||
|
|
||||||
print_fiche_titre($langs->trans("OSCommerceShop"));
|
print_fiche_titre($langs->trans("OSCommerceShop"));
|
||||||
|
|
||||||
|
if (! @ini_get('allow_url_fopen'))
|
||||||
|
{
|
||||||
|
$langs->load("errors");
|
||||||
|
print '<div class="warning">'.$langs->trans("WarningAllowUrlFopenMustBeOn").'</div><br>';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
print '<table width="100%" class="notopnoleftnoright">';
|
print '<table width="100%" class="notopnoleftnoright">';
|
||||||
|
|
||||||
print '<tr><td valign="top" width="40%" class="notopnoleft">';
|
print '<tr><td valign="top" width="40%" class="notopnoleft">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user