[eluser]Yorkshire Pudding[/eluser]
thanks xwero, trying to use your solution but I'm still struggling to implement it. Read the docs on hooks and still can't get it.
have set everything the following
Code:
// constants.php
define('GET_HACK',$_SERVER['QUERY_STRING']);
// config.php
$config['enable_hooks'] = TRUE;
// hooks.php
$hook['pre_controller'] = array(
'function' => 'const_to_get',
'filename' => 'get_hack.php',
'filepath' => 'hooks',
);
// get_hack.php
function const_to_get()
{
parse_str(GET_HACK,$_GET);
}
so the payment gateway posts back to home/order_success
Code:
home/order_success?crypt=DycAHF1HGiA1WRU9VFFGAGBkOChhYTYREgsKYV4mR3NhdFlVCwR2HVt1RG8vSUdzHQNDPnd2dmAwDjVpKFwySH8RGhlGQD1lOX1XCx0FBUAqBgsMU1wiZUYGQWhJXlFhMSdOOUdBJjcEXwI5HQ0eW3k1DwsSZjs7FVMCKw8RHRt/FhY5R0EmFhkLRWlQU0cNb2QvLmF2GGpLcjAMKEQ/eg1iLTB3dgUdMhAwPA0WFEYqEAsLR1k6ZTh5JQg7Kyd8HQcqXmJaPSw1WRU9OwECQDU2UzZ9YR4KOWA4HCwgV3YPcDwdQUAiLEt4Pgw5Nj5jEAYrPBRyJz4Cdxg8VFRXBh0RCxtHRysLAlcFLRpZP3oNASY9cX4LHFB3HDccCgUIaHVASAI=
Obviously the first thing that I get is a 404. How does the solution that you provided strip the query string out so i don't get the 404?
Thanks