|
|
@ -17,6 +17,7 @@ class CPHPRouter extends CPHPBaseClass
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public $routes = array();
|
|
|
|
public $routes = array();
|
|
|
|
public $parameters = array();
|
|
|
|
public $parameters = array();
|
|
|
|
|
|
|
|
public $sVariables = array();
|
|
|
|
public $custom_query = "";
|
|
|
|
public $custom_query = "";
|
|
|
|
public $allow_slash = false;
|
|
|
|
public $allow_slash = false;
|
|
|
|
public $ignore_query = false;
|
|
|
|
public $ignore_query = false;
|
|
|
@ -95,6 +96,15 @@ class CPHPRouter extends CPHPBaseClass
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach($route_destination as $key => $value)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(strlen($key) > 1 && substr($key, 0, 1) == "_")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$key = substr($key, 1);
|
|
|
|
|
|
|
|
$this->sVariables[$key] = $value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($authenticated === true)
|
|
|
|
if($authenticated === true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$destination = $route_destination['target'];
|
|
|
|
$destination = $route_destination['target'];
|
|
|
|