This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/install/core/actions/step1.php
T
Taras Machyshyn 50b485d51c installer
2014-03-04 17:43:52 +02:00

23 lines
523 B
PHP

<?php
$fields = array(
'license-agree' => array(
'default' => '0',
),
);
foreach ($fields as $fieldName => $field) {
if (isset($_SESSION['install'][$fieldName])) {
$fields[$fieldName]['value'] = $_SESSION['install'][$fieldName];
}
else {
$fields[$fieldName]['value'] = (isset($fields[$fieldName]['default']))? $fields[$fieldName]['default'] : '';
}
}
$smarty->assign('fields', $fields);
if (file_exists("LICENSE.txt")) {
$license = file_get_contents('LICENSE.txt');
$smarty->assign('license', $license);
}