<?php use Fototea\Config\FConfig; use Fototea\Models\CategoriesEvent; use Fototea\Models\Country; use Fototea\Models\Notification; use Fototea\Models\Project; use Fototea\Models\TmpProject; use Fototea\Models\User; use Fototea\Models\Category; use Fototea\Util\DateHelper; use Fototea\Util\FMailer; use Fototea\Util\FAnalytics; require '../vendor/autoload.php'; include_once '../scripts/libSM.php'; $session = validaSession(); $act = $_REQUEST['act']; if ($session != true && $act != 'agregarProyecto') { $app->redirect($app->getHelper('UrlHelper')->getUrl('home')); return; } $currentUser = getCurrentUser(); //agregar proyecto if ($act == "agregarProyecto") { /** @var \Fototea\Util\UrlHelper $urlHelper */ $urlHelper = $app->getHelper('UrlHelper'); //var_dump($app->getRequest()->file()); /** @var Symfony\Component\HttpFoundation\File\UploadedFile $proSample */ $proSample = $app->getRequest()->file('pro_sample'); $number = 123; //$app->getInput()->addError('hola', 'ha ocurrido un error con el campo hola');
<?php include("connect/database.php"); validaSession(); securityValidation($_COOKIE['id'],"10"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Pagos realizados</title> <link rel="stylesheet" href="css/style.css" type="text/css" /> <!--[if IE 9]> <link rel="stylesheet" media="screen" href="css/ie9.css"/> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" media="screen" href="css/ie8.css"/> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" media="screen" href="css/ie7.css"/> <![endif]--> <script type="text/javascript" src="js/plugins/jquery-1.7.min.js"></script> <script type="text/javascript" src="js/plugins/jquery.flot.min.js"></script> <script type="text/javascript" src="js/plugins/jquery.flot.resize.min.js"></script> <script type="text/javascript" src="js/plugins/jquery-ui-1.8.16.custom.min.js"></script> <script type="text/javascript" src="js/plugins/jquery.dataTables.min.js"></script> <script type="text/javascript" src="js/custom/general.js"></script> <script type="text/javascript" src="js/custom/tables.js"></script> <script type="text/javascript" src="js/custom/dashboard.js"></script>