コード例 #1
0
<?php

require_once 'includes/common.php';
require_once 'includes/classes/FormUpdateFinanceAccount.php';
require_once 'libAllure/FormHandler.php';
use libAllure\FormHandler;
$handler = new FormHandler('FormUpdateSeatingPlan', $tpl);
$handler->setRedirect('listSeatingPlans.php');
$handler->handle();
コード例 #2
0
<?php

require_once 'includes/common.php';
use libAllure\FormHandler;
$handler = new FormHandler('FormUpdatePermission', $tpl);
$handler->setRedirect('listPermissions.php');
$handler->handle();
コード例 #3
0
<?php

require_once 'includes/common.php';
require_once 'includes/classes/FormSurveyCreate.php';
require_once 'libAllure/FormHandler.php';
use libAllure\FormHandler;
$handler = new FormHandler('FormSurveyCreate');
$handler->setRedirect('listSurveys.php', 'Your survey has been created.');
$handler->handle();
コード例 #4
0
<?php

require_once 'includes/common.php';
require_once 'includes/classes/FormUpdateFinanceAccount.php';
require_once 'libAllure/FormHandler.php';
use libAllure\FormHandler;
$handler = new FormHandler('FormUpdateFinanceAllocator', $tpl);
$handler->setRedirect('listFinanceAccounts.php');
$handler->handle();
コード例 #5
0
<?php

require_once 'includes/common.php';
require_once 'includes/classes/FormSudo.php';
require_once 'libAllure/FormHandler.php';
requirePrivOrRedirect('SUDO');
use libAllure\FormHandler;
use libAllure\Sanitizer;
$handler = new FormHandler('formSudo', $tpl);
$handler->setConstructorArgument(0, Sanitizer::getInstance()->filterString('username'));
$handler->setRedirect('index.php');
$handler->handle();
コード例 #6
0
<?php

require_once 'includes/common.php';
require_once 'libAllure/Inflector.php';
use libAllure\Sanitizer;
use libAllure\FormHandler;
use libAllure\Inflector;
$sanitizer = new Sanitizer();
$gallery = $sanitizer->filterUint('gallery');
$filename = $sanitizer->filterString('filename');
$handler = new FormHandler('FormGalleryImageEdit', $tpl);
$handler->setConstructorArgument(0, $gallery);
$handler->setConstructorArgument(1, $filename);
$handler->setRedirect('viewGalleryImage.php?gallery=' . $gallery . '&amp;filename=' . $filename, 'Gallery image edited.');
$handler->handle();
コード例 #7
0
<?php

require_once 'includes/common.php';
require_once 'includes/classes/FormCreateGallery.php';
require_once 'libAllure/FormHandler.php';
use libAllure\FormHandler;
$handler = new FormHandler('FormCreateGallery');
$handler->setRedirect('listGalleries.php');
$handler->handle();