The only thing I need to do, is write some code that fetches user_id of user that is currently logged in. I thought I could make it simple by doing:
- Code: Select all
require_once("Group-Office.php");
global $GO_USERS,$GO_SECURITY;
if (isset($GO_SECURITY->user_id) && $GO_SECURITY->user_id > 0)
{
$gebruiker=$GO_USERS->get_user($GO_SECURITY->user_id);
print $gebruiker['username']; //for debug
}
While this is running nicely as a stand-alone script, it fails during the execution of Group-Office.php as soon as I include it in another script.
Fatal error: require() [function.require]: Failed opening required '' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\go\Group-Office.php on line 103
I assume I am doing something terribly stupid here, but I am too new to PHP to really understand how I am supposed to do this right. All paths are OK, both GO and Phorum are running perfectly. So don't suggest that there is something wrong with paths or privileges.
Thanks for any help.
