hmmm strange, maybe it was modified for an other hack
in your original file you have:
<br />global $config,${$config['cookieprefix']."w3t_language"},$thispath,$tempstyle,$ubbt_lang,$debug,$dbh;
add ,$user at the end which should give you something like
<br />global $config,${$config['cookieprefix']."w3t_language"},$thispath,$tempstyle,$ubbt_lang,$debug,$dbh,$user;
then search for
<br /> $graemlinlist .= "<br />"; <br /> } <br />
and add underneath
<br /> if( (preg_match("/-1-/",$user['U_Groups'])) or (preg_match("/-2-/",$user['U_Groups'])) or (preg_match("/-3-/",$user['U_Groups']))) { <br /> $showpanelgenerator="<p align=\"center\"><a href=\"javascript: x()\" onclick=\"window.open('pano/popup.php','panelpopup','Width=510,height=320');\">Panel Generator</a></p>"; <br /> }else{ <br /> $showpanelgenerator=""; <br /> } <br />
there let me know how it goes