attachment
phpfox
0
1
1
module_attachment
120
600
points_attachment
can_attach_on_blog
attachment_limit
delete_own_attachment
delete_user_attachment
item_max_upload_size
'jpg',
'mime_type' => 'image/jpeg',
'is_active' => '1',
'is_image' => '1',
'added' => '1208637306'
),
array(
'extension' => 'jpeg',
'mime_type' => 'image/jpeg',
'is_active' => '1',
'is_image' => '1',
'added' => '1208637306'
),
array(
'extension' => 'gif',
'mime_type' => 'image/gif',
'is_active' => '1',
'is_image' => '1',
'added' => '1208637335'
),
array(
'extension' => 'png',
'mime_type' => 'image/png',
'is_active' => '1',
'is_image' => '1',
'added' => '1212577320'
),
array(
'extension' => 'zip',
'mime_type' => 'image/zip',
'is_active' => '1',
'is_image' => '1',
'added' => '1212577320'
)
);
foreach ($aExtensions as $aExtension)
{
$this->database()->insert(Phpfox::getT('attachment_type'), array(
'extension' => $aExtension['extension'],
'mime_type' => $aExtension['mime_type'],
'is_active' => $aExtension['is_active'],
'is_image' => $aExtension['is_image'],
'added' => $aExtension['added']
)
);
}
]]>