���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/alphpwcp/public_html/us/alphachat/modules/lhchatarchive/newarchive.php
���ѧ٧ѧ�
<?php $tpl = erLhcoreClassTemplate::getInstance( 'lhchatarchive/newarchive.tpl.php'); $archive = new erLhcoreClassModelChatArchiveRange(); if (isset($_POST['Cancel_archive']) ) { erLhcoreClassModule::redirect('chatarchive/archive'); exit; } if (isset($_POST['Save_archive'])) { $definition = array( 'RangeFrom' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::OPTIONAL, 'string' ), 'RangeTo' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::OPTIONAL, 'string' ) ); $form = new ezcInputForm( INPUT_POST, $definition ); $Errors = array(); if ( !$form->hasValidData( 'RangeFrom' ) || $form->RangeFrom == '' ) { $Errors[] = erTranslationClassLhTranslation::getInstance()->getTranslation('chatarchive/newarchive','Please enter a valid from date range!'); } else { $range = explode('-', $form->RangeFrom); if (checkdate($range[1], $range[2], $range[0])){ $archive->range_from = mktime(0,0,0,$range[1],$range[2],$range[0]); } else { $Errors[] = erTranslationClassLhTranslation::getInstance()->getTranslation('chatarchive/newarchive','Please enter a valid from date range!'); } } if ( !$form->hasValidData( 'RangeTo' ) || $form->RangeTo == '' ) { $Errors[] = erTranslationClassLhTranslation::getInstance()->getTranslation('chatarchive/newarchive','Please enter a valid to date range!'); } else { $range = explode('-', $form->RangeTo); if (checkdate($range[1], $range[2], $range[0])){ $archive->range_to = mktime(0,0,0,$range[1],$range[2],$range[0]); } else { $Errors[] = erTranslationClassLhTranslation::getInstance()->getTranslation('chatarchive/newarchive','Please enter a valid to date range!'); } } if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) { erLhcoreClassModule::redirect('chatarchive/archive'); exit; } if (count($Errors) == 0) { $tpl->set('step_2',true); } else { $tpl->set('errors',$Errors); } } $tpl->set('archive',$archive); $Result['content'] = $tpl->fetch(); $Result['path'] = array( array('url' => erLhcoreClassDesign::baseurl('system/configuration'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('department/departments','System configuration')), array('url' => erLhcoreClassDesign::baseurl('chatarchive/archive'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('chatarchive/archive','Chat archive'))); $Result['path'][] = array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('chatarchive/newarchive','New archive')); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�