mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
after ftp setup submit, redirect success_return_url
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12160 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
601d6160d7
commit
ae38e3d49b
2 changed files with 5 additions and 2 deletions
|
|
@ -11,6 +11,7 @@
|
|||
<form action="./" id="ftp_form" method="post" enctype="multipart/form-data" class="x_form-horizontal" ruleset="installFtpInfo">
|
||||
<input type="hidden" name="module" value="install" />
|
||||
<input type="hidden" name="act" value="procInstallAdminSaveFTPInfo" />
|
||||
<input type="hidden" name="success_return_url" value="{base64_decode($success_return_url)}" />
|
||||
<section class="section">
|
||||
<h1>{$lang->subtitle_primary}</h1>
|
||||
<div class="x_control-group">
|
||||
|
|
|
|||
|
|
@ -189,8 +189,10 @@
|
|||
$config_file = Context::getFTPConfigFile();
|
||||
FileHandler::WriteFile($config_file, $buff);
|
||||
if($_SESSION['ftp_password']) unset($_SESSION['ftp_password']);
|
||||
$this->setMessage('success_updated');
|
||||
$this->setRedirectUrl(Context::get('error_return_url'));
|
||||
|
||||
$this->setMessage('success_updated');
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAdminConfigFtp');
|
||||
$this->setRedirectUrl($returnUrl);
|
||||
}
|
||||
|
||||
function procInstallAdminConfig(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue