Line 29... |
Line 29... |
29 |
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
29 |
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
30 |
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
30 |
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
31 |
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
31 |
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
32 |
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
32 |
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
// CVS : $Id: instal_preference.inc.php,v 1.10 2005-09-23 14:20:23 florian Exp $
|
34 |
// CVS : $Id: instal_preference.inc.php,v 1.11 2006-10-05 15:14:18 alexandre_tb Exp $
|
35 |
/**
|
35 |
/**
|
36 |
* Page d'initialisation de l'installation de Papyrus.
|
36 |
* Page d'initialisation de l'installation de Papyrus.
|
37 |
*
|
37 |
*
|
38 |
* Contenu de la page par défaut de l'installation de Papyrus.
|
38 |
* Contenu de la page par défaut de l'installation de Papyrus.
|
39 |
*
|
39 |
*
|
Line 43... |
Line 43... |
43 |
//Autres auteurs :
|
43 |
//Autres auteurs :
|
44 |
*@author David DELON
|
44 |
*@author David DELON
|
45 |
*@author Patrick PAUL
|
45 |
*@author Patrick PAUL
|
46 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
46 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
47 |
*@copyright Tela-Botanica 2000-2004
|
47 |
*@copyright Tela-Botanica 2000-2004
|
48 |
*@version $Revision: 1.10 $ $Date: 2005-09-23 14:20:23 $
|
48 |
*@version $Revision: 1.11 $ $Date: 2006-10-05 15:14:18 $
|
49 |
// +------------------------------------------------------------------------------------------------------+
|
49 |
// +------------------------------------------------------------------------------------------------------+
|
50 |
**/
|
50 |
**/
|
Line 51... |
Line 51... |
51 |
|
51 |
|
52 |
// +------------------------------------------------------------------------------------------------------+
|
52 |
// +------------------------------------------------------------------------------------------------------+
|
Line 61... |
Line 61... |
61 |
foreach ($tableau as $cle => $val) {
|
61 |
foreach ($tableau as $cle => $val) {
|
62 |
if (!empty($_POST['pref'][$cle])) {
|
62 |
if (!empty($_POST['pref'][$cle])) {
|
63 |
$pref[$cle] = $_POST['pref'][$cle];
|
63 |
$pref[$cle] = $_POST['pref'][$cle];
|
64 |
} else if (defined($cle)) {
|
64 |
} else if (defined($cle)) {
|
65 |
$pref[$cle] = constant($cle);
|
65 |
$pref[$cle] = constant($cle);
|
- |
|
66 |
if ($cle == 'PAP_CHEMIN_RACINE') $pref[$cle] = INSTAL_CHEMIN_ABSOLU;
|
66 |
} else {
|
67 |
} else {
|
67 |
if ($cle == 'PAP_URL') {
|
68 |
if ($cle == 'PAP_URL') {
|
68 |
$pref[$cle] = 'http://'.$_SERVER['SERVER_NAME'].
|
69 |
$pref[$cle] = 'http://'.$_SERVER['SERVER_NAME'].
|
69 |
($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : '').
|
70 |
($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : '').
|
70 |
$_SERVER['REQUEST_URI'];
|
71 |
$_SERVER['REQUEST_URI'];
|
Line 230... |
Line 231... |
230 |
|
231 |
|
231 |
|
232 |
|
232 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
233 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
234 |
*
|
- |
|
235 |
* $Log: not supported by cvs2svn $
|
- |
|
236 |
* Revision 1.10 2005/09/23 14:20:23 florian
|
233 |
*
|
237 |
* nouvel habillage installateur, plus correction de quelques bugs
|
234 |
* $Log: not supported by cvs2svn $
|
238 |
*
|
235 |
* Revision 1.9 2005/04/12 16:09:45 jpm
|
239 |
* Revision 1.9 2005/04/12 16:09:45 jpm
|
236 |
* Amélioration de la gestion de la constante de redirection des urls et de la gestion des constantes de type entier et booléen.
|
240 |
* Amélioration de la gestion de la constante de redirection des urls et de la gestion des constantes de type entier et booléen.
|
237 |
*
|
241 |
*
|