I'm pretty sure, I have the
define('PUN_ROOT', './forum/'); /* Where the root folder is */
require PUN_ROOT.'include/common.php'; /* Get the file "include/common.php" */
on the top of my index.php page too.
I have no idea why it's doing it but the g_id just will not recognise the change when someone is logged in, it just remains at 3.
It worked on index.php, all i did was to copy it and move it to user_panel.php which is what you see above ^ and i included the user_panel to where the old code was.