The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove /users or /usersc path
#3
-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
Code:
"users/"
and
Code:
$us_url_root.
from all calls to Redirect::to(). Surprisingly, it looks like this would only be about 9 occurrences in UserSpice4.
  Reply


Messages In This Thread
Remove /users or /usersc path - by Andreas - 10-27-2016, 07:52 AM
Remove /users or /usersc path - by mudmin - 10-27-2016, 01:41 PM
Remove /users or /usersc path - by plb - 10-31-2016, 06:35 AM
Remove /users or /usersc path - by mudmin - 10-31-2016, 01:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)