From c6ed2dc2c8104543e309a748973e12de8e958601 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Mon, 15 Jun 2009 14:05:42 +0200 Subject: [REMOVED] old fucking stuff --- Badges.php | 1 - DISCLAIMER.php | 98 ---------------------------------------------------------- 2 files changed, 99 deletions(-) delete mode 120000 Badges.php delete mode 100644 DISCLAIMER.php diff --git a/Badges.php b/Badges.php deleted file mode 120000 index c7187c3..0000000 --- a/Badges.php +++ /dev/null @@ -1 +0,0 @@ -DISCLAIMER.php \ No newline at end of file diff --git a/DISCLAIMER.php b/DISCLAIMER.php deleted file mode 100644 index e1c2b19..0000000 --- a/DISCLAIMER.php +++ /dev/null @@ -1,98 +0,0 @@ -x = 0; - $this->width = abs( - max($size[0], $size[2], $size[4], $size[6]) - - min($size[0], $size[2], $size[4], $size[6]) - ); - $this->height= abs( - max($size[1], $size[3], $size[5], $size[7]) - - min($size[1], $size[3], $size[5], $size[7]) - ); - - $ratio = WIDTH / $this->width; - - $this->width = WIDTH; - $this->height *= $ratio; - $this->size = floor($this->size * $ratio); - } -} -$Lines = array(); -$Lines[] = new Text; - -$Lines[0]->value = "New stuff available !"; -$Lines[0]->angle = 2; -$Lines[] = new Text; -$Lines[1]->value = "Go get the latest badge"; -$Lines[] = new Text; -$Lines[2]->value = "into my website"; -$Lines[] = new Text; -$Lines[3]->value = "from NOW !"; - -foreach ($Lines as $Line) - $Line->font = "import/Georgia"; - -$y=0; -foreach ($Lines as $Line) -{ - $size=imageftbbox($Line->size, $Line->angle, $Line->font, $Line->value); - $Line->initiate($size); - $y+=$Line->height; - $Line->y=$y; -} - -$Image = new Text; -$Image->width = WIDTH; -$Image->height = $y; - -$img=imagecreatetruecolor($Image->width, $Image->height); -imagealphablending($img, FALSE); -imagesavealpha($img, TRUE); - -foreach ($Lines as $Line) -{ - $Line->color=imagecolorallocate($img, 0, - 0, - 0); -} - -$transparent=imagecolorallocatealpha($img, 255, 255, 255, 127); - -imagefilledrectangle($img, 0, 0, $Image->width, $Image->height, $transparent); - -foreach ($Lines as $Line) - imagettftext($img, $Line->size, $Line->angle, $Line->x, $Line->y, $Line->color, $Line->font, $Line->value); - -imagepng($img); - -if ($Cache != "") imagepng($img, $Cache); -imagedestroy($img); - -?> -- cgit v1.2.3