Exemple #1
0
     if (strlen(addslashes(serialize($armt))) <= 2000) {
         SetMenuTypes($armt, $siteList_ID[$j]["ID"]);
     } else {
         $addError = GetMessage("FILEMAN_OPTION_ADD_ERROR_MENU") . '<br />';
     }
     $propstypes = "";
     $arPT = array();
     for ($i = 0; $i < $propstypes_count; $i++) {
         if (strlen(${"propstypes_" . $i . "_type"}) > 0) {
             $arPT[${"propstypes_" . $i . "_type"}] = ${"propstypes_" . $i . "_name"};
         }
     }
     if (strlen($propstypes_new_type) > 0) {
         $arPT[$propstypes_new_type] = $propstypes_new_name;
     }
     if (!CFileMan::SetPropstypes($arPT)) {
         $addError .= GetMessage("FILEMAN_OPTION_ADD_ERROR_PROPS");
     }
     $j = 0;
     while ($j < count($siteList_ID)) {
         COption::RemoveOption($module_id, "menutypes", $siteList_ID[$j]["ID"]);
         COption::RemoveOption($module_id, "propstypes", $siteList_ID[$j]["ID"]);
         COption::RemoveOption($module_id, "num_menu_param", $siteList_ID[$j]["ID"]);
         $j++;
     }
 }
 // Search
 $search_max_open_file_size = intVal($_POST['search_max_open_file_size']);
 if ($search_max_open_file_size <= 0) {
     $search_max_open_file_size = 1024;
 }