summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7dd7b46)
raw | patch | inline | side by side (parent: 7dd7b46)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Jun 2006 04:36:08 +0000 (04:36 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Jun 2006 04:36:08 +0000 (04:36 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3721 594d385d-05f5-0310-b6e9-bd551577e9d8
14 files changed:
diff --git a/plugins/admin/systems/class_goCupsServer.inc b/plugins/admin/systems/class_goCupsServer.inc
index 47fc45dbc75b71820e5dadc8262b3b6874fde8db..427f7e842356357766f9b033119ab1a5798879ad 100644 (file)
var $DisplayName = "";
var $dn = NULL;
var $acl;
-
+ var $cn = "";
var $goCupsServerStatus = "";
function goCupsServer($config,$dn)
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goFaxServer.inc b/plugins/admin/systems/class_goFaxServer.inc
index 934bc6c095282c17d01f125fdc955ae0c5e065b5..55a76a56a2bef7bf54f17146d93e5b4b1fee0270 100644 (file)
var $goFaxAdmin = "";
var $goFaxPassword = "";
var $goFaxServerStatus = "";
+ var $cn;
function goFaxServer($config,$dn)
{
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goFonServer.inc b/plugins/admin/systems/class_goFonServer.inc
index 4d0fca755371dbb77d4f5f08509c920509a1c754..7f65e8e40585775bfc3297228e2a771a1c42bd5d 100644 (file)
var $DisplayName = "";
var $dn = NULL;
+ var $cn ="";
var $acl;
var $goFonServerStatus = "";
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goGlpiServer.inc b/plugins/admin/systems/class_goGlpiServer.inc
index 14938f41d7d3b04022a8da9f4535169e7ab2719d..4d3418ef30647b911949f789c6f0724d7e350b06 100644 (file)
var $DisplayName = "";
var $dn = NULL;
+ var $cn = "";
var $acl;
var $goGlpiServerStatus ="";
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc
index 1ae6556b9ebff97b2895ef02a8f850cdd6d1be22..53e1688c46c55b0b0d9b8bd411c04a3a35185231 100644 (file)
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goKrbServer.inc b/plugins/admin/systems/class_goKrbServer.inc
index 5c96c33629586ec8a08a29e62a7b34789cf4c7b6..0b3b79c4f64129c6b50a320554e1ad1482ec9c89 100644 (file)
var $dn = NULL;
var $goKrbServerStatus= "";
var $acl;
-
+ var $cn ="";
var $goKrbRealm = "";
var $goKrbAdmin = "";
var $goKrbPassword ="";
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goLdapServer.inc b/plugins/admin/systems/class_goLdapServer.inc
index 888483dfbc5b87881b64f79d087c1cf4f7feffe5..8cce87d2d5d3111af06696c576f67c269048eb7e 100644 (file)
var $DisplayName = "";
var $dn = NULL;
var $acl;
-
+ var $cn = "";
var $goLdapServerStatus = "";
var $goLdapBase = "";
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goLogDBServer.inc b/plugins/admin/systems/class_goLogDBServer.inc
index 254abe369660ae282d0d7b9475f1ee49f55dce00..2003937a5459ac7f3c9f92f44ac69b7432b99020 100644 (file)
var $DisplayName = "";
var $dn = NULL;
var $acl;
-
+ var $cn = "";
var $goLogDBServerStatus = "";
var $goLogAdmin = "";
var $goLogPassword = "";
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc
index c8007515121b5548def92c9778e57766ce466dea..1c0cdc17dbaf30daf0acfe6006fcd587c4a7063b 100644 (file)
var $RestrictionFilters = array();
var $TransportProtocols = array();
var $Actions = array();
-
+ var $cn = "";
function goMailServer($config,$dn)
{
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goNtpServer.inc b/plugins/admin/systems/class_goNtpServer.inc
index 21bab42762ab4def6e20dde441f7dab6632511a2..dbfc1401dd323b3fb2673d3cf160651526484451 100644 (file)
var $goTimeSource = array();
var $goNtpServerStatus= "";
var $acl;
-
+ var $cn = "";
function goNtpServer($config,$dn)
{
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goShareServer.inc b/plugins/admin/systems/class_goShareServer.inc
index 010c18cadbe3c5e9e2fb408e01c1af4c8b45aabc..6c968e94816781badeabdc027447a38ad1cbe491 100644 (file)
var $DisplayName = "";
var $dn = NULL;
var $acl;
-
+ var $cn = "";
var $goShareServerStatus = "";
var $goExportEntry = array();
var $allow_mounts = false;
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc
index 3ef9c860f4eb8737df08c21de6c496f6968121c5..76fc036353438d06276d4e20ba3e87ac22705911 100644 (file)
var $DisplayName = "";
var $dn = NULL;
var $acl;
-
+ var $cn;
var $goSyslogServerStatus = "";
function goSyslogServer($config,$dn)
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
diff --git a/plugins/admin/systems/class_goTerminalServer.inc b/plugins/admin/systems/class_goTerminalServer.inc
index 86e2bd8205fe09ccba9ae4861d6108bf1fd61c21..262ad19a13c52e874a5bd55e41352cef56940d9c 100644 (file)
var $DisplayName = "";
var $dn = NULL;
var $acl;
-
+ var $cn = "";
var $goTerminalServerStatus = "";
var $goXdmcpIsEnabled = false;
var $goFontPath = "";
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");
index 1c21ca4fc9aecb72c84706901b3528b98c822b5e..7ceedbbf52b8355b64750fdb4968b833ec9d424b 100644 (file)
<h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}FAX database information{/t}</h2>
<table summary="">
<tr>
- <td>{t}FAX DB user{/t}</td>
+ <td>{t}FAX DB user{/t}{$must}</td>
<td><input name="goFaxAdmin" size=30 maxlength=60 {$goFaxAdminACL} id="goFaxAdmin" value="{$goFaxAdmin}" ></td>
</tr>
<tr>
- <td>{t}Password{/t}</td>
+ <td>{t}Password{/t}{$must}</td>
<td><input type=password name="goFaxPassword" id="goFaxPassword" size=30 maxlength=60 {$goFaxPasswordACL} value="{$goFaxPassword}" ></td>
</tr>
</table>