UBB.Dev
Posted By: kingman can anyone help me for login stuff??? - 10/25/2000 5:05 AM
I am currently studying Perl so this is not that easy for me.. I did a couple of things but all didn't work..

but i think this isn't that hard problem... so can anyone do this for me???

here is what i want:
I made a upload script that will upload a file via www.
but i want to permit only the person who is registerd ubb user.. and already logged in user.
so I was plugging-in the "get cookie" and "log in " stuff using ubb's as same as privateview.cgi in PM does...
(PM does like, if user does not login, it will transfer to login page, after log in, transfer to privateview page, or if the user is already logged in, transfer to private page..)

mine also should do as same as PM does
if the user logged in already,
then the page will transfer to upload page,
otherwise, transfer to log in page,
after log in, transfer to upload page.

can anyone does this for me???

if you need to modify, you can do whatever you want as long as you keep the format of the output that is data file and destination of the upload file)..

pleas help... thank you.

here is my code


upup.cgi
Code
code:


commonsub.cgi
Code
code:


variables
Code
code:

This message has been edited by kingman on October 24, 2000 at 10:17 PM
Posted By: Em8 Re: can anyone help me for login stuff??? - 10/27/2000 11:43 PM
variables
Code
code:
Correct meif I'm wrong but you don't need the #!/usr/bin/per in a varibles file and also I think it should end in a '1;'



This message has been edited by Em8 on October 27, 2000 at 04:45 PM
© UBB.Developers