10-31-2016, 06:35 AM
-off-topic-
This use-case would provide an argument for making all redirect::to() calls relative with just the script name. Then the Redirect::to() has the (configurable) list of directories that it searches, one-by-one, until it finds an existing one. Thus if you want to change the location of a script, you just move/copy it into the desired location or else create a stub (with only the require_once("original/path/to/script.php") call) in the desired location. The former (moving the script) is slightly easier but the latter (stubs) solves the problem of future upgrades. Both are contingent on removing and from all calls to Redirect::to(). Surprisingly, it looks like this would only be about 9 occurrences in UserSpice4.
This use-case would provide an argument for making all redirect::to() calls relative with just the script name. Then the Redirect::to() has the (configurable) list of directories that it searches, one-by-one, until it finds an existing one. Thus if you want to change the location of a script, you just move/copy it into the desired location or else create a stub (with only the require_once("original/path/to/script.php") call) in the desired location. The former (moving the script) is slightly easier but the latter (stubs) solves the problem of future upgrades. Both are contingent on removing
Code:
"users/"
Code:
$us_url_root.