diff --git a/modules/communication/communication.controller.php b/modules/communication/communication.controller.php index e440cfda9..2c876b4a8 100644 --- a/modules/communication/communication.controller.php +++ b/modules/communication/communication.controller.php @@ -83,8 +83,11 @@ if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_sended); closePopupScript(); + htmlFooter(); + Context::close(); exit; } return $output; @@ -266,8 +269,11 @@ if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_registed); closePopupScript(); + htmlFooter(); + Context::close(); exit; } } @@ -374,8 +380,11 @@ { if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->fail_to_registed); closePopupScript(); + htmlFooter(); + Context::close(); exit; } else return $output; @@ -384,9 +393,12 @@ { if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_registed); reload(true); closePopupScript(); + htmlFooter(); + Context::close(); exit; } else $this->setMessage($msg_code); diff --git a/modules/editor/editor.admin.controller.php b/modules/editor/editor.admin.controller.php index f0f906958..3de0f68b0 100644 --- a/modules/editor/editor.admin.controller.php +++ b/modules/editor/editor.admin.controller.php @@ -106,9 +106,12 @@ $this->setMessage('success_updated'); if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_updated); reload(true); closePopupScript(); + htmlFooter(); + Context::close(); exit; } } diff --git a/modules/install/install.view.php b/modules/install/install.view.php index 8056b6927..7393f3931 100644 --- a/modules/install/install.view.php +++ b/modules/install/install.view.php @@ -37,6 +37,7 @@ $oInstallController = &getController('install'); $oInstallController->procInstall(); header("location: ./"); + Context::close(); exit; } } diff --git a/modules/member/member.admin.controller.php b/modules/member/member.admin.controller.php index 612a4ee36..d7dd291bd 100644 --- a/modules/member/member.admin.controller.php +++ b/modules/member/member.admin.controller.php @@ -587,9 +587,12 @@ if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_updated); reload(true); closePopupScript(); + htmlFooter(); + Context::close(); exit; } } diff --git a/modules/module/module.admin.controller.php b/modules/module/module.admin.controller.php index a7ce562c2..84e0a6f77 100644 --- a/modules/module/module.admin.controller.php +++ b/modules/module/module.admin.controller.php @@ -144,9 +144,12 @@ $this->setMessage('success_registed'); if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_registed); reload(true); closePopupScript(); + htmlFooter(); + Context::close(); exit; } } @@ -347,8 +350,11 @@ $this->setMessage('success_registed'); if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_registed); closePopupScript(); + htmlFooter(); + Context::close(); exit; } } @@ -417,8 +423,11 @@ $this->setMessage('success_registed'); if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_registed); closePopupScript(); + htmlFooter(); + Context::close(); exit; } } diff --git a/modules/trackback/trackback.controller.php b/modules/trackback/trackback.controller.php index 89d5433c2..63b82d146 100644 --- a/modules/trackback/trackback.controller.php +++ b/modules/trackback/trackback.controller.php @@ -38,9 +38,12 @@ $output = $this->sendTrackback($oDocument, $trackback_url, $charset); if($output->toBool() && !in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { global $lang; + htmlHeader(); alertScript($lang->success_registed); reload(true); closePopupScript(); + htmlFooter(); + Context::close(); exit; } return $output;