public function get_routes($include_admin = false)
	{
		//if ($include_admin === FALSE && $GLOBALS['tf']->ima === 'admin')
		//$include_admin = TRUE;
		$routes = array_merge($this->public_routes, $this->routes);
		if ($include_admin === true) {
			$routes = array_merge($this->admin_routes, $routes);
		}
		uksort($routes, function ($a, $b) {
			if (strlen($a) == strlen($b)) {
				if ($a == $b) {
					return 0;
				}
				return ($a > $b) ? -1 : 1;
			} else {
				return (strlen($a) > strlen($b)) ? -1 : 1;
			}
		});
		//myadmin_log('route', 'debug', json_encode($routes), __LINE__, __FILE__);
		return $routes;
	}