diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-08 15:23:09 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-08 15:23:09 +0000 |
commit | 7fdac301801bc44f6fdb343187413bdfd2d5366c (patch) | |
tree | 5a18faacf0a20a781487a38cad1c305a49fe8951 /h-source/Library/Call.php | |
parent | 7b265a7d6c39266952538ce2a05a799dabc27151 (diff) |
h-source:added the driver entry for 3g-cards
Diffstat (limited to 'h-source/Library/Call.php')
-rwxr-xr-x | h-source/Library/Call.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/h-source/Library/Call.php b/h-source/Library/Call.php index e89b3b0..a2c7e68 100755 --- a/h-source/Library/Call.php +++ b/h-source/Library/Call.php @@ -72,10 +72,10 @@ function callHook() } //rewrite the URL -// if (Route::$rewrite === 'yes') -// { -// $url = rewrite($url); -// } + if (Route::$rewrite === 'yes') + { + $url = rewrite($url); + } // echo $url; @@ -212,18 +212,18 @@ function callHook() } -// //rewrite the URL -// function rewrite($url) -// { -// foreach (Route::$map as $key => $address) -// { -// if (preg_match('/^'.$key.'/',$url)) -// { -// return preg_replace('/^'.$key.'/',$address,$url); -// } -// } -// return ERROR_CONTROLLER.'/'.ERROR_ACTION; -// } +//rewrite the URL +function rewrite($url) +{ + foreach (Route::$map as $key => $address) + { + if (preg_match('/^'.$key.'/',$url)) + { + return preg_replace('/^'.$key.'/',$address,$url); + } + } + return $url; +} function getQueryString() { |