Example #1
0
     foreach ($posted as $id) {
         $ids .= $id . ",";
     }
     $len = strlen($ids);
     $ids = substr($ids, 0, $len - 1);
 }
 switch ($_POST['submitAction']) {
     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;