The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Adding Pages - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Adding Pages (/showthread.php?tid=838) Pages:
1
2
|
Adding Pages - matt - 11-20-2017 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; ?> Adding Pages - Brandin - 11-20-2017 You still have back-ticks in your z_us_root. Please change this as mudmin suggested above. Adding Pages - mudmin - 11-21-2017 If you're not sure what we're talking about. Code: " ” will cause all sorts of issues. Same with Code: ' But that could just be wordpress reformatting your code. Adding Pages - matt - 11-21-2017 I reinstalled and it worked.... Tried to tweak the zu_root file and now I got this error Fatal error: require_once(): Failed opening required '/home/firstti7/public_html/insightfulsearch.co.uk/users/users/helpers/helpers.php' (include_path='.:/usr/local/php56/pear') in /home/firstti7/public_html/insightfulsearch.co.uk/users/init.php on line 23 Adding Pages - Brandin - 11-21-2017 Can you paste your z_us_root on hastebin.com? Adding Pages - matt - 11-21-2017 Fixed that issue... thank you. Hopefully I have added a folder for it to scan... Matt Adding Pages - mudmin - 11-21-2017 Awesome. Glad it's working. |