function newMe($checkUserData = true, $output = false)
 {
     $S = anyC::getFirst("poolSteuerung", "poolSteuerungTyp", $this->A("poolSteuerungTyp"));
     if ($S !== null) {
         Red::errorD("Jeder Steuerungstyp darf maximal einmal angelegt werden.");
     }
     return parent::newMe($checkUserData, $output);
 }
Exemple #2
0
 function newMe($checkUserData = true, $output = false)
 {
     $allowedUsers = Environment::getS("allowedUsers", null);
     if ($allowedUsers !== null and $this->A("isAdmin") == "0") {
         $AC = anyC::get("User", "isAdmin", "0");
         $AC->lCV3();
         if ($AC->numLoaded() >= $allowedUsers) {
             Red::errorD("Sie können keine weiteren Benutzer ohne Admin-Rechte anlegen. Bitte wenden Sie sich an den Support.");
         }
     }
     if (mUserdata::getGlobalSettingValue("encryptionKey") == null and Session::isUserAdminS()) {
         mUserdata::setUserdataS("encryptionKey", Util::getEncryptionKey(), "eK", -1);
     }
     $this->A->SHApassword = sha1($this->A->SHApassword);
     return parent::newMe($checkUserData, $output);
 }
Exemple #3
0
 public function newMe($checkUserData = true, $output = false)
 {
     return parent::newMe($checkUserData, false);
 }
Exemple #4
0
 function newMe($checkUserData = true, $output = false)
 {
     $ps = mUserdata::getPluginSpecificData("Adressen");
     if (isset($ps["pluginSpecificCanUse1xAdresse"]) and $this->A->AuftragID == -1) {
         die("<p>Erstellen nicht möglich!<br />Plugin-spezifische Einstellungen aktiv.<br /><br />Sie können das Erstellen von Einträgen im Adressen-Plugin auch verbieten, dann wird die Option \"Adresse neu anlegen\" nicht mehr angezeigt.<br />Neue 1x-Adressen können weiterhin verwendet werden.</p>");
     } elseif (!isset($ps["pluginSpecificCanUse1xAdresse"])) {
         mUserdata::checkRestrictionOrDie("cantCreate" . str_replace("GUI", "", get_class($this)));
     }
     $this->changeA("lastChange", time());
     $id = parent::newMe(false, $output);
     if ($this->A("AuftragID") != -1 and $this->A("type") == "auftragsAdresse") {
         $Auftrag = new Auftrag($this->A("AuftragID"));
         $Auftrag->updateAdressID($id);
     }
     if (Session::isPluginLoaded("mSync") and $this->A("AuftragID") == -1) {
         mSync::newGUID("Adresse", $id, null, false);
     }
     return $id;
 }
Exemple #5
0
 public function newMe($checkUserData = true, $output = false)
 {
     $this->changeA("TodoLastChange", time());
     if (Session::currentUser() != null) {
         $this->changeA("TodoCreatorUserID", Session::currentUser()->getID());
     }
     #if($this->A("TodoGUID") == "")
     #	$this->changeA("TodoGUID", uniqid()."-".uniqid());
     if ($this->A("TodoClass") != "" and $this->A("TodoClass") != "Kalender" and $this->A("TodoName") == "") {
         $this->changeA("TodoName", $this->getOwnerObject()->getCalendarTitle());
     }
     $id = parent::newMe($checkUserData, false);
     if (Session::isPluginLoaded("mSync") and ($this->A("TodoExceptionForID") == "0" or $this->A("TodoExceptionForID") == "")) {
         mSync::newGUID("Todo", $id);
     }
     #$name = $this->getOwnerObject()->getCalendarTitle();
     if (Session::isPluginLoaded("mGoogle") and $this->updateGoogle) {
         if ($this->A("TodoUserID") == Session::currentUser()->getID()) {
             Google::calendarCreateEvent(mTodoGUI::getCalendarDetails("Todo", $id));
         }
     }
     if ($this->A("TodoClass") == "DBMail" and Session::isPluginLoaded("mMail")) {
         Mail::assign("Todo", $id, $this->A("TodoClassID"));
     }
     if (Session::isPluginLoaded("mAufgabe") and ($this->A("TodoType") == 3 or $this->A("TodoType") == 4 or $this->A("TodoType") == 5) and $this->A("TodoUserID") > 0) {
         $F = new Factory("Aufgabe");
         $F->sA("AufgabeByClass", "Todo");
         $F->sA("AufgabeByClassID", $id);
         $F->sA("AufgabeUserID", $this->A("TodoUserID"));
         $F->sA("AufgabeText", "Bericht für Termin eintragen");
         $F->sA("AufgabeCreated", time());
         $F->sA("AufgabeUntil", $this->A("TodoFromDay"));
         $F->sA("AufgabeUhrzeitVon", $this->A("TodoTillTime"));
         $F->store();
     }
     return $id;
 }
Exemple #6
0
 public function newMe($checkUserData = true, $output = false)
 {
     $this->changeA("DateiAddedDate", time());
     return parent::newMe($checkUserData, $output);
 }