1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | | PHP-Quelltext $group=$DB->fetch_array($DB->query("SELECT usergroup_name FROM ".$db_tab['usergroup']." WHERE usergroup_id='".$userinfo['user_groupid']."' LIMIT 1")); if ($res1)
{
$row1 = mysql_fetch_row($res1);
$usrid = $row1[0];
$group=$DB->fetch_array($DB->query("SELECT usergroup_name FROM ".$db_tab['usergroup']." WHERE usergroup_id='".$userinfo['user_groupid']."' LIMIT 1"));
if (res2)
{
while ($row2 = mysql_fetch_array($res2))
{
$usrgroup = $row2['group_id'];
}
switch ($usrgroup)
{
case '2': // Gruppen ID
$usercolor = imageColorAllocate($im, 250, 250, 0); // RGB Werte (rot, grün, blau)
$userpixel = 4; // Punktbreite
break; |