default: $smarty->assign('msg', tra("Requested action in not supported on repository")); $smarty->display("error.tpl"); die; break; } } // Get repository name $r = $integrator->get_repository($repID); $smarty->assign('name', $r["name"]); // Reassign checkboxes $smarty->assign('file', $file); $smarty->assign('code', $code); $smarty->assign('html', $html); $smarty->assign('all', $all); // Fill list of rules $rules = $integrator->list_rules($repID); $smarty->assign_by_ref('rules', $rules); $smarty->assign('repID', $repID); // Fill list of possible source repositories $allreps = $integrator->list_repositories(false); $reps = array(); foreach ($allreps as $rep) { $reps[$rep["repID"]] = $rep["name"]; } $smarty->assign_by_ref('reps', $reps); // disallow robots to index page: $smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW'); // Display the template $smarty->assign('mid', 'tiki-admin_integrator_rules.tpl'); $smarty->display("tiki.tpl");
<?php // (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: tiki-list_integrator_repositories.php 39467 2012-01-12 19:47:28Z changi67 $ require_once ('tiki-setup.php'); require_once ('lib/integrator/integrator.php'); $access->check_feature('feature_integrator'); $access->check_permission(array('tiki_p_view_integrator')); // Create instance of integrator $integrator = new TikiIntegrator($dbTiki); // Fill list of repositories $repositories = $integrator->list_repositories(true); $smarty->assign_by_ref('repositories', $repositories); // Display the template $smarty->assign('mid', 'tiki-list_integrator_repositories.tpl'); $smarty->display("tiki.tpl");