예제 #1
0
파일: search.php 프로젝트: nooper/nlogview
     }
     break;
 case 'searchSubmit':
     $ids = NULL;
     if (isset($_POST['ircuserid'])) {
         $posted = $_POST['ircuserid'];
         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>";