Enable PHP execution of external document if template parsing is enabled

This commit is contained in:
Kijin Sung 2022-03-15 22:31:49 +09:00
parent 09abdfa88a
commit e8eece5730
2 changed files with 14 additions and 0 deletions

View file

@ -30,6 +30,10 @@ class pageAdminController extends page
$args->mpath = (!$args->mpath) ? '' : $args->mpath;
$args->opage_proc_php = $args->opage_proc_php ?? 'N';
$args->opage_proc_tpl = $args->opage_proc_tpl ?? 'N';
if ($args->opage_proc_tpl === 'Y')
{
$args->opage_proc_php = 'Y';
}
unset($args->page_name);
if($args->use_mobile != 'Y') $args->use_mobile = '';

View file

@ -121,4 +121,14 @@ function doCartSetup(url) {
jQuery(function($){
$('#pageBtnArea').delay(1000).show(1);
$('#opage_proc_php').on('change', function() {
if (!$(this).prop('checked')) {
$('#opage_proc_tpl').prop('checked', false);
}
});
$('#opage_proc_tpl').on('change', function() {
if ($(this).prop('checked')) {
$('#opage_proc_php').prop('checked', true);
}
});
});