コード例 #1
0
ファイル: GestSaveRestore.php プロジェクト: djphil/osmw
 echo '<p>Nombre total de regions <span class="badge">' . count($tableauIni) . '</span></p>';
 echo '<table class="table table-hover">';
 echo '<tr>';
 echo '<th>Name</th>';
 echo '<th>Image</th>';
 echo '<th>Uuid</th>';
 echo '<th>Location</th>';
 echo '<th>Public IP/Host</th>';
 echo '<th>Private IP/Host</th>';
 echo '<th>Port</th>';
 echo '<th>Action</th>';
 echo '</tr>';
 while (list($key, $val) = each($tableauIni)) {
     $uuid = str_replace("-", "", $tableauIni[$key]['RegionUUID']);
     $ImgMap = "http://" . $hostnameSSH . ":" . trim($srvOS) . "/index.php?method=regionImage" . $uuid;
     if (Test_Url($ImgMap) == false) {
         $ImgMap = "img/offline.jpg";
     }
     echo '<tr>';
     echo '<td><h5>' . $key . '</h5></td>';
     echo '<td><img  style="height: 38px;" class="img-thumbnail" alt="" src="' . $ImgMap . '"></td>';
     echo '<td><h5><span class="badge">' . $tableauIni[$key]['RegionUUID'] . '</span></h5></td>';
     echo '<td><h5><span class="badge">' . $tableauIni[$key]['Location'] . '</span></h5></td>';
     echo '<td><h5>' . $tableauIni[$key]['ExternalHostName'] . '</h5></td>';
     echo "<td><h5><span class='badge'>" . $tableauIni[$key]['InternalAddress'] . "</span></h5></td>";
     echo '<td><h5><span class="badge">' . $tableauIni[$key]['InternalPort'] . '</span></h5></td>';
     echo '<td>';
     echo '<form method="post" action="">';
     echo '<input type="hidden" name="backup_sim" value="1" >';
     echo '<input type="hidden" name="format_backup" value="OAR" >';
     echo '<input type="hidden" name="name_sim" value="' . $key . '">';
コード例 #2
0
ファイル: regions.php プロジェクト: djphil/osmw
        $srvOS = substr($porthttp, $posEgal + 1);
    }
}
fclose($fp);
// **********************************************************
echo '<p>Nombre total de regions <span class="badge">' . count($tableauIni) . '</span></p>';
echo '<table class="table table-hover">';
echo '<tr>';
echo '<th>Name</th>';
echo '<th>Image</th>';
echo '<th>Teleport</th>';
echo '<th>Online</th>';
echo '</tr>';
while (list($key, $val) = each($tableauIni)) {
    $ImgMap = "http://" . $hostnameSSH . ":" . trim($srvOS) . "/index.php?method=regionImage" . str_replace("-", "", $tableauIni[$key]['RegionUUID']);
    if (Test_Url($ImgMap) != '1') {
        $i = '<h4 class="glyphicon glyphicon-remove text-danger"></h4>';
    } else {
        $i = '<h4 class="glyphicon glyphicon-ok text-success"></h4>';
    }
    echo '<tr>';
    echo '<td>' . $key . '</td>';
    echo '<td><img style="height:32px;" class="img-thumbnail" alt="" src="' . $ImgMap . '"></td>';
    echo '<td><a class="btn btn-default" href="secondlife://' . $hypergrid . ":" . $key . '">Teleport</a></td>';
    echo '<td>' . $i . '</td>';
    echo '</tr>';
}
echo '</table>';
?>

</div>