sorry..this is for programmers only:

old code for libs/errors.php

$request = $_SERVER['REQUEST_URI'];
$requestt = urldecode($request);

$check_request =     $db->get_row("SELECT * FROM aiki_redirects where
url='$request'");

and now, the question:
 when the "if (preg_match)" is true and then what value will have $redir?

                   $catch_patterns[$check_request->url] =
                        $check_request->redirect;
                    $catch_regex =
                    '#((' . implode('|', array_keys($catch_patterns)) .
'))#i';

                    if ( preg_match($catch_regex,
                                    urldecode($_SERVER['REQUEST_URI']),
                                    $caught) )
                    {
                        $redir = $catch_patterns[$caught[1]];
                        die($redir);
                        Header("Location: $redir", false, 301);
                        exit;
                    }

Response:
Is true ever. $redir is ever aiki_redirects->redirect...
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to