Fork me on GitHub


 Bas   Précédent   Suivant

« 1 ... 17 18 19 (20) 21 22 »


Re: Site hacké ?
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Si j'ai fait une erreur, tu peux me dire laquelle pour que je la corrige, il ne faut pas laisser des erreurs sur le forum.
Chez moi les corrections ont fonctionné et aussi pour sl55klee (post)


Pour toi le code:
// XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash

    
define('XOOPS_ROOT_PATH'$_SERVER["DOCUMENT_ROOT"].'/site/html');


Si Free change encore le chemin physique de ton site, j'utilise la variable $_SERVER["DOCUMENT_ROOT"] qui est le chemin ROOT de ton site fourni par Free.
Aujourd'hui le chemin ROOT de ton site est /var/www/free.fr/b/3/gamerworld et Xoops est dans les répertoires /site/html

Xavier

Posté le : 10/05/2006 18:49

Edité par svn sur 10/05/2006 19:06:13
Transférer la contribution vers d'autres applications Transférer


Re: Site hacké ?
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Autre solution possible : Mon Post

Xavier

Posté le : 10/05/2006 15:24
Transférer la contribution vers d'autres applications Transférer


Re: Erreur de path => chemin physique dans le Mainfile.php
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Free fait un grand ménage en ce moment et les sites qui utilisent comme xoops le chemin physique du serveur ne fonctionnent plus. j'ai fait une modif sur le fichier mainfile.php pour ne plus avoir se problème récurrent chez Free. Mais je ne suis qu'un débutant, l'astuce est-elle bonne ?
Voilà le lien :Post

Xavier.

Posté le : 10/05/2006 08:43
Transférer la contribution vers d'autres applications Transférer


Re: Problème avec free?
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Ma modif pour le chemin de 'XOOPS_ROOT_PATH' reste à valider par l'équipe Xoops France.

je ne suis q'un débutant.


PS: Il faut modifier le préfixe de ton article avec [résolu]

Xavier.

Posté le : 09/05/2006 19:27
Transférer la contribution vers d'autres applications Transférer


Re: Problème avec free?
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Je pense que tu dois réinstaller Xoops, ton fichier mainfile.php est vide !!!

Il devrait ressembler un petit peu à çà :
<?php
// $Id: mainfile.dist.php,v 1.7 2004/12/26 19:11:47 onokazu Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <http://www.xoops.org/>   ... nbsp;   //
//  ------------------------------------------------------------------------ //
//  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 //
//  ------------------------------------------------------------------------ //

if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    
define("XOOPS_MAINFILE_INCLUDED",1);

    
// XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash
    
define('XOOPS_ROOT_PATH'$_SERVER["DOCUMENT_ROOT"].'/xoops'); // Ma modif !!!

    // XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    
define('XOOPS_URL''http://www.sl55creationweb.com/xoops');

    
define('XOOPS_CHECK_PATH'1);
    
// Protect against external scripts execution if safe mode is not enabled
    
if ( XOOPS_CHECK_PATH && !@ini_get('safe_mode') ) {
        if ( 
function_exists('debug_backtrace') ) {
            
$xoopsScriptPath debug_backtrace();
            if ( !
count($xoopsScriptPath) ) {
                die(
"XOOPS path check: this file cannot be requested directly");
            }
            
$xoopsScriptPath $xoopsScriptPath[0]['file'];
        } else {
            
$xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] :  $_SERVER['SCRIPT_FILENAME'];
        }
        if ( 
DIRECTORY_SEPARATOR != '/' ) {
            
// IIS6 may double the  chars
            
$xoopsScriptPath str_replacestrpos$xoopsScriptPath'\\') ? '\\' DIRECTORY_SEPARATOR'/'$xoopsScriptPath);
        }
        if ( 
strcasecmpsubstr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replaceDIRECTORY_SEPARATOR'/'XOOPS_ROOT_PATH)) ) {
            exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }

    
// Database
    // Choose the database to be used
    
define('XOOPS_DB_TYPE''mysql');

    
// Table Prefix
    // This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.
    
define('XOOPS_DB_PREFIX''xoops');

    
// Database Hostname
    // Hostname of the database server. If you are unsure, 'localhost' works in most cases.
    
define('XOOPS_DB_HOST''sql.free.fr');

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

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

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

    
// Use persistent connection? (Yes=1 No=0)
    // Default is 'Yes'. Choose 'Yes' if you are unsure.
    
define('XOOPS_DB_PCONNECT'0);

    
define('XOOPS_GROUP_ADMIN''1');
    
define('XOOPS_GROUP_USERS''2');
    
define('XOOPS_GROUP_ANONYMOUS''3');

    if (!isset(
$xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }
}
?>




Xavier

Posté le : 09/05/2006 19:02
Transférer la contribution vers d'autres applications Transférer


Re: Problème avec free?
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Ma petite solution
Lien:Post

Xavier

Posté le : 09/05/2006 14:21
Transférer la contribution vers d'autres applications Transférer


Re: Erreur de path => chemin physique dans le Mainfile.php
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Salut,

Moi après 4 changements de l'hébergeur FREE, j'ai finalement changé le code du fichier mainfile.php

// XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash

    
define('XOOPS_ROOT_PATH'$_SERVER["DOCUMENT_ROOT"].'/html');


Le site xoops est dans le répertoire /html

Si Free change encore le chemin physique du site, j'utilise la variable $_SERVER["DOCUMENT_ROOT"] qui est le chemin ROOT de mon site fourni par Free.


ça marche...pourvu qu'ça dure!!!

Xavier

Posté le : 09/05/2006 14:15

Edité par svn sur 10/05/2006 19:09:37
Transférer la contribution vers d'autres applications Transférer


Re: question sur admimenu.php
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Je ne sais pas si cela répond à ta question, mais le script suivant donne le chemin sur le disque de l'hébergeur.

<?php

print getcwd() ;

?>


Xavier

Posté le : 11/04/2006 22:13
Transférer la contribution vers d'autres applications Transférer


Re: [mydownload pro] erreur download après upload
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
J'ai le même problème !!! Avec Mydownloads Expert 1.02


Xavier

Posté le : 04/04/2006 22:37
Transférer la contribution vers d'autres applications Transférer


Re: Module "Web Link" modifier ....
Régulier
Inscrit: 27/01/2006 23:21
De Puteaux
Messages: 214
Salut,

Moi j'ai modifé le fichier mylinks_link.htm

j'ai mis les lignes que je ne voulais plus en commantaire.
et après pour voir le résultat il faut faire un mis à jour du module dans Admin=>System=>Modules=>click sur l'icone de MAJ du module Lien Webs

<table class="outer" width='100%' cellspacing='0'>
  <
tr>
    <
td class="head" colspan='2' align='left' height="18"><{$lang_category}> <{$link.category}></td>
  </
tr>
  <
tr>
    <
td class="even" width='60%' align='left' valign="bottom"><a href='visit.php?cid=<{$link.cid}>&lid=<{$link.id}>' target='_blank'><img src='images/link.gif' border='0' alt='<{$lang_visit}>'><b><{$link.title}></b></a></td>
    <
td class="even" align='right' width='40%'><b><{$lang_lastupdate}></b><{$link.updated}></td>
  </
tr>
  <
tr>
    <
td class="odd" colspan='2' align='left'><{$link.adminlink}><b><{$lang_description}></b><br />
<{if 
$link.logourl != ""}>
   <
a href="<{$xoops_url}>/modules/mylinks/visit.php?cid=<{$link.cid}>&lid=<{$link.id}>" target="_blank"><img src="<{$xoops_url}>/modules/mylinks/images/shots/<{$link.logourl}>" width="<{$shotwidth}>" alt=""  align="right" vspace="3" hspace="7"/></a>
<{/if}>
    <
div style="text-align: justify"><{$link.description}></div><br /></td>
  </
tr>
  <
tr>
    <
td class="even" colspan='2' align='center'><!-- <b><{$lang_hits}></b><{$link.hits}> <b>&nbsp;&nbsp;<{$lang_rating}></b><{$link.rating}> (<{$link.votes}>) --> </td>
  </
tr>
  <
tr>
    <
td class="foot" colspan='2' align='center'> <!-- <a href="<{$xoops_url}>/modules/mylinks/ratelink.php?cid=<{$link.cid}>&lid=<{$link.id}>"><{$lang_ratethissite}></a> | <a href="<{$xoops_url}>/modules/mylinks/modlink.php?lid=<{$link.id}>"><{$lang_modify}></a> |<a href="<{$xoops_url}>/modules/mylinks/brokenlink.php?lid=<{$link.id}>"><{$lang_reportbroken}></a> | <a target="_top" href="mailto:?subject=<{$link.mail_subject}>&body=<{$link.mail_body}>"><{$lang_tellafriend}></a> | <a href="<{$xoops_url}>/modules/mylinks/singlelink.php?cid=<{$link.cid}>&lid=<{$link.id}>"><{$lang_comments}> (<{$link.comments}>)</a> --> </td>
  </
tr>
</
table>
<
br />

Posté le : 04/04/2006 13:33
Transférer la contribution vers d'autres applications Transférer



 Haut
« 1 ... 17 18 19 (20) 21 22 »




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

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