���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/alphpwcp/public_html/us/alphachat/modules/lhchatcommand/command.php
���ѧ٧ѧ�
<?php $chat = erLhcoreClassModelChat::fetch($Params['user_parameters']['chat_id']); if ( erLhcoreClassChat::hasAccessToRead($chat) ) { $command = erLhcoreClassModelGenericBotCommand::fetch($Params['user_parameters']['command_id']); $tpl = new erLhcoreClassTemplate( 'lhchatcommand/command.tpl.php'); $tpl->set('chat', $chat); $tpl->set('command', $command); if ( ezcInputForm::hasPostData() ) { $validationFields = array(); foreach ($command->fields_array as $fieldIndex => $field) { $validationFields['field_' . $fieldIndex] = new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'); } $form = new ezcInputForm(INPUT_POST, $validationFields); $Errors = array(); $commandArguments = []; foreach ($command->fields_array as $fieldIndex => $field) { if ($form->hasValidData('field_' . $fieldIndex) && $form->{'field_' . $fieldIndex} != '') { $commandArguments['field_' . $fieldIndex] = $form->{'field_' . $fieldIndex}; } elseif ((isset($field['required']) && $field['required'] == 'required') || !isset($field['required'])) { $Errors['field_' . $fieldIndex] = erTranslationClassLhTranslation::getInstance()->getTranslation('chat/adminchat', 'Field is required'). ' "' . htmlspecialchars($field['name']) . '"'; } else { $commandArguments['field_' . $fieldIndex] = ''; } } if (empty($Errors)) { $tpl->set('commandExecution', '!' . $command->command . ' ' . implode(' --arg ',$commandArguments)); } else { $tpl->set('errors', $Errors); } $tpl->set('commandArguments', $commandArguments); } echo $tpl->fetch(); } exit; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�