���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/alphpwcp/public_html/us/alphachat/modules/lhwebhooks/edit.php
���ѧ٧ѧ�
<?php $tpl = erLhcoreClassTemplate::getInstance('lhwebhooks/edit.tpl.php'); $item = erLhcoreClassModelChatWebhook::fetch((int)$Params['user_parameters']['id']); if ( isset($_POST['Cancel_action']) ) { erLhcoreClassModule::redirect('webhooks/configuration'); exit; } if (isset($_POST['Update_action']) || isset($_POST['Save_action']) ) { if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) { erLhcoreClassModule::redirect('webhooks/configuration'); exit; } $Errors = erLhcoreClassAdminChatValidatorHelper::validateWebhook($item); if (count($Errors) == 0) { $item->saveThis(); if (isset($_POST['Save_action'])) { erLhcoreClassModule::redirect('webhooks/configuration'); exit; } else { $tpl->set('updated',true); } } else { $tpl->set('errors',$Errors); } } if ($Params['user_parameters_unordered']['action'] == 'reset_webhook') { if (!isset($Params['user_parameters_unordered']['csfr']) || !$currentUser->validateCSFRToken($Params['user_parameters_unordered']['csfr'])) { erLhcoreClassModule::redirect('webhooks/configuration'); exit; } $item->beforeRemove(); erLhcoreClassModule::redirect('webhooks/edit','/' . $item->id); exit; } $tpl->set('item', $item); $Result['additional_footer_js'] = '<script src="'.erLhcoreClassDesign::designJS('js/angular.webhooks.js').'"></script>'; $Result['require_angular'] = true; $Result['content'] = $tpl->fetch(); $Result['path'] = array( array('url' => erLhcoreClassDesign::baseurl('system/configuration'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('webhooks/module','System configuration')), array('url' => erLhcoreClassDesign::baseurl('webhooks/configuration'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('webhooks/module','Webhooks')), array('title' => $item->event)); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�