The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Adding Pages
#11
No data modifications

<?php //DO NOT DELETE THIS FILE.
$path=['','users/','usersc/'];


//Only add or remove values in the $path variable separated by commas above

$abs_us_root=$_SERVER['DOCUMENT_ROOT'];

$self_path=explode("/", $_SERVER['PHP_SELF']);
$self_path_length=count($self_path);
$file_found=FALSE;

for($i = 1; $i < $self_path_length; $i++){
array_splice($self_path, $self_path_length-$i, $i);
$us_url_root=implode("/",$self_path)."/";

if (file_exists($abs_us_root.$us_url_root.'z_us_root.php')){
$file_found=TRUE;
break;
}else{
$file_found=FALSE;
}
}
//redirect back to Userspice URL root (usually /)
header('Location: '.$us_url_root);
exit;

?>
  Reply


Messages In This Thread
Adding Pages - by matt - 11-19-2017, 04:53 PM
Adding Pages - by mudmin - 11-19-2017, 10:22 PM
Adding Pages - by matt - 11-20-2017, 10:00 AM
Adding Pages - by Brandin - 11-20-2017, 11:02 AM
Adding Pages - by matt - 11-20-2017, 11:05 AM
Adding Pages - by Brandin - 11-20-2017, 11:13 AM
Adding Pages - by matt - 11-20-2017, 11:56 AM
Adding Pages - by Brandin - 11-20-2017, 12:14 PM
Adding Pages - by matt - 11-20-2017, 05:07 PM
Adding Pages - by Brandin - 11-20-2017, 06:03 PM
Adding Pages - by matt - 11-20-2017, 06:42 PM
Adding Pages - by Brandin - 11-20-2017, 07:49 PM
Adding Pages - by mudmin - 11-21-2017, 02:53 PM
Adding Pages - by matt - 11-21-2017, 02:55 PM
Adding Pages - by Brandin - 11-21-2017, 03:06 PM
Adding Pages - by matt - 11-21-2017, 03:11 PM
Adding Pages - by mudmin - 11-21-2017, 03:26 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)