I'm still struggling with this. I'm probably missing a key piece of knowledge but I think I'll try to explain the issue again and see if anyone has any more tips.
The Perl script I wrote for when I was using YaBBGold does quite a bit:
1. checks to see if the person running the script is logged if; if so reads the cookie to see exactly what the username is; and uses the username as the name of their unique "picture directory"
2. writes out all of the HTML/javascript for a complicated form which allows the user to do the following to the pictures in their "picture directory"
a. click on the name of any picture and see a preview of it and see the URL (which they can copy and paste it into their posting)
b. upload more graphics to their "picture directory"
c. delete any graphics in their "picture directory"
So... I really don't want to have to rewrite this whole thing in PHP since it took me a while to do. It
works in Perl and I think it's pretty secure and I don't have much experience in PHP.
What I really need is just to know is how, in Perl, to figure whether the current user is logged in an if so what their username is.
I took a look at YaBBSE's LoadCookie function and it looks like it reads the cookie data, calls "stripslashes" on it, and then calls "unserialize" on it. I searched around for Perl equivalents of these two functions and found them and tried to recreate this code in Perl but it doesn't seem to work for me.
I don't know what to try next?
