Added new tables to data exports.
This commit is contained in:
parent
a1398fb179
commit
d1fad37022
2 changed files with 6 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
20250327
|
||||
20250327.1
|
||||
|
|
|
@ -42,6 +42,8 @@ function db_to_zip(
|
|||
$selectField = sprintf('INET6_NTOA(%s)', $selectField);
|
||||
elseif($fieldInfo['type'] === 't')
|
||||
$selectField = sprintf('UNIX_TIMESTAMP(%s)', $selectField);
|
||||
elseif($fieldInfo['type'] === 'h')
|
||||
$selectField = sprintf('HEX(%s)', $selectField);
|
||||
|
||||
$fields[] = $selectField;
|
||||
}
|
||||
|
@ -69,7 +71,7 @@ function db_to_zip(
|
|||
++$args;
|
||||
|
||||
if(!$fieldInfo['nullable'] || !$result->isNull($args)) {
|
||||
if($fieldInfo['type'] === 's' || $fieldInfo['type'] === 'a' || $fieldInfo['type'] === 'j') {
|
||||
if($fieldInfo['type'] === 's' || $fieldInfo['type'] === 'a' || $fieldInfo['type'] === 'j' || $fieldInfo['type'] === 'h') {
|
||||
$fieldValue = $result->getString($args);
|
||||
|
||||
if($fieldInfo['type'] === 'j')
|
||||
|
@ -151,6 +153,8 @@ if(isset($_POST['action']) && is_string($_POST['action'])) {
|
|||
$tmpFiles[] = db_to_zip($archive, $userInfo, 'profile_backgrounds', ['user_id:s', 'bg_attach:s', 'bg_blend:i', 'bg_slide:i']);
|
||||
$tmpFiles[] = db_to_zip($archive, $userInfo, 'profile_fields_values', ['field_id:s', 'user_id:s', 'format_id:s', 'field_value:s']);
|
||||
$tmpFiles[] = db_to_zip($archive, $userInfo, 'sessions', ['session_id:s', 'user_id:s', 'session_key:n', 'session_remote_addr_first:a', 'session_remote_addr_last:a:n', 'session_user_agent:s', 'session_country:s', 'session_expires:t', 'session_expires_bump:b', 'session_created:t', 'session_active:t:n']);
|
||||
$tmpFiles[] = db_to_zip($archive, $userInfo, 'storage_tasks', ['task_id:s', 'task_secret:n', 'user_id:s', 'pool_id:s', 'task_state:s', 'task_ip:a', 'task_name:s', 'task_size:i', 'task_type:s', 'task_hash:h', 'task_error:s', 'task_created:t']);
|
||||
$tmpFiles[] = db_to_zip($archive, $userInfo, 'storage_uploads', ['upload_id:s', 'user_id:s', 'pool_id:s', 'upload_secret:s', 'upload_name:s', 'upload_ip:a', 'upload_created:t', 'upload_accessed:t']);
|
||||
$tmpFiles[] = db_to_zip($archive, $userInfo, 'users', ['user_id:s', 'user_name:s', 'user_email:s', 'user_remote_addr_first:a', 'user_remote_addr_last:a', 'user_super:b', 'user_country:s', 'user_colour:i:n', 'user_title:s:n', 'user_display_role_id:s:n', 'user_created:t', 'user_active:t:n', 'user_deleted:t:n']);
|
||||
$tmpFiles[] = db_to_zip($archive, $userInfo, 'users_bans', ['ban_id:s', 'user_id:s', 'mod_id:n', 'ban_severity:i', 'ban_reason_public:s', 'ban_reason_private:s', 'ban_created:t', 'ban_expires:t:n']);
|
||||
$tmpFiles[] = db_to_zip($archive, $userInfo, 'users_birthdates', ['user_id:s', 'birth_year:i:n', 'birth_month:i', 'birth_day:i']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue