summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 369ac21)
raw | patch | inline | side by side (parent: 369ac21)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Oct 2008 11:07:43 +0000 (11:07 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Oct 2008 11:07:43 +0000 (11:07 +0000) |
-Renamed variable from "parent_mode" to "standalone"
-Fixed problem with creation of clients.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12654 594d385d-05f5-0310-b6e9-bd551577e9d8
-Fixed problem with creation of clients.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12654 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc | patch | blob | history | |
gosa-plugins/opsi/admin/opsi/generic.tpl | patch | blob | history |
diff --git a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc
index b9ab712b05253c86658c1878fe11ad0c251ce066..046abca991b9b7b0e3c261f3e73f579a63dae12a 100644 (file)
public $initial_description = "";
private $init_failed = FALSE; // Is true if the opsi communication failed
- private $parent_mode = TRUE; // Is true if this is a standlone plugin. (Not samba)
+ private $standalone = TRUE; // Is true if this is a standlone plugin. (Not samba)
private $is_installed= FALSE; // Is true is the hast is already installed.
public $attributes = array("mac","note","description");
*/
$this->parent = $parent;
if($parent instanceof wingeneric){
- $this->parent_mode = FALSE;
+ $this->standalone = FALSE;
}
/* Get hostId
$this->init_failed = FALSE;
$this->initially_was_account = FALSE;
+ /* We are a standalone plugin.
+ */
+ if($this->standalone ) {
+ $this->is_account = TRUE;
+ }
+
/* Try to load client infos from the gosa support daemon
*/
if(!empty($this->hostId)){
*/
if($this->init_failed){
$smarty = get_smarty();
+ $smarty->assign("standalone ", $this->standalone );
$smarty->assign("init_failed",TRUE);
$smarty->assign("message",$this->opsi->get_error());
return($smarty->fetch(get_template_path("generic.tpl",TRUE,dirname(__FILE__))));
which has the opsi tab enabled.
Check if the opsi is added or removed and display state buttons.
*/
- if(!$this->parent_mode){
+ if(!$this->standalone ){
if(isset($_POST['modify_state'])){
if($this->is_account){
$this->is_account= FALSE;
/* Create HTML output of this plugin
*/
$smarty = get_smarty();
+ $smarty->assign("standalone", $this->standalone );
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
}
-
- $smarty->assign("parent_mode", $this->parent_mode);
$smarty->assign("is_installed", $this->is_installed);
$smarty->assign("init_failed",FALSE);
$divSLP = new divSelectBox();
/* Get hostId
*/
- if(isset($_POST['hostId']) && $this->parent_mode){
+ if(isset($_POST['hostId']) && $this->standalone ){
$this->hostId = get_post('hostId');
}
/* Send actions like 'install' or 'wake' to the si server
*/
- if(isset($_POST['opsi_action']) && isset($_POST['opsi_trigger_action']) && $this->parent_mode){
+ if(isset($_POST['opsi_action']) && isset($_POST['opsi_trigger_action']) && $this->standalone ){
$action = $_POST['opsi_action'];
if($action == "install"){
$this->install_client();
index aa67b431db0c18e6c8a4e5c8172b48ca7e74258d..742dbdc2ede4d5f04c58d156d455cd77649fb292 100644 (file)
<tr>
<td>
<table>
- {if $parent_mode}
+ {if $standalone}
<tr>
<td>{t}Name{/t}</td>
<td><input style='width:300px;' type='text' name='hostId' value='{$hostId}'></td>
<tr>
<td colspan="2">
<p class='seperator'> </p><br>
- {if $parent_mode}
+ {if $standalone}
<h2><img src='images/rocket.png' alt="" class="center"> {t}Action{/t}</h2>
<select name='opsi_action'>
<option> </option>