<?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');
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);
if ( ! empty($item['comment'])) {
$comment=$item['comment'];
- print "<tr><td colspan=2> </td></tr>";
- print "<tr><td colspan=2> $comment: </td></tr>";
+ print "<tr><td colspan='2'> </td></tr>";
+ print "<tr><td colspan='2'> $comment: </td></tr>";
}
$title = $item['title'];
// 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