mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
issue 72 Sending server environment information after agreement of xe admin user.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8581 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cb13f541e8
commit
e0c298d958
7 changed files with 104 additions and 13 deletions
|
|
@ -29,11 +29,14 @@
|
|||
{
|
||||
global $lang;
|
||||
$requestVars = Context::gets('lgpl_agree', 'enviroment_gather');
|
||||
if($requestVars->lgpl_agree != 'on')
|
||||
if($requestVars->lgpl_agree != 'Y') {
|
||||
return new Object('-1', $lang->msg_license_agreement_alert);
|
||||
}
|
||||
|
||||
$_SESSION['lgpl_agree'] = $requestVars->lgpl_agree;
|
||||
$_SESSION['enviroment_gather'] = $requestVars->enviroment_gather;
|
||||
if($requestVars->enviroment_gather=='Y') {
|
||||
FileHandler::writeFile('./files/env/install','1');
|
||||
}
|
||||
|
||||
$url = getNotEncodedUrl('', 'act', 'dispInstallCheckEnv');
|
||||
header('location:'.$url);
|
||||
|
|
@ -183,6 +186,12 @@
|
|||
// Display a message that installation is completed
|
||||
$this->setMessage('msg_install_completed');
|
||||
|
||||
if($_SESSION['enviroment_gather'] == 'Y'){
|
||||
$oAdminAdminController = &getAdminController('admin');
|
||||
$oAdminAdminController->_sendServerEnv();
|
||||
unset($_SESSION['enviroment_gather']);
|
||||
}
|
||||
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('');
|
||||
header('location:'.$returnUrl);
|
||||
|
|
@ -517,4 +526,3 @@
|
|||
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue