Ejemplo n.º 1
0
         // Special handling for links
         if ($propertyInfo[0]['TYPE'] == 'LINK') {
             $value = trim(prettifyUrl($value));
             $result = checkLinkInternalExternal($value);
             if ($result['TYPE'] != 'external') {
                 $value = createSpecialURLfromShortURL($value);
             }
         }
         // Special handling for textareas
         if ($propertyInfo[0]['TYPE'] == 'TEXTAREA') {
             $value = str_replace('\\n', "\n", $value);
         }
         // Special handling for wysiwyg
         if ($propertyInfo[0]['TYPE'] == 'RICHTEXT') {
             $value = str_replace('\\n', "\n", $value);
             $value = convertShortURLsToSpecialURLs($value);
         }
         // Set the new property
         if ($entrymaskMgr->setName($data[0], $value) === false) {
             $koala->alert($itext['TXT_ERROR_ACCESS_DENIED']);
         } else {
             $value = str_replace("\n", '\\n', $value);
             $jsQueue->add($data[0], HISTORYTYPE_ENTRYMASK, 'OBJECT_CHANGE', sGuiUS(), 'entrymask', NULL, NULL, $this->reponsedata[$property]->yg_id, 'name', $value);
             $jsQueue->add($data[0], HISTORYTYPE_ENTRYMASK, 'OBJECT_CHANGE', sGuiUS(), 'page', NULL, NULL, $this->reponsedata[$property]->yg_id, 'name', $value);
             // Special case for name
             $jsQueue->add($data[0], HISTORYTYPE_ENTRYMASK, 'REFRESH_WINDOW', sGuiUS(), 'name');
             $jsQueue->add($data[0], HISTORYTYPE_PAGE, 'REFRESH_WINDOW', sGuiUS(), 'name');
         }
         break;
 }
 break;
Ejemplo n.º 2
0
     $cb->setFormfield($linkid, $param01, $param02, $param03, $param04, $param05, $param06, $param07, $param08);
     if ($controlFormfields[$c]['VALUE01'] != $param01) {
         $history->add($historyType, NULL, $param01, 'TXT_COMMON_H_COEDIT_FRMFLD_1', $data['formfieldid'], $currentContentarea);
     }
 }
 // Textarea
 if ($formfield == 2) {
     $param01 = convertShortURLsToSpecialURLs($param01);
     $cb->setFormfield($linkid, $param01, $param02, $param03, $param04, $param05, $param06, $param07, $param08);
     if ($controlFormfields[$c]['VALUE01'] != $param01) {
         $history->add($historyType, NULL, $param01, 'TXT_COMMON_H_COEDIT_FRMFLD_2', $data['formfieldid'], $currentContentarea);
     }
 }
 // WYSIWYG
 if ($formfield == 3) {
     $param01 = convertShortURLsToSpecialURLs($param01);
     $cb->setFormfield($linkid, $param01, $param02, $param03, $param04, $param05, $param06, $param07, $param08);
     $reftracker->updateReferencesFromHtml(REFTYPE_FORMFIELD, $linkid, $cbInfo['VERSION'], $param01 . $param02 . $param03 . $param04 . $param05 . $param06 . $param07 . $param08);
     if ($controlFormfields[$c]["VALUE01"] != $param01) {
         $history->add($historyType, NULL, NULL, 'TXT_COMMON_H_COEDIT_FRMFLD_3', $data['formfieldid'], $currentContentarea);
     }
 }
 // Checkbox
 if ($formfield == 4) {
     $cb->setFormfield($linkid, $param01, $param02, $param03, $param04, $param05, $param06, $param07, $param08);
     if ($controlFormfields[$c]['VALUE01'] != $param01) {
         if ($param01 > 0) {
             $history->add($historyType, NULL, NULL, 'TXT_COMMON_H_COEDIT_FRMFLD_4_ON', $data['formfieldid'], $currentContentarea);
         } else {
             $history->add($historyType, NULL, NULL, 'TXT_COMMON_H_COEDIT_FRMFLD_4_OFF', $data['formfieldid'], $currentContentarea);
         }