当前位置: 首页>>代码示例>>PHP>>正文


PHP Utilities::createToken方法代码示例

本文整理汇总了PHP中Utilities::createToken方法的典型用法代码示例。如果您正苦于以下问题:PHP Utilities::createToken方法的具体用法?PHP Utilities::createToken怎么用?PHP Utilities::createToken使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Utilities的用法示例。


在下文中一共展示了Utilities::createToken方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: joinMaestroView

 public function joinMaestroView($attempt = 0)
 {
     $attempt = strip_tags(htmlspecialchars($attempt));
     $attempt = filter_var($attempt, FILTER_SANITIZE_NUMBER_INT);
     $attempt = filter_var($attempt, FILTER_VALIDATE_INT);
     $attempt = intval($attempt);
     $this->view = new JoinView($this->app->urlFor('admin-maestro-post'), Utilities::createToken(), $attempt);
     $this->view->display();
 }
开发者ID:CodeSomethingMX,项目名称:barney,代码行数:9,代码来源:EscolaresController.class.php

示例2: loginView

 public function loginView($params)
 {
     $attempt = strip_tags(htmlspecialchars($params['attempt']));
     $attempt = filter_var($attempt, FILTER_SANITIZE_STRING);
     $attempt = filter_var($attempt, FILTER_VALIDATE_INT);
     $attempt = intval($attempt);
     $join = $this->app->urlFor('join');
     $action = $this->app->urlFor('loginPost');
     /*if ( $params['admin'] )
     			$action 	=	$this->app->urlFor('admin-login-post');
     		else
     			$action 	=	$this->app->urlFor('loginPost');*/
     $this->view = new LoginView($action, Utilities::createToken(), $join, $attempt);
     $this->view->display();
     //Utilities::printData( $params );
     //var_dump($_SESSION['proceso']);
 }
开发者ID:CodeSomethingMX,项目名称:barney,代码行数:17,代码来源:GuestController.class.php

示例3: cambiarFotoView

 public function cambiarFotoView($params)
 {
     $usuario_id = strip_tags(htmlspecialchars($params['usuario']));
     $usuario_id = intval($usuario_id);
     $usuario_id = filter_var($usuario_id, FILTER_VALIDATE_INT);
     $error = 0;
     if (!$usuario_id || $usuario_id == 0) {
         $error = 1;
     }
     $usuario = Perfil::find($usuario_id);
     if (count($usuario) == 0) {
         $error = 2;
     }
     $action = '/usuario/' . $usuario_id . '/foto/';
     $session = Utilities::getSession();
     $links = Utilities::getMenu($session);
     $this->view = new FotoView($action, Utilities::createToken(), $usuario, $links, $error);
     $this->view->display();
 }
开发者ID:CodeSomethingMX,项目名称:barney,代码行数:19,代码来源:AlumnoController.class.php

示例4: loginView

 public function loginView($attempt = 0)
 {
     $attempt = strip_tags(htmlspecialchars($attempt));
     $attempt = filter_var($attempt, FILTER_SANITIZE_STRING);
     $attempt = intval($attempt);
     $attempt = filter_var($attempt, FILTER_VALIDATE_INT);
     $action = $this->app->urlFor('maestro-login-post');
     $join = $this->app->urlFor('join');
     $this->view = new LoginView($action, Utilities::createToken(), $join, $attempt);
     $this->view->display();
 }
开发者ID:CodeSomethingMX,项目名称:barney,代码行数:11,代码来源:MaestroController.class.php

示例5: addFileLeccion

 public function addFileLeccion($params)
 {
     $attempt = 0;
     $leccion_id = strip_tags(htmlspecialchars($params['leccion']));
     $leccion_id = intval($leccion_id);
     if (!$leccion_id) {
         $this->app->redirect($this->app->urlFor('Index'));
     }
     $action = '/curso/leccion/' . $leccion_id . '/file';
     if (array_key_exists('get', $params)) {
         $attempt = strip_tags(htmlspecialchars($params['get']));
     }
     if (isset($_SESSION['upload'])) {
         if ($_SESSION['upload'] == 1) {
             unset($_SESSION['upload']);
             $attempt = 5;
         }
     }
     $this->view = new LeccionFileView($action, Utilities::createToken(), $attempt);
     $this->view->display();
 }
开发者ID:CodeSomethingMX,项目名称:barney,代码行数:21,代码来源:CursoController.class.php


注:本文中的Utilities::createToken方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。