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 173 174 175 176 177 | | PHP-Quelltext <?php
if (getrights($config['member_infoshow'])=="true") {
if (!$_REQUEST['id'] && $USER['id']!=0) $id=$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]);
}
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'];
eval ("\$info_extended.= \"".getTemplate("userinfo_ext")."\";");
}
/**************************************** Memberliste Anfang ****************************************/
$memberliste_path_ok=htmlentities(html_entity_decode(trim($config['memberliste_path'])));
if($config['memberliste_off']==1){
$memberliste_feld=$DB->fetch_array($DB->query("SELECT * FROM `".$db_tab['memberliste_game_feld']."` WHERE `userid`='".intval($userinfo['user_id'])."' LIMIT 1"));
unset($ausgabe_bilder);
$bild_wert=$DB->query("SELECT * FROM `".$db_tab['memberliste_game']."` ORDER by `games_sort` ASC");
while ($bild_ok=$DB->fetch_array($bild_wert)) {
$field="feld_".$bild_ok['id'];
$bilder_user=$memberliste_feld[$field];
$games_name_ok_aus=htmlentities(html_entity_decode(trim($bild_ok['games_name'])));
if($bilder_user!='') eval ("\$ausgabe_bilder.= \"".getTemplate("war/memberliste_ausgabe_pic_row")."\";");
}
if(empty($ausgabe_bilder)) $ausgabe_bilder='Keine Angabe';
unset($ausgabe_squad_row);
$squad_wert=$DB->query("SELECT * FROM `".$db_tab['memberliste_feld']."` WHERE `userid`='".intval($userinfo['user_id'])."' ORDER by `squadid` ASC");
while ($squad_ok=$DB->fetch_array($squad_wert)) {
$squads=$DB->fetch_array($DB->query("SELECT * FROM `".$db_tab['memberliste']."` where `id`='".intval($squad_ok['squadid'])."' LIMIT 1"));
$templateausgabe=intval($squad_ok['id']);
$list_name_ok=htmlentities(html_entity_decode(trim($squads['list_name'])));
$titel_ok=htmlentities(html_entity_decode(trim($squad_ok['titel'])));
$user_wahl_ok=htmlentities(html_entity_decode(trim($userinfo['user_wahl'])));
if($squad_ok['id']!='') eval ("\$ausgabe_squad_row.= \"".getTemplate("war/memberliste_squad_row")."\";");
}
if($templateausgabe!='') eval ("\$ausgabe_squad= \"".getTemplate("war/memberliste_squad")."\";");
eval ("\$ausgabe_games_user= \"".getTemplate("war/memberliste_info")."\";");
if($config['dienst_off']==1 AND $userinfo['user_wahl']!='') eval ("\$ausgabe_dienst_user= \"".getTemplate("war/memberliste_dienst")."\";");
}
/**************************************** Memberliste Ende ****************************************/
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_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=@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")."\";");}
// Foto-Modifikation Start
if ($config['foto_eod']!="0" && $config['foto_eod']!="") {
if ($userinfo[user_foto]!="" && @filecheck($config['avatar_path']."/".$userinfo[user_foto]))
{
$foto_dimension=@getimagesize("images/avatar/$userinfo[user_foto]");
eval ("\$foto_show= \"".getTemplate("user_foto_show","")."\";");
}
else eval ("\$foto_show= \"Kein Foto vorhanden\";");
eval ("\$foto_eod= \"".getTemplate("userinfo_foto")."\";");
}
else {eval ("\$foto_eod= \" \";");}
// Foto-Modifikation Ende
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")."\";");}
include ("login/inc.nav_user.php");
eval ("\$site_body.= \"".getTemplate("userinfo","")."\";");
}
else {$event=1; include("admin/config/event.php");}
?> |