@@ 44-50 (lines=7) @@ | ||
41 | redirect_header('file.php', 5, sprintf(_AM_USERLOG_ERROR, '')); |
|
42 | } |
|
43 | switch ($opentry) { |
|
44 | case 'del': |
|
45 | if ($deleteFiles = $loglogObj->deleteFiles($file)) { |
|
46 | $msgDel = sprintf(_AM_USERLOG_FILE_DELETE_SUCCESS, $deleteFiles) . "<br\>" . implode("<br\>", $loglogObj->getErrors()); |
|
47 | redirect_header('file.php', 5, $msgDel); |
|
48 | } |
|
49 | redirect_header('file.php', 5, sprintf(_AM_USERLOG_ERROR, implode("<br\>", $loglogObj->getErrors()))); |
|
50 | break; |
|
51 | case 'rename': |
|
52 | // only one file. 0 file or more than one file => error |
|
53 | if (1 != $totalFiles) { |
|
@@ 77-83 (lines=7) @@ | ||
74 | } |
|
75 | redirect_header('file.php', 5, sprintf(_AM_USERLOG_ERROR, implode("<br\>", $loglogObj->getErrors()))); |
|
76 | break; |
|
77 | case 'zip': |
|
78 | if ($zipFile = $loglogObj->zipFiles($file, $filename)) { |
|
79 | $msgZip = sprintf(_AM_USERLOG_FILE_ZIP_SUCCESS, $totalFiles, $zipFile) . "<br\>" . implode("<br\>", $loglogObj->getErrors()); |
|
80 | redirect_header('file.php', 5, $msgZip); |
|
81 | } |
|
82 | redirect_header('file.php', 5, sprintf(_AM_USERLOG_ERROR, implode("<br\>", $loglogObj->getErrors()))); |
|
83 | break; |
|
84 | case 'export-csv': |
|
85 | $logsetObj = UserlogSetting::getInstance(); |
|
86 | $headers = $logsetObj->getOptions('', 'title'); |