Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony.Suerte
iwl-live
Commits
ed9a4204
Commit
ed9a4204
authored
Jul 21, 2021
by
Anthony.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Admin User Exception Handler
parent
4d57868a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
25 deletions
+29
-25
controller.php
system/logic/admin_user/controller.php
+29
-25
No files found.
system/logic/admin_user/controller.php
View file @
ed9a4204
...
...
@@ -27,31 +27,35 @@ class ControlAdminUser extends LogicAdminUser {
exit
();
});
// アクション実行
$this
->
logic
();
if
(
$this
->
getType
()
==
TYPE_EXPORT_ADMIN_FAIL_LIST
)
{
header
(
'Content-Type: application/octet-stream; charset=UTF-8'
);
header
(
'Content-Disposition: attachment; filename='
.
$this
->
getFailID
()
.
'_fail.csv'
);
header
(
'Content-Transfer-Encoding: binary'
);
// 対象ファイルを出力する。
readfile
(
SYSTEM_DOCUMENT_ACCOUNT
.
'Failed_Admin_Import'
.
DIRECTORY_SEPARATOR
.
$this
->
getFailID
()
.
'_fail.csv'
);
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_IMPORT_INPUT
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_IMPORT_INPUT_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_IMPORT_CONFIRM
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_IMPORT_CONFIRM_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_IMPORT_FAIL_LIST
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_IMPORT_FAIL_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_EDIT_INPUT
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_EDIT_INPUT_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_DETAILS
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_DETAILS_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_INPUT
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_INPUT_PATH'
,
$this
->
dispHTML
()));
}
else
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_LIST_PATH'
,
$this
->
dispHTML
()));
}
try
{
// アクション実行
$this
->
logic
();
if
(
$this
->
getType
()
==
TYPE_EXPORT_ADMIN_FAIL_LIST
)
{
header
(
'Content-Type: application/octet-stream; charset=UTF-8'
);
header
(
'Content-Disposition: attachment; filename='
.
$this
->
getFailID
()
.
'_fail.csv'
);
header
(
'Content-Transfer-Encoding: binary'
);
// 対象ファイルを出力する。
readfile
(
SYSTEM_DOCUMENT_ACCOUNT
.
'Failed_Admin_Import'
.
DIRECTORY_SEPARATOR
.
$this
->
getFailID
()
.
'_fail.csv'
);
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_IMPORT_INPUT
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_IMPORT_INPUT_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_IMPORT_CONFIRM
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_IMPORT_CONFIRM_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_IMPORT_FAIL_LIST
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_IMPORT_FAIL_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_EDIT_INPUT
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_EDIT_INPUT_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_DETAILS
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_DETAILS_PATH'
,
$this
->
dispHTML
()));
}
elseif
(
$this
->
getType
()
==
TYPE_ADMIN_USER_INPUT
)
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_INPUT_PATH'
,
$this
->
dispHTML
()));
}
else
{
require_once
(
$this
->
getSystemHTML
(
'TEMPLATE_ADMIN_USER_LIST_PATH'
,
$this
->
dispHTML
()));
}
}
catch
(
Exception
$ex
){
header
(
"Location: /"
);
}
}
}
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment