예제 #1
0
파일: router.php 프로젝트: Kheros/MMOver
 /**
  * Gets the requested path from the user request.
  * How the route path is given by the user depends on the routing method chosen in options.
  *
  * @return string							- The full user requested route
  */
 public static function getEntryPath()
 {
     if (self::$entry_path) {
         return self::$entry_path;
     }
     // Get the entry path from the request
     self::$entry_path = $_REQUEST[vB::$vbulletin->options['route_requestvar']];
     // Prepend the router segment
     self::$entry_path = trim(VB_ROUTER_SEGMENT . '/' . self::$entry_path, '/');
     return self::$entry_path;
 }
예제 #2
0
파일: router.php 프로젝트: hungnv0789/vhtm
	/**
	 * Gets the requested path from the user request.
	 * How the route path is given by the user depends on the routing method chosen in options.
	 *
	 * @return string							- The full user requested route
	 */
	public static function getEntryPath()
	{
		if (self::$entry_path)
		{
			return self::$entry_path;
		}

		// Get the entry path from the request
		self::$entry_path = $_REQUEST[vB::$vbulletin->options['route_requestvar']];
		
		//we get some trailing &'s. Let's get rid of them
		if (substr(self::$entry_path, - 1) == '&')
		{
			self::$entry_path = substr(self::$entry_path, 0, strlen(self::$entry_path) - 1);
		}

		if (substr(self::$entry_path, -5) == '&')
		{
			self::$entry_path = substr(self::$entry_path, 0, strlen(self::$entry_path) - 5);
		}

		// Prepend the router segment
		self::$entry_path = trim(VB_ROUTER_SEGMENT . '/' . self::$entry_path, '/');

		return self::$entry_path;
	}