|
Revision 1301, 1.6 kB
(checked in by dramirez, 1 year ago)
|
Moved from units to mod:
Updated .htaccess rules
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
global $CFG; |
|---|
| 3 |
global $db; |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
$handle = 0; |
|---|
| 7 |
foreach($data['profile:details'] as $profiletype) { |
|---|
| 8 |
if ($profiletype->internal_name == $parameter[0] && $profiletype->field_type == "keywords") { |
|---|
| 9 |
$handle = 1; |
|---|
| 10 |
} |
|---|
| 11 |
} |
|---|
| 12 |
|
|---|
| 13 |
if ($handle) { |
|---|
| 14 |
|
|---|
| 15 |
$searchline = "tagtype = " . $db->qstr($parameter[0]) . " AND tag = " . $db->qstr($parameter[1]) . ""; |
|---|
| 16 |
$searchline = "(" . run("users:access_level_sql_where",$_SESSION['userid']) . ") AND " . $searchline; |
|---|
| 17 |
$searchline = str_replace("owner", "t.owner", $searchline); |
|---|
| 18 |
|
|---|
| 19 |
if ($result = get_records_sql('SELECT DISTINCT u.* FROM '.$CFG->prefix.'tags t |
|---|
| 20 |
JOIN '.$CFG->prefix.'users u ON u.ident = t.owner |
|---|
| 21 |
WHERE '.$searchline)) { |
|---|
| 22 |
foreach($result as $key => $info) { |
|---|
| 23 |
$run_result .= "\t<item>\n"; |
|---|
| 24 |
$run_result .= "\t\t<title><![CDATA['" . htmlspecialchars($parameter[0], ENT_COMPAT, 'utf-8') . "' = " . htmlspecialchars($parameter[1], ENT_COMPAT, 'utf-8') . " :: " . htmlspecialchars(stripslashes(user_name($info->ident)), ENT_COMPAT, 'utf-8') . "]]></title>\n"; |
|---|
| 25 |
$run_result .= "\t\t<link>" . url . htmlspecialchars($info->username, ENT_COMPAT, 'utf-8') . "</link>\n"; |
|---|
| 26 |
$run_result .= "\t</item>\n"; |
|---|
| 27 |
} |
|---|
| 28 |
} |
|---|
| 29 |
} |
|---|
| 30 |
|
|---|
| 31 |
?> |
|---|