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';
19 require_once 'plc_sorts.php';
22 $_person= $plc->person;
23 $_roles= $_person['role_ids'];
25 // if action exists figure out what to do
26 if( $_POST['actions'] ) {
27 // get slice_id as int
28 $site_id= intval( $_POST['site_id'] );
30 // depending on action, run function
31 switch( $_POST['actions'] ) {
33 header( "location: update_site.php?id=$site_id" );
37 header( "location: delete_site.php?id=$site_id" );
41 header( "location: expire.php?id=$site_id" );
52 include 'plc_footer.php';