diff --git a/plugins/personal/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc
index 6b83bdbd6c0e2dd05d49f3f31a2ce9aee7e79c2c..1ca0f5163c049e11792e59e0b01064f69fbfb171 100644 (file)
var $plHeadline = "Opengroupware account";
var $plDescription = "This does something";
- /* CLI vars */
- var $cli_summary = "Manage users webdav account";
- var $cli_description = "Some longer text\nfor help";
- var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
/* attribute list for save action */
var $attributes = array();
var $objectclasses = array();
+ var $SetPassword = false;
+
/* Attribute mapping opengroupware->ldap */
var $attrsToUse = array( "salutation" =>"vocation",
"name" =>"sn",
var $handle = NULL;
var $is_account = false;
var $initialy_was_account = false;
+ var $OGWPassword = "";
function opengwAccount ($config, $dn= NULL)
{
$smarty->assign($ar,array());
}
$smarty->assign("OGWstate"," disabled ");
- foreach(array("LocationTeam","TemplateUser","is_locked","validTeams","opengwAccount","is_account") as $ar){
+ foreach(array("LocationTeam","TemplateUser","is_locked","validTeams","opengwAccount","is_account"/*,"OGWPassword"*/) as $ar){
$smarty->assign($ar,"");
$smarty->assign($ar."CHK","");
$smarty->assign($ar."ACL"," disabled ");
/* Show main page */
$smarty->assign("OGWstate"," disabled ");
- foreach(array("LocationTeam","TemplateUser","is_locked","validTeams","opengwAccount") as $ar){
+ foreach(array("LocationTeam","TemplateUser","is_locked","validTeams","opengwAccount"/*,"OGWPassword"*/) as $ar){
$smarty->assign($ar."ACL",chkacl($this->acl,$ar));
}
}
}
+ /*
+ if($this->SetPassword == false){
+ if($_SESSION['js'] == 1){
+ $smarty->assign("OGWPasswordACL"," disabled ");
+ }else{
+ $smarty->assign("OGWPasswordACL","");
+ }
+ $smarty->assign("OGWPassword","");
+ $smarty->assign("OGWPasswordCHK"," ");
+ }else{
+ $smarty->assign("OGWPasswordACL","");
+ $smarty->assign("OGWPassword",$this->OGWPassword);
+ $smarty->assign("OGWPasswordCHK"," checked ");
+ }
+ */
$display.= $smarty->fetch (get_template_path('opengw.tpl', TRUE, dirname(__FILE__)));
return ($display);
}
/* get post data */
if($this->is_account){
+ /*
+ if(isset($_POST['SetPassword'])){
+ $this->SetPassword =true;
+ }else{
+ $this->SetPassword = false;
+ }
+
+ if((isset($_POST['OGWPassword']))&&($this->SetPassword)){
+ $this->OGWPassword = $_POST['OGWPassword'];
+ $pwd = new passwordMethodCrypt($this->config);
+
+ $this->info['password'] = preg_replace("/^{crypt}/","",$pwd->generate_hash($_POST['OGWPassword']));
+ }else{
+ if(isset($this->info['password'])){
+ unset($this->info['password']);
+ }
+ }
+ */
+
/* Get selected team chkboxes */
$this->info['TeamIDis'] = array();
foreach($_POST as $name => $value ){
}
}
+
+ function PrepareForCopyPaste($src){
+ // Nothing to do, because this object can't be copied ... yet
+ }
+
+
+ /* Return plugin informations for acl handling
+ #FIXME This is only an enable/disable checkbox for this account, there is possibly a better solution available later */
+ function plInfo()
+ {
+ return (array(
+ "plShortName" => _("Opengroupware"),
+ "plDescription" => _("Open groupware account settings"),
+ "plSelfModify" => TRUE,
+ "plDepends" => array("connectivity"),
+ "plPriority" => 3, // Position in tabs
+ "plSection" => "personal", // This belongs to personal
+ "plCategory" => array("gosaAccount"),
+ "plOptions" => array(),
+
+ "plProvidedAcls" => array(
+ "opengwAccount" => "!!! FIXME "._("Open groupware account"))
+ ));
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>