View Single Post
Old
  (#2 (permalink))
Mighty_Y
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-19-2003, 12:51 PM

You can use this block wich will do the same as your module
Code:
<?php
if (eregi("block-Member_Upload.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
global $user;
 if(is_user($user)){
     $userinfo = getusrinfo($user);  

$content .= "Welcome $userinfo[username] to Member Upload

";
$content .= "<a href=\"ftp://$userinfo[username]:$userinfo[user_password]@ftp.osward.net/\" target=\"_blank\">Access your personal folder directly here</a>";
}else{
     $content .= "Please login";
}

?>


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Reply With Quote