|
Revision 951, 0.8 kB
(checked in by sven, 2 years ago)
|
dotty uses less memory.
html validation fixes.
invite: self-registration doesn't need invite text. gettext fix.
weblog: multiple {{video}} per post fix.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
require_once(dirname(dirname(__FILE__))."/includes.php"); |
|---|
| 4 |
|
|---|
| 5 |
header("Content-Type: text/plain"); |
|---|
| 6 |
|
|---|
| 7 |
$people = get_records_select('users','ident != ?',array(8), $sort='', $fields='ident,username,name,user_type'); |
|---|
| 8 |
$friends = get_records_select('friends','owner != ? AND friend != ?',array(8,8), $sort='', $fields='owner,friend'); |
|---|
| 9 |
|
|---|
| 10 |
echo "digraph G {\n\n"; |
|---|
| 11 |
|
|---|
| 12 |
foreach($people as $person) { |
|---|
| 13 |
|
|---|
| 14 |
$name = stripslashes($person->name); |
|---|
| 15 |
$name = preg_replace('/[^\w ]/i','',$name); |
|---|
| 16 |
|
|---|
| 17 |
echo "\tu" . $person->ident; |
|---|
| 18 |
echo " ["; |
|---|
| 19 |
echo 'label="' . $name . '" '; |
|---|
| 20 |
if ($person->user_type == "community") { |
|---|
| 21 |
echo "fillcolor=\"gold\""; |
|---|
| 22 |
} |
|---|
| 23 |
echo "]"; |
|---|
| 24 |
echo ";\n"; |
|---|
| 25 |
|
|---|
| 26 |
} |
|---|
| 27 |
|
|---|
| 28 |
foreach($friends as $friend) { |
|---|
| 29 |
|
|---|
| 30 |
echo "\tu" . $friend->owner . " -> u" . $friend->friend . ";\n"; |
|---|
| 31 |
|
|---|
| 32 |
} |
|---|
| 33 |
|
|---|
| 34 |
echo "\n}"; |
|---|
| 35 |
|
|---|
| 36 |
?> |
|---|