5 // Mark Huang <mlhuang@cs.princeton.edu>
6 // Copyright (C) 2006 The Trustees of Princeton University
12 require_once 'plc_session.php';
16 require_once 'plc_drupal.php';
17 drupal_set_title('Sites');
18 include 'plc_header.php';
23 <div id='public_sites'>
24 <p>The following sites currently host or plan to host <?php echo PLC_NAME; ?> nodes.</p>
26 <p> Also available for download in <a href="/sites/sites.kml">KML format for Google Earth.</a> </p>
30 require_once 'plc_functions.php';
31 require_once 'plc_peers.php';
32 require_once 'table.php';
35 $headers['Peer']='string';
36 $headers['Name']='string';
37 $headers['Lon']='float';
38 $headers['Lat']='float';
40 $table=new PlekitTable ("sites",$headers,1,array('pagesize'=>10000,'pagesize_area'=>false));
43 $peers=new Peers($adm);
46 $sites = $adm->GetSites(array('is_public' => TRUE),
47 array('peer_id','name', 'url','latitude','longitude'));
50 foreach ($sites as $site) {
51 $name = htmlspecialchars($site['name']);
55 $peers->cell($table,$site['peer_id']);
57 $table->cell(href($url,$name));
60 $table->cell($site['longitude']);
61 $table->cell($site['latitude']);
66 include 'plc_footer.php';