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
init.php
#4

<pre>
Code:
<?php
session_start();

$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;
    }
}

require_once $abs_us_root.$us_url_root.'users/helpers/helpers.php';

// Set config
$GLOBALS['config'] = array(
    'mysql'      => array(
</pre>
  Reply


Messages In This Thread
init.php - by sqluser - 11-28-2016, 12:23 PM
init.php - by dan - 11-28-2016, 01:40 PM
init.php - by sqluser - 11-28-2016, 02:31 PM
init.php - by sqluser - 11-28-2016, 02:32 PM
init.php - by mudmin - 11-28-2016, 02:33 PM
init.php - by sqluser - 11-29-2016, 07:34 AM
init.php - by mudmin - 11-29-2016, 01:54 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)