summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8668ec)
raw | patch | inline | side by side (parent: f8668ec)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Jan 2010 17:29:50 +0000 (17:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Jan 2010 17:29:50 +0000 (17:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15069 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 4a6f7ab90fb6ddb20562fa04e48a5ba9f3effff4..a97f3a3be5c88b59048ade06749a7d49d22df7a0 100644 (file)
protected $objectName = "role";
var $fai_release = ""; // The currently selected release while in release management mode!
+ var $fai_base = "";
function __construct($config,$ui)
{
$this->config = $config;
+ $this->fai_base = get_ou("faiBaseRDN").$this->config->current['BASE'];
$this->ui = $ui;
$this->storagePoints = array(
get_ou('faiPartitionRDN'),
$this->snapHandler = new SnapshotHandler($this->config);
}
$this->registerAction("editByGroup","editByGroup");
+ $this->registerAction("createBranch","createBranch");
parent::__construct($config, $ui, "roles", $headpage);
}
$action = management::detectPostActions();
if(isset($_POST['faiGroupHandle_cancel'])) $action['action'] = "cancel";
if(isset($_POST['faiGroupHandle_apply'])) $action['action'] = "editByGroup";
+ if(isset($_GET['act']) && $_GET['act'] == "branch_branch") $action['action'] = "createBranch";
foreach($_POST as $name => $value){
if(preg_match("/^edit_([0-9]*)_([a-z]*)_(x|y)/i", $name)){
$headpage->update();
$smarty = get_smarty();
$smarty->assign("fai_release", $this->fai_release);
- $smarty->assign("fai_base", get_ou('faiBaseRDN').$this->config->current['BASE']);
+ $smarty->assign("fai_base", $this->fai_base);
$r = $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'));
$c = $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'));
$smarty->assign("allow_create", $c);
$smarty->assign("allow_remove", $r);
- $smarty->assign("fai_base", get_ou('faiBaseRDN').$this->config->current['BASE']);
$display = $headpage->render();
return($this->getHeader().$display);
}
{
$list = array();
if(empty($base)){
- $base = get_ou('faiBaseRDN').$this->config->current['BASE'];
+ $base = $this->fai_base;
$list[$base] = "/";
}
}
+ function createBranch()
+ {
+ $smarty = get_smarty();
+ $this->dispNewBranch=true;
+ $smarty->assign("iframe",false);
+ $smarty->assign("BranchName","");
+ return($smarty->fetch(get_template_path('faiNewBranch.tpl', TRUE, dirname(__FILE__))));
+ }
+
+
function get_type($array){
if(!isset($array['objectClass'])) return(array());
if(in_array("FAIpartitionTable",$array['objectClass'])){