mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
add state for not config. ftp
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11870 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
85bd090b7e
commit
3accbbd2d2
1 changed files with 13 additions and 1 deletions
|
|
@ -161,7 +161,19 @@
|
||||||
*/
|
*/
|
||||||
function getAutoinstallAdminIsAuthed()
|
function getAutoinstallAdminIsAuthed()
|
||||||
{
|
{
|
||||||
$this->add('is_authed', (int)isset($_SESSION['ftp_password']));
|
$is_authed = 0;
|
||||||
|
|
||||||
|
$ftp_info = Context::getFTPInfo();
|
||||||
|
if(!$ftp_info->ftp_root_path)
|
||||||
|
{
|
||||||
|
$is_authed = -1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$is_authed = (int)isset($_SESSION['ftp_password']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->add('is_authed', $is_authed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue