Jump to content

KingdomX

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

KingdomX's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That shouldn't be the problem, but i changed and tested it and it didn't work. I attached an image with the problem... the new is what it should be updated with. What i'm trying to do is update the cookie Hash every page so that the old hashes are invalidated for security purposes. Again, works fine on localhost, but it just doesn't updates the value on live website. Any more ideas i could try?
  2. This works fine on localhost, but the same code just won't update my live website cookie. Here's the code: index.php $lg->updateCookies($username, $hashSalt[0]); updateCookies function: $site = '.ciadacapa.com.br'; // --------------------------------------------------- // Updates the cookies // --------------------------------------------------- function updateCookies($username, $hash){ setcookie('ciadacapaUser', '', time()-3600, '/', $this->site); setcookie('ciadacapaHash', '', time()-3600, '/', $this->site); setcookie('ciadacapaUser', $username, time()+3600*24*7, '/', $this->site); setcookie('ciadacapaHash', $hash, time()+3600*24*7, '/', $this->site); return true; } Although the class is receiving the correct values, the cookie just retains the old value it had and never updates. Any ideas on this? Thanks in advance!
  3. Oh, yes yes... i found the bug. Thanks a lot, . The problem was that the included file was like this: <?php $lang = array( 'home' => 'Home' 'contact' => 'Contact' 'aboutus' => 'About Us' 'games' => 'Games' 'movies' => 'Movies' 'tv' => 'TV' 'music' => 'Music' ); ?> The problem was that i forgot to separate the indexes with the comma, that was why one file was working (had commas) and the other wasn't (no commas). It should look like this: <?php $lang = array( 'home' => 'Home', 'contact' => 'Contact', 'aboutus' => 'About Us', 'games' => 'Games', 'movies' => 'Movies', 'tv' => 'TV', 'music' => 'Music' ); ?> Thanks, !
  4. Hmmmm, i'm not sure what u're asking. I have the $lang variable both inside and outside the classes just like the codes above... why? When the script tries to set the second array, it stops executing, but there's no error. I'm trying to set the variables as follows: Setting $lang->lang['website_account']['register'] on the $lang->loadLang('website_account') run... And setting $lang->lang['website_main-menu']['home'] on the $lang->loadLang('website_main-menu') run... Any ideas of what's going on?
×
×
  • 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.