1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
|
/* VGGeburtstag */
//$vg_zus_geburtstag = '';
$result = $db->unbuffered_query("SELECT * FROM bb".$n."_vg_geburtstag WHERE userid = '".$userid."' ORDER BY gebday ASC");
while ($row_geb = $db->fetch_array($result))
{
$gebbirthday_array = explode('-', $row_geb['gebday']);
if ($gebbirthday_array[0] == '0000') $gebbirthday = $gebbirthday_array[2].".".$gebbirthday_array[1].".";
else $gebbirthday = $gebbirthday_array[2].".".$gebbirthday_array[1].".".$gebbirthday_array[0];
$aktuellesjahrneu=intval(formatdate("Ymd",time()));
$geburtstagneu=$row_geb['gebday'];
$geburtstagneu=str_replace('-','',$geburtstagneu);
if($geburtstagneu==00000000){
$alteranzeigenneu="";
}
else
{
$alterneu=$aktuellesjahrneu-$geburtstagneu;
$alterneu=intval(substr($alterneu,0,2));
$alteranzeigenneu="($alterneu Jahre)";
}
$gebname = $row_geb['gebname'];
eval("\$vg_zus_geburtstag .= \"".$tpl->get("vg_geburtstag_profile")."\";");
}
/* VGGeburtstag */ |