<?php
//imieniny będą poprawnie wyświetlane tylko przy kodowaniu iso-8859-2
//Imieniny - skrypt pochodzi ze strony www.bastek.tvs.pl
//---konfiguracja----------------------------------------------------------------------------------------
$font="tahoma";
$fontsize="-6";
$fontcolor="blue";

//--ścieżka ze strony do katalogu ze skryptem----------------------------------------------------------
$sciezka="https://studentnews.pl/img/gadzety/imieniny/";
//---------------------------------------------------------------------------------------------------------------

$datam = date("m"); 
$datad = date("d");
$datay = date("y");
$d="$datad";
$m="$datam";
$y="$datay";
//---------------------------------------------------------------------------------------------------------------
$month = array(0,Stycznia,Lutego,Marca,Kwietnia,Maja,Czerwca,Lipca,Sierpnia,Wrze¶nia,PaĽdziernika,Listopada,Grudnia);
//---------------------------------------------------------------------------------------------------------------
$d = str_replace("01","1",$d);
$d = str_replace("02","2",$d);
$d = str_replace("03","3",$d);
$d = str_replace("04","4",$d);
$d = str_replace("05","5",$d);
$d = str_replace("06","6",$d);
$d = str_replace("07","7",$d);
$d = str_replace("08","8",$d);
$d = str_replace("09","9",$d);
$m = str_replace("01","1",$m);
$m = str_replace("02","2",$m);
$m = str_replace("03","3",$m);
$m = str_replace("04","4",$m);
$m = str_replace("05","5",$m);
$m = str_replace("06","6",$m);
$m = str_replace("07","7",$m);
$m = str_replace("08","8",$m);
$m = str_replace("09","9",$m);

$imie=file("$sciezka$m.inc");
//wyświetlany tekst
?><html>
<head>
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2">
</head>
<body>
<div align="center"><?php
echo"<font face=$font size=$fontsize color=$fontcolor>$d $month[$m] 20$y<br>imieniny: $imie[$d]</font></div>";
?>
</body></html>

