-
-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathactivity.php
More file actions
172 lines (171 loc) · 7.89 KB
/
activity.php
File metadata and controls
172 lines (171 loc) · 7.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
/**
* Contains all of the translation strings for different activity log
* events. These should be keyed by the value in front of the colon (:)
* in the event name. If there is no colon present, they should live at
* the top level.
*/
return [
'auth' => [
'fail' => 'Failed log in',
'success' => 'Logged in',
'password-reset' => 'Password reset',
'checkpoint' => 'Two-factor authentication requested',
'recovery-token' => 'Used two-factor recovery token',
'token' => 'Solved two-factor challenge',
'ip-blocked' => 'Blocked request from unlisted IP address for <b>:identifier</b>',
'sftp' => [
'fail' => 'Failed SFTP log in',
],
],
'user' => [
'account' => [
'username-changed' => 'Changed username from <b>:old</b> to <b>:new</b>',
'email-changed' => 'Changed email from <b>:old</b> to <b>:new</b>',
'password-changed' => 'Changed password',
],
'api-key' => [
'create' => 'Created new API key <b>:identifier</b>',
'delete' => 'Deleted API key <b>:identifier</b>',
],
'ssh-key' => [
'create' => 'Added SSH key <b>:fingerprint</b> to account',
'delete' => 'Removed SSH key <b>:fingerprint</b> from account',
],
'two-factor' => [
'create' => 'Enabled two-factor auth',
'delete' => 'Disabled two-factor auth',
],
],
'server' => [
'console' => [
'command' => 'Executed "<b>:command</b>" on the server',
],
'power' => [
'start' => 'Started the server',
'stop' => 'Stopped the server',
'restart' => 'Restarted the server',
'kill' => 'Killed the server process',
],
'backup' => [
'download' => 'Downloaded the <b>:name</b> backup',
'delete' => 'Deleted the <b>:name</b> backup',
'restore' => 'Restored the <b>:name</b> backup (deleted files: <b>:truncate</b>)',
'restore-complete' => 'Completed restoration of the <b>:name</b> backup',
'restore-failed' => 'Failed to complete restoration of the <b>:name</b> backup',
'start' => 'Started a new backup <b>:name</b>',
'complete' => 'Marked the <b>:name</b> backup as complete',
'fail' => 'Marked the <b>:name</b> backup as failed',
'lock' => 'Locked the <b>:name</b> backup',
'unlock' => 'Unlocked the <b>:name</b> backup',
'rename' => 'Renamed backup from "<b>:old_name</b>" to "<b>:new_name</b>"',
],
'database' => [
'create' => 'Created new database <b>:name</b>',
'rotate-password' => 'Password rotated for database <b>:name</b>',
'delete' => 'Deleted database <b>:name</b>',
],
'file' => [
'compress' => 'Compressed <b>:directory:files</b>|Compressed <b>:count</b> files in <b>:directory</b>',
'read' => 'Viewed the contents of <b>:file</b>',
'copy' => 'Created a copy of <b>:file</b>',
'create-directory' => 'Created directory <b>:directory:name</b>',
'decompress' => 'Decompressed <b>:file</b> in <b>:directory</b>',
'delete' => 'Deleted <b>:directory:files</b>|Deleted <b>:count</b> files in <b>:directory</b>',
'download' => 'Downloaded <b>:file</b>',
'pull' => 'Downloaded a remote file from <b>:url</b> to <b>:directory</b>',
'rename' => 'Moved/ Renamed <b>:from</b> to <b>:to</b>|Moved/ Renamed <b>:count</b> files in <b>:directory</b>',
'write' => 'Wrote new content to <b>:file</b>',
'upload' => 'Began a file upload',
'uploaded' => 'Uploaded <b>:directory:file</b>',
],
'sftp' => [
'denied' => 'Blocked SFTP access due to permissions',
'create' => 'Created <b>:files</b>|Created <b>:count</b> new files',
'write' => 'Modified the contents of <b>:files</b>|Modified the contents of <b>:count</b> files',
'delete' => 'Deleted <b>:files</b>|Deleted <b>:count</b> files',
'create-directory' => 'Created the <b>:files</b> directory|Created <b>:count</b> directories',
'rename' => 'Renamed <b>:from</b> to <b>:to</b>|Renamed or moved <b>:count</b> files',
],
'allocation' => [
'create' => 'Added <b>:allocation</b> to the server',
'notes' => 'Updated the notes for <b>:allocation</b> from "<b>:old</b>" to "<b>:new</b>"',
'primary' => 'Set <b>:allocation</b> as the primary server allocation',
'delete' => 'Deleted the <b>:allocation</b> allocation',
],
'schedule' => [
'create' => 'Created the <b>:name</b> schedule',
'update' => 'Updated the <b>:name</b> schedule',
'execute' => 'Manually executed the <b>:name</b> schedule',
'delete' => 'Deleted the <b>:name</b> schedule',
],
'task' => [
'create' => 'Created a new "<b>:action</b>" task for the <b>:name</b> schedule',
'update' => 'Updated the "<b>:action</b>" task for the <b>:name</b> schedule',
'delete' => 'Deleted the "<b>:action</b>" task for the <b>:name</b> schedule',
],
'settings' => [
'rename' => 'Renamed the server from "<b>:old</b>" to "<b>:new</b>"',
'description' => 'Changed the server description from "<b>:old</b>" to "<b>:new</b>"',
'reinstall' => 'Reinstalled server',
],
'startup' => [
'edit' => 'Changed the <b>:variable</b> variable from "<b>:old</b>" to "<b>:new</b>"',
'image' => 'Updated the Docker Image for the server from <b>:old</b> to <b>:new</b>',
'command' => 'Updated the Startup Command for the server from <b>:old</b> to <b>:new</b>',
],
'subuser' => [
'create' => 'Added <b>:email</b> as a subuser',
'update' => 'Updated the subuser permissions for <b>:email</b>',
'delete' => 'Removed <b>:email</b> as a subuser',
],
'crashed' => 'Server crashed',
],
'admin' => [
'user' => [
'create' => 'Created user <b>:username</b>',
'update' => 'Updated user <b>:username</b>',
'delete' => 'Deleted user <b>:username</b>',
],
'server' => [
'create' => 'Created server <b>:name</b>',
'update' => 'Updated server <b>:name</b>',
'delete' => 'Deleted server <b>:name</b>',
],
'node' => [
'create' => 'Created node <b>:name</b>',
'update' => 'Updated node <b>:name</b>',
'delete' => 'Deleted node <b>:name</b>',
],
'egg' => [
'create' => 'Created egg <b>:name</b>',
'update' => 'Updated egg <b>:name</b>',
'delete' => 'Deleted egg <b>:name</b>',
],
'role' => [
'create' => 'Created role <b>:name</b>',
'update' => 'Updated role <b>:name</b>',
'delete' => 'Deleted role <b>:name</b>',
],
'database-host' => [
'create' => 'Created database host <b>:name</b>',
'update' => 'Updated database host <b>:name</b>',
'delete' => 'Deleted database host <b>:name</b>',
],
'mount' => [
'create' => 'Created mount <b>:name</b>',
'update' => 'Updated mount <b>:name</b>',
'delete' => 'Deleted mount <b>:name</b>',
],
'webhook-configuration' => [
'create' => 'Created webhook <b>:description</b>',
'update' => 'Updated webhook <b>:description</b>',
'delete' => 'Deleted webhook <b>:description</b>',
],
'api-key' => [
'create' => 'Created API key',
'update' => 'Updated API key',
'delete' => 'Deleted API key',
],
],
];