Changeset 1251 for trunk/contrib/php-xinha.php
- Timestamp:
- 05/09/10 20:07:47 (2 years ago)
- Files:
-
- 1 modified
-
trunk/contrib/php-xinha.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/contrib/php-xinha.php
r1244 r1251 144 144 */ 145 145 146 function xinha_read_passed_data( )146 function xinha_read_passed_data($KeyLocation = 'Xinha:BackendKey') 147 147 { 148 148 if(isset($_REQUEST['backend_data']) && is_array($_REQUEST['backend_data'])) … … 153 153 if(!isset($_SESSION[$bk['key_location']])) return NULL; 154 154 155 if($KeyLocation !== $bk['key_location']) 156 { 157 trigger_error('Programming Error - please contact the website administrator/programmer to alert them to this problem. A non-default backend key location is being used to pass backend data to Xinha, but the same key location is not being used to receive data. The special backend configuration has been ignored. To resolve this, find where you are using xinha_pass_to_php_backend and remove the non default key, or find the locations where xinha_read_passed_data is used (in Xinha) and add a parameter with the non default key location, or edit contrib/php-xinha.php and change the default key location in both these functions. See: http://trac.xinha.org/ticket/1518', E_USER_ERROR); 158 return NULL; 159 } 160 155 161 if($bk['hash'] === 156 162 function_exists('sha1') ?
