Welcome Guest, Not a member yet? Register   Sign In
specific controllers allowing query strings
#15

[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


Messages In This Thread
specific controllers allowing query strings - by El Forum - 03-09-2009, 11:11 AM
specific controllers allowing query strings - by El Forum - 03-09-2009, 01:55 PM
specific controllers allowing query strings - by El Forum - 03-10-2009, 04:38 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 05:00 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 05:10 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 05:18 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 05:38 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 05:45 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 05:45 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 06:45 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 06:54 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 07:34 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 07:39 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 07:43 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 10:42 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 10:56 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 11:32 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 11:41 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 11:48 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 11:49 AM
specific controllers allowing query strings - by El Forum - 03-10-2009, 12:12 PM
specific controllers allowing query strings - by El Forum - 03-10-2009, 12:29 PM
specific controllers allowing query strings - by El Forum - 03-10-2009, 12:29 PM
specific controllers allowing query strings - by El Forum - 03-10-2009, 12:33 PM
specific controllers allowing query strings - by El Forum - 03-10-2009, 12:34 PM
specific controllers allowing query strings - by El Forum - 03-10-2009, 12:37 PM
specific controllers allowing query strings - by El Forum - 03-10-2009, 12:52 PM
specific controllers allowing query strings - by El Forum - 03-11-2009, 01:45 AM
specific controllers allowing query strings - by El Forum - 03-11-2009, 03:59 AM
specific controllers allowing query strings - by El Forum - 03-12-2009, 03:00 AM
specific controllers allowing query strings - by El Forum - 03-12-2009, 03:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB