big thankx xenon worked great!
@brad.loo
is this correct?
Code:
if ($bbuserinfo['userid'])
{
$smsvorhanden = $DB_site->query_first("
SELECT id_vom_empfaenger
FROM " . TABLE_PREFIX . "sms
WHERE id_vom_empfaenger = $bbuserinfo[userid]
");
}
else
{
$smsvorhanden = array();
}
if ($smsvorhanden[id_vom_empfaenger] == '')
{ $smshtml = '';}
else
{
$smshtml = "
<script>
function popsms(){
win = window.open('sms.php?do=sms_lesen','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=550,height=500,resizeable=no,status=no');
}
</script>
<body onLoad='popsms()'></body>";
}
// ##### SMS SYSTEM #####
?>