$Title = 'Browse wiki articles'; if(!empty($_GET['letter'])) { $Letter = strtoupper(substr($_GET['letter'], 0, 1)); if($Letter !== '1') { $Title .= ' ('.$Letter.')'; } } show_header($Title); $sql = "SELECT SQL_CALC_FOUND_ROWS w.ID, w.Title, w.Date, w.Author FROM wiki_articles AS w WHERE w.MinClassRead <= '".$LoggedUser['EffectiveClass']."'"; if($Letter !== '1') { $sql .= " AND LEFT(w.Title,1) = '".db_string($Letter)."'"; } else { $Letter = 'All'; } $sql .= " ORDER BY Title"; $DB->query($sql); ?>
Article | Last updated on | Last edited by |
=$Title?> | =$Date?> | =format_username($UserID, false, false, false)?> |