issue 207, added common libs

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9720 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-10-25 01:50:53 +00:00
parent 40782981e8
commit 9dcbf6a9c6
9 changed files with 345 additions and 14 deletions

View file

@ -351,13 +351,17 @@
$this->setMessage('success_registed');
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
global $lang;
htmlHeader();
alertScript($lang->success_registed);
closePopupScript();
htmlFooter();
Context::close();
exit;
if (Context::get('success_return_url')) {
$this->setRedirectUrl(Context::get('success_return_url'));
}else{
global $lang;
htmlHeader();
alertScript($lang->success_registed);
closePopupScript();
htmlFooter();
Context::close();
exit;
}
}
}
@ -424,13 +428,17 @@
}
$this->setMessage('success_registed');
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
global $lang;
htmlHeader();
alertScript($lang->success_registed);
closePopupScript();
htmlFooter();
Context::close();
exit;
if (Context::get('success_return_url')) {
$this->setRedirectUrl(Context::get('success_return_url'));
}else{
global $lang;
htmlHeader();
alertScript($lang->success_registed);
closePopupScript();
htmlFooter();
Context::close();
exit;
}
}
}