cleanup sort_sites() calls after plc_sorts.php removal.
[plewww.git] / planetlab / persons / register.php
index 736e894..dbdf7b4 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-// $Id: register.php 193 2007-04-04 11:05:28Z thierry $
+// $Id$
 //
 // Account registration and verification form. This form can be called
 // in one of two ways:
 // Mark Huang <mlhuang@cs.princeton.edu>
 // Copyright (C) 2007 The Trustees of Princeton University
 //
-// $Id: register.php 193 2007-04-04 11:05:28Z thierry $ $
+// $Id$ $
 //
 
 // Get session and API handles
 require_once 'plc_session.php';
 global $plc, $api, $adm;
 
-// Get sorting functions
-require_once 'plc_sorts.php';
-
 // Print header
 require_once 'plc_drupal.php';
 drupal_set_title('Account Registration');
@@ -197,9 +194,6 @@ $adm->GetRoles();
 
 list($sites, $roles) = $adm->commit();
 
-// Alphabetize sites by name
-sort_sites($sites);
-
 // Prepend invalid site to beginning of list to force user to select a site
 $sites = array_merge(array(array('site_id' => -1, 'name' => 'Select a site', 'enabled' => TRUE)), $sites);
 
@@ -282,8 +276,8 @@ foreach ($form as $name => $item) {
 
   if ( ! empty($item['comment'])) {
     $comment=$item['comment'];
-    print "<tr><td colspan=2> &nbsp; </td></tr>";
-    print "<tr><td colspan=2> $comment: </td></tr>";
+    print "<tr><td colspan='2'> &nbsp; </td></tr>";
+    print "<tr><td colspan='2'> $comment: </td></tr>";
   }
 
   $title = $item['title'];
@@ -334,7 +328,7 @@ EOF;
 
 // Do not allow resubmits
 if (empty($person['person_id'])) {
-  print '<tr><td colspan=2><input type="submit" name="op" value="Register"  class="form-submit" /></td></tr>';
+  print '<tr><td colspan='2'><input type="submit" name="op" value="Register"  class="form-submit" /></td></tr>';
 }
 
 print <<<EOF