"Enter this zone if you wish to renew your slice", 'start-visible'=>true)); $toggle->start(); // xxx message could take roles into account if ($site['max_slices']<=0) { $message= <<< EOF
Slice creation and renewal have been temporarily disabled for your site. This may have occurred because your site's nodes have been down or unreachable for several weeks, and multiple attempts to contact your site's PI(s) and Technical Contact(s) have all failed. If so, contact your site's PI(s) and Technical Contact(s) and ask them to bring up your site's nodes. Please visit your site details page to find out more about your site's nodes, and how to contact your site's PI(s) and Technical Contact(s).
EOF; echo $message; } else { // xxx this is a rough cut and paste from the former UI // Showing a datepicker view could be considered as well with some extra work // Calculate possible extension lengths $renewal_lengths = array(); foreach ( array ( 1 => "One more week", 2 => "Two more weeks", 4 => "One more month" ) as $weeks => $text ) { if (($slice [ 'expires' ] + ($weeks * $week)) < $max_expiration) { $renewal_lengths [ $weeks ] = "$text (" . gmstrftime( "%A %b-%d-%y %T %Z", $slice [ 'expires' ] + ( $weeks * $week ) ) . ")"; } } if ( empty( $renewal_lengths ) ) { plc_warning("Slice cannot be renewed any further into the future, try again closer to expiration date."); } else { // clean vars $expiration_date = gmstrftime( "%A %b-%d-%y %T %Z", $slice [ 'expires' ] ); echo 'area under construction '; // // display form // echo "