mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-14 16:02:14 +09:00
Issue 2377: Admin Ui Refactoring - Settings - File Box
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11561 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6d447ffc8b
commit
01462039b6
10 changed files with 306 additions and 139 deletions
|
|
@ -812,12 +812,22 @@
|
|||
if($logged_info->is_admin !='Y' && !$logged_info->is_site_admin) return new Object(-1, 'msg_not_permitted');
|
||||
|
||||
$vars = Context::gets('addfile','filter');
|
||||
$attributes = Context::getRequestVars();
|
||||
foreach($attributes as $key => $value){
|
||||
if(!(strpos($key, 'attribute_name') === false)) $vars->comment = $vars->comment.';'.$value;
|
||||
if(!(strpos($key, 'attribute_value') ===false)) $vars->comment = $vars->comment.':'.$value;
|
||||
}
|
||||
$vars->comment = substr($vars->comment, 1);
|
||||
$attributeNames = Context::get('attribute_name');
|
||||
$attributeValues = Context::get('attribute_value');
|
||||
if(is_array($attributeNames) && is_array($attributeValues) && count($attributeNames) == count($attributeValues))
|
||||
{
|
||||
$attributes = array();
|
||||
foreach($attributeNames as $no => $name){
|
||||
if(empty($name))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$attributes[] = sprintf('%s:%s', $name, $attributeValues[$no]);
|
||||
}
|
||||
$attributes = implode(';', $attributes);
|
||||
}
|
||||
|
||||
$vars->comment = $attributes;
|
||||
$module_filebox_srl = Context::get('module_filebox_srl');
|
||||
|
||||
$ext = strtolower(substr(strrchr($vars->addfile['name'],'.'),1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue