|
Revision 2, 1.1 kB
(checked in by sven, 3 years ago)
|
importing elgg-0.1.1a
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
$handle = 0; |
|---|
| 6 |
foreach($data['profile:details'] as $profiletype) { |
|---|
| 7 |
if ($profiletype[1] == $parameter[0] && $profiletype[2] == "keywords") { |
|---|
| 8 |
$handle = 1; |
|---|
| 9 |
} |
|---|
| 10 |
} |
|---|
| 11 |
|
|---|
| 12 |
if ($handle) { |
|---|
| 13 |
|
|---|
| 14 |
$searchline = "tagtype = '".addslashes($parameter[0])."' and tag = '".addslashes($parameter[1])."'"; |
|---|
| 15 |
$searchline = "(" . run("users:access_level_sql_where",$_SESSION['userid']) . ") and " . $searchline; |
|---|
| 16 |
$result = db_query("select distinct users.* from tags left join users on users.ident = tags.owner where $searchline"); |
|---|
| 17 |
|
|---|
| 18 |
$parameter[1] = stripslashes($parameter[1]); |
|---|
| 19 |
|
|---|
| 20 |
if (sizeof($result) > 0) { |
|---|
| 21 |
foreach($result as $key => $info) { |
|---|
| 22 |
$run_result .= "\t<item>\n"; |
|---|
| 23 |
$run_result .= "\t\t<title>'" . htmlentities($parameter[0]) . "' includes " . htmlentities($parameter[1]) . " :: " . htmlentities(stripslashes($info->name)) . "</title>\n"; |
|---|
| 24 |
$run_result .= "\t\t<link>" . url . htmlentities(stripslashes($info->username)) . "</link>\n"; |
|---|
| 25 |
$run_result .= "\t</item>\n"; |
|---|
| 26 |
} |
|---|
| 27 |
} |
|---|
| 28 |
} |
|---|
| 29 |
|
|---|
| 30 |
?> |
|---|