當前位置: 首頁>>代碼示例>>PHP>>正文


PHP validaSession函數代碼示例

本文整理匯總了PHP中validaSession函數的典型用法代碼示例。如果您正苦於以下問題:PHP validaSession函數的具體用法?PHP validaSession怎麽用?PHP validaSession使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了validaSession函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: validaSession

<?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');
開發者ID:narbelys,項目名稱:fototea,代碼行數:31,代碼來源:proyectosAction.php

示例2: include

<?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>
開發者ID:narbelys,項目名稱:fototea,代碼行數:31,代碼來源:pagos.php


注:本文中的validaSession函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。