At jfoobar labs you will find "stuff" that is either cool, useful or for learning purposes. We hope to create a pretty nice selection over time. Remember, we need it to be fun.
This is a Phorum module extension (so not a Joomla! module!) that enables bi-directional user management and also bi-directional single sign on between your Joomla! and your Phorum installation.
Along with the Joomla! plugin it provides the following logic:
To install the phorum module, just unpack the zipfile, configure and enable. The only fields you need are the absolute path to the Joomla! installation, and a default group assignment for new users within Joomla!
To have it all working, you also need to upgrade the Joomla plugin to version 1.1. If you use the 1.0 version, you will suffer a login/user update recursion problem.
Please read the detailed instructions before you start using this Phorum module.
To use this Phorum module you first need to install it. Just unzip the package, install it in the Phorum module directory, configure it and as last step enable the module. During configuration you only need to configure two settings:
Copyright © 2008 jfoobar - All Rights Reserved - Joomla! is a registered trademark of Open Source Matters, Inc - Disclaimer
Re: Recursion problem with rglob and circular symlinks
# 1 - Posted by: Sean Phelan on 2009-04-07 03:32:48
I rewrote the rglob function in settings.php to handle circular symlinks.
In short, I keep a list of processed realpath directories, and don't process the same one twice.
This cuts off circular symlinks.
----------
function rglob($pattern='*', $flags = 0, $path='', $asaPathsProcessed = array())
{
echo "PATH=$path"; #dbg
$paths=glob($path.'*', GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT);
$files=glob($path.$pattern, $flags);
foreach ($paths as $path)
{
$realpath = realpath($path);
echo "REALPATH=$realpath";
if (!$asaPathsProcessed[$realpath] )
{
$asaPathsProcessed[$realpath] = 1;
$files=array_merge($files,rglob($pattern, $flags, $path, $asaPathsProcessed));
}
}
return $files;
}