summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74976fe)
raw | patch | inline | side by side (parent: 74976fe)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Jan 2008 16:47:06 +0000 (16:47 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Jan 2008 16:47:06 +0000 (16:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8480 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/systems/services/log/class_gosaLogServer.inc | [deleted file] | patch | blob | history |
gosa-core/plugins/admin/systems/services/log/gosaLogServer.tpl | [deleted file] | patch | blob | history |
gosa-plugins/log/admin/systems/services/log/class_gosaLogServer.inc | [new file with mode: 0644] | patch | blob |
gosa-plugins/log/admin/systems/services/log/gosaLogServer.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/gosa-core/plugins/admin/systems/services/log/class_gosaLogServer.inc b/gosa-core/plugins/admin/systems/services/log/class_gosaLogServer.inc
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-class gosaLogServer extends goService{
-
- /* This plugin only writes its objectClass */
- var $objectclasses = array("gosaLogServer");
- var $attributes = array("goLogDB","goLogDBUser","goLogDBPassword");
- var $StatusFlag = "";
-
- /* This class can't be assigned twice so it conflicts with itsself */
- var $conflicts = array("gosaLogServer");
-
- var $DisplayName = "";
- var $dn = NULL;
- var $acl;
- var $cn = "";
- var $goLogDBServerStatus= "";
- var $goLogDBUser = "";
- var $goLogDBPassword = "";
- var $goLogDB = "";
- var $view_logged =FALSE;
-
-
- function gosaLogServer(&$config,$dn)
- {
- goService::goService($config,$dn);
- $this->DisplayName = _("GOsa MySQL logging service");
- }
-
-
- function execute()
- {
- $smarty = get_smarty();
-
- if($this->is_account && !$this->view_logged){
- $this->view_logged = TRUE;
- new log("view","server/".get_class($this),$this->dn);
- }
-
- $tmp = $this->plInfo();
- foreach($tmp['plProvidedAcls'] as $name => $translation){
- $smarty->assign($name."ACL",$this->getacl($name));
- }
-
- foreach($this->attributes as $attr){
- $smarty->assign($attr,$this->$attr);
- }
- return($smarty->fetch(get_template_path("gosaLogServer.tpl",TRUE,dirname(__FILE__))));
- }
-
-
- function getListEntry()
- {
- $fields = goService::getListEntry();
- $fields['Message'] = _("GOsa MySQL logging service");
- $fields['AllowEdit'] = true;
- $fields['AllowStart'] = FALSE;
- $fields['AllowStop'] = FALSE;
- $fields['AllowRestart'] = FALSE;
- return($fields);
- }
-
-
- function check()
- {
- $message = plugin::check();
- if (empty($this->goLogDBUser)){
- $message[]= sprintf_("The attribute user is empty or contains invalid characters.");
- }
- if (empty($this->goLogDBPassword)){
- $message[]= sprintf_("The attribute password is empty or contains invalid characters.");
- }
- if (empty($this->goLogDB)){
- $message[]= sprintf_("The attribute database is empty or contains invalid characters.");
- }
- return($message);
- }
-
-
- function save_object()
- {
- if(isset($_POST['gosaLogServerPosted'])){
- plugin::save_object();
- }
- }
-
- /* Return plugin informations for acl handling */
- static function plInfo()
- {
- return (array(
- "plShortName" => _("GOsa logging service"),
- "plDescription" => _("GOsa logging service")." ("._("Services").")",
- "plSelfModify" => FALSE,
- "plDepends" => array(),
- "plPriority" => 98,
- "plSection" => array("administration"),
- "plCategory" => array("server"),
-
- "plProvidedAcls"=> array(
- "goLogDB" => _("Database"),
- "goLogDBUser" => _("User"),
- "goLogDBPassword" => _("Password"),
- "viewEntries" => _("Allow view of entries on this server"))
- ));
- }
-}
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>
diff --git a/gosa-core/plugins/admin/systems/services/log/gosaLogServer.tpl b/gosa-core/plugins/admin/systems/services/log/gosaLogServer.tpl
+++ /dev/null
@@ -1,35 +0,0 @@
-<h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}GOsa logging database{/t}</h2>
-<table summary="">
- <tr>
- <td>{t}Database user{/t}{$must}</td>
- <td>
-{render acl=$goLogDBUserACL}
- <input name="goLogDBUser" id="goLogDBUser" size=30 maxlength=60 value="{$goLogDBUser}">
-{/render}
- </td>
- </tr>
- <tr>
- <td>{t}Password{/t}{$must}</td>
- <td>
-{render acl=$goLogDBPasswordACL}
- <input type="password" name="goLogDBPassword" id="goLogDBPassword" size=30 maxlength=60 value="{$goLogDBPassword}">
-{/render}
- </td>
- </tr>
- <tr>
- <td>{t}Database{/t}{$must}</td>
- <td>
-{render acl=$goLogDBACL}
- <input name="goLogDB" id="goLogDB" size=30 maxlength=60 value="{$goLogDB}">
-{/render}
- </td>
- </tr>
- </table>
-
-<p class='seperator'> </p>
-<div style="width:100%; text-align:right;padding-top:10px;padding-bottom:3px;">
- <input type='submit' name='SaveService' value='{t}Save{/t}'>
-
- <input type='submit' name='CancelService' value='{t}Cancel{/t}'>
-</div>
-<input type="hidden" name="gosaLogServerPosted" value="1">
diff --git a/gosa-plugins/log/admin/systems/services/log/class_gosaLogServer.inc b/gosa-plugins/log/admin/systems/services/log/class_gosaLogServer.inc
--- /dev/null
@@ -0,0 +1,108 @@
+<?php
+
+class gosaLogServer extends goService{
+
+ /* This plugin only writes its objectClass */
+ var $objectclasses = array("gosaLogServer");
+ var $attributes = array("goLogDB","goLogDBUser","goLogDBPassword");
+ var $StatusFlag = "";
+
+ /* This class can't be assigned twice so it conflicts with itsself */
+ var $conflicts = array("gosaLogServer");
+
+ var $DisplayName = "";
+ var $dn = NULL;
+ var $acl;
+ var $cn = "";
+ var $goLogDBServerStatus= "";
+ var $goLogDBUser = "";
+ var $goLogDBPassword = "";
+ var $goLogDB = "";
+ var $view_logged =FALSE;
+
+
+ function gosaLogServer(&$config,$dn)
+ {
+ goService::goService($config,$dn);
+ $this->DisplayName = _("GOsa MySQL logging service");
+ }
+
+
+ function execute()
+ {
+ $smarty = get_smarty();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ new log("view","server/".get_class($this),$this->dn);
+ }
+
+ $tmp = $this->plInfo();
+ foreach($tmp['plProvidedAcls'] as $name => $translation){
+ $smarty->assign($name."ACL",$this->getacl($name));
+ }
+
+ foreach($this->attributes as $attr){
+ $smarty->assign($attr,$this->$attr);
+ }
+ return($smarty->fetch(get_template_path("gosaLogServer.tpl",TRUE,dirname(__FILE__))));
+ }
+
+
+ function getListEntry()
+ {
+ $fields = goService::getListEntry();
+ $fields['Message'] = _("GOsa MySQL logging service");
+ $fields['AllowEdit'] = true;
+ $fields['AllowStart'] = FALSE;
+ $fields['AllowStop'] = FALSE;
+ $fields['AllowRestart'] = FALSE;
+ return($fields);
+ }
+
+
+ function check()
+ {
+ $message = plugin::check();
+ if (empty($this->goLogDBUser)){
+ $message[]= sprintf_("The attribute user is empty or contains invalid characters.");
+ }
+ if (empty($this->goLogDBPassword)){
+ $message[]= sprintf_("The attribute password is empty or contains invalid characters.");
+ }
+ if (empty($this->goLogDB)){
+ $message[]= sprintf_("The attribute database is empty or contains invalid characters.");
+ }
+ return($message);
+ }
+
+
+ function save_object()
+ {
+ if(isset($_POST['gosaLogServerPosted'])){
+ plugin::save_object();
+ }
+ }
+
+ /* Return plugin informations for acl handling */
+ static function plInfo()
+ {
+ return (array(
+ "plShortName" => _("GOsa logging service"),
+ "plDescription" => _("GOsa logging service")." ("._("Services").")",
+ "plSelfModify" => FALSE,
+ "plDepends" => array(),
+ "plPriority" => 98,
+ "plSection" => array("administration"),
+ "plCategory" => array("server"),
+
+ "plProvidedAcls"=> array(
+ "goLogDB" => _("Database"),
+ "goLogDBUser" => _("User"),
+ "goLogDBPassword" => _("Password"),
+ "viewEntries" => _("Allow view of entries on this server"))
+ ));
+ }
+}
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/gosa-plugins/log/admin/systems/services/log/gosaLogServer.tpl b/gosa-plugins/log/admin/systems/services/log/gosaLogServer.tpl
--- /dev/null
@@ -0,0 +1,35 @@
+<h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}GOsa logging database{/t}</h2>
+<table summary="">
+ <tr>
+ <td>{t}Database user{/t}{$must}</td>
+ <td>
+{render acl=$goLogDBUserACL}
+ <input name="goLogDBUser" id="goLogDBUser" size=30 maxlength=60 value="{$goLogDBUser}">
+{/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Password{/t}{$must}</td>
+ <td>
+{render acl=$goLogDBPasswordACL}
+ <input type="password" name="goLogDBPassword" id="goLogDBPassword" size=30 maxlength=60 value="{$goLogDBPassword}">
+{/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Database{/t}{$must}</td>
+ <td>
+{render acl=$goLogDBACL}
+ <input name="goLogDB" id="goLogDB" size=30 maxlength=60 value="{$goLogDB}">
+{/render}
+ </td>
+ </tr>
+ </table>
+
+<p class='seperator'> </p>
+<div style="width:100%; text-align:right;padding-top:10px;padding-bottom:3px;">
+ <input type='submit' name='SaveService' value='{t}Save{/t}'>
+
+ <input type='submit' name='CancelService' value='{t}Cancel{/t}'>
+</div>
+<input type="hidden" name="gosaLogServerPosted" value="1">