Index: branches/RC/core/units/admin/admin_config.php
===================================================================
diff -u -r8929 -r9639
--- branches/RC/core/units/admin/admin_config.php (.../admin_config.php) (revision 8929)
+++ branches/RC/core/units/admin/admin_config.php (.../admin_config.php) (revision 9639)
@@ -2,6 +2,7 @@
$config = Array(
'Prefix' => 'adm',
+ 'ItemClass' => Array('class' => 'kDBItem','file'=>'','build_event'=>'OnItemBuild'),
'EventHandlerClass' => Array('class' => 'AdminEventsHandler', 'file' => 'admin_events_handler.php', 'build_event' => 'OnBuild'),
'TagProcessorClass' => Array('class' => 'AdminTagProcessor', 'file' => 'admin_tag_processor.php', 'build_event' => 'OnBuild'),
@@ -23,6 +24,8 @@
'no_permissions' => Array('format' => '!la_title_NoPermissions!'),
'column_picker' => Array('format' => '!la_title_ColumnPicker!'),
+ 'csv_export' => Array('format' => '!la_title_CSVExport!'),
+ 'csv_import' => Array('format' => '!la_title_CSVImport!'),
),
@@ -51,6 +54,18 @@
),
),
+ 'Fields' => Array(), // we need empty array because kernel doesn't use virtual fields else
+ 'VirtualFields' => Array (
+ 'ImportFile' => Array(
+ 'type'=>'string', 'formatter'=>'kUploadFormatter',
+ 'max_size'=>MAX_UPLOAD_SIZE, // in Bytes !
+ 'file_types'=>'*.csv', 'files_description'=>'!la_CSVFiles!',
+ 'upload_dir'=>'/system/import/', // relative to project's home
+ 'multiple'=>false, // false or max number of files - will be stored as serialized array of paths
+ 'direct_links'=>false, // use direct file urls or send files through wrapper (requires mod_mime_magic)
+ 'default' => null,
+ ),
+ ),
);
?>
\ No newline at end of file
Index: branches/RC/core/units/general/inp_ses_storage.php
===================================================================
diff -u -r8929 -r9639
--- branches/RC/core/units/general/inp_ses_storage.php (.../inp_ses_storage.php) (revision 8929)
+++ branches/RC/core/units/general/inp_ses_storage.php (.../inp_ses_storage.php) (revision 9639)
@@ -42,6 +42,17 @@
$this->SetField('GroupList', $group_list);
}
}
+
+ function Destroy()
+ {
+ $this->Storage->DeleteSession($this);
+ $this->Storage->DeleteEditTables();
+ $this->Data =& new Params();
+ $this->SID = '';
+ if ($this->CookiesEnabled) $this->SetSessionCookie(); //will remove the cookie due to value (sid) is empty
+ $this->SetSession(); //will create a new session
+ }
+
}
class InpSessionStorage extends SessionStorage {
Index: branches/RC/core/admin_templates/index.tpl
===================================================================
diff -u -r9239 -r9639
--- branches/RC/core/admin_templates/index.tpl (.../index.tpl) (revision 9239)
+++ branches/RC/core/admin_templates/index.tpl (.../index.tpl) (revision 9639)
@@ -31,7 +31,7 @@
" name="head" scrolling="no" noresize="noresize">
-