Announcement

Collapse
No announcement yet.

Database password

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Steviepowers
    replied
    Thanks, they are working now, I just gotta wait for them to sign it again

    Leave a comment:


  • Scott MacVicar
    replied
    PHP Code:
    if(getenv(HTTP_CLIENT_IP)) {
      
    $ip getenv(HTTP_CLIENT_IP);
    }
    elseif(
    getenv(HTTP_X_FORWARDED_FOR)) {
      
    $ip getenv(HTTP_X_FORWARDED_FOR);
    }
    else {
      
    $ip getenv(REMOTE_ADDR);

    this checks all of em as only some work on certain servers.

    Leave a comment:


  • The Prohacker
    replied
    Sorry the other var is :: $REMOTE_ADDR

    Leave a comment:


  • Steviepowers
    replied
    i just tried that an it didn't work

    PHP Code:
    $ip $HTTP_IP_ADDR;
    echo 
    "$ip"
    and i tried..

    PHP Code:
    $ip getenv ("HTTP_IP_ADDR");
    echo 
    "$ip"

    Leave a comment:


  • The Prohacker
    replied
    You can use:
    $HTTP_X_FORWARDED_FOR or $HTTP_IP_ADDR to get the IP of a user accessing your page, then just have that added to the database, and later check to see if the current IP is in the ban table.......

    Leave a comment:


  • Steviepowers
    replied
    Yet again,. thanks Max Albert. Your pritty smart at this PHP stuff, do you know how I can get an IP address from someone who signs my guestbook so then I can store it and ban them. Coz I got this annoying git who keeps on putting offensive messages in my guestbook i created and I wanna prevent him from signing it again

    Leave a comment:


  • Mark Hensler
    replied
    You can't decrypt a PASSWORD field.

    If you need something encrypted for the DB, then later decrypted, use the ENCRYPT() and DECRYPT() functions.

    mySQL docs here

    Leave a comment:


  • Steviepowers
    started a topic Database password

    Database password

    When you add something to a database, you have the option of encoding it into password form, how do you reverse this when requesting the password data?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X