Looking for a script, PHP or Perl, that basically is located at sumting like [url]
If possible I would also like users to be able to register and different directories used for different users with the ability of a small admin control panel.
Anybody no of anything similar? I can’t relly find anything remotely close that i can hack about a bit.
I’m guessing I would need the form, and this as the php for the uploading bit and if you want different folders for different users just track $_SESSION[‘user’] after login and based on that value change $uploaddir.
[code=php]
$uploaddir = ‘<folder where file is deposited>’;
$uploadfile = $uploaddir . $_FILES[‘userfile’][‘name’];
$mode = ‘0640’;
$filename = $_FILES[‘userfile’][‘name’];
if ($filename){
if (move_uploaded_file($_FILES[‘userfile’][‘tmp_name’], $uploadfile)){
chmod ($uploadfile, octdec($mode));
}
}
But making an admin section is a little past me.
Any ideas?!
Cheers all!!