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:
flyskyko 2012-10-24 06:38:30 +00:00
parent 85bd090b7e
commit 3accbbd2d2

View file

@ -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);
} }
} }
?> ?>