@@ 110-115 (lines=6) @@ | ||
107 | // Create a db temp config file |
|
108 | if(!$this->makeDBConfigFile()) return new BaseObject(-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 BaseObject(-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 BaseObject(); |
|
220 | } |
|
221 | } |
|
222 | ||
223 | /** |
@@ 1191-1195 (lines=5) @@ | ||
1188 | $oMail->send(); |
|
1189 | // Return message |
|
1190 | $msg = sprintf(Context::getLang('msg_auth_mail_sent'), $member_info->email_address); |
|
1191 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |
|
1192 | { |
|
1193 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', 'dispMemberFindAccount'); |
|
1194 | $this->setRedirectUrl($returnUrl); |
|
1195 | } |
|
1196 | return new BaseObject(0,$msg); |
|
1197 | } |
|
1198 |
@@ 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 | /** |