| @@ 110-115 (lines=6) @@ | ||
| 107 | // Create a db temp config file |
|
| 108 | if(!$this->makeDBConfigFile()) return new Object(-1, 'msg_install_failed'); |
|
| 109 | ||
| 110 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |
|
| 111 | { |
|
| 112 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'act', 'dispInstallConfigForm'); |
|
| 113 | header('location:'.$returnUrl); |
|
| 114 | return; |
|
| 115 | } |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| @@ 130-135 (lines=6) @@ | ||
| 127 | // Create a db temp config file |
|
| 128 | if(!$this->makeEtcConfigFile($config_info)) return new Object(-1, 'msg_install_failed'); |
|
| 129 | ||
| 130 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |
|
| 131 | { |
|
| 132 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'act', 'dispInstallManagerForm'); |
|
| 133 | header('location:'.$returnUrl); |
|
| 134 | return; |
|
| 135 | } |
|
| 136 | } |
|
| 137 | ||
| 138 | /** |
|
| @@ 215-220 (lines=6) @@ | ||
| 212 | ||
| 213 | unset($_SESSION['use_rewrite']); |
|
| 214 | ||
| 215 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |
|
| 216 | { |
|
| 217 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl(''); |
|
| 218 | header('location:'.$returnUrl); |
|
| 219 | return new Object(); |
|
| 220 | } |
|
| 221 | } |
|
| 222 | ||
| 223 | /** |
|
| @@ 154-159 (lines=6) @@ | ||
| 151 | } |
|
| 152 | ||
| 153 | $this->setMessage('success_updated'); |
|
| 154 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |
|
| 155 | { |
|
| 156 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispPointAdminModuleConfig'); |
|
| 157 | header('location:'.$returnUrl); |
|
| 158 | return; |
|
| 159 | } |
|
| 160 | } |
|
| 161 | ||
| 162 | /** |
|
| @@ 1091-1095 (lines=5) @@ | ||
| 1088 | $oMail->send(); |
|
| 1089 | // Return message |
|
| 1090 | $msg = sprintf(Context::getLang('msg_auth_mail_sent'), $member_info->email_address); |
|
| 1091 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |
|
| 1092 | { |
|
| 1093 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', 'dispMemberFindAccount'); |
|
| 1094 | $this->setRedirectUrl($returnUrl); |
|
| 1095 | } |
|
| 1096 | return new Object(0,$msg); |
|
| 1097 | } |
|
| 1098 | ||