示例#1
0
 public function saveContextMenu($identifier, $key)
 {
     switch ($identifier) {
         case "1":
             setcookie("phynx_color", $key, time() + 3600 * 24 * 3650, "/");
             break;
         case "2":
             setcookie("phynx_layout", $key, time() + 3600 * 24 * 3650, "/");
             break;
         case "3":
             $ud = new mUserdata();
             $ud->setUserdata("noAutoLogout", $key);
             break;
     }
 }
示例#2
0
 function saveSingle2($forwhat, $thisID, $A)
 {
     $a = $this->loadSingle2($forwhat, $thisID);
     foreach ($A as $key => $value) {
         $mU = new mUserdata();
         $mU->setUserdata($key, $value, $forwhat);
         if ($value != "") {
             $a->{$key} = "doNotDeleteThisUserdata";
         }
     }
     foreach ($a as $key => $value) {
         if ($value != "doNotDeleteThisUserdata") {
             $mU = new mUserdata();
             $mU->delUserdata($key);
         }
     }
 }
示例#3
0
 function setDisplay($to, $type = null)
 {
     if ($type == null) {
         $ansicht = new mUserdata();
         $ansicht = $ansicht->getUDValue("KalenderAnsicht");
         if ($ansicht == null) {
             $ansicht = "monat";
         }
         $type = $ansicht;
     }
     #$_SESSION["BPS"]->registerClass(get_class($this));
     #$_SESSION["BPS"]->setACProperty("noReloadRight","true");
     $U = new mUserdata();
     $U->setUserdata("KalenderDisplay" . ucfirst($type), $to);
 }
示例#4
0
 public function saveContextMenu($identifier, $key)
 {
     switch ($identifier) {
         case "multiPageSettings":
             $s = explode(":", $key);
             $z = Util::parseFloat("de_DE", $s[1]);
             if ($z == null) {
                 Red::alertD("Bitte geben Sie eine Zahl ein");
             }
             if ($z > 50) {
                 $z = 50;
             }
             $mU = new mUserdata();
             $mU->setUserdata("entriesPerPage{$s['0']}", floor($z));
             break;
         case "filterCategories":
             $c = explode("--", $key);
             $keys = explode(";", $c[1]);
             $ausgeblendet = array();
             foreach ($keys as $k => $v) {
                 if (strpos($v, ":1") !== false) {
                     $ausgeblendet[] = str_replace(":1", "", $v);
                 }
             }
             $mU = new mUserdata();
             $mU->setUserdata("filteredCategoriesInHTMLGUI{$c['0']}", implode(";", $ausgeblendet));
             echo implode(";", $ausgeblendet);
             break;
         case "searchFilter":
             $v = explode(";:;", $key);
             $mU = new mUserdata();
             if ($v[1] == "") {
                 $mU->delUserdata("searchFilterInHTMLGUI{$v['0']}");
             } else {
                 $mU->setUserdata("searchFilterInHTMLGUI{$v['0']}", $v[1]);
             }
             break;
         case "setOrderByField":
             $v = split(";:;", $key);
             $mU = new mUserdata();
             if ($v[1] != "default") {
                 $mU->setUserdata("OrderByFieldInHTMLGUI{$v['0']}", $v[1]);
             } else {
                 $mU->delUserdata("OrderByFieldInHTMLGUI{$v['0']}");
             }
             break;
         case "deleteFilters":
             $mU = new mUserdata();
             $mU->delUserdata("filteredCategoriesInHTMLGUI{$key}");
             $mU = new mUserdata();
             $mU->delUserdata("searchFilterInHTMLGUI{$key}");
             #echo "message:'$key'";
             break;
     }
 }
 public function createNew($targetClassName, $targetClassID, $targetFrame)
 {
     $MU = new mUserdata();
     $class = new $targetClassName($targetClassID);
     list($icon, $name) = $class->getDesktopLink();
     $name = str_replace(";", "", $name);
     $MU->setUserdata("{$targetClassName};{$targetClassID};{$targetFrame}", "000;{$icon};{$name}", $_SESSION["applications"]->getActiveApplication() . "DesktopLink");
 }
示例#6
0
 public function toggleTab($plugin, $mode = null)
 {
     $U = new mUserdata();
     $U->addAssocV3("typ", "=", "TTP");
     $t = $U->getUDValueCached("ToggleTab{$plugin}");
     $collapsedTabs = Environment::getS("collapsedTabs", "0") == "1";
     if ($t == null and $collapsedTabs) {
         $t = "small";
     }
     if ($mode != null) {
         $t = $mode;
     }
     if ($t == null or $t == "big") {
         $U->setUserdata("ToggleTab{$plugin}", "small", "TTP");
     } else {
         $U->setUserdata("ToggleTab{$plugin}", "big", "TTP");
     }
 }
示例#7
0
 public static function setUserdataS($name, $wert, $typ = "", $UserID = 0)
 {
     $U = new mUserdata();
     return $U->setUserdata($name, $wert, $typ, $UserID);
 }
 public function GoAway()
 {
     $UD = new mUserdata();
     $UD->setUserdata("noBackupManager", 1);
 }