$smarty->assign('expiration', $rep['expiration']); $smarty->assign('vis', $rep['visibility']); $smarty->assign('cacheable', $rep['cacheable']); $smarty->assign('description', $rep['description']); } break; case 'rm': if ($repID != 0) { $access->check_authenticity(); $integrator->remove_repository($repID); } break; case 'clear': if ($repID != 0) $integrator->clear_cache($repID); header('location: ' . $_SERVER['SCRIPT_NAME'] . '?action=edit&repID=' . $repID); exit; default: $smarty->assign('msg', tra('Requested action is not supported on repository')); $smarty->display('error.tpl'); die; break; } } // Fill list of repositories $repositories = $integrator->list_repositories(false); $smarty->assign_by_ref('repositories', $repositories); // disallow robots to index page:
$smarty->assign('description', $rep["description"]); } break; case 'rm': if ($repID != 0) { if ($prefs['feature_ticketlib2'] != 'y' or isset($_POST['daconfirm']) and isset($_SESSION["ticket_{$area}"])) { key_check($area); $integrator->remove_repository($repID); } else { key_get($area); } } break; case 'clear': if ($repID != 0) { $integrator->clear_cache($repID); } header('location: ' . $_SERVER['SCRIPT_NAME'] . '?action=edit&repID=' . $repID); exit; default: $smarty->assign('msg', tra("Requested action is not supported on repository")); $smarty->display("error.tpl"); die; break; } } // Fill list of repositories $repositories = $integrator->list_repositories(false); $smarty->assign_by_ref('repositories', $repositories); // disallow robots to index page: $smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW');