memb_list.php
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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | ?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: User :: '.$lang['listofmembers']; $hmenu = $extented_forum_menu.'User <b> » </b> '.$lang['listofmembers'].$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1 ); $design->header(); if (( $menu->get(2) ? escape($menu->get(2), 'textarea') : 0 ) == asc ){ $name = '<a href="?user-name-desc">'.$lang['name'].'</a>'; }else{ $name = '<a href="?user-name-asc">'.$lang['name'].'</a>'; } if (( $menu->get(2) ? escape($menu->get(2), 'textarea') : 0 ) == asc ){ $rang = '<a href="?user-spezrank-desc">'.$lang['rank'].'</a>'; }else{ $rang = '<a href="?user-spezrank-asc">'.$lang['rank'].'</a>'; } if (( $menu->get(2) ? escape($menu->get(2), 'textarea') : 0 ) == asc ){ $gilde = '<a href="?user-gilde-desc">'.$lang['gilde'].'</a>'; }else{ $gilde = '<a href="?user-gilde-asc">'.$lang['gilde'].'</a>'; } if (( $menu->get(2) ? escape($menu->get(2), 'textarea') : 0 ) == asc){ $gruppe = '<a href="?user-recht1-desc">'.$lang['group'].'</a>'; }else{ $gruppe = '<a href="?user-recht1-asc">'.$lang['group'].'</a>'; } if (( $menu->get(2) ? escape($menu->get(2), 'textarea') : 0 ) == asc){ $reg = '<a href="?user-regist1-desc">Dabei seit</a>'; }else{ $reg = '<a href="?user-regist1-asc">Dabei seit</a>'; } if (( $menu->get(2) ? escape($menu->get(2), 'textarea') : 0 ) == asc){ $icq = '<a href="?user-icq-asc">'.$lang['icq'].'</a>'; }else{ $icq = '<a href="?user-icq-desc">'.$lang['icq'].'</a>'; } if (( $menu->get(2) ? escape($menu->get(2), 'textarea') : 0 ) == asc){ $a = '<a href="?user-e-desc">Posts</a>'; }else{ $a = '<a href="?user-e-asc">Posts</a>'; } $rei = escape($menu->get(1), 'textarea'); $nach =escape($menu->get(2), 'textarea'); $anz = @db_result(db_query("SELECT count(ID) FROM prefix_user"),0); $limit = 50; // Limit $page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 ); $MPL = db_make_sites ($page , "" , $limit , '?user-'.$rei.'-'.$nach.'' , 'user' ); $anfang = ($page - 1) * $limit; $tpl = new tpl ( 'user/memb_list.htm' ); $ar = array ( 'oname' => $name, 'orank' => $rang, 'ogilde' => $gilde, 'ogroup' => $gruppe, 'oicq' => $icq, 'oposts' => $a, 'oregtime' => $reg, 'anz' =>$anz, 'SITELINK' => $MPL ); $tpl->set_ar_out($ar,0); $aufab = ( $menu->get(2) ? escape($menu->get(2), 'textarea') : desc ); $sort1 = ( $menu->get(1) ? escape($menu->get(1), 'textarea') : "recht , posts" ); if ($sort1 == 'recht1'){ $sort2 = 'recht'; }else{ $sort2 = $sort1; } if ($sort2 == 'regist1'){ $sort3 = 'regist'; }else{ $sort3 = $sort2; } if ($sort3 == 'e'){ $sort = 'posts'; }else{ $sort = $sort3; } $class = ''; $erg = db_query("SELECT llogin, prefix_user.posts, prefix_user.id, prefix_grundrechte.name as recht_name, regist, prefix_user.staat, prefix_user.gilde, prefix_user.icq, prefix_user.geschlecht, prefix_user.gebdatum, prefix_user.name FROM prefix_user LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id ORDER by $sort $aufab LIMIT ".$anfang.",".$limit); while ($row = db_fetch_object($erg)) { $icq1 = str_replace("-","",$row->icq); $icq2 = str_replace(" ","",$icq1); if (is_numeric($icq2) ){ $icq= '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="http://web.icq.com/whitepages/online?icq='.$icq2.'&img=5" border="0"></a>'; }else{ $icq = ''; } $ga = ''; $t1 = 0; $t2 = 0; $t3 = 0; $age1=explode("-",$row->gebdatum); $age2 = date("Y",time())-$age1[0]; $a=explode("-",$row->gebdatum); $tag = $a[2]; $mon = $a[1]; $jah = $a[0]; if ($mon > date("m")){$t1 = 2;} if ($mon == date("m")){$t1 = 1;} if ($tag > date("d")){$t2 = 1;} $t3 = ($t1 + $t2); if ($t3 > 1){ $age = ($age2 -1); }else{ $age = $age2; } if ($row->geschlecht == 0){ if ($row->gebdatum != 0000-00-00 ){ $ga.= $age; }else{ $ga.= ''; } } elseif ($row->geschlecht == 1){ if ($row->gebdatum != 0000-00-00 ){ $ga.='<img src="include/images/icons/mann.gif" border="0"> - '.$age.''; }else{ $ga.='<img src="include/images/icons/mann.gif" border="0">'; } } elseif ($row->geschlecht == 2){ if ($row->gebdatum != 0000-00-00 ){ $ga.='<img src="include/images/icons/frau.gif" border="0"> - '.$age.''; }else{ $ga.='<img src="include/images/icons/frau.gif" border="0">'; } } if ($row->staat){ $flagg = '<img src="include/images/flags/'.$row->staat.'" alt="" border="0"> '; }else{ $flagg = ''; } $anzna = round((time()-$row->llogin)/(24*60*60),0); if ($anzna < 9) { $aktiv = '<img src="include/images/icons/online.gif" alt="" border="0"> '; }elseif ($anzna < 20) { $aktiv = '<img src="include/images/icons/na.gif" alt="" border="0"> '; } else { $aktiv = '<img src="include/images/icons/offline.gif" alt="" border="0"> '; } if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $ar = array ( 'NAME' => $row->name, 'RANG' => userrang($row->posts,$row->id), 'AKTIV' => $aktiv, 'FLAGG' => $flagg, 'ICQ' => $icq, 'GA' => $ga, 'CLASS' => $class, 'POSTS' => $row->posts, 'GILDE' => $gilde, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name ); $tpl->set_ar_out($ar,1); } $tpl->out(2); $design->footer(); ?> |
memb_list.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <table width="100%" border="0" cellpadding="3" cellspacing="1" class="border"> <tr class="Chead" > <th height="30" width="30%">{oname}</th> <th align="center" width="11%">{orank}</th> <th align="center" width="11%">{ogilde}</th> <th align="center" width="23%">{ogroup}</th> <th width="10%">{oregtime}</th> <th width="10%">{oicq}</th> <th width="5%" align="center">{oposts}</th> </tr>{EXPLODE}<tr class="{CLASS}"> <td>{FLAGG}{AKTIV}<a href="index.php?user-details-{UID}">{NAME}</a> {GA}</td> <td align="center"><font style="font-size: 10px">{RANG}</font></td> <td align="center">{GILDE}</td> <td align="center">{GRUPE}</td> <td>{DATE}</td> <td align="center">{ICQ}</td> <td align="center">{POSTS}</td> </tr>{EXPLODE} </table> <br /> Registrierte User: {anz} {SITELINK} |
verwendete ilchClan Version: 1.1
betroffene Homepage: externer Link