Fork me on GitHub






Sécurité : password et username en dehors du main file
Aspirant
Inscrit: 02/10/2005 23:13
Messages: 41
Bonjour,

j'ai suivi les recommandations de l'article:

http://xoops-tips.com/news-article.storyid-1.htm

Cependant, celà ne marche pas.

Voici l'architecture de mon hebergeur (nom des répertoire):

serveur/monsite.fr/securedata

dans securedata, j'ai mis le fichier xoops-auth.php.

Dans le fichier mainfile, qui se trouve dans monsite.fr/html, j'ai rajouté la ligne suivante avec include(voici une copie du mainfile avec ma commande include):

<?php
// $Id: mainfile.dist.php 506 2006-05-26 23:10:37Z skalpa $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// 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 //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
include ("/lean6sigma.fr/securedata/xoops-auth.php");



Lors de l'execution, j'ai le message suivant:

XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run

J'ai mis mes CHMOD en 777 pendant mon test.

Que ce passe t-il?


Merci

Posté le : 07/02/2007 14:30
Partager Twitter Partagez cette article sur GG+
Re: Sécurité : password et username en dehors du main file
Régulier
Inscrit: 27/01/2005 00:14
De Paris
Messages: 292
Tu est sur que ce n'est pas dans le mainfile.php qu'il faut faire la modif ?

Posté le : 07/02/2007 15:56

Les mots des hommes sont nombreux mais la vérité est divine et unique.
Partager Twitter Partagez cette article sur GG+
Re: Sécurité : password et username en dehors du main file
Aspirant
Inscrit: 02/10/2005 23:13
Messages: 41
De quel modif tu parles?

J'ai rajouté la ligne include dans le fichier mainfile ainsi que (toujours dans mainfile):

/ Database Username
// Your database user account on the host
define('XOOPS_DB_USER',$db_user);

// Database Password
// Password for your database user account
define('XOOPS_DB_PASS',$db_passwd);

// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME',$db_name);

Posté le : 07/02/2007 16:44
Partager Twitter Partagez cette article sur GG+
Re: Sécurité : password et username en dehors du main file
Aspirant
Inscrit: 02/10/2005 23:13
Messages: 41
C'est bon, j'ai résolu mon problème pour le momment.

Merci

Posté le : 14/02/2007 17:22
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

15 Personne(s) en ligne (11 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 15 | Plus ...