its php
[script]
if($headlines == 1){
$number = "6";
$template = "Headlines";
$category="1";
include("./cutenews/show_news.php");
die();
}
$wp=fopen("http://www.eckhart.da.ru/razz/news.php?headlines=1","r");
// here you receive content of page
while(!feof($wp)) {
$content .= fread($wp,4096);
$content = str_replace ("", "", "$content");
}
fclose($wp);
$text = $content;
/* ---------------------------------------------- */
/* ------------ BEGIN PHP SNIPPET ----------------*/
/* ---------------------------------------------- */
// specify the file name - you can use a full path, or "../../" type stuff here
// if the image is not in the same directory as this code file
$image = imagecreatefrompng("./img/latestnews.png");
// specify the font size
$font_size = 10;
// in this case, the color is white, but you can replace the numbers with the RGB values
// of any color you want
$color = imagecolorallocate($image, 0,0,0);
// make our drop shadow color
$black = imagecolorallocate($image, 123,123,123);
// and now we do the overlay - the layers of text start top to bottom, so
// the drop shadow comes first
// $image - the base image file we specified above
// $font_size - Well duh. Its the size of the font
// 0 - the angle of the text - we don't want an angle, so we leave it at 0
// 55 - pixels to the right from the leftmost part of the image
// 35 - pixels down from the top of the image
// $black - the color we defined above
// "../fonts/ARIALBD.TTF" - the location on the server that the font can be found
// "Test Text" - the text we're overlaying - you can also use a variable here
ImageTTFText ($image, $font_size, 0, 16, 96, $black, "./SNAP.TTF","$text");
// Now add the actual white text "on top"
ImageTTFText ($image, $font_size, 0, 15, 95, $color, "./SNAP.TTF","$text");
header("Content-type: image/png");
imagepng($image);
imagedestroy($image);
?>
[/script]