30 $config_vars->feed_document_count = (int)$config_vars->feed_document_count;
32 if(!$config_vars->use_total_feed) $alt_message =
'msg_invalid_request';
33 if(!in_array($config_vars->use_total_feed, array(
'Y',
'N'))) $config_vars->open_rss =
'Y';
35 if($config_vars->image || $config_vars->del_image)
37 $image_obj = $config_vars->image;
38 $config_vars->image = $total_config->image;
40 if($config_vars->del_image ==
'Y' || $image_obj)
43 $config_vars->image =
'';
44 $total_config->image =
'';
47 if($image_obj[
'tmp_name'] && is_uploaded_file($image_obj[
'tmp_name']) &&
checkUploadedFile($image_obj[
'tmp_name']))
52 if(!preg_match(
"/\.(jpg|jpeg|gif|png)$/i", $image_obj[
'name'])) $alt_message =
'msg_rss_invalid_image_format';
56 $path =
'./files/attach/images/rss/';
61 $filename = $path.$image_obj[
'name'];
64 if(!move_uploaded_file($image_obj[
'tmp_name'], $filename)) $alt_message =
'msg_error_occured';
67 $config_vars->image = $filename;
73 if(!$config_vars->image && $config_vars->del_image !=
'Y') $config_vars->image = $total_config->image;
77 if(!$alt_message) $alt_message =
'success_updated';
103 $originConfig->image =
'';
119 $openRssList = $config_vars->open_rss;
120 $openTotalFeedList = $config_vars->open_total_feed;
121 $feedDescriptionList = $config_vars->feed_description;
122 $feedCopyrightList = $config_vars->feed_copyright;
123 $targetModuleSrl = $config_vars->target_module_srl;
125 if($targetModuleSrl && !is_array($openRssList))
127 $openRssList = array($targetModuleSrl => $openRssList);
128 $openTotalFeedList = array($targetModuleSrl => $openTotalFeedList);
129 $feedDescriptionList = array($targetModuleSrl => $feedDescriptionList);
130 $feedCopyrightList = array($targetModuleSrl => $feedCopyrightList);
133 if(is_array($openRssList))
139 return new BaseObject(-1,
'msg_invalid_request');
142 if(!in_array($open_rss, array(
'Y',
'H',
'N'))) $open_rss =
'N';
181 $config =
new stdClass;
182 $config->open_rss = $open_rss;
183 $config->open_total_feed = $open_total_feed;
184 if($feed_description !=
'N') { $config->feed_description = $feed_description; }
185 if($feed_copyright !=
'N') { $config->feed_copyright = $feed_copyright; }
setMessage($message= 'success', $type=NULL)
getController($module_name)
$module_srl
integer value to represent a run-time instance of Module (XE Module)
setRedirectUrl($url= './', $output=NULL)