<?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();
<?php require_once 'includes/common.php'; use libAllure\FormHandler; $handler = new FormHandler('FormUpdatePermission', $tpl); $handler->setRedirect('listPermissions.php'); $handler->handle();
<?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();
<?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();
<?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();
<?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 . '&filename=' . $filename, 'Gallery image edited.'); $handler->handle();
<?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();