PHP Classes

Not parsing move data

Recommend this page to a friend!

      PHP Chess  >  All threads  >  Not parsing move data  >  (Un) Subscribe thread alerts  
Subject:Not parsing move data
Summary:Email links do not seem to work
Messages:5
Author:Jim Oblak
Date:2005-03-02 22:20:35
Update:2005-10-28 01:58:57
 

  1. Not parsing move data   Reply   Report abuse  
Picture of Jim Oblak Jim Oblak - 2005-03-02 22:20:39
When I click on an email link, the board loads in its default setting. No pieces seem to have been moved.

  2. Re: Not parsing move data   Reply   Report abuse  
Picture of DarkCoder DarkCoder - 2005-03-10 13:28:33 - In reply to message 1 from Jim Oblak
same here.

When i turned error_reporting to E_ALL a notice comes:
Notice: unserialize() [function.unserialize]: Error at offset 5 of 127 bytes in /path/to/class.phpchess.php on line 697

  3. Re: Not parsing move data   Reply   Report abuse  
Picture of DarkCoder DarkCoder - 2005-03-10 14:27:55 - In reply to message 2 from DarkCoder
Just turn off magicquotes or stripslashes in $_GET['game_data']. Now all works fine :)

  4. Re: Not parsing move data   Reply   Report abuse  
Picture of Jim Oblak Jim Oblak - 2005-03-10 15:10:26 - In reply to message 3 from DarkCoder
I tweaked my file around line 351 and all works well now. Thanks for the tip.

if (isset($_GET['game_data']))
{
$_GET['game_data']=stripslashes($_GET['game_data']);
$this->unpackData($_GET['game_data']);
}

  5. Re: information   Reply   Report abuse  
Picture of Barry Barry - 2005-10-28 01:58:57 - In reply to message 4 from Jim Oblak
I was wondering if anyone was working on a checkers class (turn based checkers game) also is anyone working on teams or a tournament class.