Thanks for the tips,
Would you please explain the different between doing it with a block and a module. This is a Registered Member service and not intend for public.
I managed to do it as follows:
|
Code:
|
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
$module_name = basename(dirname(__FILE__));
$pagetitle = "$module_name";
$index = 1;
require_once("mainfile.php");
if(is_user($user)){
$userinfo = getusrinfo($user);
$url = "Location: ftp://" .$userinfo[username]. ":" .$userinfo[user_password2]. "@ftp.osward.net/";
header ($url);
exit;
}
?> |
I can now send user to their folder directly with the above when they click the link at the menu. However there is a draw back with this way which is I can't open this as a new window. User will have to use the back button to return to my site and leaves an open connection to the ftp server.
I also would like to have a popup window for user to click a notify form for their upload when they click the link in the menu.
How am I going to do these, please advise
Thanks in advance for the time
Regards,