Einzelnen Beitrag anzeigen
Alt 27.08.2003, 17:48   #1
Deftones
Master
 
Registriert seit: 26.11.2002
Alter: 47
Beiträge: 572


Standard Homepage links mit php erstellen !?

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($im00255);
}elseif (
$color== "red"){
      
$fgcolor imagecolorallocate($im25500);
}elseif (
$color== "green"){
      
$fgcolor imagecolorallocate($im02550);
}else{
      
$fgcolor imagecolorallocate($im$color[0], $color[1], $color[2]);
}

$black imagecolorallocate($im000000000);
$white imagecolorallocate($im255255255);
imagerectangle($im00$dx+$xpad-2$dy+$ypad-2$black);
imagerectangle($im00$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
____________________________________
Es gibt nix gutes außer man tut es
nur die Toten wissen wie der Krieg war !

Fatal error: Maximum execution time exceeded in mod_glaskugel at line 23
Deftones ist offline   Mit Zitat antworten