function input ($type,$name="",$value="",$onclick="",$size=40) {
echo "";
}
function textarea ($name="",$value="",$onclick="",$cols=60,$rows=10) {
echo "";
}
function BBCode($bbtext)
{
$BBCode = array(
"&" => "&",
"<" => "<",
">" => ">",
"[b]" => "",
"[/b]" => "",
"[i]" => "",
"[/i]" => "",
"[u]" => "",
"[/u]" => "",
"[img]" => ""
);
$bbtext = str_replace(array_keys($BBCode), $BBCode, $bbtext);
return $bbtext;
}
function nevnap () {
$ho=date("m");
$nap=date("d");
$ho = substr($ho,0,1) == 0 ? str_replace("0","",$ho) : $ho;
$nap = substr($nap,0,1) == 0 ? str_replace("0","",$nap) : $nap;
$ho=$ho-1;
$nap=$nap-1;
$nevek = array(
//január
array("Újév, Fruzsina","Ábel","Genovéva, Benjámin",
"Titusz, Leona","Simon","Boldizsár","Attila, Ramóna","Gyöngyvér","Marcell",
"Melánia","Ágota","Ernő","Veronika","Bódog","Lóránt, Loránd",
"Gusztáv","Antal, Antónia","Piroska","Sára, Márió","Fábián, Sebestyén",
"Ágnes","Vince, Artúr","Zelma, Rajmund","Timót","Pál","Vanda, Paula",
"Angelika","Károly, Karola","Adél","Martina, Gerda","Marcella",""),
//február
array("Ignác","Karolina, Aida","Balázs","Ráhel, Csenge",
"Ágota, Ingrid","Dorottya, Dóra","Tódor, Rómeó","Aranka","Abigél, Alex","Elvira",
"Bertold, Marietta","Lívia, Lídia","Ella, Linda","Bálint, Valentin",
"Kolos, Georgina","Julianna, Lilla","Donát","Bernadett","Zsuzsanna",
"Aladár, Álmos","Eleonóra","Gerzson","Alfréd",
"Mátyás","Géza","Edina","Ákos, Bátor","Elemér","",""),
//március
array("Albin","Lujza","Kornélia","Kázmér","Adorján, Adrián",
"Leonóra, Inez","Tamás","Nőnap, Zoltán","Franciska, Fanni","Ildikó",
"Szilárd","Gergely","Krisztián, Ajtony","Matild","Nemzeti ü., Kristóf",
"Henrietta","Gertrúd, Patrik","Sándor, Ede","József, Bánk","Klaudia",
"Benedek","Beáta, Izolda","Emőke","Gábor, Karina","Irén, Irisz",
"Emánuel","Hajnalka","Gedeon, Johanna","Auguszta","Zalán","Árpád","" ),
//április
array("Hugó","Áron","Buda, Richárd","Izidor","Vince",
"Vilmos, Bíborka","Herman","Dénes","Erhard","Zsolt","Leó, Szaniszló","Gyula",
"Ida","Tibor","Anasztázia, Tas","Csongor","Rudolf","Andrea, Ilma","Emma",
"Tivadar","Konrád","Csilla, Noémi","Béla","György","Márk","Ervin",
"Zita","Valéria","Péter","Katalin, Kitti","" ),
//május
array("Munka ü., Fülöp, Jakab","Zsigmond","Tímea, Irma",
"Mónika, Flórián","Györgyi","Ivett, Frida","Gizella","Mihály","Gergely",
"Ármin, Pálma","Ferenc","Pongrác","Szervác, Imola","Bonifác","Zsófia, Szonja",
"Mózes, Botond","Paszkál","Erik, Alexandra","Ivó, Milán",
"Bernát, Felícia","Konstantin","Júlia, Rita","Dezső","Eszter, Eliza",
"Orbán","Fülöp, Evelin","Hella","Emil, Csanád","Magdolna",
"Janka, Zsanett","Angéla, Petronella","" ),
//június
array("Tünde","Kármen, Anita","Klotild","Bulcsú","Fatime",
"Norbert, Cintia","Róbert","Medárd","Félix","Margit, Gréta","Barnabás",
"Villő","Antal, Anett","Vazul","Jolán, Vid","Jusztin","Laura, Alida",
"Arnold, Levente","Gyárfás","Rafael","Alajos, Leila","Paulina",
"Zoltán","Iván","Vilmos","János, Pál","László","Levente, Irén",
"Péter, Pál","Pál","" ),
//július
array("Tihamér, Annamária","Ottó","Kornél, Soma","Ulrik",
"Emese, Sarolta","Csaba","Appolónia","Ellák","Lukrécia","Amália",
"Nóra, Lili","Izabella, Dalma","Jenő","Őrs, Stella","Henrik, Roland","Valter",
"Endre, Elek","Frigyes","Emília","Illés","Dániel, Daniella",
"Magdolna","Lenke","Kinga, Kincső","Kristóf, Jakab","Anna, Anikó",
"Olga, Liliána","Szabolcs","Márta, Flóra","Judit, Xénia","Oszkár","" ),
//augusztus
array("Boglárka","Lehel","Hermina","Domonkos, Dominika",
"Krisztina","Berta, Bettina","Ibolya","László","Emőd","Lörinc",
"Zsuzsanna, Tiborc","Klára","Ipoly","Marcell","Mária","Ábrahám",
"Jácint","Ilona","Huba","Alkotmány ü., István","Sámuel, Hajna",
"Menyhért, Mirjam","Bence","Bertalan","Lajos, Patrícia","Izsó",
"Gáspár","Ágoston","Beatrix, Erna","Rózsa","Erika, Bella"),
//szeptember
array("Egyed, Egon","Rebeka, Dorina","Hilda","Rozália",
"Viktor, Lőrinc","Zakariás","Regina","Mária, Adrienn","Ádám","Nikolett, Hunor",
"Teodóra","Mária","Kornél","Szeréna, Roxána","Enikő, Melitta","Edit",
"Zsófia","Diána","Vilhelmina","Friderika","Máté, Mirella","Móric",
"Tekla","Gellért, Mercédesz","Eufrozina, Kende","Jusztina","Adalbert",
"Vencel","Mihály","Jeromos","" ),
//október
array("Malvin","Petra","Helga","Ferenc","Aurél","Brúnó, Renáta",
"Amália","Koppány","Dénes","Gedeon","Brigitta","Miksa","Kálmán, Ede","Helén",
"Teréz","Gál","Hedvig","Lukács","Nándor","Vendel","Orsolya","Előd",
"Közt.kikiált., Gyöngyi","Salamon","Blanka, Bianka","Dömötör",
"Szabina","Simon, Szimonetta","Nárcisz","Alfonz","Farkas","" ),
//november
array("Marianna","Achilles","Győző","Károly","Imre","Lénárd",
"Rezső","Zsombor","Tivadar","Réka","Márton","Jónás, Renátó","Szilvia",
"Aliz","Albert, Lipót","Ödön","Hortenzia, Gergő","Jenő","Erzsébet",
"Jolán","Olivér","Cecília","Kelemen, Klementina","Emma","Katalin",
"Virág","Virgil","Stefánia","Taksony","András, Andor","" ),
//december
array("Elza","Melinda, Vivien","Ferenc, Olívia","Borbála, Barbara",
"Vilma","Miklós","Ambrus","Mária","Natália","Judit","Árpád","Gabriella",
"Luca, Otília","Szilárda","Valér","Etelka, Aletta","Lázár, Olimpia",
"Auguszta","Viola","Teofil","Tamás","Zéno","Viktória","Ádám, Éva",
"Karácsony, Eugénia","Karácsony, István","János","Kamilla",
"Tamás, Tamara","Dávid","Szilveszter",""));
return $nevek[$ho][$nap];
}
function eredmeny_del () {
global $db,$kapcsolat;
$x = mktime(0, 0, 0, date("m"), date("d")-10, date("Y"));
$e=date("Y-m-d",$x);
q("delete from ".$db."eredmeny where date<'$e'");
}
function makeThumb($max_width, $max_height, $upfile, $dstfile){
$size = GetImageSize($upfile);
$width = $size[0];
$height = $size[1];
$x_ratio = $max_width / $width;
$y_ratio = $max_height / $height;
if( ($width <= $max_width) && ($height <= $max_height) )
{
$tn_width = $width;
$tn_height = $height;
}
elseif (($x_ratio * $height) < $max_height)
{
$tn_height = ceil($x_ratio * $height);
$tn_width = $max_width;
}
else
{
$tn_width = ceil($y_ratio * $width);
$tn_height = $max_height;
}
$src = ImageCreateFromJpeg($upfile);
$dst = ImageCreateTrueColor($tn_width, $tn_height);
ImageCopyResized($dst, $src, 0, 0, 0, 0, $tn_width, $tn_height, $width, $height);
ImageJpeg($dst, $dstfile);
}
function clean_br($str) {
$str=str_replace("
","",$str);
$str=str_replace("
","",$str);
return $str;
}
function van_jog($sess) {
return $sess == 1 ? true : false;
}
function kat_select() {
global $kapcsolat,$db;
$kat=qs1("select * from ".$db."kategoriak where aktiv=1");
$ig=count($kat[K_ID]);
$ki="";
return $ki;
}
function van_adat($x) {
if ($x == "" or $x==0) {
$x="nincs megadva";
}
return $x;
}
function pre($tomb) {
echo "
"; print_r($tomb); } function insert_meta() { echo ' '; } function qs1($sql) { global $kapcsolat,$db; $st=@mysql_query($sql,$kapcsolat); if ($st) { $maxrow=mysql_num_rows($st); for($i=0; $i<$maxrow; $i++) { $tmp=mysql_fetch_array($st, MYSQL_ASSOC); reset($tmp); while(list($key,$val)=each($tmp)) { $res[strtoupper($key)][$i]=$val; } } //release($st); } return $res; } function pass_gen () { $str=""; for ($i=0;$i<6;$i++) { $str.=mt_rand(1,9); } return $str; } function doboz ($width="100%",$height="100%",$tartalom,$color="",$align="") { $color = $color == "" ? "white" : $color; $align = $align == "" ? "left" : $align; $path="../images/"; $bal_felso="bal_felso.gif"; $felso="felso.gif"; $jobb_felso="jobb_felso.gif"; $bal="bal.gif"; $jobb="jobb.gif"; $bal_also="bal_also.gif"; $also="also.gif"; $jobb_also="jobb_also.gif"; $images['bal_felso']=getimagesize($path.$bal_felso); $images['felso']=getimagesize($path.$felso); $images['jobb_felso']=getimagesize($path.$jobb_felso); $images['bal']=getimagesize($path.$bal); $images['jobb']=getimagesize($path.$jobb); $images['bal_also']=getimagesize($path.$bal_also); $images['also']=getimagesize($path.$also); $images['jobb_also']=getimagesize($path.$jobb_also); $border['kulso']=0; $border['belso']=0; $style['bal_felso']="style='background-image: url(".$path.$bal_felso.");background-repeat:no-repeat;'"; $style['jobb_felso']="style='background-image: url(".$path.$jobb_felso.");background-repeat:no-repeat;'"; $style['bal_also']="style='background-image: url(".$path.$bal_also.");background-repeat:no-repeat;'"; $style['jobb_also']="style='background-image: url(".$path.$jobb_also.");background-repeat:no-repeat;'"; $style['felso']="style='background-image: url(".$path.$felso.");background-repeat:repeat-x;'"; $style['also']="style='background-image: url(".$path.$also.");background-repeat:repeat-x;'"; $style['bal']="style='background-image: url(".$path.$bal.");background-repeat:repeat-y;'"; $style['jobb']="style='background-image: url(".$path.$jobb.");background-repeat:repeat-y;'"; $style['table']="style='border-collapse:collapse;margin:20px;'"; ?>
> | > | ||
|
|||
".$szoveg."
"; return $x; } function b ($szoveg) { $x="".$szoveg.""; return $x; } function h ($szoveg,$class="",$h=1) { $x="