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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | | PHP-Quelltext <?php
if (getrights($config['member_infoshow'])=="true") {
if (!$_REQUEST['id'] && $USER['id']!=0) $id=intval($USER['id']);
else $id=intval($_REQUEST['id']);
$userinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['user']." where user_id='".$id."' LIMIT 1"));
$info_nick=$userinfo['user_nick'];
if ($userinfo['user_bd_day']!=0 && $userinfo['user_bd_month']!=0 && $userinfo['user_bd_year']!=0) {
$info_birthday=$userinfo['user_bd_day'].". ";
$month=$lang['all_month'];
$month=$month[$userinfo['user_bd_month']];
$info_birthday.=$month[1]." ";
$info_birthday.=$userinfo['user_bd_year']." - ".$lang['age'].": ".getAge($userinfo[user_bd_day],$userinfo[user_bd_month],$userinfo[user_bd_year]);
// Start Sternzeichen Addon v.1.0 by MatrIXER & PimpyourKiT.de \\
$sz_tag = $userinfo['user_bd_day'].". ";
$sz_monat = $userinfo['user_bd_month'].". ";
$sz_jahr = $userinfo['user_bd_year'].". ";
function Sternzeichen($t,$m,$j) {
$sz_tag = date("d",mktime(0,0,0,$m,$t,$j));
$sz_monat = date("m",mktime(0,0,0,$m,$t,$j));
$sz_jahr = date("j",mktime(0,0,0,$m,$t,$j));
if ($sz_tag > 20 && $sz_monat == 3 || $sz_tag < 21 && $sz_monat == 4) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/widder.png\"> Widder <font class=\"small\">(21.3. - 20.4.)</font>"; }
if ($sz_tag > 20 && $sz_monat == 4 || $sz_tag < 21 && $sz_monat == 5) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/stier.png\"> Stier <font class=\"small\">(21.4. - 20.5.)</font>"; }
if ($sz_tag > 20 && $sz_monat == 5 || $sz_tag < 22 && $sz_monat == 6) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/zwillinge.png\"> Zwillige <font class=\"small\">(21.5. - 21.6.)</font>"; }
if ($sz_tag > 21 && $sz_monat == 6 || $sz_tag < 23 && $sz_monat == 7) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/krebs.png\"> Krebs <font class=\"small\">(22.6. - 22.7.)</font>"; }
if ($sz_tag > 22 && $sz_monat == 7 || $sz_tag < 24 && $sz_monat == 8) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/loewe.png\"> Löwe <font class=\"small\">(23.7. - 23.8.)</font>"; }
if ($sz_tag > 23 && $sz_monat == 8 || $sz_tag < 24 && $sz_monat == 9) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/jungfrau.png\"> Jungfrau <font class=\"small\">(24.8. - 23.9.)</font>"; }
if ($sz_tag > 23 && $sz_monat == 9 || $sz_tag < 24 && $sz_monat == 10) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/waage.png\"> Waage <font class=\"small\">(24.9. - 23.10.)</font>"; }
if ($sz_tag > 23 && $sz_monat == 10 || $sz_tag < 23 && $sz_monat == 11) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/skorpion.png\"> Skorpion <font class=\"small\">(24.10. - 22.11.)</font>"; }
if ($sz_tag > 22 && $sz_monat == 11 || $sz_tag < 22 && $sz_monat == 12) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/schuetze.png\"> Schütze <font class=\"small\">(23.11. - 21.12.)</font>"; }
if ($sz_tag > 21 && $sz_monat == 12 || $sz_tag < 21 && $sz_monat == 1) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/steinbock.png\"> Steinbock <font class=\"small\">(22.12. - 20.1.)</font>"; }
if ($sz_tag > 20 && $sz_monat == 1 || $sz_tag < 20 && $sz_monat == 2) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/wassermann.png\"> Wassermann <font class=\"small\">(21.1. - 19.2.)</font>"; }
if ($sz_tag > 19 && $sz_monat == 2 || $sz_tag < 21 && $sz_monat == 3) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/fische.png\"> Fische <font class=\"small\">(20.2. - 20.3.)</font>"; }
return $zeichen;
}
$sternzeichen = Sternzeichen($sz_tag,$sz_monat,$sz_jahr);
// Ende Sternzeichen Addon v.1.0 by MatrIXER & PimpyourKiT.de \\
}
else {$info_birthday=$lang['not_specified'];}
if ($userinfo['user_sex']=="w") $info_sex=$lang['female'];
elseif ($userinfo['user_sex']=="m") $info_sex=$lang['male'];
else $info_sex=$lang['not_specified'];
if ($userinfo[user_country]!="") {eval ("\$info_country= \"".getTemplate("member_country_text_".$userinfo[user_country]."")."\";");}
else {$info_country=$lang['not_specified'];}
$info_signin=formattime($userinfo['signin'],'','date');
if ($userinfo['logtime']>0) {$info_logtime=formattime($userinfo['logtime']);}
else {$userinfo_logtime=" - ";}
if ($userinfo[user_status]=="admin") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['admin_female'];} else {$info_userstatus=$lang['admin'];}}
elseif ($userinfo[user_status]=="mod") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['mod_female'];} else {$info_userstatus=$lang['mod'];}}
elseif ($userinfo[user_status]=="member") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['member_female'];} else {$info_userstatus=$lang['member'];}}
elseif ($userinfo[user_status]=="user") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['user_female'];} else {$info_userstatus=$lang['user'];}}
elseif ($userinfo[user_status]=="ban") {$info_userstatus=$lang['banned'];}
if ($userinfo['user_groupid']!=0) {
$group=$DB->fetch_array($DB->query("SELECT usergroup_name FROM ".$db_tab['usergroup']." WHERE usergroup_id='".$userinfo['user_groupid']."' LIMIT 1"));
if (trim($group[0])!='') $info_usergroup=$group[0];
else eval ("\$info_usergroup= \"".getTemplate("userinfo_nousergroup")."\";");
}
else eval ("\$info_usergroup= \"".getTemplate("userinfo_nousergroup")."\";");
if (isonline($userinfo['user_id'])) $info_os=$lang['online'];
else $info_os=$lang['offline'];
$userfields=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['userfields']." WHERE userid='".$userinfo['user_id']."' LIMIT 1"));
$info_extended='';
$getprofilefields=$DB->query("SELECT * FROM ".$db_tab['profilefields']." ORDER by profilefields_order ASC");
while ($profilefields=$DB->fetch_array($getprofilefields)) {
$f="field_".$profilefields['profilefields_id'];
if (($fieldcontent=htmlentities($userfields[$f]))=='') $fieldcontent=$lang['not_specified'];
$fieldname=$profilefields['profilefields_name'];
/******************************** Pflichtfeld Anfang ********************************/
if (getrights($profilefields['profilefields_status'])=="true")
/******************************** Pflichtfeld Ende ********************************/
eval ("\$info_extended.= \"".getTemplate("userinfo_ext")."\";");
}
if ($userinfo[user_emailshow]==1) {
if ($config[member_mailer]==1) {eval ("\$info_email= \"".getTemplate("member_email_textlink2")."\";");}
else {eval ("\$info_email= \"".getTemplate("member_email_textlink")."\";");}
}
else {$info_email=$lang['not_specified'];}
if ($userinfo[user_imoption]==1) {eval ("\$info_im= \"".getTemplate("member_sendim_textlink")."\";");}
else {$info_im=$lang['receiving_not_wanted'];}
if ($userinfo[user_icqid]!=0) {eval ("\$info_icq= \"".getTemplate("member_icq_iconlink_2")."\";");}
else {$info_icq=$lang['not_specified'];}
if ($userinfo[user_hlsw]!="") {eval ("\$info_hlsw= \"".getTemplate("member_hlsw_textlink")."\";");}
else {$info_hlsw=$lang['not_specified'];}
if ($userinfo[user_ts]!="") {eval ("\$info_ts= \"".getTemplate("member_ts_textlink")."\";");}
else {$info_ts=$lang['not_specified'];}
/* MYSPACE ADDON START */
if ($userinfo[user_myspace]!="") {eval ("\$info_myspace= \"".getTemplate("member_myspace_textlink")."\";");}
else {$info_myspace=$lang['not_specified'];}
/* MYSPACE ADDON ENDE */
if ($userinfo[user_aimid]!="") {eval ("\$info_aim= \"".getTemplate("member_aim_textlink")."\";");}
else {$info_aim=$lang['not_specified'];}
if ($userinfo[user_yim]!="") {eval ("\$info_yim= \"".getTemplate("member_yim_textlink")."\";");}
else {$info_yim=$lang['not_specified'];}
if ($userinfo[user_hpage]!="") {
if (ereg("http://",$userinfo[user_hpage])) {$info_link=$userinfo[user_hpage];}
else {$info_link="http://".$userinfo[user_hpage];}
eval ("\$info_hpage= \"".getTemplate("member_hpage_textlink")."\";");
}
else {$info_hpage=$lang['not_specified'];}
eval ("\$info_buddie= \"".getTemplate("member_buddie_textlink")."\";");
if ($userinfo[user_qou]!="") {$info_qoute=$PARSE->parse($userinfo[user_qou], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_qoute=$lang['not_specified'];}
if ($userinfo[user_hobby]!="") {$info_hobby=$PARSE->parse($userinfo[user_hobby], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_hobby=$lang['not_specified'];}
if ($userinfo[user_sig]!="") {$info_sig=$PARSE->parse($userinfo[user_sig], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_sig=$lang['not_specified'];}
if ($config[avatar_eod]!=0) {
if ($userinfo[user_avatar]!="" && @filecheck($config['avatar_path']."/".$userinfo[user_avatar])) {$avatar_dimension[3]=@getimagesize("images/avatar/$userinfo[user_avatar]"); eval ("\$avatar_show= \"".getTemplate("user_avatar_show","")."\";");}
else {$avatar_show=$lang['no_avatar_selected'];}
eval ("\$avatar_eod= \"".getTemplate("userinfo_avatar")."\";");
}
else {eval ("\$avatar_eod= \"".getTemplate("userinfo_avatar_off")."\";");}
if ($config[forum_eod]==1) {
$info_userposts=($userinfo[user_posts]+$userinfo[user_postdelay]);
if ($info_userposts<0) {$info_userposts=0;}
if ($info_userposts>0) {
$posts_per_day=number_format(($info_userposts/(ceil(($time_now-$userinfo['signin'])/86400))),1,",",".");
$threadcount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['forumthread']." WHERE forumthread_autorid='".$userinfo['user_id']."'"));
$info_threadcount=$threadcount[0];
$forumrank=$DB->fetch_array($DB->query("SELECT forumrank_title FROM ".$db_tab['forumrank']." WHERE forumrank_post<='".$info_userposts."' ORDER by forumrank_post DESC"));
$forumrank=$forumrank['forumrank_title'];
$lastpost=$DB->fetch_array($DB->query("SELECT ".$db_tab['forumpost'].".forumpost_threadid, ".$db_tab['forumpost'].".forumpost_id FROM ".$db_tab['forumpost']." LEFT JOIN ".$db_tab['forumthread']." ON ".$db_tab['forumthread'].".forumthread_id=".$db_tab['forumpost'].".forumpost_threadid LEFT JOIN ".$db_tab['forumcat']." ON ".$db_tab['forumcat'].".forumcat_id=".$db_tab['forumthread'].".forumthread_catid WHERE (".sqlrights("".$db_tab['forumcat'].".forumcat_rrights")." OR ".$db_tab['forumcat'].".forumcat_mods LIKE '%-".$user_id."-%' OR ".$db_tab['forumcat'].".forumcat_user LIKE '%-".$user_id."-%') AND ".$db_tab['forumpost'].".forumpost_autorid=".$userinfo['user_id']." ORDER BY ".$db_tab['forumpost'].".forumpost_time DESC LIMIT 1"));
if ($lastpost[0]!="") {
$forumthread=$DB->fetch_array($DB->query("SELECT forumthread_id, forumthread_title, forumthread_catid FROM ".$db_tab['forumthread']." WHERE forumthread_id='".$lastpost['forumpost_threadid']."'"));
$forumcat=$DB->fetch_array($DB->query("SELECT forumcat_id, forumcat_name FROM ".$db_tab['forumcat']." WHERE forumcat_id='".$forumthread['forumthread_catid']."'"));
eval ("\$forumpost_info= \"".getTemplate("userinfo_foruminfo_lastthread")."\";");
}
else {$forumpost_info='-';}
}
else {
$forumrank='-';
$forumpost_info='-';
$info_threadcount='-';
}
eval ("\$foruminfo= \"".getTemplate("userinfo_foruminfo")."\";");
}
else {unset($foruminfo);}
if ($config[member_gbook]==1 && getrights("user")=="true") {eval ("\$info_user_gbook= \"".getTemplate("userinfo_gbook_linkbox")."\";");}
// OnlineStatus --> START
define('osinclude', true);
include(pkWWWROOT."login/onlinestatus.php");
// OnlineStatus --> ENDE
include ("login/inc.nav_user.php");
eval ("\$site_body.= \"".getTemplate("userinfo","")."\";");
}
else {$event=1; include("admin/config/event.php");}
?> |