I finaly found out what was wrong. Since this was a kind of tricky i will post this here.
What was wrong was my php_admin_value which was set (restricted) to my html subdirectory
The result was that the skript (forumpath.php) returnded my full forum path but the cmps_index.php could not
access the path because it was not allowed to do so.
What was responsible
There is a php_admin_value setting which will configured in the httpd.conf
php_admin_value open_basedir
The value sets the directories which could be read by php.
If the value is set to a subdirectory of your webspace php is not able to process the complete forumpath.
In this case the secoud if condition
"if (!is_dir($forumpath))" in the cmps_index.php fails.
Code:
Content visible to registered users only.
This value can not be set in a htacces file it must be configured in the httpd.conf or in one of its includes files or in the php.ini of your server
if you want that the configured value works for all subdirectories you must set the value to the parent directory without a trailng slash
So if you have problems with your forum path configuration you shoud chec phpinfo.php if openbasedir is set
Example for configuration in httpd.conf
Code:
Content visible to registered users only.