includes/captcha.php
changeset 1025 30956e5092ff
parent 801 eb8b23f11744
child 1081 745200a9cc2a
equal deleted inserted replaced
1024:722f4beeceb6 1025:30956e5092ff
    81     $this->session_data = ( is_array($x = @unserialize($row['session_data'])) ) ? $x : array();
    81     $this->session_data = ( is_array($x = @unserialize($row['session_data'])) ) ? $x : array();
    82     $this->code = $row['code'];
    82     $this->code = $row['code'];
    83     $this->id = $row['code_id'];
    83     $this->id = $row['code_id'];
    84     
    84     
    85     // run any custom init functions
    85     // run any custom init functions
    86     if ( function_exists(array($this, 'construct_hook')) )
    86     if ( method_exists($this, 'construct_hook') )
    87       $this->construct_hook();
    87       $this->construct_hook();
    88   }
    88   }
    89   
    89   
    90   /**
    90   /**
    91    * Retrieves a key from the session data set
    91    * Retrieves a key from the session data set