PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Deep-Blue
New Member
New Member


Joined: Mar 01, 2006
Posts: 5

PostPosted: Wed Mar 01, 2006 3:48 am Reply with quote Back to top

Hi,

I'm using phpnuke 7.6 patched 3.2 with CNB Your Account 4.4.1.
(I've just upgraded from 6.5 with NSN Your Account).

Before, everything worked fine, I've plenty of custom modules (mostly only displaying info). I've now (since upgrade) noticed that when I click on the module name it loads the page without problem, but if there is a link in the module and I click on it then I'm automatically logged out in the next page.

I suppose I need to change my coding but I've no idea how.

Here is the code that I've at the begining of the module :
Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}
$module_name = basename(dirname(__FILE__));
global $module_name, $prefix, $dbi;
include("header.php");
title("MODULE TITLE");
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));


and here is the way I've put an inside link :

Code:
<a href=\"/ILV-US/modules.php?name=Infos&file=park1\">My link here</a>


As soon as I click on "My link", I'm transfered to the right page but also logged out !

Thank you in advance for any help !
View user's profile Send private message
Deep-Blue
New Member
New Member


Joined: Mar 01, 2006
Posts: 5

PostPosted: Wed Mar 01, 2006 4:28 am Reply with quote Back to top

Ok, I've found the answer to my problem.

The error was in the link : before I had to put the directory in the link (in this case "\ILV-US\modules?..." I just removed the directory : "modules?..." and everything is fine now.

This post can be deleted, (or maybe left if it can help some other users ...)
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum