26 $args =
new stdClass();
28 $columnList = array(
'file_srl',
'uploaded_filename');
42 for($i=0;$i<$cnt;$i++)
44 $uploaded_filename = $files[$i]->uploaded_filename;
47 $path_info = pathinfo($uploaded_filename);
48 if(!in_array($path_info[
'dirname'], $path)) $path[] = $path_info[
'dirname'];
65 if(!$cart)
return $this->
stop(
'msg_file_cart_is_null');
66 if(!is_array($cart)) $file_srl_list= explode(
'|@|', $cart);
67 else $file_srl_list = $cart;
68 $file_count = count($file_srl_list);
69 if(!$file_count)
return $this->
stop(
'msg_file_cart_is_null');
73 for($i=0;$i<$file_count;$i++)
75 $file_srl = trim($file_srl_list[$i]);
76 if(!$file_srl)
continue;
78 $oFileController->deleteFile($file_srl);
95 $config =
new stdClass();
96 $config->allowed_filesize =
Context::get(
'allowed_filesize');
97 $config->allowed_attach_size =
Context::get(
'allowed_attach_size');
98 $config->allowed_filetypes = str_replace(
' ',
'',
Context::get(
'allowed_filetypes'));
100 $config->allow_outlink_format =
Context::get(
'allow_outlink_format');
101 $config->allow_outlink_site =
Context::get(
'allow_outlink_site');
125 $file_config =
new stdClass;
126 $file_config->allow_outlink =
Context::get(
'allow_outlink');
127 $file_config->allow_outlink_format =
Context::get(
'allow_outlink_format');
128 $file_config->allow_outlink_site =
Context::get(
'allow_outlink_site');
129 $file_config->allowed_filesize =
Context::get(
'allowed_filesize');
130 $file_config->allowed_attach_size =
Context::get(
'allowed_attach_size');
131 $file_config->allowed_filetypes = str_replace(
' ',
'',
Context::get(
'allowed_filetypes'));
133 if(!is_array($download_grant)) $file_config->download_grant = explode(
'|@|',$download_grant);
134 else $file_config->download_grant = $download_grant;
137 $userFileAllowSize = FileHandler::returnbytes($file_config->allowed_filesize.
'M');
138 $userAttachAllowSize = FileHandler::returnbytes($file_config->allowed_attach_size.
'M');
139 $iniPostMaxSize = FileHandler::returnbytes(ini_get(
'post_max_size'));
140 $iniUploadMaxSize = FileHandler::returnbytes(ini_get(
'upload_max_filesize'));
141 $iniMinSzie = min($iniPostMaxSize, $iniUploadMaxSize);
143 if($userFileAllowSize > $iniMinSzie || $userAttachAllowSize > $iniMinSzie)
144 return new BaseObject(-1,
'input size over than config in php.ini');
172 $output = $oFileModel->getFile($file_srl);
177 if($_SESSION[
'file_management'][
$output->file_srl]) unset($_SESSION[
'file_management'][
$output->file_srl]);
178 else $_SESSION[
'file_management'][
$output->file_srl] =
true;
setMessage($message= 'success', $type=NULL)
getController($module_name)
deleteModuleFiles($module_srl)
procFileAdminDeleteChecked()
$module_srl
integer value to represent a run-time instance of Module (XE Module)
procFileAdminInsertConfig()
setRedirectUrl($url= './', $output=NULL)
executeQueryArray($query_id, $args=NULL, $arg_columns=NULL)
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
procFileAdminInsertModuleConfig()