Jump to content

Mko

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by Mko

  1. Wohoo, it works! Thanks a lot everyone, you've all been a tremendous help!
  2. Well, the salts are randomly generated, and on occasion, may contain a '. Then, the salts are combined with the hash that's generated elsewhere to produce the password. This password is referenced with the user input to determine if it's a match.
  3. Oh, that's problematic. Is there any way NOT to have it inserted into the Database (the /)?
  4. As a result, would the \ be inserted into the salt value in the database as well?
  5. I have the following Query: $query = "INSERT INTO characters SET psalt = '" .$salt. "'"; However, when the salt is generated, it may contain a ', thus stopping the Query. I need to know how I could make it so the Query would be unaffected by the ' in the salt value. Thanks!
  6. Hello, I have some code which gives me the 'Warning: Invalid argument supplied for foreach()' error. $groups = ""; foreach ($vbulletin->GPC['user']['membergroupids'] AS $key => $val){ $groups .= "{$val},"; } I get the error only when I don't select an additional membergroup for a specific user I'm editing in the Admin CP. When I select an additional membergroup for a user, though, it works without displaying an error. Basically, the problem is how to make this code so if an additional membergroup is NOT selected when updating a user, I won't see the 'Warning: Invalid argument supplied for foreach()' error. If anyone knows how to fix this, I'd really appreciate it. Thanks!
×
×
  • 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.