|
Revision 297, 0.7 kB
(checked in by carmartin, 3 years ago)
|
Includes should use full path given that we know where things are. Patch 2.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
require_once(dirname(dirname(__FILE__))."/includes.php"); |
|---|
| 4 |
|
|---|
| 5 |
$people = get_records_select('users','ident != ?',array(8)); |
|---|
| 6 |
$friends = get_records_select('friends','owner != ? AND friend != ?',array(8,8)); |
|---|
| 7 |
|
|---|
| 8 |
echo "digraph G {\n\n"; |
|---|
| 9 |
|
|---|
| 10 |
foreach($people as $person) { |
|---|
| 11 |
|
|---|
| 12 |
$name = stripslashes($person->name); |
|---|
| 13 |
$name = preg_replace('/[^\w ]/i','',$name); |
|---|
| 14 |
|
|---|
| 15 |
echo "\tuser" . $person->ident; |
|---|
| 16 |
|
|---|
| 17 |
if ($person->user_type == "community") { |
|---|
| 18 |
echo "fillcolor=\"gold\""; |
|---|
| 19 |
} |
|---|
| 20 |
echo "]";*/ |
|---|
| 21 |
echo ";\n"; |
|---|
| 22 |
|
|---|
| 23 |
} |
|---|
| 24 |
|
|---|
| 25 |
foreach($friends as $friend) { |
|---|
| 26 |
|
|---|
| 27 |
echo "\tuser" . $friend->owner . " -> user" . $friend->friend . ";\n"; |
|---|
| 28 |
|
|---|
| 29 |
} |
|---|
| 30 |
|
|---|
| 31 |
echo "\n}"; |
|---|
| 32 |
|
|---|
| 33 |
?> |
|---|