4 require_once 'plc_login.php';
6 // Get session and API handles
7 require_once 'plc_session.php';
12 require_once 'plc_drupal.php';
13 drupal_set_title('Sites');
14 include 'plc_header.php';
18 require_once 'plc_functions.php';
21 $_person= $plc->person;
22 $_roles= $_person['role_ids'];
24 // if action exists figure out what to do
25 if( $_POST['actions'] ) {
26 // get slice_id as int
27 $site_id= intval( $_POST['site_id'] );
29 // depending on action, run function
30 switch( $_POST['actions'] ) {
32 plc_redirect( "update_site.php?id=$site_id" );
35 plc_redirect( "delete_site.php?id=$site_id" );
38 plc_redirect( "expire.php?id=$site_id" );
48 include 'plc_footer.php';