/** * change the root to a fake toor * @param string fakeRoot * @return bool */ public static function chroot($fakeRoot) { if (!$fakeRoot == '') { if ($fakeRoot[0] !== '/') { $fakeRoot = '/' . $fakeRoot; } } self::$fakeRoot = $fakeRoot; }
/** * change the root to a fake toor * @param string fakeRoot * @return bool */ public static function chroot($fakeRoot) { if (!$fakeRoot == '') { if ($fakeRoot[0] !== '/') { $fakeRoot = '/' . $fakeRoot; } } self::$fakeRoot = $fakeRoot; }