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
New pages not added
#3
<?php
$path=['','users/','usersc/','SRE/'];
$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
New pages not added - by sayed_hashim808 - 02-26-2019, 11:54 AM
RE: New pages not added - by mudmin - 02-26-2019, 11:55 AM
RE: New pages not added - by sayed_hashim808 - 02-26-2019, 11:58 AM
RE: New pages not added - by mudmin - 02-26-2019, 11:58 AM
RE: New pages not added - by sayed_hashim808 - 02-26-2019, 12:02 PM
RE: New pages not added - by mudmin - 02-26-2019, 12:03 PM
RE: New pages not added - by sayed_hashim808 - 02-26-2019, 12:06 PM
RE: New pages not added - by mudmin - 02-26-2019, 12:05 PM
RE: New pages not added - by mudmin - 02-26-2019, 12:56 PM
RE: New pages not added - by sayed_hashim808 - 02-27-2019, 05:38 AM
RE: New pages not added - by astropos - 02-27-2019, 03:07 PM
RE: New pages not added - by sayed_hashim808 - 02-28-2019, 04:50 AM
RE: New pages not added - by astropos - 02-28-2019, 10:50 AM
RE: New pages not added - by mudmin - 02-28-2019, 12:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)