Hast du es wie Unknown|User gesagt gemacht
oder meinen weg???
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?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(); $limit = 20; // Limit $tpl = new tpl ( 'user/memb_list.htm' ); if($menu->exists('filtername')){ $page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 ); $filtername = escape($menu->get(2), 'string'); }else{ $page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1 ); } $anfang = ($page - 1) * $limit; $tpl = new tpl ( 'user/memb_list.htm' ); if(isset($_GET['filtername']) AND !empty($_GET['filtername'])){ $filtername = escape($_GET['filtername'], 'string'); } if(!empty($filtername)){ $sql_search=" WHERE prefix_user.name LIKE '%".$filtername."%'"; $MPL = db_make_sites ($page , $sql_search , $limit , '?user-filtername-'.$filtername , 'user' ); }else{ $sql_search=""; $MPL = db_make_sites ($page , "" , $limit , '?user' , 'user' ); } $tpl->set_out ( 'SITELINK', $MPL, 0); $class = ''; $erg = db_query("SELECT posts, prefix_user.id, prefix_grundrechte.name as recht_name, regist, prefix_user.name FROM prefix_user LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id $sql_search ORDER by recht,prefix_user.posts DESC LIMIT ".$anfang.",".$limit); while ($row = db_fetch_object($erg)) { if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $ar = array ( 'NAME' => getUserColor($row->name,$row->recht), 'RANG' => userrang($row->posts,$row->id), 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name ); $tpl->set_ar_out($ar,1); } $tpl->set_out('filtername',$filtername ? $filtername : '',2); $design->footer(); ?>
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); ## ### #### ##### W E I T E R L E I T U N G S F U N K T I O N function wd ($wdLINK,$wdTEXT,$wdZEIT=3) { global $lang; if (!is_array($wdLINK)) { $urls = '<a href="'.$wdLINK.'">'.$lang['forward2'].'</a>'; $wdURL = $wdLINK; } else { $urls = ''; $i = 0; foreach($wdLINK as $k => $v) { if ( $i == 0 ) { $wdURL = $v; } $urls .= '<a href="'.$v.'">'.$k.'</a><br />'; $i++; } } $tpl = new tpl ( 'weiterleitung.htm' ); $ar = array ( 'LINK' => $urls, 'URL' => $wdURL, 'ZEIT' => $wdZEIT, 'TEXT' => $wdTEXT ); $tpl->set_ar_out ( $ar, 0 ); unset($tpl); } ## ### #### ##### g e t R e c h t function getrecht ($RECHT, $USERRECHT) { if ( empty ( $USERRECHT ) ) { return (false); } else { if($USERRECHT <= $RECHT) { return (true); } else { return (false); } } } function getUserColor($name,$recht) { switch($recht){ case -9: return '<b><font color="#ff0000">'.$name.'</font></b>'; case -8: return '<b><font color="#FFD350">'.$name.'</font></b>'; case -7: return '<b><font color="#FFD350">'.$name.'</font></b>'; case -6: return '<b><font color="#FFD350">'.$name.'</font></b>'; case -5: return '<b><font color="#FFD350">'.$name.'</font></b>'; case -4: return '<b><font color="#008000">'.$name.'</font></b>'; case -3: return '<b><font color="#FFD350">'.$name.'</font></b>'; case -2: return '<b><font color="#FFD350">'.$name.'</font></b>'; case -1: return '<b><font color="#FFD350">'.$name.'</font></b>'; default: return '<b><font color="#ffffff">'.$name.'</font></b>'; } } ## ### #### ##### wochentage sonntag 0 samstag 6 function wtage ($tag) { $wtage = array('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'); return ($wtage[$tag]); }
$erg = db_query("SELECT posts, prefix_user.id, prefix_grundrechte.name as recht_name, regist, recht, prefix_user.name FROM prefix_user LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id $sql_search ORDER by recht,prefix_user.posts DESC LIMIT ".$anfang.",".$limit);
Geschlossen | ||
Zurück zu Module und Modifikationen |