lib/Opauth/Opauth.php
private function parseUri() {
		$this->env['request'] = substr($this->env['request_uri'], strlen($this->env['path']) - 1);

		if (preg_match_all('/\/([A-Za-z0-9-_]+)/', $this->env['request'], $matches)) {
			foreach ($matches[1] as $match) {
				$this->env['params'][] = $match;
			}
		}

		if (!empty($this->env['params'][0])) {
			$this->env['params']['strategy'] = $this->env['params'][0];
		}
		if (!empty($this->env['params'][1])) {
			$this->env['params']['action'] = $this->env['params'][1];
		}
	}
private function parseUri() {
		$this->env['request'] = substr($this->env['request_uri'], strlen($this->env['path']) - 1);

		if (preg_match_all('/\/([A-Za-z0-9-_]+)/', $this->env['request'], $matches)) {
			foreach ($matches[1] as $match) {
				$this->env['params'][] = $match;
			}
		}

		if (!empty($this->env['params'][0])) {
			$this->env['params']['strategy'] = $this->env['params'][0];
		}
		if (!empty($this->env['params'][1])) {
			$this->env['params']['action'] = $this->env['params'][1];
		}
	}
private function parseUri ( ) { $ this -> env [ 'request' ] = substr ( $ this -> env [ 'request_uri' ] , strlen ( $ this -> env [ 'path' ] ) - 1 ) ; if ( preg_match_all ( '/\/([A-Za-z0-9-_]+)/' , $ this -> env [ 'request' ] , $ matches ) ) { foreach ( $ matches [ 1 ] as $ match ) { $ this -> env [ 'params' ] [ ] = $ match ; } } if ( ! empty ( $ this -> env [ 'params' ] [ 0 ] ) ) { $ this -> env [ 'params' ] [ 'strategy' ] = $ this -> env [ 'params' ] [ 0 ] ; } if ( ! empty ( $ this -> env [ 'params' ] [ 1 ] ) ) { $ this -> env [ 'params' ] [ 'action' ] = $ this -> env [ 'params' ] [ 1 ] ; } }
Parses Request URI
Parses Request URI