2010-01-27 08:54:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This file is part of the Froxlor project.
|
|
|
|
* Copyright (c) 2010 the Froxlor Team (see authors).
|
|
|
|
*
|
2022-04-28 18:48:00 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2010-01-27 08:54:31 +00:00
|
|
|
*
|
2022-04-28 18:48:00 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2011-05-04 09:59:20 +00:00
|
|
|
*
|
2022-04-28 18:48:00 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you can also view it online at
|
|
|
|
* https://files.froxlor.org/misc/COPYING.txt
|
|
|
|
*
|
|
|
|
* @copyright the authors
|
|
|
|
* @author Froxlor team <team@froxlor.org>
|
|
|
|
* @license https://files.froxlor.org/misc/COPYING.txt GPLv2
|
2010-01-27 08:54:31 +00:00
|
|
|
*/
|
|
|
|
|
2022-02-20 17:00:44 +00:00
|
|
|
const AREA = 'admin';
|
|
|
|
require __DIR__ . '/lib/init.php';
|
|
|
|
|
2022-02-28 09:51:19 +00:00
|
|
|
use Froxlor\Api\Commands\FpmDaemons;
|
|
|
|
use Froxlor\Api\Commands\PhpSettings;
|
2022-02-20 17:00:44 +00:00
|
|
|
use Froxlor\Database\Database;
|
2022-04-28 18:48:00 +00:00
|
|
|
use Froxlor\Froxlor;
|
|
|
|
use Froxlor\UI\Collection;
|
|
|
|
use Froxlor\UI\HTML;
|
|
|
|
use Froxlor\UI\Listing;
|
2022-02-28 09:51:19 +00:00
|
|
|
use Froxlor\UI\Panel\UI;
|
2022-02-20 17:00:44 +00:00
|
|
|
use Froxlor\UI\Request;
|
2022-04-28 18:48:00 +00:00
|
|
|
use Froxlor\UI\Response;
|
2018-12-18 12:45:05 +00:00
|
|
|
|
2022-12-30 20:43:27 +00:00
|
|
|
$id = (int)Request::any('id');
|
2010-01-27 08:54:31 +00:00
|
|
|
|
2013-04-14 09:10:51 +00:00
|
|
|
if ($page == 'overview') {
|
|
|
|
if ($action == '') {
|
2018-02-19 12:36:15 +00:00
|
|
|
try {
|
2022-02-28 09:51:19 +00:00
|
|
|
$phpconf_list_data = include_once dirname(__FILE__) . '/lib/tablelisting/admin/tablelisting.phpconfigs.php';
|
2022-04-28 18:48:00 +00:00
|
|
|
$collection = (new Collection(PhpSettings::class, $userinfo, ['with_subdomains' => true]))
|
2022-09-30 07:44:11 +00:00
|
|
|
->withPagination($phpconf_list_data['phpconf_list']['columns'], $phpconf_list_data['phpconf_list']['default_sorting']);
|
2018-02-19 12:36:15 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-02-19 12:36:15 +00:00
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-03-18 11:53:34 +00:00
|
|
|
UI::view('user/table.html.twig', [
|
2022-04-28 18:48:00 +00:00
|
|
|
'listing' => Listing::format($collection, $phpconf_list_data, 'phpconf_list'),
|
|
|
|
'actions_links' => (bool)$userinfo['change_serversettings'] ? [
|
|
|
|
[
|
|
|
|
'href' => $linker->getLink(['section' => 'phpsettings', 'page' => $page, 'action' => 'add']),
|
|
|
|
'label' => lng('admin.phpsettings.addnew')
|
|
|
|
]
|
|
|
|
] : []
|
2022-02-28 09:51:19 +00:00
|
|
|
]);
|
2010-01-27 08:54:31 +00:00
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2013-11-02 11:07:34 +00:00
|
|
|
if ($action == 'add') {
|
2022-04-28 18:48:00 +00:00
|
|
|
if ((int)$userinfo['change_serversettings'] == 1) {
|
2018-01-07 13:55:25 +00:00
|
|
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
2018-02-19 12:36:15 +00:00
|
|
|
try {
|
2018-12-22 07:15:31 +00:00
|
|
|
PhpSettings::getLocal($userinfo, $_POST)->add();
|
2018-02-19 12:36:15 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2010-01-27 08:54:31 +00:00
|
|
|
}
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::redirectTo($filename, [
|
2022-03-14 21:51:59 +00:00
|
|
|
'page' => $page
|
2022-04-28 18:48:00 +00:00
|
|
|
]);
|
2013-11-02 11:07:34 +00:00
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
if (file_exists(Froxlor::getInstallDir() . '/templates/misc/php/default.ini.php')) {
|
|
|
|
include Froxlor::getInstallDir() . '/templates/misc/php/default.ini.php';
|
2020-01-31 12:17:49 +00:00
|
|
|
$result = [
|
2022-02-28 09:51:19 +00:00
|
|
|
'phpsettings' => $phpini
|
2020-01-31 12:17:49 +00:00
|
|
|
];
|
|
|
|
} else {
|
|
|
|
// use first php-config as fallback
|
|
|
|
$result_stmt = Database::query("SELECT * FROM `" . TABLE_PANEL_PHPCONFIGS . "` WHERE `id` = 1");
|
|
|
|
$result = $result_stmt->fetch(PDO::FETCH_ASSOC);
|
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-02-28 09:51:19 +00:00
|
|
|
$fpmconfigs = [];
|
2018-01-07 13:55:25 +00:00
|
|
|
$configs = Database::query("SELECT * FROM `" . TABLE_PANEL_FPMDAEMONS . "` ORDER BY `description` ASC");
|
|
|
|
while ($row = $configs->fetch(PDO::FETCH_ASSOC)) {
|
2022-04-28 18:48:00 +00:00
|
|
|
$fpmconfigs[$row['id']] = $row['description'];
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
2018-09-30 08:04:15 +00:00
|
|
|
|
2018-01-07 13:55:25 +00:00
|
|
|
$phpconfig_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/phpconfig/formfield.phpconfig_add.php';
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-11-01 14:32:10 +00:00
|
|
|
UI::view('user/form-replacers.html.twig', [
|
2022-04-28 18:48:00 +00:00
|
|
|
'formaction' => $linker->getLink(['section' => 'phpsettings']),
|
2022-11-01 14:32:10 +00:00
|
|
|
'formdata' => $phpconfig_add_data['phpconfig_add'],
|
|
|
|
'replacers' => $phpconfig_add_data['phpconfig_replacers']
|
2022-02-28 09:51:19 +00:00
|
|
|
]);
|
2010-01-27 08:54:31 +00:00
|
|
|
}
|
2013-11-02 11:07:34 +00:00
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::standardError('nopermissionsorinvalidid');
|
2010-01-27 08:54:31 +00:00
|
|
|
}
|
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2013-11-02 11:07:34 +00:00
|
|
|
if ($action == 'delete') {
|
2018-02-19 12:36:15 +00:00
|
|
|
try {
|
2022-04-28 18:48:00 +00:00
|
|
|
$json_result = PhpSettings::getLocal($userinfo, [
|
2018-12-21 11:24:07 +00:00
|
|
|
'id' => $id
|
2022-04-28 18:48:00 +00:00
|
|
|
])->get();
|
2018-02-19 12:36:15 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2014-02-18 16:13:25 +00:00
|
|
|
}
|
2018-02-19 12:36:15 +00:00
|
|
|
$result = json_decode($json_result, true)['data'];
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-04-28 18:48:00 +00:00
|
|
|
if ($result['id'] != 0 && $result['id'] == $id && (int)$userinfo['change_serversettings'] == 1 && $id != 1) // cannot delete the default php.config
|
2018-01-07 13:55:25 +00:00
|
|
|
{
|
|
|
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
2018-02-19 12:36:15 +00:00
|
|
|
try {
|
2022-04-28 18:48:00 +00:00
|
|
|
PhpSettings::getLocal($userinfo, [
|
2018-12-21 11:24:07 +00:00
|
|
|
'id' => $id
|
2022-04-28 18:48:00 +00:00
|
|
|
])->delete();
|
2018-02-19 12:36:15 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-02-19 12:36:15 +00:00
|
|
|
}
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::redirectTo($filename, [
|
2022-03-14 21:51:59 +00:00
|
|
|
'page' => $page
|
2022-04-28 18:48:00 +00:00
|
|
|
]);
|
2013-11-02 11:07:34 +00:00
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
HTML::askYesNo('phpsetting_reallydelete', $filename, [
|
2018-01-07 13:55:25 +00:00
|
|
|
'id' => $id,
|
|
|
|
'page' => $page,
|
|
|
|
'action' => $action
|
2022-04-28 18:48:00 +00:00
|
|
|
], $result['description']);
|
2010-01-27 08:54:31 +00:00
|
|
|
}
|
2013-11-02 11:07:34 +00:00
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::standardError('nopermissionsorinvalidid');
|
2010-01-27 08:54:31 +00:00
|
|
|
}
|
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2013-11-02 11:07:34 +00:00
|
|
|
if ($action == 'edit') {
|
2018-02-19 12:36:15 +00:00
|
|
|
try {
|
2022-04-28 18:48:00 +00:00
|
|
|
$json_result = PhpSettings::getLocal($userinfo, [
|
2018-12-21 11:24:07 +00:00
|
|
|
'id' => $id
|
2022-04-28 18:48:00 +00:00
|
|
|
])->get();
|
2018-02-19 12:36:15 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-02-19 12:36:15 +00:00
|
|
|
}
|
|
|
|
$result = json_decode($json_result, true)['data'];
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-04-28 18:48:00 +00:00
|
|
|
if ($result['id'] != 0 && $result['id'] == $id && (int)$userinfo['change_serversettings'] == 1) {
|
2018-01-07 13:55:25 +00:00
|
|
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
2018-02-19 12:36:15 +00:00
|
|
|
try {
|
2018-12-22 07:15:31 +00:00
|
|
|
PhpSettings::getLocal($userinfo, $_POST)->update();
|
2018-02-19 12:36:15 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2013-12-03 10:14:32 +00:00
|
|
|
}
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::redirectTo($filename, [
|
2022-03-14 21:51:59 +00:00
|
|
|
'page' => $page
|
2022-04-28 18:48:00 +00:00
|
|
|
]);
|
2013-11-02 11:07:34 +00:00
|
|
|
} else {
|
2022-02-28 09:51:19 +00:00
|
|
|
$fpmconfigs = [];
|
2018-01-07 13:55:25 +00:00
|
|
|
$configs = Database::query("SELECT * FROM `" . TABLE_PANEL_FPMDAEMONS . "` ORDER BY `description` ASC");
|
|
|
|
while ($row = $configs->fetch(PDO::FETCH_ASSOC)) {
|
2022-02-28 09:51:19 +00:00
|
|
|
$fpmconfigs[$row['id']] = $row['description'];
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
2018-09-30 08:04:15 +00:00
|
|
|
|
2018-01-07 13:55:25 +00:00
|
|
|
$phpconfig_edit_data = include_once dirname(__FILE__) . '/lib/formfields/admin/phpconfig/formfield.phpconfig_edit.php';
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-11-01 14:32:10 +00:00
|
|
|
UI::view('user/form-replacers.html.twig', [
|
2022-04-28 18:48:00 +00:00
|
|
|
'formaction' => $linker->getLink(['section' => 'phpsettings', 'id' => $id]),
|
2022-02-28 09:51:19 +00:00
|
|
|
'formdata' => $phpconfig_edit_data['phpconfig_edit'],
|
2022-11-01 14:32:10 +00:00
|
|
|
'replacers' => $phpconfig_edit_data['phpconfig_replacers'],
|
2022-02-28 09:51:19 +00:00
|
|
|
'editid' => $id
|
|
|
|
]);
|
2010-01-27 08:54:31 +00:00
|
|
|
}
|
2018-01-07 13:55:25 +00:00
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::standardError('nopermissionsorinvalidid');
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} elseif ($page == 'fpmdaemons') {
|
|
|
|
if ($action == '') {
|
2018-02-19 12:58:39 +00:00
|
|
|
try {
|
2022-02-28 11:10:44 +00:00
|
|
|
$fpmconf_list_data = include_once dirname(__FILE__) . '/lib/tablelisting/admin/tablelisting.fpmconfigs.php';
|
2022-04-28 18:48:00 +00:00
|
|
|
$collection = (new Collection(FpmDaemons::class, $userinfo))
|
2022-09-30 07:44:11 +00:00
|
|
|
->withPagination($fpmconf_list_data['fpmconf_list']['columns'], $fpmconf_list_data['fpmconf_list']['default_sorting']);
|
2018-02-19 12:58:39 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-02-19 12:58:39 +00:00
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-03-18 11:53:34 +00:00
|
|
|
UI::view('user/table.html.twig', [
|
2022-04-28 18:48:00 +00:00
|
|
|
'listing' => Listing::format($collection, $fpmconf_list_data, 'fpmconf_list'),
|
|
|
|
'actions_links' => (bool)$userinfo['change_serversettings'] ? [
|
|
|
|
[
|
|
|
|
'href' => $linker->getLink(['section' => 'phpsettings', 'page' => $page, 'action' => 'add']),
|
|
|
|
'label' => lng('admin.fpmsettings.addnew')
|
|
|
|
]
|
|
|
|
] : []
|
2022-02-28 11:10:44 +00:00
|
|
|
]);
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2018-01-07 13:55:25 +00:00
|
|
|
if ($action == 'add') {
|
2022-04-28 18:48:00 +00:00
|
|
|
if ((int)$userinfo['change_serversettings'] == 1) {
|
2018-01-07 13:55:25 +00:00
|
|
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
2018-02-19 12:58:39 +00:00
|
|
|
try {
|
2018-12-22 07:15:31 +00:00
|
|
|
FpmDaemons::getLocal($userinfo, $_POST)->add();
|
2018-02-19 12:58:39 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::redirectTo($filename, [
|
2022-03-14 21:51:59 +00:00
|
|
|
'page' => $page
|
2022-04-28 18:48:00 +00:00
|
|
|
]);
|
2018-01-07 13:55:25 +00:00
|
|
|
} else {
|
|
|
|
$fpmconfig_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/phpconfig/formfield.fpmconfig_add.php';
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-11-09 16:07:48 +00:00
|
|
|
UI::view('user/form-replacers.html.twig', [
|
2022-04-28 18:48:00 +00:00
|
|
|
'formaction' => $linker->getLink(['section' => 'phpsettings', 'page' => 'fpmdaemons']),
|
2022-11-09 16:07:48 +00:00
|
|
|
'formdata' => $fpmconfig_add_data['fpmconfig_add'],
|
|
|
|
'replacers' => $fpmconfig_add_data['fpmconfig_replacers']
|
2022-02-28 09:51:19 +00:00
|
|
|
]);
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::standardError('nopermissionsorinvalidid');
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2018-01-07 13:55:25 +00:00
|
|
|
if ($action == 'delete') {
|
2018-02-19 12:58:39 +00:00
|
|
|
try {
|
2022-04-28 18:48:00 +00:00
|
|
|
$json_result = FpmDaemons::getLocal($userinfo, [
|
2018-12-21 11:24:07 +00:00
|
|
|
'id' => $id
|
2022-04-28 18:48:00 +00:00
|
|
|
])->get();
|
2018-02-19 12:58:39 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-02-19 12:58:39 +00:00
|
|
|
}
|
|
|
|
$result = json_decode($json_result, true)['data'];
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2018-01-07 13:55:25 +00:00
|
|
|
if ($id == 1) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::standardError('cannotdeletedefaultphpconfig');
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-04-28 18:48:00 +00:00
|
|
|
if ($result['id'] != 0 && $result['id'] == $id && (int)$userinfo['change_serversettings'] == 1 && $id != 1) // cannot delete the default php.config
|
2018-01-07 13:55:25 +00:00
|
|
|
{
|
|
|
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
2018-02-19 12:58:39 +00:00
|
|
|
try {
|
2018-12-22 07:15:31 +00:00
|
|
|
FpmDaemons::getLocal($userinfo, $_POST)->delete();
|
2018-02-19 12:58:39 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-02-19 12:58:39 +00:00
|
|
|
}
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::redirectTo($filename, [
|
2022-03-14 21:51:59 +00:00
|
|
|
'page' => $page
|
2022-04-28 18:48:00 +00:00
|
|
|
]);
|
2018-01-07 13:55:25 +00:00
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
HTML::askYesNo('fpmsetting_reallydelete', $filename, [
|
2018-01-07 13:55:25 +00:00
|
|
|
'id' => $id,
|
|
|
|
'page' => $page,
|
|
|
|
'action' => $action
|
2022-04-28 18:48:00 +00:00
|
|
|
], $result['description']);
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::standardError('nopermissionsorinvalidid');
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
|
|
|
}
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2018-01-07 13:55:25 +00:00
|
|
|
if ($action == 'edit') {
|
2018-02-19 12:58:39 +00:00
|
|
|
try {
|
2022-04-28 18:48:00 +00:00
|
|
|
$json_result = FpmDaemons::getLocal($userinfo, [
|
2018-12-21 11:24:07 +00:00
|
|
|
'id' => $id
|
2022-04-28 18:48:00 +00:00
|
|
|
])->get();
|
2018-02-19 12:58:39 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-02-19 12:58:39 +00:00
|
|
|
}
|
|
|
|
$result = json_decode($json_result, true)['data'];
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-04-28 18:48:00 +00:00
|
|
|
if ($result['id'] != 0 && $result['id'] == $id && (int)$userinfo['change_serversettings'] == 1) {
|
2018-01-07 13:55:25 +00:00
|
|
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
2018-02-19 12:58:39 +00:00
|
|
|
try {
|
2018-12-22 07:15:31 +00:00
|
|
|
FpmDaemons::getLocal($userinfo, $_POST)->update();
|
2018-02-19 12:58:39 +00:00
|
|
|
} catch (Exception $e) {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::dynamicError($e->getMessage());
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::redirectTo($filename, [
|
2022-03-14 21:51:59 +00:00
|
|
|
'page' => $page
|
2022-04-28 18:48:00 +00:00
|
|
|
]);
|
2018-01-07 13:55:25 +00:00
|
|
|
} else {
|
|
|
|
$fpmconfig_edit_data = include_once dirname(__FILE__) . '/lib/formfields/admin/phpconfig/formfield.fpmconfig_edit.php';
|
2018-12-21 11:24:07 +00:00
|
|
|
|
2022-11-09 16:07:48 +00:00
|
|
|
UI::view('user/form-replacers.html.twig', [
|
2022-04-28 18:48:00 +00:00
|
|
|
'formaction' => $linker->getLink(['section' => 'phpsettings', 'page' => 'fpmdaemons', 'id' => $id]),
|
2022-02-28 09:51:19 +00:00
|
|
|
'formdata' => $fpmconfig_edit_data['fpmconfig_edit'],
|
2022-11-09 16:07:48 +00:00
|
|
|
'replacers' => $fpmconfig_edit_data['fpmconfig_replacers'],
|
2022-02-28 09:51:19 +00:00
|
|
|
'editid' => $id
|
|
|
|
]);
|
2018-01-07 13:55:25 +00:00
|
|
|
}
|
2013-11-02 11:07:34 +00:00
|
|
|
} else {
|
2022-04-28 18:48:00 +00:00
|
|
|
Response::standardError('nopermissionsorinvalidid');
|
2010-01-27 08:54:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|