Changeset 666
- Timestamp:
- 10/23/06 15:40:46 (2 years ago)
- Files:
-
- devel/mod/browser/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/browser/index.php
r659 r666 86 86 $filter_text = __gettext("Filter"); 87 87 88 $body .= <<< END88 $body = <<< END 89 89 90 90 <p><b>$browse ::</b> … … 107 107 if (empty($filter)) { 108 108 $search_sql = "SELECT u.*, COUNT(DISTINCT m.ident) AS members FROM `".$CFG->prefix."users` u JOIN ".$CFG->prefix."friends m ON m.friend = u.ident WHERE u.user_type = \"community\" GROUP BY u.ident ORDER BY members DESC, name DESC"; 109 $count_sql = "SELECT COUNT(DISTINCT u.ident) AS numberofusers, COUNT(DISTINCT m.ident) AS members FROM `".$CFG->prefix."users` u JOIN ".$CFG->prefix."friends m ON m.friend = u.ident WHERE u.user_type = \"community\" GROUP BY u.ident";109 $count_sql = "SELECT COUNT(DISTINCT u.ident) AS numberofusers, COUNT(DISTINCT m.ident) AS members FROM `".$CFG->prefix."users` u JOIN ".$CFG->prefix."friends m ON m.friend = u.ident WHERE u.user_type = \"community\""; 110 110 } else { 111 111 if (empty($searchtype)) { … … 142 142 } 143 143 144 $search_sql .= " limit $offset, " . $CFG->search_results;144 $search_sql .= sql_paging_limit($offset, $CFG->search_results); 145 145 146 146 if ($results = get_records_sql($search_sql)) { … … 175 175 176 176 $blogposts = get_record_sql("SELECT COUNT(".$CFG->prefix."weblog_posts.ident) AS weblogposts FROM ".$CFG->prefix."weblog_posts WHERE weblog = {$result->ident}"); 177 $description = get_record_sql("SELECT ".$CFG->prefix."profile_data.value FROM ".$CFG->prefix."profile_data WHERE owner = {$result->ident} AND name = ' briefdesc'");177 $description = get_record_sql("SELECT ".$CFG->prefix."profile_data.value FROM ".$CFG->prefix."profile_data WHERE owner = {$result->ident} AND name = 'minibio'"); 178 178 179 179 $icon = "{$CFG->wwwroot}{$result->username}/icons/{$result->icon}/h/67/"; 180 180 181 $description = stripslashes($description->value);181 $description = @stripslashes($description->value); 182 182 $name = stripslashes($result->name); 183 183
