Hallo !
will auf meine homepage die Links per php anzeigen lassen ( HOME, FORUM, usw).. ok mein script sieht folgender aus
PHP-Code:
<?php
header( "Content-type: image/png");
if (!isset($s)) $s=11;
if (!isset($staticwidth))
{
$dx =(imagefontwidth($font) * strlen($text));
} else {
$dx=$staticwidth;
}
$dy = imagefontheight($font) + 6;
$xpad = 10;
$ypad = 10;
$im = imagecreate($dx+$xpad,$dy+$ypad);
if ($color== "blue")
{
$fgcolor = imagecolorallocate($im, 0, 0, 255);
}elseif ($color== "red"){
$fgcolor = imagecolorallocate($im, 255, 0, 0);
}elseif ($color== "green"){
$fgcolor = imagecolorallocate($im, 0, 255, 0);
}else{
$fgcolor = imagecolorallocate($im, $color[0], $color[1], $color[2]);
}
$black = imagecolorallocate($im, 000, 000, 000);
$white = imagecolorallocate($im, 255, 255, 255);
imagerectangle($im, 0, 0, $dx+$xpad-2, $dy+$ypad-2, $black);
imagerectangle($im, 0, 0, $dx+$xpad, $dy+$ypad, $white);
imagestring($im, $font, (int)($xpad*.80), $dy-(int)($ypad)-1, $text, $black);
imagepng($im);
imagedestroy($im);
?>
wie kann ich jetzt aber feststellen auf welcher seite ich bin ?
meine damit einen link z.b. Home solte nicht funzen wen ich auf der seite bin oder forum link solte nich funzen wenn ich im forum bin usw.
tja nur weis ich leider nicht weiter stehe auf der leitung hoffe es kann mir wer weiter helfen danke im voraus !!!
mfg
deftones