| @@ 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 | /** |
|
| @@ 204-209 (lines=6) @@ | ||
| 201 | ||
| 202 | unset($_SESSION['use_rewrite']); |
|
| 203 | ||
| 204 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |
|
| 205 | { |
|
| 206 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl(''); |
|
| 207 | header('location:'.$returnUrl); |
|
| 208 | return new Object(); |
|
| 209 | } |
|
| 210 | } |
|
| 211 | ||
| 212 | /** |
|
| @@ 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 | /** |
|
| @@ 1068-1072 (lines=5) @@ | ||
| 1065 | $oMail->send(); |
|
| 1066 | // Return message |
|
| 1067 | $msg = sprintf(Context::getLang('msg_auth_mail_sent'), $member_info->email_address); |
|
| 1068 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |
|
| 1069 | { |
|
| 1070 | $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', 'dispMemberFindAccount'); |
|
| 1071 | $this->setRedirectUrl($returnUrl); |
|
| 1072 | } |
|
| 1073 | return new Object(0,$msg); |
|
| 1074 | } |
|
| 1075 | ||