Jump to content

Recommended Posts

So I am completely done with my forum after several posts here and a lot of time. But crap! I just realized that the way my avatar system works it will give away the password! I REALLY don't want to redo that system because truth is it is about 40 percent of the entire sites coding. It works by making pictures in a directory named the usersname.thepassword . Whatever filesystem. Now when I echo the path everyone can see the password and username in the source code! And thy can click it to see the picture! Is there a way to hide the paths or the source codeM thanks!

Link to comment
https://forums.phpfreaks.com/topic/258608-hide-source-code/
Share on other sites

I didn't say you can hide the source code. That's not possible. But you can hide the actual location of the image. I'm not going to tell you how because:

 

What you have now is bad. It needs to change because it is bad. Doing anything other than fixing it is also bad. The fact that it may take a lot of work doesn't matter - it needs to change.

Link to comment
https://forums.phpfreaks.com/topic/258608-hide-source-code/#findComment-1325660
Share on other sites

I agree with requinix, bad, bad, bad. At this point, it would be better to take the whole site down and not have anything than to have username and password stored as the image name. You need to re-write the portion of your code that uses this. Even if you could hide the source code (which you can't), it's still very bad programming practice. Chalk it up as a lesson learned, get it fixed, and move on.

Link to comment
https://forums.phpfreaks.com/topic/258608-hide-source-code/#findComment-1325664
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.