#19790379 agreement form added

before install, session handeler not use db


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8405 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-05-30 09:31:27 +00:00
parent ae259db337
commit 2cca2a7913
17 changed files with 150 additions and 16 deletions

View file

@ -22,6 +22,26 @@
$this->etc_tmp_config_file = _XE_PATH_.'files/config/tmpEtc.config.php';
}
/**
* @brief LGPL, Enviroment gathering agreement
**/
function procInstallAgreement()
{
$requestVars = Context::gets('lgpl_agree', 'enviroment_gather');
/*$buff = '<?php if(!defined("__ZBXE__")) exit();'."\n";
$buff .= sprintf("\$agreement->%s = '%s';\n", 'lgpl_agree', $requestVars->lgpl_agree);
$buff .= sprintf("\$agreement->%s = '%s';\n", 'enviroment_gather', $requestVars->enviroment_gather);
$buff .= "?>";
$this->db_tmp_config_file = _XE_PATH_.'files/config/tmpDB.config.php';
FileHandler::writeFile(_XE_PATH_.'files/config/agreement', $buff);*/
$_SESSION['lgpl_agree'] = $requestVars->lgpl_agree;
$_SESSION['enviroment_gather'] = $requestVars->enviroment_gather;
return new Object(0, 'success');
}
/**
* @brief division install step... DB Config temp file create
**/