View Full Version : Techtuts Uploader and Usersystem.
Recursion
27-07-2006, 08:46 AM
I am trying to make it so that you have to enter a password to be allowed access to the file uploader. I dont want random people uploading random stuff. Just family members. I am trying to integrate the usersystem with the uploader but when im logged out and on another PC i can still access the uploader. I am not very good at PHP but there we go. I have integrated Uploadconnect.php and config.php and changed the files to all go to config.php. When i goto the uploader it says You are not logged in. but it doesnt hide the form. Any Help???
I may have repeated my self a few times there :S
+REP will be given.
Thanks,
:.:Numark:.:
:Blob
27-07-2006, 08:54 AM
I made a user system where you can only upload 2 file types if not logged in, and the full m8 wehen you are
If you set the user to $admin
It would be
if ($user == $admin); Then
ect
Recursion
27-07-2006, 08:56 AM
i dont understand. I am going to create the accounts through the register.php page and then delete it. Then if you goto the upload.php it will say you are not logged in. But i have not integrated it properley so it says that but it doesnt hide the uploader form. Isnt it a case of making it hide the uploader form?
:Blob
27-07-2006, 08:57 AM
If your user system has ranks, then you only set it so a certain rank can view the page
Recursion
27-07-2006, 08:58 AM
it doesnt have ranks.
:Blob
27-07-2006, 08:59 AM
Well does it has a admin panel?
Recursion
27-07-2006, 09:39 AM
nup i am just using the basic core part as a login bit.
lMattz
27-07-2006, 09:43 AM
You should get a admin panel, then do what Blob says, i have done this before and its worked fine. Actually i dont think you need a admin panel to be able to do the user ranks :S. Still if you were to get user ranks it would be much easier
:Blob
27-07-2006, 09:48 AM
I was asking about admin panel, cos if it did have there would be a rank for admins so you can set it up so only admins can access the page
Edit: Or use CPANEL and password protect the directory instead of a user system
Josh-H
27-07-2006, 10:25 AM
Yes blob that would be easiest way to do it :D
Recursion
27-07-2006, 10:39 AM
I am on a host that doesnt use cpanel and i dont want to use HTAccess :P i will install the Admin Panel as soon as ive sorted out Nick14 s VPS :P
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.