Newsgroup: it.comp.www.php
Titolo: php-nuke problema con tutti i moduli

Ho installato phpnuke 6, ho scompattato tutti i file nella root di apache,
configurato config.php, i permessi sono giusti, accedo al sito
(
http://www.miosito.com/html/admin.php
) creo l'account di aministrazione e
tutto ok. Poi quando provo ad accedere a un qualsiasi modulo da utente
normale (usando 
http://www.miosito.com/html/index.php
) mi dice "Sorry, such
file doesn't exist..."
Qualche idea? magari qualcosa di sbagliato in php.ini?


-> Magari non hai caricato i moduli ... controlla la cartella modules
-> Magari hai problemi di case sensitive sui percorsi ...
Prima di dare la colpa al php.ini (che dà altri tipi problemi) controlla 
il file distrattone.ini :-))))))
Ciao!
CLa
-- 
www.claudioerba.com
 - Consulenza web per l'azienda
www.spaghettibrain.com
 - PHPNUke Italian Mirror (Da oggi anche Hosting!)
www.spaghettilearning.com
 - Piattaforma open Source per l'E-Learning
My ICQ: 14187053
--

 wrote in message
news:K%jK9.10195$Ou4.3...@twister2.libero.it...


 wrote in message
news:3df9cbc1$0$23782$afc3...@news.easynet.it...


 
Ciao, ecco cosa dicono sul sito di PHP.net:
[quote]
Another solution for the problem with relative paths with file_exists 
and Apache 2.0.43 + PHP 4.2.3 is :
file_exists($rel_path);              //Original code
file_exists(realpath($rel_path));   //Modified one
It seems that realpath(..) works fine.
[/quote]
Prova a sostituire il file modules.php con questo, ho semplicemente 
applicato quanto detto sopra, non ho fatto controlli, speriamo non ci 
siano parse error:
Ciao
Cla
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* 
http://phpnuke.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.       */
/************************************************************************/
require_once("mainfile.php");
$module = 1;
if (isset($name)) {
     $result = sql_query("select active, view from ".$prefix."_modules 
where title='$name'", $dbi);
     list($mod_active, $view) = sql_fetch_row($result, $dbi);
     if (($mod_active == 1) OR ($mod_active == 0 AND is_admin($admin))) {
	if (!isset($mop)) { $mop="modload"; }
	if (!isset($file)) { $file="index"; }
	if (ereg("\.\.",$name) || ereg("\.\.",$file)) {
	    echo "You are so cool...";
	} else {
	    $ThemeSel = get_theme();
	    if ("themes/$ThemeSel/modules/$name/$file.php")) {
		$modpath = "themes/$ThemeSel/";
	    }
	    if ($view == 0) {
		$modpath .= "modules/$name/$file.php";
     		if (file_exists(realpath($modpath))) {
		    include($modpath);
     		} else {
		    die ("Sorry, such file doesn't exist...");
		}
	    }
	    if ($view == 1 AND is_user($user) || is_admin($admin)) {
		$modpath .= "modules/$name/$file.php";
     		if (file_exists(realpath($modpath))) {
		    include($modpath);
     		} else {
		    die ("Sorry, such file doesn't exist...");
		}
	    } elseif ($view == 1 AND !is_user($user) || !is_admin($admin)) {
		$pagetitle = "- "._ACCESSDENIED."";
		include("header.php");
		title("$sitename: "._ACCESSDENIED."");
		OpenTable();
		echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
		    .""._MODULEUSERS.""
		    .""._GOBACK."";
		CloseTable();
		include("footer.php");
		die();
	    }
	    if ($view == 2 AND is_admin($admin)) {
		$modpath .= "modules/$name/$file.php";
     		if (file_exists(realpath($modpath))) {
		    include($modpath);
     		} else {
		    die ("Sorry, such file doesn't exist...");
		}	
	    } elseif ($view == 2 AND !is_admin($admin)) {
		$pagetitle = "- "._ACCESSDENIED."";
		include("header.php");
		title("$sitename: "._ACCESSDENIED."");
		OpenTable();
		echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
		    .""._MODULESADMINS.""
		    .""._GOBACK."";
		CloseTable();
		include("footer.php");
		die();
	    }
	}
     } else {
	include("header.php");
	OpenTable();
	echo "<center>"._MODULENOTACTIVE."<br><br>"
	    .""._GOBACK."</center>";
	CloseTable();
	include("footer.php");
     }
} else {
     die ("Sorry, you can't access this file directly...");
}
?>


 wrote in message
news:U4lK9.10137$TC5.3...@twister1.libero.it...


 Grazie per la disponibilita' ora funziona tutto
Mi confermi che quello che ho postato funziona?
Se č cosě mando al Burzi il tutto ...
Cla


 wrote in message
news:bAlK9.10268$TC5.3...@twister1.libero.it...
