X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=blobdiff_plain;f=planetlab%2Fslices%2Fslice_add.php;fp=planetlab%2Fslices%2Fslice_add.php;h=6f93c01ae76395e9f53b182a77a8ec5475988e96;hp=fec117ada1ec71060a381b5d8ccc50606573092d;hb=f67658afd159c12165a0ca7375399c5a035ac931;hpb=a69878450ade0ee74165b780c0a33e2b37726874 diff --git a/planetlab/slices/slice_add.php b/planetlab/slices/slice_add.php index fec117a..6f93c01 100644 --- a/planetlab/slices/slice_add.php +++ b/planetlab/slices/slice_add.php @@ -12,7 +12,7 @@ require_once 'plc_functions.php'; require_once 'details.php'; require_once 'table.php'; require_once 'toggle.php'; - + //plc_debug('POST',$_POST); // if not a PI or admin then redirect to slice index @@ -25,7 +25,7 @@ if ( ! $has_privileges ) { // find out which site the slice should be added to // without site_id set in GET, we use the first site that this user is in -if (get_array($_GET['site_id'])) { +if (get_array($_GET, 'site_id')) { $site_id=intval($_GET['site_id']); } else if (get_array($_POST, 'site_id')) { $site_id=intval($_POST['site_id']); @@ -67,22 +67,22 @@ if ( $_POST['add-slice'] ) { $check=false; } } - + if ( ($url == "http://") || ( $url=="" ) ) { drupal_set_error("You must enter a URL for your slice's info"); $check=false; } - + if( $description == "" ) { drupal_set_error("Your must enter a description for you slice."); $check=false; } - + // if no errors then add if ( $check ) { - $fields= array( "url" => $url, - "instantiation" => $instantiation, - "name" => $name, + $fields= array( "url" => $url, + "instantiation" => $instantiation, + "name" => $name, "description" => $description ); // add it! $slice_id= $api->AddSlice( $fields ); @@ -115,7 +115,7 @@ if ( $_POST['add-slice'] ) { $counter++; } } - if ($success) + if ($success) drupal_set_message ("Added $counter person(s)"); else drupal_set_error ("Could not add all selected persons, only $counter were added"); @@ -137,10 +137,10 @@ include 'plc_header.php'; $sites=$api->GetSites(array($site_id)); $site=$sites[0]; $sitename=$site['name']; -if ( ! $_POST['name']) +if ( ! $_POST['name']) $base= $site['login_base'] ."_"; -// propose to add all 'reachable' persons +// propose to add all 'reachable' persons $site_person_ids=$site['person_ids']; $persons_filter=array("person_id"=>$site_person_ids, "enabled"=>true); @@ -155,10 +155,10 @@ if( !$url ) $url= "http://"; // check for errors and set error styles if( $error['name'] ) $name_error= " class='plc-warning'"; - + if( $error['url'] ) $url_error= " class='plc-warning'"; - + if( $error['description'] ) $desc_error= " class='plc-warning'"; @@ -193,10 +193,10 @@ if ($multiple_sites) { $site_form->end(); print ""; } - + print <<< EOF
-

Important: Please provide a short description, as well as a +

Important: Please provide a short description, as well as a link to a project website, before creating your slice.

PlanetLab's security model requires that anyone who is concerned about a slice's activity be able to immediately learn about that slice. The details that you provide are your public explanation about why the slice behaves as it does. Be sure to describe the kind of traffic that your slice generates, and how it handles material that is under copyright, if relevant. @@ -204,11 +204,11 @@ PlanetLab's security model requires that anyone who is concerned about a slice's The PlanetLab Operations Centres regularly respond to concerns raised by third parties about site behaviour. Most incidents are resolved rapidly based upon the publicly posted slice details. However, when these details are not sufficiently clear or accurate, and we cannot immediately reach the slice owner, we must delete the slice.

NOTE: All PlanetLab users are strongly - encouraged to join the PlanetLab -Users -mailing list. Most questions about running software on PlanetLab can be answered by -posting to this list. -
Site administrators often use this list to post announcements about service outages. + encouraged to join the PlanetLab +Users +mailing list. Most questions about running software on PlanetLab can be answered by +posting to this list. +
Site administrators often use this list to post announcements about service outages. New software releases and available services are announced here as well.

@@ -250,7 +250,7 @@ if (isset($_POST['omf-control'])) { } else { $omf_options=array(); } -// 2018 feb 15 - turning off omf slices creation +// 2018 feb 15 - turning off omf slices creation // $details->th_td("OMF friendly", // $form->checkbox_html('omf-control','yes',$omf_options)); @@ -263,12 +263,12 @@ $instantiation_text = <<< EOF
  • Controller creates a slice on all nodes to manipulate Delegated slices.
  • None allows you to reserve a slice name; you may instantiate the slice later.
  • -

    PLC instantiated slices can be defined as OMF friendly, -in which case slivers come with the OMF Resource Controller pre-installed and pre-configured. +

    PLC instantiated slices can be defined as OMF friendly, +in which case slivers come with the OMF Resource Controller pre-installed and pre-configured. Such slivers can then be easily managed through a centralized tool, the OMF Experiment Controller. -Using these OMF tools, a user can describe, instrument, +Using these OMF tools, a user can describe, instrument, and automatically execute their experiments across many slivers. -Please refer to the OMF User Guide +Please refer to the OMF User Guide to learn more on how to use this feature.

    @@ -284,7 +284,7 @@ if ($persons) { $toggle=new PlekitToggle ('create-slice-persons',$title, array('visible'=>get_arg('show_persons'))); $toggle->start(); - + $headers = array(); $headers['email']='string'; $headers['first']='string';