|
@@ 811-813 (lines=3) @@
|
| 808 |
|
$log_action = implode('_', [$log_action_links, $log_action_cats]); |
| 809 |
|
|
| 810 |
|
switch ($log_action) { |
| 811 |
|
case 'MOVE_LINKS_MOVE_CATS': |
| 812 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_LINKS_MOVE_CATS', time(), [$links_to_name, $subcats_to_name, $this->cat_data['cat_name']]); |
| 813 |
|
break; |
| 814 |
|
|
| 815 |
|
case 'MOVE_LINKS_CATS': |
| 816 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_LINKS_CATS', time(), [$links_to_name, $this->cat_data['cat_name']]); |
|
@@ 815-817 (lines=3) @@
|
| 812 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_LINKS_MOVE_CATS', time(), [$links_to_name, $subcats_to_name, $this->cat_data['cat_name']]); |
| 813 |
|
break; |
| 814 |
|
|
| 815 |
|
case 'MOVE_LINKS_CATS': |
| 816 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_LINKS_CATS', time(), [$links_to_name, $this->cat_data['cat_name']]); |
| 817 |
|
break; |
| 818 |
|
|
| 819 |
|
case 'LINKS_MOVE_CATS': |
| 820 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS_MOVE_CATS', time(), [$subcats_to_name, $this->cat_data['cat_name']]); |
|
@@ 819-821 (lines=3) @@
|
| 816 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_LINKS_CATS', time(), [$links_to_name, $this->cat_data['cat_name']]); |
| 817 |
|
break; |
| 818 |
|
|
| 819 |
|
case 'LINKS_MOVE_CATS': |
| 820 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS_MOVE_CATS', time(), [$subcats_to_name, $this->cat_data['cat_name']]); |
| 821 |
|
break; |
| 822 |
|
|
| 823 |
|
case '_MOVE_CATS': |
| 824 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_CATS', time(), [$subcats_to_name, $this->cat_data['cat_name']]); |
|
@@ 823-825 (lines=3) @@
|
| 820 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS_MOVE_CATS', time(), [$subcats_to_name, $this->cat_data['cat_name']]); |
| 821 |
|
break; |
| 822 |
|
|
| 823 |
|
case '_MOVE_CATS': |
| 824 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_CATS', time(), [$subcats_to_name, $this->cat_data['cat_name']]); |
| 825 |
|
break; |
| 826 |
|
|
| 827 |
|
case 'MOVE_LINKS_': |
| 828 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_LINKS', time(), [$links_to_name, $this->cat_data['cat_name']]); |
|
@@ 827-829 (lines=3) @@
|
| 824 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_CATS', time(), [$subcats_to_name, $this->cat_data['cat_name']]); |
| 825 |
|
break; |
| 826 |
|
|
| 827 |
|
case 'MOVE_LINKS_': |
| 828 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_LINKS', time(), [$links_to_name, $this->cat_data['cat_name']]); |
| 829 |
|
break; |
| 830 |
|
|
| 831 |
|
case 'LINKS_CATS': |
| 832 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS_CATS', time(), [$this->cat_data['cat_name']]); |
|
@@ 831-833 (lines=3) @@
|
| 828 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_MOVE_LINKS', time(), [$links_to_name, $this->cat_data['cat_name']]); |
| 829 |
|
break; |
| 830 |
|
|
| 831 |
|
case 'LINKS_CATS': |
| 832 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS_CATS', time(), [$this->cat_data['cat_name']]); |
| 833 |
|
break; |
| 834 |
|
|
| 835 |
|
case '_CATS': |
| 836 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_CATS', time(), [$this->cat_data['cat_name']]); |
|
@@ 835-837 (lines=3) @@
|
| 832 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS_CATS', time(), [$this->cat_data['cat_name']]); |
| 833 |
|
break; |
| 834 |
|
|
| 835 |
|
case '_CATS': |
| 836 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_CATS', time(), [$this->cat_data['cat_name']]); |
| 837 |
|
break; |
| 838 |
|
|
| 839 |
|
case 'LINKS_': |
| 840 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS', time(), [$this->cat_data['cat_name']]); |
|
@@ 839-841 (lines=3) @@
|
| 836 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_CATS', time(), [$this->cat_data['cat_name']]); |
| 837 |
|
break; |
| 838 |
|
|
| 839 |
|
case 'LINKS_': |
| 840 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS', time(), [$this->cat_data['cat_name']]); |
| 841 |
|
break; |
| 842 |
|
|
| 843 |
|
default: |
| 844 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_CAT', time(), [$this->cat_data['cat_name']]); |
|
@@ 843-845 (lines=3) @@
|
| 840 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_LINKS', time(), [$this->cat_data['cat_name']]); |
| 841 |
|
break; |
| 842 |
|
|
| 843 |
|
default: |
| 844 |
|
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_DIR_CAT_DEL_CAT', time(), [$this->cat_data['cat_name']]); |
| 845 |
|
break; |
| 846 |
|
} |
| 847 |
|
|
| 848 |
|
return $this->errors; |