function removeOldMyStellar()
{
    setMyStellar(getMyStellar()->currentTags);
}
Exemple #2
0
if($_REQUEST['action'] == 'remove') {
  if (in_array($class_data, $mystellar)) {
    array_splice($mystellar, array_search($class_data, $mystellar), 1);
    header("Location: " . selfURL());
  } else {
    foreach ($mystellar as $item) {
      if (strpos($item,$class_id) !== false) {
	array_splice($mystellar, array_search($item, $mystellar), 1);
	header("Location: index.php");
      }
    }
  }
}

setMyStellar($mystellar);

if (!$class) {
  // no such class or none entered
  $not_found_text = "Sorry, class '$class_id' not found for the $term term";
  $page->prepare_error_page('Stellar', 'stellar', $not_found_text);

} elseif (!has_stellar_site($class)) {
  // no stellarSite; show page with tabs disabled except Info
  $no_stellar_site = TRUE;
  $class['times'] = Array(); // empty array so foreach doesn't complain

  // tab options for Touch/Basic pages
  $tabs->hide('News');
  $tabs->hide('Staff');
  $tabs_html = $tabs->html($page->branch);