/    Sign up×
Community /Pin to ProfileBookmark

Looking for a script, PHP or Perl, that basically is located at sumting like [url]http://skl.mydomain.com,[/url] I login and can upload a file to the directory, or download one of the ones already exsisting.

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));
}
}
[/code]

But making an admin section is a little past me.

Any ideas?!

Cheers all!!

to post a comment
PHP

9 Comments(s)

Copy linkTweet thisAlerts:
@brendandonhueFeb 14.2004 — If you want an admin panel and registration you may as well get a control panel like Webmin (thats one of the only free ones).
Copy linkTweet thisAlerts:
@GavinPearceauthorFeb 16.2004 — I wasn't thinking quite as advanced as that. After something that would just allow me to add users, remove users and limit users upload specifications. Users profiles, etc...

Any ideas?
Copy linkTweet thisAlerts:
@brendandonhueFeb 16.2004 — You could modify Invision File Manager to do this. Or write your own simple file manager. It wouldn't be [I]that[/I] hard.
Copy linkTweet thisAlerts:
@GavinPearceauthorFeb 16.2004 — No not [I]that[/I] hard if u new wot ur doing. :rolleyes: :p

I'll hav a go at modifying that file manager.

Cheers!!
Copy linkTweet thisAlerts:
@GavinPearceauthorFeb 16.2004 — What would you suggest as teh best way of doing it? Really I need one copy of the file manager, and the users to have access to it, but to be able to only edit their directories and below, but just have the one copy of the script, not multple copies for each user created. I would also need a script to edit users, and sign them up.

Im in way to deep here, without a clue what i'm doing!
Copy linkTweet thisAlerts:
@brendandonhueFeb 16.2004 — Then hire a programmer that knows what they're doing.

AFAIK Invision File Manager does support multiple users under one admin.
Copy linkTweet thisAlerts:
@GavinPearceauthorFeb 17.2004 — Lol, even if I did have the money for that, I'd spend it on other things first. ?
Copy linkTweet thisAlerts:
@brendandonhueFeb 17.2004 — You can get HELP here, but nobody is going to do your project for you. Invision File Manager already supports multiple users/admin. The next version will have a registration system. So you might just wait for that, I think its exactly what you need.
Copy linkTweet thisAlerts:
@GavinPearceauthorFeb 18.2004 — I no i no. Lol.
×

Success!

Help @GavinPearce spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...