Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
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

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







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

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 ...)
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©