Ejemplo n.º 1
0
            case 'explore':
                if (!is_null($ids)) {
                    $matches = $thispage->exploreRelatedUsers($ids);
                    showResult($matches);
                }
                break;
            case 'Generate image':
                if (!is_null($ids)) {
                    $key = $thispage->static_put($ids);
                    echo "<img src=getimage.php?type=" . $_POST['maptype'] . "&ids={$key}>";
                }
                break;
            case 'relation':
                if (!is_null($ids)) {
                    echo "<table border=1>";
                    $relarray = $thispage->getUserRelations($ids);
                    foreach ($relarray as $reluser) {
                        echo "<tr><td>";
                        echo "<a href='?action=search&nicksearch=is&nickvalue=" . $reluser[0] . "'>" . $reluser[0] . "</a>";
                        echo "</td><td>" . $reluser[1] . "</td></tr>";
                    }
                    echo "</table>";
                }
                break;
        }
        break;
}
function showSearch()
{
    echo <<<ENDHTML