/** * 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; }
/** * 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; }